Class CfnAssessment
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.auditmanager.CfnAssessment
- All Implemented Interfaces:
IInspectable,ITaggable,IAssessmentRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:31.648Z")
@Stability(Stable)
public class CfnAssessment
extends CfnResource
implements IInspectable, IAssessmentRef, ITaggable
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();
- See Also:
-
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.services.auditmanager.IAssessmentRef
IAssessmentRef.Jsii$Default, IAssessmentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAssessment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAssessment(software.amazon.jsii.JsiiObjectRef objRef) CfnAssessment(software.constructs.Construct scope, String id) CfnAssessment(software.constructs.Construct scope, String id, CfnAssessmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IAssessmentReffromAssessmentArn(software.constructs.Construct scope, String id, String arn) Creates a new IAssessmentRef from an ARN.static IAssessmentReffromAssessmentId(software.constructs.Construct scope, String id, String assessmentId) Creates a new IAssessmentRef from a assessmentId.A reference to a Assessment resource.The destination that evidence reports are stored in for the assessment.The Amazon Resource Name (ARN) of the assessment.The unique identifier for the assessment.Specifies 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()Tag Manager which manages the tags for this resource.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.voidsetTagsRaw(List<CfnTag> value) The tags that are associated with the assessment.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods 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 software.constructs.Construct scope, @NotNull String id, @Nullable CfnAssessmentProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnAssessment
@Stability(Stable) public CfnAssessment(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
fromAssessmentArn
@Stability(Stable) @NotNull public static IAssessmentRef fromAssessmentArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IAssessmentRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromAssessmentId
@Stability(Stable) @NotNull public static IAssessmentRef fromAssessmentId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String assessmentId) Creates a new IAssessmentRef from a assessmentId.- Parameters:
scope- This parameter is required.id- This parameter is required.assessmentId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAssessmentRef
A reference to a Assessment resource.- Specified by:
getAssessmentRefin interfaceIAssessmentRef
-
getAttrArn
The Amazon Resource Name (ARN) of the assessment. -
getAttrAssessmentId
The unique identifier for the assessment. -
getAttrCreationTime
Specifies when the assessment was created. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getAssessmentReportsDestination
The destination that evidence reports are stored in for the assessment.Returns union: either
IResolvableorCfnAssessment.AssessmentReportsDestinationProperty -
setAssessmentReportsDestination
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. -
getAwsAccount
The AWS account that's associated with the assessment.Returns union: either
IResolvableorCfnAssessment.AWSAccountProperty -
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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAssessment.DelegationProperty> -
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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAssessment.RoleProperty> -
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.Returns union: either
IResolvableorCfnAssessment.ScopeProperty -
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. -
setStatus
The overall status of the assessment. -
getTagsRaw
The tags that are associated with the assessment. -
setTagsRaw
The tags that are associated with the assessment.
-