Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(appsync): sanitized datasource name isn't exported (#23802)
Closes #23743 When providing a name with unsupported characters to an AppSync datasource, it is sanitized internally. #22378 introduced a bug where the sanitized name was no longer exposed on DataSource class instances. ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Construct Runtime Dependencies: * [ ] This PR adds new construct runtime dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-construct-runtime-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* ![image](https://user-images.githubusercontent.com/5336472/214185923-6e90b49a-e834-4932-a23a-12094546181d.png) ![image](https://user-images.githubusercontent.com/5336472/214186095-a4ee51f7-37e1-451c-ba08-d27277cba0b9.png) The above code generates the shown diff. This is due to #23743 where the name is sanitised, but not when setting `this.name`.
- Loading branch information