CfnAllowListProps Struct
Properties for defining a CfnAllowList.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_macie as macie } from 'aws-cdk-lib';
const cfnAllowListProps: macie.CfnAllowListProps = {
criteria: {
regex: 'regex',
s3WordsList: {
bucketName: 'bucketName',
objectKey: 'objectKey',
},
},
name: 'name',
// the properties below are optional
description: 'description',
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_macie as macie
cfn_allow_list_props = macie.CfnAllowListProps(
criteria=macie.CfnAllowList.CriteriaProperty(
regex="regex",
s3_words_list=macie.CfnAllowList.S3WordsListProperty(
bucket_name="bucketName",
object_key="objectKey"
)
),
name="name",
# the properties below are optional
description="description",
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.macie.*;
CfnAllowListProps cfnAllowListProps = CfnAllowListProps.builder()
.criteria(CriteriaProperty.builder()
.regex("regex")
.s3WordsList(S3WordsListProperty.builder()
.bucketName("bucketName")
.objectKey("objectKey")
.build())
.build())
.name("name")
// the properties below are optional
.description("description")
.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.Macie;
var cfnAllowListProps = new CfnAllowListProps {
Criteria = new CriteriaProperty {
Regex = "regex",
S3WordsList = new S3WordsListProperty {
BucketName = "bucketName",
ObjectKey = "objectKey"
}
},
Name = "name",
// the properties below are optional
Description = "description",
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"
cfnAllowListProps := &CfnAllowListProps{
Criteria: &CriteriaProperty{
Regex: jsii.String("regex"),
S3WordsList: &S3WordsListProperty{
BucketName: jsii.String("bucketName"),
ObjectKey: jsii.String("objectKey"),
},
},
Name: jsii.String("name"),
// the properties below are optional
Description: jsii.String("description"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
criteriaIResolvable | CfnAllowList.CriteriaPropertycriteriatyping.Union[IResolvable, CriteriaProperty]criteriaIResolvableCriteriaIResolvableCriteriainterface{} required #The criteria that specify the text or text pattern to ignore.
The criteria can be the location and name of an Amazon S3 object that lists specific text to ignore ( S3WordsList ), or a regular expression ( Regex ) that defines a text pattern to ignore.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A custom description of the allow list.
The description can contain 1-512 characters.
A custom name for the allow list.
The name can contain 1-128 characters.