AWS::Inspector::AssessmentTarget
The AWS::Inspector::AssessmentTarget resource creates an Amazon Inspector
assessment target - a resource that contains information about an Amazon Inspector
application.
Topics
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::Inspector::AssessmentTarget", "Properties" : { "AssessmentTargetName" :String, "ResourceGroupArn" :String} }
YAML
Type: AWS::Inspector::AssessmentTarget Properties: AssessmentTargetName:StringResourceGroupArn:String
Properties
AssessmentTargetName-
The name of the Amazon Inspector assessment target.
Required: No
Type: String
Update requires: Replacement
ResourceGroupArn-
The ARN that specifies the resource group that is associated with the assessment target.
Required: Yes
Type: String
Update requires: No interruption
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 assessment target that is created.
For more information about using Fn::GetAtt, see Fn::GetAtt.
Examples
Declaring an Amazon Inspector Assessment Target Resource
The following example shows how to declare an AWS::Inspector::AssessmentTarget resource to create an Amazon Inspector assessment target.
JSON
"myassessmenttarget": { "Type": "AWS::Inspector::AssessmentTarget", "Properties": { "AssessmentTargetName" : "MyAssessmentTarget", "ResourceGroupArn" : "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv" } }
YAML
myassessmenttarget: Type: AWS::Inspector::AssessmentTarget Properties: AssessmentTargetName : "MyAssessmentTarget" ResourceGroupArn : "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv"
