aws_logs.DataIdentifier: Example of logs.DataProtectionPolicy() fails. #33557
Labels
@aws-cdk/aws-logs
Related to Amazon CloudWatch Logs
documentation
This is a problem with documentation.
effort/medium
Medium work item – several days of effort
p2
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
The text was updated successfully, but these errors were encountered: