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
Modifier and TypeClassDescriptionstatic interface
TheAssessmentReportsDestination
property type specifies the location in which AWS Audit Manager saves assessment reports for the given assessment.static interface
TheAWSAccount
property type specifies the wrapper of the AWS account details, such as account ID, email address, and so on.static interface
TheAWSService
property type specifies an AWS service such as Amazon S3 , AWS CloudTrail , and so on.static final class
A fluent builder forCfnAssessment
.static interface
TheDelegation
property type specifies the assignment of a control set to a delegate for review.static interface
TheRole
property type specifies the wrapper that contains AWS Audit Manager role information, such as the role type and IAM Amazon Resource Name (ARN).static interface
TheScope
property 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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnAssessment
(Construct scope, String id) Create a newAWS::AuditManager::Assessment
.CfnAssessment
(Construct scope, String id, CfnAssessmentProps props) Create a newAWS::AuditManager::Assessment
.protected
CfnAssessment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnAssessment
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The destination that evidence reports are stored in for the assessment.void
The destination that evidence reports are stored in for the assessment.void
setAwsAccount
(IResolvable value) The AWS account that's associated with the assessment.void
The AWS account that's associated with the assessment.void
setDelegations
(List<Object> value) The delegations that are associated with the assessment.void
setDelegations
(IResolvable value) The delegations that are associated with the assessment.void
setDescription
(String value) The description of the assessment.void
setFrameworkId
(String value) The unique identifier for the framework.void
The name of the assessment.void
The roles that are associated with the assessment.void
setRoles
(IResolvable value) The roles that are associated with the assessment.void
setScope
(IResolvable value) The wrapper of AWS accounts and services that are in scope for the assessment.void
The wrapper of AWS accounts and services that are in scope for the assessment.void
The 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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in 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
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
. -
setStatus
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
.
-