CfnAssessmentTemplateProps

class aws_cdk.aws_inspector.CfnAssessmentTemplateProps(*, assessment_target_arn, duration_in_seconds, rules_package_arns, assessment_template_name=None, user_attributes_for_findings=None)

Bases: object

Properties for defining a CfnAssessmentTemplate.

Parameters:
  • assessment_target_arn (str) – The ARN of the assessment target to be included in the assessment template.

  • duration_in_seconds (Union[int, float]) – The duration of the assessment run in seconds.

  • rules_package_arns (Sequence[str]) – The ARNs of the rules packages that you want to use in the assessment template.

  • assessment_template_name (Optional[str]) – 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.

  • user_attributes_for_findings (Union[IResolvable, Sequence[Union[CfnTag, Dict[str, Any], IResolvable]], None]) – 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.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_inspector as inspector

cfn_assessment_template_props = inspector.CfnAssessmentTemplateProps(
    assessment_target_arn="assessmentTargetArn",
    duration_in_seconds=123,
    rules_package_arns=["rulesPackageArns"],

    # the properties below are optional
    assessment_template_name="assessmentTemplateName",
    user_attributes_for_findings=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

assessment_target_arn

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

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttargetarn

assessment_template_name

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.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttemplatename

duration_in_seconds

The duration of the assessment run in seconds.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-durationinseconds

rules_package_arns

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

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-rulespackagearns

user_attributes_for_findings

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.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-userattributesforfindings