CfnAssessmentTemplateProps

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

Bases: object

Properties for defining a AWS::Inspector::AssessmentTemplate.

Parameters
  • assessment_target_arn (str) – AWS::Inspector::AssessmentTemplate.AssessmentTargetArn.

  • assessment_template_name (Optional[str]) – AWS::Inspector::AssessmentTemplate.AssessmentTemplateName.

  • duration_in_seconds (Union[int, float]) – AWS::Inspector::AssessmentTemplate.DurationInSeconds.

  • rules_package_arns (Sequence[str]) – AWS::Inspector::AssessmentTemplate.RulesPackageArns.

  • user_attributes_for_findings (Union[IResolvable, Sequence[Union[CfnTag, IResolvable]], None]) – AWS::Inspector::AssessmentTemplate.UserAttributesForFindings.

Link

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

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

AWS::Inspector::AssessmentTemplate.AssessmentTargetArn.

Link

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

Return type

str

assessment_template_name

AWS::Inspector::AssessmentTemplate.AssessmentTemplateName.

Link

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

Return type

Optional[str]

duration_in_seconds

AWS::Inspector::AssessmentTemplate.DurationInSeconds.

Link

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

Return type

Union[int, float]

rules_package_arns

AWS::Inspector::AssessmentTemplate.RulesPackageArns.

Link

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

Return type

List[str]

user_attributes_for_findings

AWS::Inspector::AssessmentTemplate.UserAttributesForFindings.

Link

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

Return type

Union[IResolvable, List[Union[CfnTag, IResolvable]], None]