You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skip integrations that are not relevant for non-AWS services
This is an initial version to get a working version of generated code
that compiles without manual edits in smithy-typescript-ssdk-demo. I
expect to make updates to this logic.
Copy file name to clipboardExpand all lines: codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java
+11-4
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,8 @@
44
44
/**
45
45
* Configure clients with AWS auth configurations and plugin.
46
46
*/
47
+
// TODO: Should this check for the presence of SigV4 trait instead of assuming the AWS service supports it?
48
+
// TODO: Think about AWS Auth supported for only some operations and not all, when not AWS service
Copy file name to clipboardExpand all lines: codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java
+50-38
Original file line number
Diff line number
Diff line change
@@ -82,10 +82,12 @@ public void addConfigInterfaceFields(
Copy file name to clipboardExpand all lines: codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBuiltinPlugins.java
+5
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ public List<RuntimeClientPlugin> getClientPlugins() {
Copy file name to clipboardExpand all lines: codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddUserAgentDependency.java
Copy file name to clipboardExpand all lines: codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsEndpointGeneratorIntegration.java
Copy file name to clipboardExpand all lines: codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsPackageFixturesGeneratorIntegration.java
+6-1
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,8 @@ public void writeAdditionalFiles(
56
56
writer.write(resource);
57
57
});
58
58
59
-
if (!settings.generateClient()) {
59
+
// TODO: May need to generate a different/modified README.md for these cases
60
+
if (!settings.generateClient() || !isAwsService(settings, model)) {
60
61
return;
61
62
}
62
63
@@ -89,4 +90,8 @@ public void writeAdditionalFiles(
Copy file name to clipboardExpand all lines: codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsServiceIdIntegration.java
+1
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ public SymbolProvider decorateSymbolProvider(
44
44
returnsymbol;
45
45
}
46
46
47
+
// TODO: Should this WARNING be avoided somehow if client is not for an AWS service?
47
48
// If the SDK service ID trait is present, use that, otherwise fall back to
0 commit comments