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

fix(appsync): strongly type expires prop in apiKeyConfig (#9122) #2

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

vrr-21
Copy link
Owner

@vrr-21 vrr-21 commented Sep 9, 2020

[ISSUE]
apiKeyConfig has prop expires that has unclear documentation/not strongly typed and is prone to user errors.

[APPROACH]
Force expires to take Expiration class from core and will be able to output api key configurations easily through Expiration static functions: after(...), fromString(...), atDate(...), atTimeStamp(...).

Fixes aws#8698

BREAKING CHANGE: force apiKeyConfig require a Expiration class instead of string

  • appsync: Parameter apiKeyConfig takes Expiration class instead of string

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

**[ISSUE]**
`apiKeyConfig` has prop `expires` that has unclear documentation/not strongly typed and is prone to user errors. 

**[APPROACH]**
Force `expires` to take `Expiration` class from `core` and will be able to output api key configurations easily through `Expiration` static functions: `after(...)`, `fromString(...)`, ` atDate(...)`, `atTimeStamp(...)`.

Fixes #8698 

BREAKING CHANGE:  force `apiKeyConfig` require a Expiration class instead of string
- **appsync**: Parameter `apiKeyConfig` takes `Expiration` class instead of `string`

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@vrr-21 vrr-21 merged commit b38640d into vrr-21:master Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

appsync - apiKeyConfig expires outputting incorrect format
2 participants