AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Inspector::AssessmentTarget

CfnAssessmentTarget

The `AWS::Inspector::AssessmentTarget` resource is used to create Amazon Inspector assessment targets, which specify the Amazon EC2 instances that will be analyzed during an assessment run.

Import

import { CfnAssessmentTarget } from 'aws-cdk-lib/aws-inspector';

Or use the module namespace:

import * as inspector from 'aws-cdk-lib/aws-inspector';
// inspector.CfnAssessmentTarget

Properties

Configuration passed to the constructor as CfnAssessmentTargetProps.

assessmentTargetNameOptional
string

The name of the Amazon Inspector assessment target. The name must be unique within the AWS account .

resourceGroupArnOptional
string | IResourceGroupRef

The ARN that specifies the resource group that is used to create the assessment target. If `resourceGroupArn` is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-inspector
CFN TypeAWS::Inspector::AssessmentTarget
Properties2

External Links