Skip to content

Commit

Permalink
chore(codegen): comments
Browse files Browse the repository at this point in the history
  • Loading branch information
siddsriv committed Sep 26, 2024
1 parent 11fb1b9 commit 86b6c2d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
Expand All @@ -19,6 +18,10 @@
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
import software.amazon.smithy.utils.SmithyInternalApi;

/**
* Generates appId configuration field for service clients.
* This appId can be used to identify applications.
*/
@SmithyInternalApi
public final class AddUserAgentAppIdRuntimeConfig implements TypeScriptIntegration {

Expand Down Expand Up @@ -49,7 +52,8 @@ public Map<String, Consumer<TypeScriptWriter>> getRuntimeConfigWriters(
case NODE:
runtimeConfigs.put("userAgentAppId", writer -> {
writer.addDependency(TypeScriptDependency.NODE_CONFIG_PROVIDER);
writer.addImport("loadConfig", "loadNodeConfig", TypeScriptDependency.NODE_CONFIG_PROVIDER);
writer.addImport("loadConfig", "loadNodeConfig",
TypeScriptDependency.NODE_CONFIG_PROVIDER);
writer.addDependency(AwsDependency.AWS_SDK_UTIL_USER_AGENT_NODE);
writer.addImport("NODE_APP_ID_CONFIG_OPTIONS", "NODE_APP_ID_CONFIG_OPTIONS",
AwsDependency.AWS_SDK_UTIL_USER_AGENT_NODE);
Expand Down

0 comments on commit 86b6c2d

Please sign in to comment.