Skip to content
v2.278.0

CfnAssessmentProps Struct ​

Properties for defining a CfnAssessment.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_auditmanager as auditmanager } from 'aws-cdk-lib';
const cfnAssessmentProps: auditmanager.CfnAssessmentProps = {
  assessmentReportsDestination: {
    destination: 'destination',
    destinationType: 'destinationType',
  },
  awsAccount: {
    emailAddress: 'emailAddress',
    id: 'id',
    name: 'name',
  },
  delegations: [{
    assessmentId: 'assessmentId',
    assessmentName: 'assessmentName',
    comment: 'comment',
    controlSetId: 'controlSetId',
    createdBy: 'createdBy',
    creationTime: 123,
    id: 'id',
    lastUpdated: 123,
    roleArn: 'roleArn',
    roleType: 'roleType',
    status: 'status',
  }],
  description: 'description',
  frameworkId: 'frameworkId',
  name: 'name',
  roles: [{
    roleArn: 'roleArn',
    roleType: 'roleType',
  }],
  scope: {
    awsAccounts: [{
      emailAddress: 'emailAddress',
      id: 'id',
      name: 'name',
    }],
    awsServices: [{
      serviceName: 'serviceName',
    }],
  },
  status: 'status',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_auditmanager as auditmanager

cfn_assessment_props = auditmanager.CfnAssessmentProps(
    assessment_reports_destination=auditmanager.CfnAssessment.AssessmentReportsDestinationProperty(
        destination="destination",
        destination_type="destinationType"
    ),
    aws_account=auditmanager.CfnAssessment.AWSAccountProperty(
        email_address="emailAddress",
        id="id",
        name="name"
    ),
    delegations=[auditmanager.CfnAssessment.DelegationProperty(
        assessment_id="assessmentId",
        assessment_name="assessmentName",
        comment="comment",
        control_set_id="controlSetId",
        created_by="createdBy",
        creation_time=123,
        id="id",
        last_updated=123,
        role_arn="roleArn",
        role_type="roleType",
        status="status"
    )],
    description="description",
    framework_id="frameworkId",
    name="name",
    roles=[auditmanager.CfnAssessment.RoleProperty(
        role_arn="roleArn",
        role_type="roleType"
    )],
    scope=auditmanager.CfnAssessment.ScopeProperty(
        aws_accounts=[auditmanager.CfnAssessment.AWSAccountProperty(
            email_address="emailAddress",
            id="id",
            name="name"
        )],
        aws_services=[auditmanager.CfnAssessment.AWSServiceProperty(
            service_name="serviceName"
        )]
    ),
    status="status",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// 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.*;

CfnAssessmentProps cfnAssessmentProps = CfnAssessmentProps.builder()
        .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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AuditManager;

var cfnAssessmentProps = new CfnAssessmentProps {
    AssessmentReportsDestination = new AssessmentReportsDestinationProperty {
        Destination = "destination",
        DestinationType = "destinationType"
    },
    AwsAccount = new AWSAccountProperty {
        EmailAddress = "emailAddress",
        Id = "id",
        Name = "name"
    },
    Delegations = new [] { new DelegationProperty {
        AssessmentId = "assessmentId",
        AssessmentName = "assessmentName",
        Comment = "comment",
        ControlSetId = "controlSetId",
        CreatedBy = "createdBy",
        CreationTime = 123,
        Id = "id",
        LastUpdated = 123,
        RoleArn = "roleArn",
        RoleType = "roleType",
        Status = "status"
    } },
    Description = "description",
    FrameworkId = "frameworkId",
    Name = "name",
    Roles = new [] { new RoleProperty {
        RoleArn = "roleArn",
        RoleType = "roleType"
    } },
    Scope = new ScopeProperty {
        AwsAccounts = new [] { new AWSAccountProperty {
            EmailAddress = "emailAddress",
            Id = "id",
            Name = "name"
        } },
        AwsServices = new [] { new AWSServiceProperty {
            ServiceName = "serviceName"
        } }
    },
    Status = "status",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnAssessmentProps := &CfnAssessmentProps{
	AssessmentReportsDestination: &AssessmentReportsDestinationProperty{
		Destination: jsii.String("destination"),
		DestinationType: jsii.String("destinationType"),
	},
	AwsAccount: &AWSAccountProperty{
		EmailAddress: jsii.String("emailAddress"),
		Id: jsii.String("id"),
		Name: jsii.String("name"),
	},
	Delegations: []interface{}{
		&DelegationProperty{
			AssessmentId: jsii.String("assessmentId"),
			AssessmentName: jsii.String("assessmentName"),
			Comment: jsii.String("comment"),
			ControlSetId: jsii.String("controlSetId"),
			CreatedBy: jsii.String("createdBy"),
			CreationTime: jsii.Number(123),
			Id: jsii.String("id"),
			LastUpdated: jsii.Number(123),
			RoleArn: jsii.String("roleArn"),
			RoleType: jsii.String("roleType"),
			Status: jsii.String("status"),
		},
	},
	Description: jsii.String("description"),
	FrameworkId: jsii.String("frameworkId"),
	Name: jsii.String("name"),
	Roles: []interface{}{
		&RoleProperty{
			RoleArn: jsii.String("roleArn"),
			RoleType: jsii.String("roleType"),
		},
	},
	Scope: &ScopeProperty{
		AwsAccounts: []interface{}{
			&AWSAccountProperty{
				EmailAddress: jsii.String("emailAddress"),
				Id: jsii.String("id"),
				Name: jsii.String("name"),
			},
		},
		AwsServices: []interface{}{
			&AWSServiceProperty{
				ServiceName: jsii.String("serviceName"),
			},
		},
	},
	Status: jsii.String("status"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

assessmentReportsDestinationoptionalIResolvable | CfnAssessment.AssessmentReportsDestinationPropertyassessment_reports_destinationoptionaltyping.Union[IResolvable, AssessmentReportsDestinationProperty]assessmentReportsDestinationoptionalIResolvableAssessmentReportsDestinationoptionalIResolvableAssessmentReportsDestinationoptionalinterface{} #
The destination that evidence reports are stored in for the assessment.
awsAccountoptionalIResolvable | CfnAssessment.AWSAccountPropertyaws_accountoptionaltyping.Union[IResolvable, AWSAccountProperty]awsAccountoptionalIResolvableAwsAccountoptionalIResolvableAwsAccountoptionalinterface{} #
The AWS account that's associated with the assessment.
delegationsoptionalIResolvable | IResolvable | CfnAssessment.DelegationProperty[]delegationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DelegationProperty]]]delegationsoptionalIResolvableDelegationsoptionalIResolvableDelegationsoptionalinterface{} #
The delegations that are associated with the assessment.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the assessment.
frameworkIdoptionalstringframework_idoptionalstrframeworkIdoptionalStringFrameworkIdoptionalstringFrameworkIdoptional*string #
The unique identifier for the framework.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
The name of the assessment.
rolesoptionalIResolvable | IResolvable | CfnAssessment.RoleProperty[]rolesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RoleProperty]]]rolesoptionalIResolvableRolesoptionalIResolvableRolesoptionalinterface{} #
The roles that are associated with the assessment.
scopeoptionalIResolvable | CfnAssessment.ScopePropertyscopeoptionaltyping.Union[IResolvable, ScopeProperty]scopeoptionalIResolvableScopeoptionalIResolvableScopeoptionalinterface{} #
The wrapper of AWS accounts and services that are in scope for the assessment.
statusoptionalstringstatusoptionalstrstatusoptionalStringStatusoptionalstringStatusoptional*string #
The overall status of the assessment.
notes

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 .

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags that are associated with the assessment.