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

AWS::Inspector::AssessmentTarget

The AWS::Inspector::AssessmentTarget resource creates an Amazon Inspector assessment target - a resource that contains information about an Amazon Inspector application.

Syntax

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

JSON

Copy
{ "Type" : "AWS::Inspector::AssessmentTarget", "Properties" : { "AssessmentTargetName" : String, "ResourceGroupArn" : String } }

YAML

Copy
Type: "AWS::Inspector::AssessmentTarget" Properties: AssessmentTargetName: String ResourceGroupArn: 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

Copy
"myassessmenttarget": { "Type": "AWS::Inspector::AssessmentTarget", "Properties": { "AssessmentTargetName" : "MyAssessmentTarget", "ResourceGroupArn" : "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv" } }

YAML

Copy
myassessmenttarget: Type: "AWS::Inspector::AssessmentTarget" Properties: AssessmentTargetName : "MyAssessmentTarget" ResourceGroupArn : "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv"