ResourceDefinition - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


A resource included in a generated template. This data type is used with the CreateGeneratedTemplate and UpdateGeneratedTemplate API actions.


ResourceIdentifier.entry.N.key (key)
ResourceIdentifier.entry.N.value (value)

A list of up to 256 key-value pairs that identifies the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier list in the resource schema.) The value is the value of that primary identifier. For example, for a AWS::DynamoDB::Table resource, the primary identifiers is TableName so the key-value pair could be "TableName": "MyDDBTable". For more information, see primaryIdentifier in the Amazon CloudFormation Command Line Interface User guide for extension development.

Type: String to string map

Map Entries: Maximum number of 256 items.

Key Length Constraints: Minimum length of 1. Maximum length of 2048.

Value Length Constraints: Minimum length of 1. Maximum length of 2048.

Required: Yes


The type of the resource, such as AWS::DynamoDB::Table. For the list of supported resources, see IaC generator supported resource types in the Amazon CloudFormation User Guide

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: Yes


The logical resource id for this resource in the generated template.

Type: String

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: