code: def _update_limits_from_api(self):
          
          self.connect()
          logger.info("Querying EC2 DescribeAccountAttributes for limits")
          lims = self.conn.describe_account_limits()
          self.limits['Auto Scaling groups']._set_api_limit(
              lims['MaxNumberOfAutoScalingGroups'])
          self.limits['Launch configurations']._set_api_limit(
              lims['MaxNumberOfLaunchConfigurations'])
docs: Query EC2's DescribeAccountAttributes API action, and update limits
          with the quotas returned. Updates ``self.limits``.