Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS::Inspector::ResourceGroup

The AWS::Inspector::ResourceGroup resource is used to create Amazon Inspector resource groups. A resource group defines a set of tags that, when queried, identify the AWS resources that make up the assessment target.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

Copy
{ "Type" : "AWS::Inspector::ResourceGroup", "Properties" : { "ResourceGroupTags" : [ Resource Tag, ... ] } }

YAML

Copy
Type: "AWS::Inspector::ResourceGroup" Properties: ResourceGroupTags: - Resource Tag

Properties

ResourceGroupTags

The tags (key and value pairs) of the resource group.

Required: Yes

Type: List of AWS CloudFormation Resource Tags

Update requires: Replacement

Return Values

Fn::GetAtt

Fn::GetAtt returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

Arn

The Amazon Resource Name (ARN) that specifies the resource group that is created.

For more information about using Fn::GetAtt, see Fn::GetAtt.

Examples

Declaring an Amazon Inspector Assessment Resource Group Resource

The following example shows how to declare an AWS::Inspector::ResourceGroup resource to create an Amazon Inspector resource group.

JSON

Copy
"myresourcegroup": { "Type": "AWS: : Inspector: : ResourceGroup", "Properties": { "ResourceGroupTags": [ { "key": "Name", "value": "example" } ] } }

YAML

Copy
myresourcegroup: Type: "AWS::Inspector::ResourceGroup" Properties: ResourceGroupTags : - Key: "Name" Value": "example"