Class CfnAssessment
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::AuditManager::Assessment.
The AWS::AuditManager::Assessment resource is an Audit Manager resource type that defines the scope of audit evidence collected by Audit Manager . An Audit Manager assessment is an implementation of an Audit Manager framework.
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.auditmanager.*;
CfnAssessment cfnAssessment = CfnAssessment.Builder.create(this, "MyCfnAssessment")
.assessmentReportsDestination(AssessmentReportsDestinationProperty.builder()
.destination("destination")
.destinationType("destinationType")
.build())
.awsAccount(AWSAccountProperty.builder()
.emailAddress("emailAddress")
.id("id")
.name("name")
.build())
.delegations(List.of(DelegationProperty.builder()
.assessmentId("assessmentId")
.assessmentName("assessmentName")
.comment("comment")
.controlSetId("controlSetId")
.createdBy("createdBy")
.creationTime(123)
.id("id")
.lastUpdated(123)
.roleArn("roleArn")
.roleType("roleType")
.status("status")
.build()))
.description("description")
.frameworkId("frameworkId")
.name("name")
.roles(List.of(RoleProperty.builder()
.roleArn("roleArn")
.roleType("roleType")
.build()))
.scope(ScopeProperty.builder()
.awsAccounts(List.of(AWSAccountProperty.builder()
.emailAddress("emailAddress")
.id("id")
.name("name")
.build()))
.awsServices(List.of(AWSServiceProperty.builder()
.serviceName("serviceName")
.build()))
.build())
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTheAssessmentReportsDestinationproperty type specifies the location in which AWS Audit Manager saves assessment reports for the given assessment.static interfaceTheAWSAccountproperty type specifies the wrapper of the AWS account details, such as account ID, email address, and so on.static interfaceTheAWSServiceproperty type specifies an AWS service such as Amazon S3 , AWS CloudTrail , and so on.static final classA fluent builder forCfnAssessment.static interfaceTheDelegationproperty type specifies the assignment of a control set to a delegate for review.static interfaceTheRoleproperty type specifies the wrapper that contains AWS Audit Manager role information, such as the role type and IAM Amazon Resource Name (ARN).static interfaceTheScopeproperty type specifies the wrapper that contains the AWS accounts and services that are in scope for the assessment.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnAssessment(Construct scope, String id) Create a newAWS::AuditManager::Assessment.CfnAssessment(Construct scope, String id, CfnAssessmentProps props) Create a newAWS::AuditManager::Assessment.protectedCfnAssessment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAssessment(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe destination that evidence reports are stored in for the assessment.The Amazon Resource Name (ARN) of the assessment.The unique identifier for the assessment.The time when the assessment was created.The AWS account that's associated with the assessment.The delegations that are associated with the assessment.The description of the assessment.The unique identifier for the framework.getName()The name of the assessment.getRoles()The roles that are associated with the assessment.getScope()The wrapper of AWS accounts and services that are in scope for the assessment.The overall status of the assessment.getTags()The tags that are associated with the assessment.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe destination that evidence reports are stored in for the assessment.voidThe destination that evidence reports are stored in for the assessment.voidsetAwsAccount(IResolvable value) The AWS account that's associated with the assessment.voidThe AWS account that's associated with the assessment.voidsetDelegations(List<Object> value) The delegations that are associated with the assessment.voidsetDelegations(IResolvable value) The delegations that are associated with the assessment.voidsetDescription(String value) The description of the assessment.voidsetFrameworkId(String value) The unique identifier for the framework.voidThe name of the assessment.voidThe roles that are associated with the assessment.voidsetRoles(IResolvable value) The roles that are associated with the assessment.voidsetScope(IResolvable value) The wrapper of AWS accounts and services that are in scope for the assessment.voidThe wrapper of AWS accounts and services that are in scope for the assessment.voidThe overall status of the assessment.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAssessment
protected CfnAssessment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAssessment
protected CfnAssessment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAssessment
@Stability(Stable) public CfnAssessment(@NotNull Construct scope, @NotNull String id, @Nullable CfnAssessmentProps props) Create a newAWS::AuditManager::Assessment.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnAssessment
Create a newAWS::AuditManager::Assessment.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the assessment.For example,
arn:aws:auditmanager:us-east-1:123456789012:assessment/111A1A1A-22B2-33C3-DDD4-55E5E5E555E5. -
getAttrAssessmentId
The unique identifier for the assessment.For example,
111A1A1A-22B2-33C3-DDD4-55E5E5E555E5. -
getAttrCreationTime
The time when the assessment was created.For example,
1607582033.373. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags that are associated with the assessment. -
getAssessmentReportsDestination
The destination that evidence reports are stored in for the assessment. -
setAssessmentReportsDestination
@Stability(Stable) public void setAssessmentReportsDestination(@Nullable CfnAssessment.AssessmentReportsDestinationProperty value) The destination that evidence reports are stored in for the assessment. -
setAssessmentReportsDestination
The destination that evidence reports are stored in for the assessment. -
getAwsAccount
The AWS account that's associated with the assessment. -
setAwsAccount
The AWS account that's associated with the assessment. -
setAwsAccount
The AWS account that's associated with the assessment. -
getDelegations
The delegations that are associated with the assessment. -
setDelegations
The delegations that are associated with the assessment. -
setDelegations
The delegations that are associated with the assessment. -
getDescription
The description of the assessment. -
setDescription
The description of the assessment. -
getFrameworkId
The unique identifier for the framework. -
setFrameworkId
The unique identifier for the framework. -
getName
The name of the assessment. -
setName
The name of the assessment. -
getRoles
The roles that are associated with the assessment. -
setRoles
The roles that are associated with the assessment. -
setRoles
The roles that are associated with the assessment. -
getScope
The wrapper of AWS accounts and services that are in scope for the assessment. -
setScope
The wrapper of AWS accounts and services that are in scope for the assessment. -
setScope
The wrapper of AWS accounts and services that are in scope for the assessment. -
getStatus
The overall status of the assessment.When you create a new assessment, the initial
Statusvalue 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
Statusproperty at any time. For example, when you want to stop collecting evidence for your assessment, you can change the assessment status toINACTIVE. -
setStatus
The overall status of the assessment.When you create a new assessment, the initial
Statusvalue 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
Statusproperty at any time. For example, when you want to stop collecting evidence for your assessment, you can change the assessment status toINACTIVE.
-