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

Generic client runtime config #4427

Merged
merged 4 commits into from
Feb 14, 2023
Merged

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Feb 10, 2023

This PR updates client configuration to use the client config that was moved to smithy-typescript in smithy-lang/smithy-typescript#693

Clients were re-generated, due to the change in ordering of the generated config, but the content is the same.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@srchase srchase requested a review from a team as a code owner February 10, 2023 23:33
Copy link
Contributor

@gosar gosar left a comment

Choose a reason for hiding this comment

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

See comments. I had paused before I got to those.

@@ -74,15 +74,6 @@ public void addConfigInterfaceFields(
SymbolProvider symbolProvider,
TypeScriptWriter writer
) {
writer.addImport("Provider", "__Provider", TypeScriptDependency.AWS_SDK_TYPES.packageName);
Copy link
Contributor

Choose a reason for hiding this comment

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

Update the javadoc to reflect the changes.

@@ -35,7 +35,7 @@ public void awsClient() {

// Check dependencies
assertThat(manifest.getFileString("package.json").get(),
containsString(AwsDependency.NODE_CONFIG_PROVIDER.packageName));
containsString(TypeScriptDependency.NODE_CONFIG_PROVIDER.packageName));
Copy link
Contributor

Choose a reason for hiding this comment

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

update the tests to not assert for things that are not part of its logic.

Comment on lines 77 to 79
writer.writeDocs("Enables IPv6/IPv4 dualstack endpoint.")
.write("useDualstackEndpoint?: boolean | __Provider<boolean>;\n");
writer.writeDocs("Enables FIPS compatible endpoints.")
Copy link
Contributor

Choose a reason for hiding this comment

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

While we are updating this, let's make the Integration be appropriately conditional. On the aws.api#service trait.

Copy link
Contributor

Choose a reason for hiding this comment

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

In fact, given these are AWS specific, maybe they should just be folded into AddAwsRuntimeConfig.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved into AddAwsRuntimeConfig and made appropriately conditional in 3e1cb31.

@srchase srchase force-pushed the generic-client-runtime-config branch from 2ed2fd0 to 3e1cb31 Compare February 13, 2023 23:05
@kuhe kuhe merged commit 7ff83c4 into aws:main Feb 14, 2023
@github-actions
Copy link

github-actions bot commented Mar 2, 2023

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants