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.
Raises:
-
ResourceContentionFault
–
You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).
-
UnknownServiceError
–
The service returned an error code this client does not model.
Examples:
To describe your Auto Scaling account limits
This example describes the Amazon EC2 Auto Scaling service quotas for your account.
>>> await client.describe_account_limits()
Source code in docs_src/capo_auto_scaling/_services/async_auto_scaling.py
| async def describe_account_limits(
self, *, config_overrides: Optional[AsyncAutoScalingClientConfig] = None
) -> "capo_auto_scaling.types.describe_account_limits_answer.DescribeAccountLimitsAnswer":
"""<p>Describes the current Amazon EC2 Auto Scaling resource quotas for your account.</p> <p>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 <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
Raises:
capo_auto_scaling.errors.resource_contention_fault.ResourceContentionFault: <p>You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).</p>
capo_auto_scaling.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To describe your Auto Scaling account limits
This example describes the Amazon EC2 Auto Scaling service quotas for your account.
>>> await client.describe_account_limits()
"""
async def _handler(
req: "AsyncOperationRequest[None]",
) -> AsyncOperationResponse[
"capo_auto_scaling.types.describe_account_limits_answer.DescribeAccountLimitsAnswer"
]:
import capo_auto_scaling._operations.auto_scaling_2011_01_01.describe_account_limits
(
output,
http_response,
) = await capo_auto_scaling._operations.auto_scaling_2011_01_01.describe_account_limits.async_describe_account_limits(
req.options
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeAccountLimits")
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|