Class CfnCustomDataIdentifier
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnCustomDataIdentifier
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnCustomDataIdentifier
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnCustomDataIdentifier
(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 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 theKeywords
array 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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) A custom description of the custom data identifier.void
setIgnoreWords
(List<String> value) An array of character sequences ( ignore words ) to exclude from the results.void
setKeywords
(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.void
setMaximumMatchDistance
(Number value) 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
).void
A custom name for the custom data identifier.void
The regular expression ( regex ) that defines the text pattern to match.void
An 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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 theKeywords
array 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 theKeywords
array 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.
-