aws-cdk-lib.aws_inspector.CfnAssessmentTemplateProps

interface CfnAssessmentTemplateProps

LanguageType name
.NETAmazon.CDK.AWS.Inspector.CfnAssessmentTemplateProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsinspector#CfnAssessmentTemplateProps
Javasoftware.amazon.awscdk.services.inspector.CfnAssessmentTemplateProps
Pythonaws_cdk.aws_inspector.CfnAssessmentTemplateProps
TypeScript aws-cdk-lib » aws_inspector » CfnAssessmentTemplateProps

Properties for defining a CfnAssessmentTemplate.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_inspector as inspector } from 'aws-cdk-lib';
const cfnAssessmentTemplateProps: inspector.CfnAssessmentTemplateProps = {
  assessmentTargetArn: 'assessmentTargetArn',
  durationInSeconds: 123,
  rulesPackageArns: ['rulesPackageArns'],

  // the properties below are optional
  assessmentTemplateName: 'assessmentTemplateName',
  userAttributesForFindings: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
assessmentTargetArnstringThe ARN of the assessment target to be included in the assessment template.
durationInSecondsnumberThe duration of the assessment run in seconds.
rulesPackageArnsstring[]The ARNs of the rules packages that you want to use in the assessment template.
assessmentTemplateName?stringThe user-defined name that identifies the assessment template that you want to create.
userAttributesForFindings?IResolvable | IResolvable | CfnTag[]The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.

assessmentTargetArn

Type: string

The ARN of the assessment target to be included in the assessment template.


durationInSeconds

Type: number

The duration of the assessment run in seconds.


rulesPackageArns

Type: string[]

The ARNs of the rules packages that you want to use in the assessment template.


assessmentTemplateName?

Type: string (optional)

The user-defined name that identifies the assessment template that you want to create.

You can create several assessment templates for the same assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.


userAttributesForFindings?

Type: IResolvable | IResolvable | CfnTag[] (optional)

The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.

Within an assessment template, each key must be unique.