CfnCustomDataIdentifierProps
- class aws_cdk.aws_macie.CfnCustomDataIdentifierProps(*, name, regex, description=None, ignore_words=None, keywords=None, maximum_match_distance=None, tags=None)
Bases:
object
Properties for defining a
CfnCustomDataIdentifier
.- Parameters:
name (
str
) – A custom name for the custom data identifier. The name can contain 1-128 characters. 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 .regex (
str
) – The regular expression ( regex ) that defines the text pattern to match. The expression can contain 1-512 characters.description (
Optional
[str
]) – A custom description of the custom data identifier. The description can contain 1-512 characters. 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 .ignore_words (
Optional
[Sequence
[str
]]) – An array of character sequences ( ignore words ) to exclude from the results. 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.keywords (
Optional
[Sequence
[str
]]) – An array of character sequences ( keywords ), one of which must precede and be in proximity (MaximumMatchDistance
) of the regular expression (Regex
) to match. The array can contain 1-50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren’t case sensitive.maximum_match_distance (
Union
[int
,float
,None
]) – The maximum number of characters that can exist between the end of at least one complete character sequence specified by theKeywords
array and the end of text that matches the regular expression (Regex
). 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.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – An array of key-value pairs to apply to the custom data identifier. For more information, see Resource tag .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# 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" )] )
Attributes
- description
A custom description of the custom data identifier. The description can contain 1-512 characters.
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 .
- ignore_words
An array of character sequences ( ignore words ) to exclude from the results.
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.
- keywords
An array of character sequences ( keywords ), one of which must precede and be in proximity (
MaximumMatchDistance
) of the regular expression (Regex
) to match.The array can contain 1-50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren’t case sensitive.
- maximum_match_distance
The maximum number of characters that can exist between the end of at least one complete character sequence specified by the
Keywords
array and the end of text that matches the regular expression (Regex
).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.
- name
A custom name for the custom data identifier. The name can contain 1-128 characters.
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 .
- regex
The regular expression ( regex ) that defines the text pattern to match.
The expression can contain 1-512 characters.
- tags
An array of key-value pairs to apply to the custom data identifier.
For more information, see Resource tag .