Class CfnAssessment.Builder

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

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

    • create

      @Stability(Stable) public static CfnAssessment.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 CfnAssessment.Builder.
    • assessmentReportsDestination

      @Stability(Stable) public CfnAssessment.Builder assessmentReportsDestination(CfnAssessment.AssessmentReportsDestinationProperty assessmentReportsDestination)
      The destination that evidence reports are stored in for the assessment.

      Parameters:
      assessmentReportsDestination - The destination that evidence reports are stored in for the assessment. This parameter is required.
      Returns:
      this
    • assessmentReportsDestination

      @Stability(Stable) public CfnAssessment.Builder assessmentReportsDestination(IResolvable assessmentReportsDestination)
      The destination that evidence reports are stored in for the assessment.

      Parameters:
      assessmentReportsDestination - The destination that evidence reports are stored in for the assessment. This parameter is required.
      Returns:
      this
    • awsAccount

      @Stability(Stable) public CfnAssessment.Builder awsAccount(IResolvable awsAccount)
      The AWS account that's associated with the assessment.

      Parameters:
      awsAccount - The AWS account that's associated with the assessment. This parameter is required.
      Returns:
      this
    • awsAccount

      @Stability(Stable) public CfnAssessment.Builder awsAccount(CfnAssessment.AWSAccountProperty awsAccount)
      The AWS account that's associated with the assessment.

      Parameters:
      awsAccount - The AWS account that's associated with the assessment. This parameter is required.
      Returns:
      this
    • delegations

      @Stability(Stable) public CfnAssessment.Builder delegations(IResolvable delegations)
      The delegations that are associated with the assessment.

      Parameters:
      delegations - The delegations that are associated with the assessment. This parameter is required.
      Returns:
      this
    • delegations

      @Stability(Stable) public CfnAssessment.Builder delegations(List<? extends Object> delegations)
      The delegations that are associated with the assessment.

      Parameters:
      delegations - The delegations that are associated with the assessment. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnAssessment.Builder description(String description)
      The description of the assessment.

      Parameters:
      description - The description of the assessment. This parameter is required.
      Returns:
      this
    • frameworkId

      @Stability(Stable) public CfnAssessment.Builder frameworkId(String frameworkId)
      The unique identifier for the framework.

      Parameters:
      frameworkId - The unique identifier for the framework. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnAssessment.Builder name(String name)
      The name of the assessment.

      Parameters:
      name - The name of the assessment. This parameter is required.
      Returns:
      this
    • roles

      @Stability(Stable) public CfnAssessment.Builder roles(IResolvable roles)
      The roles that are associated with the assessment.

      Parameters:
      roles - The roles that are associated with the assessment. This parameter is required.
      Returns:
      this
    • roles

      @Stability(Stable) public CfnAssessment.Builder roles(List<? extends Object> roles)
      The roles that are associated with the assessment.

      Parameters:
      roles - The roles that are associated with the assessment. This parameter is required.
      Returns:
      this
    • scope

      @Stability(Stable) public CfnAssessment.Builder scope(IResolvable scope)
      The wrapper of AWS accounts and services that are in scope for the assessment.

      Parameters:
      scope - The wrapper of AWS accounts and services that are in scope for the assessment. This parameter is required.
      Returns:
      this
    • scope

      @Stability(Stable) public CfnAssessment.Builder scope(CfnAssessment.ScopeProperty scope)
      The wrapper of AWS accounts and services that are in scope for the assessment.

      Parameters:
      scope - The wrapper of AWS accounts and services that are in scope for the assessment. This parameter is required.
      Returns:
      this
    • status

      @Stability(Stable) public CfnAssessment.Builder status(String status)
      The overall status of the assessment.

      When you create a new assessment, the initial Status value is always ACTIVE . When you create an assessment, even if you specify the value as INACTIVE , the value overrides to ACTIVE .

      After you create an assessment, you can change the value of the Status property at any time. For example, when you want to stop collecting evidence for your assessment, you can change the assessment status to INACTIVE .

      Parameters:
      status - The overall status of the assessment. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnAssessment.Builder tags(List<? extends CfnTag> tags)
      The tags that are associated with the assessment.

      Parameters:
      tags - The tags that are associated with the assessment. This parameter is required.
      Returns:
      this
    • build

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