fix(appsync): ttl property of CachingConfig is not required#17981
fix(appsync): ttl property of CachingConfig is not required#17981mergify[bot] merged 2 commits intomasterfrom
ttl property of CachingConfig is not required#17981Conversation
njlynch
left a comment
There was a problem hiding this comment.
Two thoughts:
- Should we wait to make this required in the CDK until the spec change has been merged? Maybe not, but coordinating the two would make some sense.
- Either way, this needs to be marked as a BREAKING CHANGE.
I don't mind. We can hold this off until the new spec is out. On the other hand, if this property is left undefined, it will fail one way or the other. With this change, it will fail faster (compile time).
Done. |
|
Latest update from the AppSync team:
Removing the |
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…17981) According to the current CloudFormaton spec for [AWS::AppSync::Resolver CachingConfig][1], the `Ttl` property is not required. But if it's not provided, the deploy will fail with the message: > TTL value cannot be smaller than 1 second and larger than 3600 seconds. (Service: AWSAppSync; Status Code: 400; Error Code: BadRequestException The AppSync team has confirmed that the property is indeed required and they will push a change to the spec. This change is proactively making the property required on the CDK. Fixes aws#17925. BREAKING CHANGE: The `CachingConfig#ttl` property is now required. [1]: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-resolver-cachingconfig.html#cfn-appsync-resolver-cachingconfig-ttl ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
According to the current CloudFormaton spec for AWS::AppSync::Resolver CachingConfig, the
Ttlproperty is not required. But if it's not provided, the deploy will fail with the message:The AppSync team has confirmed that the property is indeed required and they will push a change to the spec. This change is proactively making the property required on the CDK.
Fixes #17925.
BREAKING CHANGE: The
CachingConfig#ttlproperty is now required.----
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license