aws_logs.DataIdentifier: Example of logs.DataProtectionPolicy() fails.
Open
@aws-cdk/aws-logs
documentation
effort/medium
p2
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 74
Description
### Describe the issue
In AWS CDK documnetation [1], under "Data Protection Policy" construct, the name is "data protection policy". When we deploy using the above mentioned name it throws the below error:
Resource handler returned message: "Policy Name can only include alphanumeric characters, hyphens (-) and underscores (_)
When I modify the name to "dataprotectionpolicy" (by removing the space), the stack is getting deployed successfully.
### Links
[1] https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs-readme.html#data-protection-policy
Contributor guide
Assessment
This issue has not been assessed yet.