aws / aws/aws-cdk

aws_logs.DataIdentifier: Example of logs.DataProtectionPolicy() fails.

Open
#33,557 1 comment 0 reactions 1 assignee Claimed by @pahud View on GitHub
@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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.