Class CfnCustomDataIdentifier
- All Implemented Interfaces:
IInspectable,ITaggableV2,ICustomDataIdentifierRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
AWS::Macie::CustomDataIdentifier resource specifies a custom data identifier.
A custom data identifier is a set of custom criteria for Amazon Macie to use when it inspects data sources for sensitive data. The criteria consist of a regular expression ( regex ) that defines a text pattern to match and, optionally, character sequences and a proximity rule that refine the results. The character sequences can be:
- Keywords , which are words or phrases that must be in proximity of text that matches the regex, or
- Ignore words , which are words or phrases to exclude from the results.
By using custom data identifiers, you can supplement the managed data identifiers that Macie provides and detect sensitive data that reflects your particular scenarios, intellectual property, or proprietary data. For more information, see Building custom data identifiers in the Amazon Macie User Guide .
An AWS::Macie::Session resource must exist for an AWS account before you can create an AWS::Macie::CustomDataIdentifier resource for the account. Use a DependsOn attribute to ensure that an AWS::Macie::Session resource is created before other Macie resources are created for an account. For example, "DependsOn": "Session" .
Example:
// 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.*;
CfnCustomDataIdentifier cfnCustomDataIdentifier = CfnCustomDataIdentifier.Builder.create(this, "MyCfnCustomDataIdentifier")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnCustomDataIdentifier.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.macie.ICustomDataIdentifierRef
ICustomDataIdentifierRef.Jsii$Default, ICustomDataIdentifierRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCustomDataIdentifier(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCustomDataIdentifier(software.amazon.jsii.JsiiObjectRef objRef) CfnCustomDataIdentifier(software.constructs.Construct scope, String id, CfnCustomDataIdentifierProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the custom data identifier.The unique identifier for the custom data identifier.Tag Manager which manages the tags for this resource.A reference to a CustomDataIdentifier resource.A custom description of the custom data identifier.An array of character sequences ( ignore words ) to exclude from the results.An array of character sequences ( keywords ), one of which must precede and be in proximity (MaximumMatchDistance) of the regular expression (Regex) to match.The maximum number of characters that can exist between the end of at least one complete character sequence specified by theKeywordsarray and the end of text that matches the regular expression (Regex).getName()A custom name for the custom data identifier.getRegex()The regular expression ( regex ) that defines the text pattern to match.getTags()An array of key-value pairs to apply to the custom data identifier.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) A custom description of the custom data identifier.voidsetIgnoreWords(List<String> value) An array of character sequences ( ignore words ) to exclude from the results.voidsetKeywords(List<String> value) An array of character sequences ( keywords ), one of which must precede and be in proximity (MaximumMatchDistance) of the regular expression (Regex) to match.voidsetMaximumMatchDistance(Number value) The maximum number of characters that can exist between the end of at least one complete character sequence specified by theKeywordsarray and the end of text that matches the regular expression (Regex).voidA custom name for the custom data identifier.voidThe regular expression ( regex ) that defines the text pattern to match.voidAn array of key-value pairs to apply to the custom data identifier.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCustomDataIdentifier
protected CfnCustomDataIdentifier(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCustomDataIdentifier
protected CfnCustomDataIdentifier(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCustomDataIdentifier
@Stability(Stable) public CfnCustomDataIdentifier(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCustomDataIdentifierProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the custom data identifier. -
getAttrId
The unique identifier for the custom data identifier. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCustomDataIdentifierRef
A reference to a CustomDataIdentifier resource.- Specified by:
getCustomDataIdentifierRefin interfaceICustomDataIdentifierRef
-
getName
A custom name for the custom data identifier.The name can contain 1-128 characters.
-
setName
A custom name for the custom data identifier.The name can contain 1-128 characters.
-
getRegex
The regular expression ( regex ) that defines the text pattern to match. -
setRegex
The regular expression ( regex ) that defines the text pattern to match. -
getDescription
A custom description of the custom data identifier.The description can contain 1-512 characters.
-
setDescription
A custom description of the custom data identifier.The description can contain 1-512 characters.
-
getIgnoreWords
An array of character sequences ( ignore words ) to exclude from the results. -
setIgnoreWords
An array of character sequences ( ignore words ) to exclude from the results. -
getKeywords
An array of character sequences ( keywords ), one of which must precede and be in proximity (MaximumMatchDistance) of the regular expression (Regex) to match. -
setKeywords
An array of character sequences ( keywords ), one of which must precede and be in proximity (MaximumMatchDistance) of the regular expression (Regex) to match. -
getMaximumMatchDistance
The maximum number of characters that can exist between the end of at least one complete character sequence specified by theKeywordsarray and the end of text that matches the regular expression (Regex). -
setMaximumMatchDistance
The maximum number of characters that can exist between the end of at least one complete character sequence specified by theKeywordsarray and the end of text that matches the regular expression (Regex). -
getTags
An array of key-value pairs to apply to the custom data identifier. -
setTags
An array of key-value pairs to apply to the custom data identifier.
-