# CustomDataIdentifier

A custom data identifier.

Include a custom data identifier name and regular expression in the JSON policy used to define the data protection policy.

Extends: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) › CustomDataIdentifier

- Source: [`aws-logs/lib/data-protection-policy.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-logs/lib/data-protection-policy.ts#L294)
- Type last changed: v2.123.0 · 24 Jan 2024

## Example

TypeScript:

```ts
import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose';

const logGroupDestination = new logs.LogGroup(this, 'LogGroupLambdaAudit', {
  logGroupName: 'auditDestinationForCDK',
});

const bucket = new s3.Bucket(this, 'audit-bucket');
const s3Destination = new firehose.S3Bucket(bucket);

const deliveryStream = new firehose.DeliveryStream(this, 'Delivery Stream', {
  destination: s3Destination,
});

const dataProtectionPolicy = new logs.DataProtectionPolicy({
  name: 'data protection policy',
  description: 'policy description',
  identifiers: [
    logs.DataIdentifier.DRIVERSLICENSE_US, // managed data identifier
    new logs.DataIdentifier('EmailAddress'), // forward compatibility for new managed data identifiers
    new logs.CustomDataIdentifier('EmployeeId', 'EmployeeId-\\d{9}')], // custom data identifier
  logGroupAuditDestination: logGroupDestination,
  s3BucketAuditDestination: bucket,
  deliveryStreamNameAuditDestination: deliveryStream.deliveryStreamName,
});

new logs.LogGroup(this, 'LogGroupLambda', {
  logGroupName: 'cdkIntegLogGroup',
  dataProtectionPolicy: dataProtectionPolicy,
});
```

Python:

```python
import aws_cdk.aws_kinesisfirehose as firehose

log_group_destination = logs.LogGroup(self, "LogGroupLambdaAudit",
    log_group_name="auditDestinationForCDK"
)

bucket = s3.Bucket(self, "audit-bucket")
s3_destination = firehose.S3Bucket(bucket)

delivery_stream = firehose.DeliveryStream(self, "Delivery Stream",
    destination=s3_destination
)

data_protection_policy = logs.DataProtectionPolicy(
    name="data protection policy",
    description="policy description",
    identifiers=[logs.DataIdentifier.DRIVERSLICENSE_US,  # managed data identifier
        logs.DataIdentifier("EmailAddress"),  # forward compatibility for new managed data identifiers
        logs.CustomDataIdentifier("EmployeeId", "EmployeeId-\\d{9}")
    ],  # custom data identifier
    log_group_audit_destination=log_group_destination,
    s3_bucket_audit_destination=bucket,
    delivery_stream_name_audit_destination=delivery_stream.delivery_stream_name
)

logs.LogGroup(self, "LogGroupLambda",
    log_group_name="cdkIntegLogGroup",
    data_protection_policy=data_protection_policy
)
```

Java:

```java
import software.amazon.awscdk.services.kinesisfirehose.*;

LogGroup logGroupDestination = LogGroup.Builder.create(this, "LogGroupLambdaAudit")
        .logGroupName("auditDestinationForCDK")
        .build();

Bucket bucket = new Bucket(this, "audit-bucket");
S3Bucket s3Destination = new S3Bucket(bucket);

DeliveryStream deliveryStream = DeliveryStream.Builder.create(this, "Delivery Stream")
        .destination(s3Destination)
        .build();

DataProtectionPolicy dataProtectionPolicy = DataProtectionPolicy.Builder.create()
        .name("data protection policy")
        .description("policy description")
        .identifiers(List.of(DataIdentifier.DRIVERSLICENSE_US,  // managed data identifier
            new DataIdentifier("EmailAddress"),  // forward compatibility for new managed data identifiers
            new CustomDataIdentifier("EmployeeId", "EmployeeId-\\d{9}"))) // custom data identifier
        .logGroupAuditDestination(logGroupDestination)
        .s3BucketAuditDestination(bucket)
        .deliveryStreamNameAuditDestination(deliveryStream.getDeliveryStreamName())
        .build();

LogGroup.Builder.create(this, "LogGroupLambda")
        .logGroupName("cdkIntegLogGroup")
        .dataProtectionPolicy(dataProtectionPolicy)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
using Amazon.CDK.AWS.KinesisFirehose;

var logGroupDestination = new LogGroup(this, "LogGroupLambdaAudit", new LogGroupProps {
    LogGroupName = "auditDestinationForCDK"
});

var bucket = new Bucket(this, "audit-bucket");
var s3Destination = new S3Bucket(bucket);

var deliveryStream = new DeliveryStream(this, "Delivery Stream", new DeliveryStreamProps {
    Destination = s3Destination
});

var dataProtectionPolicy = new DataProtectionPolicy(new DataProtectionPolicyProps {
    Name = "data protection policy",
    Description = "policy description",
    Identifiers = new [] { DataIdentifier.DRIVERSLICENSE_US,  // managed data identifier
        new DataIdentifier("EmailAddress"),  // forward compatibility for new managed data identifiers
        new CustomDataIdentifier("EmployeeId", "EmployeeId-\\d{9}") },  // custom data identifier
    LogGroupAuditDestination = logGroupDestination,
    S3BucketAuditDestination = bucket,
    DeliveryStreamNameAuditDestination = deliveryStream.DeliveryStreamName
});

new LogGroup(this, "LogGroupLambda", new LogGroupProps {
    LogGroupName = "cdkIntegLogGroup",
    DataProtectionPolicy = dataProtectionPolicy
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
import "github.com/aws/aws-cdk-go/awscdk"

logGroupDestination := logs.NewLogGroup(this, jsii.String("LogGroupLambdaAudit"), &LogGroupProps{
	LogGroupName: jsii.String("auditDestinationForCDK"),
})

bucket := s3.NewBucket(this, jsii.String("audit-bucket"))
s3Destination := firehose.NewS3Bucket(bucket)

deliveryStream := firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &DeliveryStreamProps{
	Destination: s3Destination,
})

dataProtectionPolicy := logs.NewDataProtectionPolicy(&DataProtectionPolicyProps{
	Name: jsii.String("data protection policy"),
	Description: jsii.String("policy description"),
	Identifiers: []DataIdentifier{
		logs.DataIdentifier_DRIVERSLICENSE_US(),
		 // managed data identifier
		logs.NewDataIdentifier(jsii.String("EmailAddress")),
		 // forward compatibility for new managed data identifiers
		logs.NewCustomDataIdentifier(jsii.String("EmployeeId"), jsii.String("EmployeeId-\\d{9}")),
	},
	 // custom data identifier
	LogGroupAuditDestination: logGroupDestination,
	S3BucketAuditDestination: bucket,
	DeliveryStreamNameAuditDestination: deliveryStream.deliveryStreamName,
})

logs.NewLogGroup(this, jsii.String("LogGroupLambda"), &LogGroupProps{
	LogGroupName: jsii.String("cdkIntegLogGroup"),
	DataProtectionPolicy: dataProtectionPolicy,
})
```

## Initializer

TypeScript:

```ts
new CustomDataIdentifier(name: string, regex: string)
```

Python:

```python
CustomDataIdentifier(name: str, regex: str)
```

Java:

```java
new CustomDataIdentifier(String name, String regex)
```

C# / .NET:

```csharp
new CustomDataIdentifier(string name, string regex)
```

Golang:

```go
NewCustomDataIdentifier(Name *string, Regex *string)
```

## Properties

- `ADDRESS`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `AWSSECRETKEY`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `BANKACCOUNTNUMBER_DE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `BANKACCOUNTNUMBER_ES`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `BANKACCOUNTNUMBER_FR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `BANKACCOUNTNUMBER_GB`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `BANKACCOUNTNUMBER_IT`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `BANKACCOUNTNUMBER_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `CEPCODE_BR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `CNPJ_BR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `CPFCODE_BR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `CREDITCARDEXPIRATION`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `CREDITCARDNUMBER`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `CREDITCARDSECURITYCODE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_AT`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_AU`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_BE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_BG`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_CA`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_CY`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_CZ`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_DE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_DK`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_EE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_ES`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_FI`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_FR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_GB`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_GR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_HR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_HU`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_IE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_IT`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_LT`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_LU`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_LV`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_MT`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_NL`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_PL`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_PT`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_RO`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_SE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_SI`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_SK`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRIVERSLICENSE_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `DRUGENFORCEMENTAGENCYNUMBER_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `ELECTORALROLLNUMBER_GB`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `EMAILADDRESS`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `HEALTHCAREPROCEDURECODE_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `HEALTHINSURANCECARDNUMBER_EU`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `HEALTHINSURANCECLAIMNUMBER_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `HEALTHINSURANCENUMBER_FR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `INDIVIDUALTAXIDENTIFICATIONNUMBER_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `INSEECODE_FR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `IPADDRESS`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `LATLONG`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `MEDICAREBENEFICIARYNUMBER_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `name`: string — - the name of the custom data identifier.

  This cannot share the same name as a managed data identifier.

- `NAME`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `NATIONALDRUGCODE_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `NATIONALIDENTIFICATIONNUMBER_DE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `NATIONALIDENTIFICATIONNUMBER_ES`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `NATIONALIDENTIFICATIONNUMBER_IT`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `NATIONALINSURANCENUMBER_GB`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `NATIONALPROVIDERID_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `NHSNUMBER_GB`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `NIENUMBER_ES`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `NIFNUMBER_ES`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `OPENSSHPRIVATEKEY`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PASSPORTNUMBER_CA`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PASSPORTNUMBER_DE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PASSPORTNUMBER_ES`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PASSPORTNUMBER_FR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PASSPORTNUMBER_GB`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PASSPORTNUMBER_IT`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PASSPORTNUMBER_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PERMANENTRESIDENCENUMBER_CA`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PERSONALHEALTHNUMBER_CA`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PGPPRIVATEKEY`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PHONENUMBER_BR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PHONENUMBER_DE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PHONENUMBER_ES`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PHONENUMBER_FR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PHONENUMBER_GB`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PHONENUMBER_IT`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PHONENUMBER_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PKCSPRIVATEKEY`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `POSTALCODE_CA`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `PUTTYPRIVATEKEY`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `regex`: string — - the regular expression to detect and mask log events for.

- `RGNUMBER_BR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `SOCIALINSURANCENUMBER_CA`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `SSN_ES`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `SSN_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `TAXID_DE`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `TAXID_ES`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `TAXID_FR`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `TAXID_GB`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `VEHICLEIDENTIFICATIONNUMBER`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

- `ZIPCODE_US`: [DataIdentifier](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html) (static)

## Methods

- `toString(): string` — String representation of a CustomDataIdentifier.

  **Returns:** the name and RegEx of the custom data identifier
