Skip to content

Commit 4039d01

Browse files
committed
chore(codegen): comments
1 parent fe2cc06 commit 4039d01

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddUserAgentAppIdRuntimeConfig.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
43
* SPDX-License-Identifier: Apache-2.0
@@ -19,6 +18,10 @@
1918
import software.amazon.smithy.typescript.codegen.integration.TypeScriptIntegration;
2019
import software.amazon.smithy.utils.SmithyInternalApi;
2120

21+
/**
22+
* Generates appId configuration field for service clients.
23+
* This appId can be used to identify applications.
24+
*/
2225
@SmithyInternalApi
2326
public final class AddUserAgentAppIdRuntimeConfig implements TypeScriptIntegration {
2427

@@ -49,7 +52,8 @@ public Map<String, Consumer<TypeScriptWriter>> getRuntimeConfigWriters(
4952
case NODE:
5053
runtimeConfigs.put("userAgentAppId", writer -> {
5154
writer.addDependency(TypeScriptDependency.NODE_CONFIG_PROVIDER);
52-
writer.addImport("loadConfig", "loadNodeConfig", TypeScriptDependency.NODE_CONFIG_PROVIDER);
55+
writer.addImport("loadConfig", "loadNodeConfig",
56+
TypeScriptDependency.NODE_CONFIG_PROVIDER);
5357
writer.addDependency(AwsDependency.AWS_SDK_UTIL_USER_AGENT_NODE);
5458
writer.addImport("NODE_APP_ID_CONFIG_OPTIONS", "NODE_APP_ID_CONFIG_OPTIONS",
5559
AwsDependency.AWS_SDK_UTIL_USER_AGENT_NODE);

0 commit comments

Comments
 (0)