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

Disable Host Prefix in certain case #439

Merged
merged 3 commits into from
Jul 21, 2023
Merged

Conversation

isaiahvita
Copy link
Contributor

Instead of using a model filter to completely remove the endpoint host prefix middleware from every operation. Adding a runtime disabler allows for custom v1 resolvers to still use the endpoint host prefix middleware.

""",
SymbolUtils.createPointableSymbolBuilder("DisableEndpointHostPrefix", SmithyGoDependency.SMITHY_HTTP_TRANSPORT).build()
);
written = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i thought just in case there was a certain operation that satisfied:

                if (segment.isLabel() && segment.getContent().equals("AccountId") && !written) {

multiple times. i didnt want it to write out that context modification multiple times in the EP20 middleware

@isaiahvita isaiahvita marked this pull request as draft July 20, 2023 18:12
@isaiahvita isaiahvita marked this pull request as ready for review July 20, 2023 21:47
@isaiahvita isaiahvita merged commit 880ace2 into aws:ep20 Jul 21, 2023
9 of 20 checks passed
@isaiahvita isaiahvita deleted the ep20-hostprefix branch July 21, 2023 17:01
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.

3 participants