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 Summary
Modifier and TypeMethodDescriptionassessmentReportsDestination
(IResolvable assessmentReportsDestination) The destination that evidence reports are stored in for the assessment.assessmentReportsDestination
(CfnAssessment.AssessmentReportsDestinationProperty assessmentReportsDestination) The destination that evidence reports are stored in for the assessment.awsAccount
(IResolvable awsAccount) The AWS account that's associated with the assessment.awsAccount
(CfnAssessment.AWSAccountProperty awsAccount) The AWS account that's associated with the assessment.build()
static CfnAssessment.Builder
delegations
(List<? extends Object> delegations) The delegations that are associated with the assessment.delegations
(IResolvable delegations) The delegations that are associated with the assessment.description
(String description) The description of the assessment.frameworkId
(String frameworkId) The unique identifier for the framework.The name of the assessment.The roles that are associated with the assessment.roles
(IResolvable roles) The roles that are associated with the assessment.scope
(IResolvable scope) The wrapper of AWS accounts and services that are in scope for the assessment.scope
(CfnAssessment.ScopeProperty scope) The wrapper of AWS accounts and services that are in scope for the assessment.The overall status of the assessment.The tags that are associated with the assessment.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
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
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
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
The description of the assessment.- Parameters:
description
- The description of the assessment. This parameter is required.- Returns:
this
-
frameworkId
The unique identifier for the framework.- Parameters:
frameworkId
- The unique identifier for the framework. This parameter is required.- Returns:
this
-
name
The name of the assessment.- Parameters:
name
- The name of the assessment. This parameter is required.- Returns:
this
-
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
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
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
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
The overall status of the assessment.When you create a new assessment, the initial
Status
value is alwaysACTIVE
. When you create an assessment, even if you specify the value asINACTIVE
, the value overrides toACTIVE
.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 toINACTIVE
.- Parameters:
status
- The overall status of the assessment. This parameter is required.- Returns:
this
-
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAssessment>
- Returns:
- a newly built instance of
CfnAssessment
.
-