CfnCustomDataIdentifierProps Struct
Properties for defining a CfnCustomDataIdentifier.
| Source | |
|---|---|
| Type last changed |
Example
// 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 cfnCustomDataIdentifierProps: macie.CfnCustomDataIdentifierProps = {
name: 'name',
regex: 'regex',
// the properties below are optional
description: 'description',
ignoreWords: ['ignoreWords'],
keywords: ['keywords'],
maximumMatchDistance: 123,
tags: [{
key: 'key',
value: 'value',
}],
};
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_custom_data_identifier_props = macie.CfnCustomDataIdentifierProps(
name="name",
regex="regex",
# the properties below are optional
description="description",
ignore_words=["ignoreWords"],
keywords=["keywords"],
maximum_match_distance=123,
tags=[CfnTag(
key="key",
value="value"
)]
)
// 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.*;
CfnCustomDataIdentifierProps cfnCustomDataIdentifierProps = CfnCustomDataIdentifierProps.builder()
.name("name")
.regex("regex")
// the properties below are optional
.description("description")
.ignoreWords(List.of("ignoreWords"))
.keywords(List.of("keywords"))
.maximumMatchDistance(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
// 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 cfnCustomDataIdentifierProps = new CfnCustomDataIdentifierProps {
Name = "name",
Regex = "regex",
// the properties below are optional
Description = "description",
IgnoreWords = new [] { "ignoreWords" },
Keywords = new [] { "keywords" },
MaximumMatchDistance = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
// 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"
cfnCustomDataIdentifierProps := &CfnCustomDataIdentifierProps{
Name: jsii.String("name"),
Regex: jsii.String("regex"),
// the properties below are optional
Description: jsii.String("description"),
IgnoreWords: []*string{
jsii.String("ignoreWords"),
},
Keywords: []*string{
jsii.String("keywords"),
},
MaximumMatchDistance: jsii.Number(123),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #Avoid including sensitive data in the description. Users of the account might be able to see the description, depending on the actions that they're allowed to perform in Amazon Macie .
ignoreWordsoptionalstring[]ignore_wordsoptionaltyping.List[str]ignoreWordsoptionalList<String>IgnoreWordsoptionalstring[]IgnoreWordsoptional*[]*string #notes
If text matches the regular expression ( Regex ) but it contains a string in this array, Amazon Macie ignores the text and doesn't include it in the results.
The array can contain 1-10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.
keywordsoptionalstring[]keywordsoptionaltyping.List[str]keywordsoptionalList<String>Keywordsoptionalstring[]Keywordsoptional*[]*string #The array can contain 1-50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.
maximumMatchDistanceoptionalnumbermaximum_match_distanceoptionalint | floatmaximumMatchDistanceoptionalNumberMaximumMatchDistanceoptionaldoubleMaximumMatchDistanceoptional*float64 #If a complete keyword precedes all the text that matches the regular expression and the keyword is within the specified distance, Amazon Macie includes the result.
The distance can be 1-300 characters. The default value is 50.
Avoid including sensitive data in the name of a custom data identifier. Users of the account might be able to see the name, depending on the actions that they're allowed to perform in Amazon Macie .
The expression can contain 1-512 characters.