Skip to content
v2.278.0

ScopeProperty ​

Struct External

The Scope property type specifies the wrapper that contains the AWS accounts and services that are in scope for the assessment.

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 scopeProperty: auditmanager.CfnAssessment.ScopeProperty = {
  awsAccounts: [{
    emailAddress: 'emailAddress',
    id: 'id',
    name: 'name',
  }],
  awsServices: [{
    serviceName: 'serviceName',
  }],
};
python
# 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

scope_property = auditmanager.CfnAssessment.ScopeProperty(
    aws_accounts=[auditmanager.CfnAssessment.AWSAccountProperty(
        email_address="emailAddress",
        id="id",
        name="name"
    )],
    aws_services=[auditmanager.CfnAssessment.AWSServiceProperty(
        service_name="serviceName"
    )]
)
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.*;

ScopeProperty scopeProperty = ScopeProperty.builder()
        .awsAccounts(List.of(AWSAccountProperty.builder()
                .emailAddress("emailAddress")
                .id("id")
                .name("name")
                .build()))
        .awsServices(List.of(AWSServiceProperty.builder()
                .serviceName("serviceName")
                .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 scopeProperty = new ScopeProperty {
    AwsAccounts = new [] { new AWSAccountProperty {
        EmailAddress = "emailAddress",
        Id = "id",
        Name = "name"
    } },
    AwsServices = new [] { new AWSServiceProperty {
        ServiceName = "serviceName"
    } }
};
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"

scopeProperty := &ScopeProperty{
	AwsAccounts: []interface{}{
		&AWSAccountProperty{
			EmailAddress: jsii.String("emailAddress"),
			Id: jsii.String("id"),
			Name: jsii.String("name"),
		},
	},
	AwsServices: []interface{}{
		&AWSServiceProperty{
			ServiceName: jsii.String("serviceName"),
		},
	},
}

Properties ​

awsAccountsoptionalIResolvable | IResolvable | CfnAssessment.AWSAccountProperty[]aws_accountsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AWSAccountProperty]]]awsAccountsoptionalIResolvableAwsAccountsoptionalIResolvableAwsAccountsoptionalinterface{} #
The AWS accounts that are included in the scope of the assessment.
awsServicesoptionalIResolvable | IResolvable | CfnAssessment.AWSServiceProperty[]aws_servicesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AWSServiceProperty]]]awsServicesoptionalIResolvableAwsServicesoptionalIResolvableAwsServicesoptionalinterface{} #
The AWS services that are included in the scope of the assessment.

This API parameter is no longer supported. If you use this parameter to specify one or more AWS services , Audit Manager ignores this input. Instead, the value for awsServices will show as empty.