Class CfnAssessmentTemplate.Builder

java.lang.Object
software.amazon.awscdk.services.inspector.CfnAssessmentTemplate.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAssessmentTemplate>
Enclosing class:
CfnAssessmentTemplate

@Stability(Stable) public static final class CfnAssessmentTemplate.Builder extends Object implements software.amazon.jsii.Builder<CfnAssessmentTemplate>
A fluent builder for CfnAssessmentTemplate.
  • Method Details

    • create

      @Stability(Stable) public static CfnAssessmentTemplate.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnAssessmentTemplate.Builder.
    • assessmentTargetArn

      @Stability(Stable) public CfnAssessmentTemplate.Builder assessmentTargetArn(String assessmentTargetArn)
      The ARN of the assessment target to be included in the assessment template.

      Parameters:
      assessmentTargetArn - The ARN of the assessment target to be included in the assessment template. This parameter is required.
      Returns:
      this
    • durationInSeconds

      @Stability(Stable) public CfnAssessmentTemplate.Builder durationInSeconds(Number durationInSeconds)
      The duration of the assessment run in seconds.

      Parameters:
      durationInSeconds - The duration of the assessment run in seconds. This parameter is required.
      Returns:
      this
    • rulesPackageArns

      @Stability(Stable) public CfnAssessmentTemplate.Builder rulesPackageArns(List<String> rulesPackageArns)
      The ARNs of the rules packages that you want to use in the assessment template.

      Parameters:
      rulesPackageArns - The ARNs of the rules packages that you want to use in the assessment template. This parameter is required.
      Returns:
      this
    • assessmentTemplateName

      @Stability(Stable) public CfnAssessmentTemplate.Builder assessmentTemplateName(String assessmentTemplateName)
      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.

      Parameters:
      assessmentTemplateName - The user-defined name that identifies the assessment template that you want to create. This parameter is required.
      Returns:
      this
    • userAttributesForFindings

      @Stability(Stable) public CfnAssessmentTemplate.Builder userAttributesForFindings(IResolvable userAttributesForFindings)
      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.

      Parameters:
      userAttributesForFindings - The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. This parameter is required.
      Returns:
      this
    • userAttributesForFindings

      @Stability(Stable) public CfnAssessmentTemplate.Builder userAttributesForFindings(List<? extends Object> userAttributesForFindings)
      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.

      Parameters:
      userAttributesForFindings - The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAssessmentTemplate build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAssessmentTemplate>
      Returns:
      a newly built instance of CfnAssessmentTemplate.