interface CfnAssessmentTemplateProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Inspector.CfnAssessmentTemplateProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsinspector#CfnAssessmentTemplateProps |
![]() | software.amazon.awscdk.services.inspector.CfnAssessmentTemplateProps |
![]() | aws_cdk.aws_inspector.CfnAssessmentTemplateProps |
![]() | 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
Name | Type | Description |
---|---|---|
assessment | string | The ARN of the assessment target to be included in the assessment template. |
duration | number | The duration of the assessment run in seconds. |
rules | string[] | The ARNs of the rules packages that you want to use in the assessment template. |
assessment | string | The user-defined name that identifies the assessment template that you want to create. |
user | IResolvable | IResolvable | Cfn [] | 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
|
Cfn
[]
(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.