Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks
ruchirshetye-aws opened this issue Feb 22, 2025 · 1 comment
Labels
@aws-cdk/aws-logs Related to Amazon CloudWatch Logs effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p3

Comments

@ruchirshetye-aws
Copy link

ruchirshetye-aws commented Feb 22, 2025

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

@ruchirshetye-aws ruchirshetye-aws added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Feb 22, 2025
@github-actions github-actions bot added the @aws-cdk/aws-logs Related to Amazon CloudWatch Logs label Feb 22, 2025
@pahud
Copy link
Contributor

pahud commented Feb 24, 2025

Yes, looks like we can submit a tiny PR to add this in

@pahud pahud added effort/small Small work item – less than a day of effort p3 and removed needs-triage This issue or PR still needs to be triaged. labels Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-logs Related to Amazon CloudWatch Logs effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p3
Projects
None yet
Development

No branches or pull requests

2 participants