Show / Hide Table of Contents

Group

The Group declaration creates a group of nested items. Groups are useful for organizing related definitions together.

Nested items are accessed by combining the group name and item name with ::. For example, use Reporting::Message to access the variable Message in the group Reporting.

Syntax

Group: String
Description: String
Items:
  - ItemDefinition

Properties

Description

The Description attribute specifies the group description.

Required: No

Type: String

Items

The Items section specifies the items defined in the group, such as parameters, variables, resources, conditions, mappings, functions, nested stacks, resource type definitions, macro definitions, and module imports.

Required: No

Type: List of Item Definition

Group

The Group attribute specifies the item name. The name must start with a letter and followed only by letters or digits. Punctuation marks are not allowed. All names are case-sensitive.

Required: Yes

Type: String

Examples

Organize related resources

- Group: Accounting
  Description: Resources for accounting capabilities
  Items:

    - Resource: LoggingBucket
      Type: AWS::S3::Bucket

    - Resource: ReportTopic
      Type: AWS::SNS::Topic

- Variable: TopicForAccountingReports
  Value: !Ref Accounting::ReportTopic
In This Article
Back to top Generated by DocFX