class CfnCustomDataIdentifierPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Macie.Mixins.CfnCustomDataIdentifierPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsmacie/mixins#CfnCustomDataIdentifierPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.macie.mixins.CfnCustomDataIdentifierPropsMixin |
Python | aws_cdk.mixins_preview.aws_macie.mixins.CfnCustomDataIdentifierPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_macie » mixins » CfnCustomDataIdentifierPropsMixin |
Implements
IMixin
Extends
Mixin
The 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 { mixins } from '@aws-cdk/mixins-preview';
import { mixins as macie_mixins } from '@aws-cdk/mixins-preview/aws-macie';
const cfnCustomDataIdentifierPropsMixin = new macie_mixins.CfnCustomDataIdentifierPropsMixin({
description: 'description',
ignoreWords: ['ignoreWords'],
keywords: ['keywords'],
maximumMatchDistance: 123,
name: 'name',
regex: 'regex',
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnCustomDataIdentifierPropsMixin(props: CfnCustomDataIdentifierMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Custom Data Identifier Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Macie::CustomDataIdentifier.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript