Skip to content

Commit

Permalink
feat: support default role assumers (#2221)
Browse files Browse the repository at this point in the history
* feat(sts): use constructor if itself for assumerole

* feat(client-sts): export role assumers for non-sts clients

* chore: update aws auth generator with default role assumers

* feat: generate clients with default role assumers

* docs(credential-provider-web-identity): update README

* fix: address feedbacks

Co-authored-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com>
  • Loading branch information
AllanZhengYP and trivikr authored Apr 9, 2021
1 parent fc6196a commit ae17f4c
Show file tree
Hide file tree
Showing 517 changed files with 1,450 additions and 296 deletions.
1 change: 1 addition & 0 deletions clients/client-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-accessanalyzer/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-acm-pca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-acm-pca/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-acm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-acm/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-alexa-for-business/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-alexa-for-business/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-amplify/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-amplifybackend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-amplifybackend/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-api-gateway/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-apigatewaymanagementapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-apigatewaymanagementapi/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-apigatewayv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-apigatewayv2/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-app-mesh/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-app-mesh/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-appconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-appconfig/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-appflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-appflow/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-appintegrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-appintegrations/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-application-auto-scaling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-application-auto-scaling/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-application-discovery-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-application-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-application-insights/runtimeConfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import packageInfo from "./package.json";

import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
import { Hash } from "@aws-sdk/hash-node";
Expand All @@ -22,7 +23,7 @@ export const ClientDefaultValues: Required<ClientDefaults> = {
base64Decoder: fromBase64,
base64Encoder: toBase64,
bodyLengthChecker: calculateBodyLength,
credentialDefaultProvider,
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider),
defaultUserAgentProvider: defaultUserAgent({
serviceId: ClientSharedValues.serviceId,
clientVersion: packageInfo.version,
Expand Down
1 change: 1 addition & 0 deletions clients/client-appstream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"@aws-crypto/sha256-browser": "^1.0.0",
"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.11.0",
"@aws-sdk/config-resolver": "3.10.0",
"@aws-sdk/credential-provider-node": "3.11.0",
"@aws-sdk/fetch-http-handler": "3.10.0",
Expand Down
Loading

0 comments on commit ae17f4c

Please sign in to comment.