aws_logs.DataIdentifier: Missing DataIdentifier for DateOfBirth in DataProtectionPolicy
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### 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
Contributor guide
Research direction
Use the AWS CDK DataIdentifier API and the linked CloudWatch identifier list as the starting points. Confirm that DateOfBirth is exposed through the public aws_logs API and that the documented example can use it without hardcoding the string.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100