Skip to content

Commit

Permalink
chore(clients-*): update default userAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Dec 5, 2020
1 parent fa9b5fd commit f9aef09
Show file tree
Hide file tree
Showing 474 changed files with 1,659 additions and 1,422 deletions.
10 changes: 5 additions & 5 deletions clients/client-accessanalyzer/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
utf8Encoder?: __Encoder;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;

/**
* The runtime environment
*/
Expand Down Expand Up @@ -206,6 +201,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
}

export type AccessAnalyzerClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand Down
3 changes: 2 additions & 1 deletion clients/client-accessanalyzer/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { ClientDefaults } from "./AccessAnalyzerClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand All @@ -11,7 +12,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
runtime: "react-native",
defaultUserAgent: `aws-sdk-js-v3-react-native-${packageInfo.name}/${packageInfo.version}`,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
sha256: Sha256,
urlParser: parseUrl,
};
10 changes: 5 additions & 5 deletions clients/client-acm-pca/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
utf8Encoder?: __Encoder;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;

/**
* The runtime environment
*/
Expand Down Expand Up @@ -251,6 +246,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
}

export type ACMPCAClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand Down
3 changes: 2 additions & 1 deletion clients/client-acm-pca/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { ClientDefaults } from "./ACMPCAClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand All @@ -11,7 +12,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
runtime: "react-native",
defaultUserAgent: `aws-sdk-js-v3-react-native-${packageInfo.name}/${packageInfo.version}`,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
sha256: Sha256,
urlParser: parseUrl,
};
10 changes: 5 additions & 5 deletions clients/client-acm/ACMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
utf8Encoder?: __Encoder;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;

/**
* The runtime environment
*/
Expand Down Expand Up @@ -200,6 +195,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
}

export type ACMClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand Down
3 changes: 2 additions & 1 deletion clients/client-acm/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { ClientDefaults } from "./ACMClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand All @@ -11,7 +12,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
runtime: "react-native",
defaultUserAgent: `aws-sdk-js-v3-react-native-${packageInfo.name}/${packageInfo.version}`,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
sha256: Sha256,
urlParser: parseUrl,
};
10 changes: 5 additions & 5 deletions clients/client-alexa-for-business/AlexaForBusinessClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
utf8Encoder?: __Encoder;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;

/**
* The runtime environment
*/
Expand Down Expand Up @@ -539,6 +534,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
}

export type AlexaForBusinessClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand Down
3 changes: 2 additions & 1 deletion clients/client-alexa-for-business/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { ClientDefaults } from "./AlexaForBusinessClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand All @@ -11,7 +12,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
runtime: "react-native",
defaultUserAgent: `aws-sdk-js-v3-react-native-${packageInfo.name}/${packageInfo.version}`,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
sha256: Sha256,
urlParser: parseUrl,
};
10 changes: 5 additions & 5 deletions clients/client-amplify/AmplifyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
utf8Encoder?: __Encoder;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;

/**
* The runtime environment
*/
Expand Down Expand Up @@ -284,6 +279,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
}

export type AmplifyClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand Down
3 changes: 2 additions & 1 deletion clients/client-amplify/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { ClientDefaults } from "./AmplifyClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand All @@ -11,7 +12,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
runtime: "react-native",
defaultUserAgent: `aws-sdk-js-v3-react-native-${packageInfo.name}/${packageInfo.version}`,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
sha256: Sha256,
urlParser: parseUrl,
};
10 changes: 5 additions & 5 deletions clients/client-api-gateway/APIGatewayClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,11 +567,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
utf8Encoder?: __Encoder;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;

/**
* The runtime environment
*/
Expand Down Expand Up @@ -612,6 +607,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
}

export type APIGatewayClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand Down
3 changes: 2 additions & 1 deletion clients/client-api-gateway/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { ClientDefaults } from "./APIGatewayClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand All @@ -11,7 +12,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
runtime: "react-native",
defaultUserAgent: `aws-sdk-js-v3-react-native-${packageInfo.name}/${packageInfo.version}`,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
sha256: Sha256,
urlParser: parseUrl,
};
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
utf8Encoder?: __Encoder;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;

/**
* The runtime environment
*/
Expand Down Expand Up @@ -149,6 +144,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
}

export type ApiGatewayManagementApiClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { ClientDefaults } from "./ApiGatewayManagementApiClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand All @@ -11,7 +12,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
runtime: "react-native",
defaultUserAgent: `aws-sdk-js-v3-react-native-${packageInfo.name}/${packageInfo.version}`,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
sha256: Sha256,
urlParser: parseUrl,
};
10 changes: 5 additions & 5 deletions clients/client-apigatewayv2/ApiGatewayV2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
utf8Encoder?: __Encoder;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;

/**
* The runtime environment
*/
Expand Down Expand Up @@ -398,6 +393,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
}

export type ApiGatewayV2ClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand Down
3 changes: 2 additions & 1 deletion clients/client-apigatewayv2/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { ClientDefaults } from "./ApiGatewayV2Client";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand All @@ -11,7 +12,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
runtime: "react-native",
defaultUserAgent: `aws-sdk-js-v3-react-native-${packageInfo.name}/${packageInfo.version}`,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
sha256: Sha256,
urlParser: parseUrl,
};
10 changes: 5 additions & 5 deletions clients/client-app-mesh/AppMeshClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
utf8Encoder?: __Encoder;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;

/**
* The runtime environment
*/
Expand Down Expand Up @@ -308,6 +303,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
}

export type AppMeshClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand Down
3 changes: 2 additions & 1 deletion clients/client-app-mesh/runtimeConfig.native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import packageInfo from "./package.json";

import { Sha256 } from "@aws-crypto/sha256-js";
import { parseUrl } from "@aws-sdk/url-parser-node";
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
import { ClientDefaults } from "./AppMeshClient";
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";

Expand All @@ -11,7 +12,7 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"
export const ClientDefaultValues: Required<ClientDefaults> = {
...BrowserDefaults,
runtime: "react-native",
defaultUserAgent: `aws-sdk-js-v3-react-native-${packageInfo.name}/${packageInfo.version}`,
defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version),
sha256: Sha256,
urlParser: parseUrl,
};
10 changes: 5 additions & 5 deletions clients/client-appconfig/AppConfigClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
utf8Encoder?: __Encoder;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;

/**
* The runtime environment
*/
Expand Down Expand Up @@ -290,6 +285,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;

/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
}

export type AppConfigClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
Expand Down
Loading

0 comments on commit f9aef09

Please sign in to comment.