Interface CfnAssessmentTemplateProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnAssessmentTemplateProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:57.468Z") @Stability(Stable) public interface CfnAssessmentTemplateProps extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.inspector.*;
 CfnAssessmentTemplateProps cfnAssessmentTemplateProps = CfnAssessmentTemplateProps.builder()
         .assessmentTargetArn("assessmentTargetArn")
         .durationInSeconds(123)
         .rulesPackageArns(List.of("rulesPackageArns"))
         // the properties below are optional
         .assessmentTemplateName("assessmentTemplateName")
         .userAttributesForFindings(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Method Details

    • getAssessmentTargetArn

      @Stability(Stable) @NotNull String getAssessmentTargetArn()
      The ARN of the assessment target to be included in the assessment template.
    • getDurationInSeconds

      @Stability(Stable) @NotNull Number getDurationInSeconds()
      The duration of the assessment run in seconds.
    • getRulesPackageArns

      @Stability(Stable) @NotNull List<String> getRulesPackageArns()
      The ARNs of the rules packages that you want to use in the assessment template.
    • getAssessmentTemplateName

      @Stability(Stable) @Nullable default String getAssessmentTemplateName()
      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.

    • getUserAttributesForFindings

      @Stability(Stable) @Nullable default Object getUserAttributesForFindings()
      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.

    • builder

      @Stability(Stable) static CfnAssessmentTemplateProps.Builder builder()
      Returns:
      a CfnAssessmentTemplateProps.Builder of CfnAssessmentTemplateProps