-
Notifications
You must be signed in to change notification settings - Fork 55
fix: account ID based endpoints #1535
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,6 +106,14 @@ fun renderBindAwsBuiltins(ctx: ProtocolGenerator.GenerationContext, writer: Kotl | |
| AwsRuntimeTypes.Config.Endpoints.resolveAccountId, | ||
| AccountIdEndpointBuiltinCustomization.AccountIdEndpointModeProp.propertyName, | ||
| ) | ||
|
|
||
| AwsBuiltins.ACCOUNT_ID_ENDPOINT_MODE -> { | ||
| writer.write( | ||
| "#L = config.#L.toString().lowercase()", // DDB endpoint rules assume lowercase value | ||
|
||
| it.defaultName(), | ||
| AccountIdEndpointBuiltinCustomization.AccountIdEndpointModeProp.propertyName, | ||
| ) | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment at the top of this function says "In practice, all of these values are sourced from the client config."
Is that still true? Isn't AccountId being sourced exclusively from endpoint rules in your manual test cases?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Account ID isn't being sourced exclusively from endpoint rules. It's sourced from client config as a built in and from the operation context params using JMESPath.
The endpoint rules use both values for different conditions