DescribeAccountLimitsCommand

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.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { CloudFormationClient, DescribeAccountLimitsCommand } from "@aws-sdk/client-cloudformation"; // ES Modules import
// const { CloudFormationClient, DescribeAccountLimitsCommand } = require("@aws-sdk/client-cloudformation"); // CommonJS import
const client = new CloudFormationClient(config);
const input = { // DescribeAccountLimitsInput
  NextToken: "STRING_VALUE",
};
const command = new DescribeAccountLimitsCommand(input);
const response = await client.send(command);
// { // DescribeAccountLimitsOutput
//   AccountLimits: [ // AccountLimitList
//     { // AccountLimit
//       Name: "STRING_VALUE",
//       Value: Number("int"),
//     },
//   ],
//   NextToken: "STRING_VALUE",
// };

DescribeAccountLimitsCommand Input

Parameter
Type
Description
NextToken
string | undefined

A string that identifies the next page of limits that you want to retrieve.

DescribeAccountLimitsCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
AccountLimits
AccountLimit[] | undefined

An account limit structure that contain a list of CloudFormation account limits and their values.

NextToken
string | undefined

If the output exceeds 1 MB in size, a string that identifies the next page of limits. If no additional page exists, this value is null.

Throws

Name
Fault
Details
CloudFormationServiceException
Base exception class for all service exceptions from CloudFormation service.