@aws-sdk/client-sts 3.952.0 → 3.954.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist-cjs/index.js +194 -142
  2. package/dist-cjs/runtimeConfig.shared.js +7 -6
  3. package/dist-es/commands/AssumeRoleCommand.js +2 -2
  4. package/dist-es/commands/AssumeRoleWithSAMLCommand.js +2 -2
  5. package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
  6. package/dist-es/commands/AssumeRootCommand.js +2 -2
  7. package/dist-es/commands/DecodeAuthorizationMessageCommand.js +2 -2
  8. package/dist-es/commands/GetAccessKeyInfoCommand.js +2 -2
  9. package/dist-es/commands/GetCallerIdentityCommand.js +2 -2
  10. package/dist-es/commands/GetDelegatedAccessTokenCommand.js +2 -2
  11. package/dist-es/commands/GetFederationTokenCommand.js +2 -2
  12. package/dist-es/commands/GetSessionTokenCommand.js +2 -2
  13. package/dist-es/commands/GetWebIdentityTokenCommand.js +2 -2
  14. package/dist-es/index.js +1 -0
  15. package/dist-es/runtimeConfig.shared.js +7 -6
  16. package/dist-es/schemas/schemas_0.js +101 -101
  17. package/dist-types/STSClient.d.ts +1 -10
  18. package/dist-types/index.d.ts +1 -0
  19. package/dist-types/runtimeConfig.browser.d.ts +6 -2
  20. package/dist-types/runtimeConfig.d.ts +6 -2
  21. package/dist-types/runtimeConfig.native.d.ts +6 -2
  22. package/dist-types/runtimeConfig.shared.d.ts +6 -1
  23. package/dist-types/schemas/schemas_0.d.ts +53 -63
  24. package/dist-types/ts3.4/STSClient.d.ts +0 -4
  25. package/dist-types/ts3.4/index.d.ts +1 -0
  26. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
  27. package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
  28. package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
  29. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
  30. package/dist-types/ts3.4/schemas/schemas_0.d.ts +52 -64
  31. package/package.json +34 -34
@@ -32,12 +32,13 @@ const getRuntimeConfig = (config) => {
32
32
  },
33
33
  ],
34
34
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
35
- protocol: config?.protocol ??
36
- new protocols_1.AwsQueryProtocol({
37
- defaultNamespace: "com.amazonaws.sts",
38
- xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
39
- version: "2011-06-15",
40
- }),
35
+ protocol: config?.protocol ?? protocols_1.AwsQueryProtocol,
36
+ protocolSettings: config?.protocolSettings ?? {
37
+ defaultNamespace: "com.amazonaws.sts",
38
+ xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
39
+ version: "2011-06-15",
40
+ serviceTarget: "AWSSecurityTokenServiceV20110615",
41
+ },
41
42
  serviceId: config?.serviceId ?? "STS",
42
43
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
43
44
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { AssumeRole } from "../schemas/schemas_0";
4
+ import { AssumeRole$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class AssumeRoleCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class AssumeRoleCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "AssumeRole", {})
13
13
  .n("STSClient", "AssumeRoleCommand")
14
- .sc(AssumeRole)
14
+ .sc(AssumeRole$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { AssumeRoleWithSAML } from "../schemas/schemas_0";
4
+ import { AssumeRoleWithSAML$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class AssumeRoleWithSAMLCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class AssumeRoleWithSAMLCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithSAML", {})
13
13
  .n("STSClient", "AssumeRoleWithSAMLCommand")
14
- .sc(AssumeRoleWithSAML)
14
+ .sc(AssumeRoleWithSAML$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { AssumeRoleWithWebIdentity } from "../schemas/schemas_0";
4
+ import { AssumeRoleWithWebIdentity$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class AssumeRoleWithWebIdentityCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class AssumeRoleWithWebIdentityCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "AssumeRoleWithWebIdentity", {})
13
13
  .n("STSClient", "AssumeRoleWithWebIdentityCommand")
14
- .sc(AssumeRoleWithWebIdentity)
14
+ .sc(AssumeRoleWithWebIdentity$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { AssumeRoot } from "../schemas/schemas_0";
4
+ import { AssumeRoot$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class AssumeRootCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class AssumeRootCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "AssumeRoot", {})
13
13
  .n("STSClient", "AssumeRootCommand")
14
- .sc(AssumeRoot)
14
+ .sc(AssumeRoot$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DecodeAuthorizationMessage } from "../schemas/schemas_0";
4
+ import { DecodeAuthorizationMessage$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DecodeAuthorizationMessageCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DecodeAuthorizationMessageCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "DecodeAuthorizationMessage", {})
13
13
  .n("STSClient", "DecodeAuthorizationMessageCommand")
14
- .sc(DecodeAuthorizationMessage)
14
+ .sc(DecodeAuthorizationMessage$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetAccessKeyInfo } from "../schemas/schemas_0";
4
+ import { GetAccessKeyInfo$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetAccessKeyInfoCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetAccessKeyInfoCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "GetAccessKeyInfo", {})
13
13
  .n("STSClient", "GetAccessKeyInfoCommand")
14
- .sc(GetAccessKeyInfo)
14
+ .sc(GetAccessKeyInfo$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetCallerIdentity } from "../schemas/schemas_0";
4
+ import { GetCallerIdentity$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetCallerIdentityCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetCallerIdentityCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "GetCallerIdentity", {})
13
13
  .n("STSClient", "GetCallerIdentityCommand")
14
- .sc(GetCallerIdentity)
14
+ .sc(GetCallerIdentity$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetDelegatedAccessToken } from "../schemas/schemas_0";
4
+ import { GetDelegatedAccessToken$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetDelegatedAccessTokenCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetDelegatedAccessTokenCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "GetDelegatedAccessToken", {})
13
13
  .n("STSClient", "GetDelegatedAccessTokenCommand")
14
- .sc(GetDelegatedAccessToken)
14
+ .sc(GetDelegatedAccessToken$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetFederationToken } from "../schemas/schemas_0";
4
+ import { GetFederationToken$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetFederationTokenCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetFederationTokenCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "GetFederationToken", {})
13
13
  .n("STSClient", "GetFederationTokenCommand")
14
- .sc(GetFederationToken)
14
+ .sc(GetFederationToken$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetSessionToken } from "../schemas/schemas_0";
4
+ import { GetSessionToken$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetSessionTokenCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetSessionTokenCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "GetSessionToken", {})
13
13
  .n("STSClient", "GetSessionTokenCommand")
14
- .sc(GetSessionToken)
14
+ .sc(GetSessionToken$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetWebIdentityToken } from "../schemas/schemas_0";
4
+ import { GetWebIdentityToken$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetWebIdentityTokenCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetWebIdentityTokenCommand extends $Command
11
11
  })
12
12
  .s("AWSSecurityTokenServiceV20110615", "GetWebIdentityToken", {})
13
13
  .n("STSClient", "GetWebIdentityTokenCommand")
14
- .sc(GetWebIdentityToken)
14
+ .sc(GetWebIdentityToken$)
15
15
  .build() {
16
16
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./STSClient";
2
2
  export * from "./STS";
3
3
  export * from "./commands";
4
+ export * from "./schemas/schemas_0";
4
5
  export * from "./models/errors";
5
6
  export * from "./defaultRoleAssumers";
6
7
  export { STSServiceException } from "./models/STSServiceException";
@@ -29,12 +29,13 @@ export const getRuntimeConfig = (config) => {
29
29
  },
30
30
  ],
31
31
  logger: config?.logger ?? new NoOpLogger(),
32
- protocol: config?.protocol ??
33
- new AwsQueryProtocol({
34
- defaultNamespace: "com.amazonaws.sts",
35
- xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
36
- version: "2011-06-15",
37
- }),
32
+ protocol: config?.protocol ?? AwsQueryProtocol,
33
+ protocolSettings: config?.protocolSettings ?? {
34
+ defaultNamespace: "com.amazonaws.sts",
35
+ xmlNamespace: "https://sts.amazonaws.com/doc/2011-06-15/",
36
+ version: "2011-06-15",
37
+ serviceTarget: "AWSSecurityTokenServiceV20110615",
38
+ },
38
39
  serviceId: config?.serviceId ?? "STS",
39
40
  urlParser: config?.urlParser ?? parseUrl,
40
41
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,