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: Example of logs.DataProtectionPolicy() fails. #33557

Open
ruchirshetye-aws opened this issue Feb 22, 2025 · 1 comment
Assignees
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

Comments

@ruchirshetye-aws
Copy link

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

@ruchirshetye-aws ruchirshetye-aws added documentation This is a problem with documentation. 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

  name: 'data protection policy',

Yes we should get it fixed with a PR! Thank you.

@pahud pahud self-assigned this Feb 24, 2025
@pahud pahud added effort/medium Medium work item – several days of effort p2 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 documentation This is a problem with documentation. effort/medium Medium work item – several days of effort p2
Projects
None yet
Development

No branches or pull requests

2 participants