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.
Topics
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Inspector::ResourceGroup", "Properties" : { "ResourceGroupTags" : [Resource Tag, ... ] } }
YAML
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 Resource Tag
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
"myresourcegroup": { "Type": "AWS::Inspector::ResourceGroup", "Properties": { "ResourceGroupTags": [ { "Key": "Name", "Value": "example" } ] } }
YAML
myresourcegroup: Type: "AWS::Inspector::ResourceGroup" Properties: ResourceGroupTags: - Key: "Name" Value: "example"
