describe_account_limits

AutoScaling.Client.describe_account_limits()

Describes the current Amazon EC2 Auto Scaling resource quotas for your account.

When you establish an Amazon Web Services account, the account has initial quotas on the maximum number of Auto Scaling groups and launch configurations that you can create in a given Region. For more information, see Quotas for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide .

See also: AWS API Documentation

Request Syntax

response = client.describe_account_limits()
Return type
dict
Returns
Response Syntax
{
    'MaxNumberOfAutoScalingGroups': 123,
    'MaxNumberOfLaunchConfigurations': 123,
    'NumberOfAutoScalingGroups': 123,
    'NumberOfLaunchConfigurations': 123
}

Response Structure

  • (dict) --
    • MaxNumberOfAutoScalingGroups (integer) --

      The maximum number of groups allowed for your account. The default is 200 groups per Region.

    • MaxNumberOfLaunchConfigurations (integer) --

      The maximum number of launch configurations allowed for your account. The default is 200 launch configurations per Region.

    • NumberOfAutoScalingGroups (integer) --

      The current number of groups for your account.

    • NumberOfLaunchConfigurations (integer) --

      The current number of launch configurations for your account.

Exceptions

  • AutoScaling.Client.exceptions.ResourceContentionFault

Examples

This example describes the Amazon EC2 Auto Scaling service quotas for your account.

response = client.describe_account_limits(
)

print(response)

Expected Output:

{
    'MaxNumberOfAutoScalingGroups': 20,
    'MaxNumberOfLaunchConfigurations': 100,
    'NumberOfAutoScalingGroups': 3,
    'NumberOfLaunchConfigurations': 5,
    'ResponseMetadata': {
        '...': '...',
    },
}