AWS::Config::ConfigurationAggregator - AWS CloudFormation
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

AWS::Config::ConfigurationAggregator

有关配置聚合器的详细信息,包括有关源账户、区域和聚合器元数据的信息。

语法

要在 AWS CloudFormation 模板中声明此实体,请使用以下语法:

JSON

{ "Type" : "AWS::Config::ConfigurationAggregator", "Properties" : { "AccountAggregationSources" : [ AccountAggregationSource, ... ], "ConfigurationAggregatorName" : String, "OrganizationAggregationSource" : OrganizationAggregationSource, "Tags" : [ Tag, ... ] } }

属性

AccountAggregationSources

提供要聚合的源账户和区域的列表。

必需:否

类型AccountAggregationSource 的列表

最高1

Update requires: No interruption

ConfigurationAggregatorName

聚合器的名称。

必需:是

类型:字符串

最低1

最高256

模式[\w\-]+

Update requires: Replacement

OrganizationAggregationSource

提供一个组织和要聚合的区域的列表。

必需:否

类型OrganizationAggregationSource

Update requires: No interruption

Tags

标签对象数组。

必需:否

类型Tag 的列表

最高50

Update requires: No interruption

返回值

Ref

在将此资源的逻辑 ID 传递给内部 Ref 函数时,Ref 返回 ConfigurationAggregatorName,例如 myConfigurationAggregator

For more information about using the Ref function, see Ref.

示例

具有多个账户和多个区域的配置聚合器

以下示例创建了一个 ConfigurationAggregator

JSON

"ConfigurationAggregator": { "Type": "AWS::Config::ConfigurationAggregator", "Properties": { "AccountAggregationSources": [ { "AccountIds": [ "123456789012", "987654321012" ], "AwsRegions": [ "us-west-2", "us-east-1" ], "AllAwsRegions": false } ], "ConfigurationAggregatorName": "MyConfigurationAggregator" } }

YAML

ConfigurationAggregator: Type: 'AWS::Config::ConfigurationAggregator' Properties: AccountAggregationSources: - AccountIds: - '123456789012' - '987654321012' AwsRegions: - us-west-2 - us-east-1 AllAwsRegions: false ConfigurationAggregatorName: MyConfigurationAggregator

组织的配置聚合器

以下示例为组织创建了一个 ConfigurationAggregator

JSON

"ConfigurationAggregator": { "Type": "AWS::Config::ConfigurationAggregator", "Properties": { "OrganizationAggregationSource": { "RoleArn": "arn:aws:iam::012345678912:role/aws-service-role/organizations.amazonaws.com/AWSServiceRoleForOrganizations", "AwsRegions": [ "us-west-2", "us-east-1" ], "AllAwsRegions": false } "ConfigurationAggregatorName": "MyConfigurationAggregator" } }

YAML

ConfigurationAggregator: Type: 'AWS::Config::ConfigurationAggregator' Properties: OrganizationAggregationSource: RoleArn: >- arn:aws:iam::012345678912:role/aws-service-role/organizations.amazonaws.com/AWSServiceRoleForOrganizations AwsRegions: - us-west-2 - us-east-1 AllAwsRegions: false ConfigurationAggregatorName: MyConfigurationAggregator