Skip to content

describe_account_limits

describe_account_limits(
    *,
    config_overrides: Optional[CloudFormationClientConfig] = None,
    next_token: Optional[NextToken] = None,
) -> DescribeAccountLimitsOutput

Retrieves your account's CloudFormation limits, such as the maximum number of stacks that you can create in your account. For more information about account limits, see Understand CloudFormation quotas in the CloudFormation User Guide.

Parameters:

  • next_token (Optional[NextToken], default: None ) –

    The token for the next set of items to return. (You received this token from a previous call.)

Raises:

Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
def describe_account_limits(
    self,
    *,
    config_overrides: Optional[CloudFormationClientConfig] = None,
    next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
) -> "capo_cloudformation.types.describe_account_limits_output.DescribeAccountLimitsOutput":
    """<p>Retrieves your account's CloudFormation limits, such as the maximum number of stacks that you can create in your account. For more information about account limits, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">Understand CloudFormation quotas</a> in the <i>CloudFormation User Guide</i>.</p>

    Args:
        next_token: <p>The token for the next set of items to return. (You received this token from a previous call.)</p>

    Raises:
        capo_cloudformation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cloudformation.types.describe_account_limits_input.DescribeAccountLimitsInput]",
    ) -> OperationResponse[
        "capo_cloudformation.types.describe_account_limits_output.DescribeAccountLimitsOutput"
    ]:
        import capo_cloudformation._operations.cloud_formation.describe_account_limits

        output, http_response = (
            capo_cloudformation._operations.cloud_formation.describe_account_limits.describe_account_limits(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeAccountLimits")
    )
    input_: capo_cloudformation.types.describe_account_limits_input.DescribeAccountLimitsInput = {}
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output