Skip to content

aws_logs.DataIdentifier: Missing DataIdentifier for DateOfBirth in DataProtectionPolicy #33556

Open
@ruchirshetye-aws

Description

@ruchirshetye-aws

Describe the feature

DateOfBirth Data Identifier is missing in the AWS CDK.

The same identifier can be seen in CloudWatch console but not able to retrieve the DateOfBirth value.

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataIdentifier.html
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/protect-sensitive-log-data-types-pii.html

Use Case

const dataProtectionPolicy = new logs.DataProtectionPolicy({
  name: 'dataprotectionpolicy',
  description: 'policy description',
  identifiers: [
    logs.DataIdentifier.DRIVERSLICENSE_US,
    new logs.DataIdentifier('DateOfBirth'),
  ],
});

Currently, we need to use DataIdentifier('') and hardcode the value.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.180.0

Environment details (OS name and version, etc.)

Mac OS

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-logsRelated to Amazon CloudWatch Logseffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions