Skip to content

Commit 2990ea8

Browse files
authoredOct 3, 2024··
feat(middleware-user-agent): add client config for userAgentAppId (#6524)
1 parent 9196552 commit 2990ea8

File tree

413 files changed

+1081
-525
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

413 files changed

+1081
-525
lines changed
 

‎clients/client-accessanalyzer/src/runtimeConfig.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import packageInfo from "../package.json"; // eslint-disable-line
44

55
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
66
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
7-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
7+
import { NODE_APP_ID_CONFIG_OPTIONS, defaultUserAgent } from "@aws-sdk/util-user-agent-node";
88
import {
99
NODE_REGION_CONFIG_FILE_OPTIONS,
1010
NODE_REGION_CONFIG_OPTIONS,
@@ -55,5 +55,6 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => {
5555
streamCollector: config?.streamCollector ?? streamCollector,
5656
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
5757
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
58+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
5859
};
5960
};

‎clients/client-account/src/runtimeConfig.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import packageInfo from "../package.json"; // eslint-disable-line
44

55
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
66
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
7-
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
7+
import { NODE_APP_ID_CONFIG_OPTIONS, defaultUserAgent } from "@aws-sdk/util-user-agent-node";
88
import {
99
NODE_REGION_CONFIG_FILE_OPTIONS,
1010
NODE_REGION_CONFIG_OPTIONS,
@@ -55,5 +55,6 @@ export const getRuntimeConfig = (config: AccountClientConfig) => {
5555
streamCollector: config?.streamCollector ?? streamCollector,
5656
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
5757
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
58+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
5859
};
5960
};

0 commit comments

Comments
 (0)
Please sign in to comment.