@aws-sdk/client-sts 3.1172.0 → 3.1173.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 (35) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +154 -7
  3. package/dist-es/STS.js +2 -0
  4. package/dist-es/commands/GetScopedCredentialsCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/enums.js +4 -0
  8. package/dist-es/models/errors.js +39 -0
  9. package/dist-es/schemas/schemas_0.js +91 -7
  10. package/dist-types/STS.d.ts +8 -0
  11. package/dist-types/STSClient.d.ts +3 -2
  12. package/dist-types/commands/AssumeRoleCommand.d.ts +12 -7
  13. package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +20 -14
  14. package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +20 -14
  15. package/dist-types/commands/GetDelegatedAccessTokenCommand.d.ts +7 -7
  16. package/dist-types/commands/GetFederationTokenCommand.d.ts +9 -8
  17. package/dist-types/commands/GetScopedCredentialsCommand.d.ts +160 -0
  18. package/dist-types/commands/GetSessionTokenCommand.d.ts +3 -1
  19. package/dist-types/commands/GetWebIdentityTokenCommand.d.ts +9 -2
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/index.d.ts +1 -0
  22. package/dist-types/models/enums.d.ts +12 -0
  23. package/dist-types/models/errors.d.ts +54 -7
  24. package/dist-types/models/models_0.d.ts +363 -123
  25. package/dist-types/schemas/schemas_0.d.ts +10 -0
  26. package/dist-types/ts3.4/STS.d.ts +18 -0
  27. package/dist-types/ts3.4/STSClient.d.ts +6 -0
  28. package/dist-types/ts3.4/commands/GetScopedCredentialsCommand.d.ts +39 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  30. package/dist-types/ts3.4/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/enums.d.ts +6 -0
  32. package/dist-types/ts3.4/models/errors.d.ts +18 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +36 -0
  34. package/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -0
  35. package/package.json +1 -1
@@ -5,8 +5,11 @@ export declare var ExpiredTokenException$: StaticErrorSchema;
5
5
  export declare var ExpiredTradeInTokenException$: StaticErrorSchema;
6
6
  export declare var IDPCommunicationErrorException$: StaticErrorSchema;
7
7
  export declare var IDPRejectedClaimException$: StaticErrorSchema;
8
+ export declare var InsufficientSessionLifetimeException$: StaticErrorSchema;
8
9
  export declare var InvalidAuthorizationMessageException$: StaticErrorSchema;
10
+ export declare var InvalidContextAssertionException$: StaticErrorSchema;
9
11
  export declare var InvalidIdentityTokenException$: StaticErrorSchema;
12
+ export declare var InvalidSubjectCredentialsException$: StaticErrorSchema;
10
13
  export declare var JWTPayloadSizeExceededException$: StaticErrorSchema;
11
14
  export declare var MalformedPolicyDocumentException$: StaticErrorSchema;
12
15
  export declare var OutboundWebIdentityFederationDisabledException$: StaticErrorSchema;
@@ -40,13 +43,19 @@ export declare var GetDelegatedAccessTokenRequest$: StaticStructureSchema;
40
43
  export declare var GetDelegatedAccessTokenResponse$: StaticStructureSchema;
41
44
  export declare var GetFederationTokenRequest$: StaticStructureSchema;
42
45
  export declare var GetFederationTokenResponse$: StaticStructureSchema;
46
+ export declare var GetScopedCredentialsRequest$: StaticStructureSchema;
47
+ export declare var GetScopedCredentialsResponse$: StaticStructureSchema;
43
48
  export declare var GetSessionTokenRequest$: StaticStructureSchema;
44
49
  export declare var GetSessionTokenResponse$: StaticStructureSchema;
45
50
  export declare var GetWebIdentityTokenRequest$: StaticStructureSchema;
46
51
  export declare var GetWebIdentityTokenResponse$: StaticStructureSchema;
52
+ export declare var OriginIdentity$: StaticStructureSchema;
47
53
  export declare var PolicyDescriptorType$: StaticStructureSchema;
48
54
  export declare var ProvidedContext$: StaticStructureSchema;
55
+ export declare var ScopedSession$: StaticStructureSchema;
49
56
  export declare var Tag$: StaticStructureSchema;
57
+ export declare var TransactionContext$: StaticStructureSchema;
58
+ export declare var TrustedIdentityPropagationContext$: StaticStructureSchema;
50
59
  export declare var AssumeRole$: StaticOperationSchema;
51
60
  export declare var AssumeRoleWithSAML$: StaticOperationSchema;
52
61
  export declare var AssumeRoleWithWebIdentity$: StaticOperationSchema;
@@ -56,5 +65,6 @@ export declare var GetAccessKeyInfo$: StaticOperationSchema;
56
65
  export declare var GetCallerIdentity$: StaticOperationSchema;
57
66
  export declare var GetDelegatedAccessToken$: StaticOperationSchema;
58
67
  export declare var GetFederationToken$: StaticOperationSchema;
68
+ export declare var GetScopedCredentials$: StaticOperationSchema;
59
69
  export declare var GetSessionToken$: StaticOperationSchema;
60
70
  export declare var GetWebIdentityToken$: StaticOperationSchema;
@@ -32,6 +32,10 @@ import {
32
32
  GetFederationTokenCommandInput,
33
33
  GetFederationTokenCommandOutput,
34
34
  } from "./commands/GetFederationTokenCommand";
35
+ import {
36
+ GetScopedCredentialsCommandInput,
37
+ GetScopedCredentialsCommandOutput,
38
+ } from "./commands/GetScopedCredentialsCommand";
35
39
  import {
36
40
  GetSessionTokenCommandInput,
37
41
  GetSessionTokenCommandOutput,
@@ -163,6 +167,20 @@ export interface STS {
163
167
  options: STSRequestOptions,
164
168
  cb: (err: any, data?: GetFederationTokenCommandOutput) => void,
165
169
  ): void;
170
+ getScopedCredentials(): Promise<GetScopedCredentialsCommandOutput>;
171
+ getScopedCredentials(
172
+ args: GetScopedCredentialsCommandInput,
173
+ options?: STSRequestOptions,
174
+ ): Promise<GetScopedCredentialsCommandOutput>;
175
+ getScopedCredentials(
176
+ args: GetScopedCredentialsCommandInput,
177
+ cb: (err: any, data?: GetScopedCredentialsCommandOutput) => void,
178
+ ): void;
179
+ getScopedCredentials(
180
+ args: GetScopedCredentialsCommandInput,
181
+ options: STSRequestOptions,
182
+ cb: (err: any, data?: GetScopedCredentialsCommandOutput) => void,
183
+ ): void;
166
184
  getSessionToken(): Promise<GetSessionTokenCommandOutput>;
167
185
  getSessionToken(
168
186
  args: GetSessionTokenCommandInput,
@@ -63,6 +63,10 @@ import {
63
63
  GetFederationTokenCommandInput,
64
64
  GetFederationTokenCommandOutput,
65
65
  } from "./commands/GetFederationTokenCommand";
66
+ import {
67
+ GetScopedCredentialsCommandInput,
68
+ GetScopedCredentialsCommandOutput,
69
+ } from "./commands/GetScopedCredentialsCommand";
66
70
  import {
67
71
  GetSessionTokenCommandInput,
68
72
  GetSessionTokenCommandOutput,
@@ -88,6 +92,7 @@ export type ServiceInputTypes =
88
92
  | GetCallerIdentityCommandInput
89
93
  | GetDelegatedAccessTokenCommandInput
90
94
  | GetFederationTokenCommandInput
95
+ | GetScopedCredentialsCommandInput
91
96
  | GetSessionTokenCommandInput
92
97
  | GetWebIdentityTokenCommandInput;
93
98
  export type ServiceOutputTypes =
@@ -100,6 +105,7 @@ export type ServiceOutputTypes =
100
105
  | GetCallerIdentityCommandOutput
101
106
  | GetDelegatedAccessTokenCommandOutput
102
107
  | GetFederationTokenCommandOutput
108
+ | GetScopedCredentialsCommandOutput
103
109
  | GetSessionTokenCommandOutput
104
110
  | GetWebIdentityTokenCommandOutput;
105
111
  export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
@@ -0,0 +1,39 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { GetScopedCredentialsRequest, GetScopedCredentialsResponse } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface GetScopedCredentialsCommandInput extends GetScopedCredentialsRequest {}
5
+ export interface GetScopedCredentialsCommandOutput
6
+ extends GetScopedCredentialsResponse, __MetadataBearer {}
7
+ declare const GetScopedCredentialsCommand_base: {
8
+ new (
9
+ input: GetScopedCredentialsCommandInput,
10
+ ): import("@smithy/core/client").CommandImpl<
11
+ GetScopedCredentialsCommandInput,
12
+ GetScopedCredentialsCommandOutput,
13
+ import("..").STSClientResolvedConfig,
14
+ import("..").ServiceInputTypes,
15
+ import("..").ServiceOutputTypes
16
+ >;
17
+ new (
18
+ ...[input]: [] | [GetScopedCredentialsCommandInput]
19
+ ): import("@smithy/core/client").CommandImpl<
20
+ GetScopedCredentialsCommandInput,
21
+ GetScopedCredentialsCommandOutput,
22
+ import("..").STSClientResolvedConfig,
23
+ import("..").ServiceInputTypes,
24
+ import("..").ServiceOutputTypes
25
+ >;
26
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
27
+ };
28
+ export declare class GetScopedCredentialsCommand extends GetScopedCredentialsCommand_base {
29
+ protected static __types: {
30
+ api: {
31
+ input: GetScopedCredentialsRequest;
32
+ output: GetScopedCredentialsResponse;
33
+ };
34
+ sdk: {
35
+ input: GetScopedCredentialsCommandInput;
36
+ output: GetScopedCredentialsCommandOutput;
37
+ };
38
+ };
39
+ }
@@ -7,5 +7,6 @@ export * from "./GetAccessKeyInfoCommand";
7
7
  export * from "./GetCallerIdentityCommand";
8
8
  export * from "./GetDelegatedAccessTokenCommand";
9
9
  export * from "./GetFederationTokenCommand";
10
+ export * from "./GetScopedCredentialsCommand";
10
11
  export * from "./GetSessionTokenCommand";
11
12
  export * from "./GetWebIdentityTokenCommand";
@@ -6,6 +6,7 @@ export { STSExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export { Command as $Command } from "@smithy/core/client";
8
8
  export * from "./schemas/schemas_0";
9
+ export * from "./models/enums";
9
10
  export * from "./models/errors";
10
11
  export * from "./models/models_0";
11
12
  export * from "./defaultRoleAssumers";
@@ -0,0 +1,6 @@
1
+ export declare const WebIdentityTokenSubjectModeType: {
2
+ readonly AWS_IDENTITY: "AWSIdentity";
3
+ readonly ORIGIN_IDENTITY: "OriginIdentity";
4
+ };
5
+ export type WebIdentityTokenSubjectModeType =
6
+ (typeof WebIdentityTokenSubjectModeType)[keyof typeof WebIdentityTokenSubjectModeType];
@@ -6,6 +6,12 @@ export declare class ExpiredTokenException extends __BaseException {
6
6
  readonly $fault: "client";
7
7
  constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
8
8
  }
9
+ export declare class InvalidContextAssertionException extends __BaseException {
10
+ static readonly shapeId: string;
11
+ readonly name: "InvalidContextAssertionException";
12
+ readonly $fault: "client";
13
+ constructor(opts: __ExceptionOptionType<InvalidContextAssertionException, __BaseException>);
14
+ }
9
15
  export declare class MalformedPolicyDocumentException extends __BaseException {
10
16
  static readonly shapeId: string;
11
17
  readonly name: "MalformedPolicyDocumentException";
@@ -55,6 +61,18 @@ export declare class ExpiredTradeInTokenException extends __BaseException {
55
61
  readonly $fault: "client";
56
62
  constructor(opts: __ExceptionOptionType<ExpiredTradeInTokenException, __BaseException>);
57
63
  }
64
+ export declare class InsufficientSessionLifetimeException extends __BaseException {
65
+ static readonly shapeId: string;
66
+ readonly name: "InsufficientSessionLifetimeException";
67
+ readonly $fault: "client";
68
+ constructor(opts: __ExceptionOptionType<InsufficientSessionLifetimeException, __BaseException>);
69
+ }
70
+ export declare class InvalidSubjectCredentialsException extends __BaseException {
71
+ static readonly shapeId: string;
72
+ readonly name: "InvalidSubjectCredentialsException";
73
+ readonly $fault: "client";
74
+ constructor(opts: __ExceptionOptionType<InvalidSubjectCredentialsException, __BaseException>);
75
+ }
58
76
  export declare class JWTPayloadSizeExceededException extends __BaseException {
59
77
  static readonly shapeId: string;
60
78
  readonly name: "JWTPayloadSizeExceededException";
@@ -1,3 +1,4 @@
1
+ import { WebIdentityTokenSubjectModeType } from "./enums";
1
2
  export interface AssumedRoleUser {
2
3
  AssumedRoleId: string | undefined;
3
4
  Arn: string | undefined;
@@ -51,6 +52,19 @@ export interface AssumeRoleWithSAMLRequest {
51
52
  DurationSeconds?: number | undefined;
52
53
  MinimumSessionTokenSize?: number | undefined;
53
54
  }
55
+ export interface OriginIdentity {
56
+ Subject?: string | undefined;
57
+ SubjectType?: string | undefined;
58
+ Issuer?: string | undefined;
59
+ FederatedProviderArn?: string | undefined;
60
+ }
61
+ export interface TransactionContext {
62
+ IdentityProvider?: Record<string, string> | undefined;
63
+ }
64
+ export interface TrustedIdentityPropagationContext {
65
+ OriginIdentity?: OriginIdentity | undefined;
66
+ TransactionContext?: TransactionContext | undefined;
67
+ }
54
68
  export interface AssumeRoleWithSAMLResponse {
55
69
  Credentials?: Credentials | undefined;
56
70
  AssumedRoleUser?: AssumedRoleUser | undefined;
@@ -63,6 +77,7 @@ export interface AssumeRoleWithSAMLResponse {
63
77
  SourceIdentity?: string | undefined;
64
78
  SessionTokenUtilization?: number | undefined;
65
79
  SessionTokenSize?: number | undefined;
80
+ TrustedIdentityPropagationContext?: TrustedIdentityPropagationContext | undefined;
66
81
  }
67
82
  export interface AssumeRoleWithWebIdentityRequest {
68
83
  RoleArn: string | undefined;
@@ -84,6 +99,7 @@ export interface AssumeRoleWithWebIdentityResponse {
84
99
  SourceIdentity?: string | undefined;
85
100
  SessionTokenUtilization?: number | undefined;
86
101
  SessionTokenSize?: number | undefined;
102
+ TrustedIdentityPropagationContext?: TrustedIdentityPropagationContext | undefined;
87
103
  }
88
104
  export interface AssumeRootRequest {
89
105
  TargetPrincipal: string | undefined;
@@ -142,6 +158,24 @@ export interface GetFederationTokenResponse {
142
158
  SessionTokenUtilization?: number | undefined;
143
159
  SessionTokenSize?: number | undefined;
144
160
  }
161
+ export interface GetScopedCredentialsRequest {
162
+ Policy?: string | undefined;
163
+ DurationSeconds?: number | undefined;
164
+ MinimumSessionTokenSize?: number | undefined;
165
+ ScopedSessionDescription?: string | undefined;
166
+ }
167
+ export interface ScopedSession {
168
+ ScopedSessionId: string | undefined;
169
+ Arn: string | undefined;
170
+ }
171
+ export interface GetScopedCredentialsResponse {
172
+ Credentials?: Credentials | undefined;
173
+ SessionInfo?: ScopedSession | undefined;
174
+ SessionTokenUtilization?: number | undefined;
175
+ SessionTokenSize?: number | undefined;
176
+ ScopedPoliciesCount?: number | undefined;
177
+ SourceIdentity?: string | undefined;
178
+ }
145
179
  export interface GetSessionTokenRequest {
146
180
  DurationSeconds?: number | undefined;
147
181
  SerialNumber?: string | undefined;
@@ -157,6 +191,8 @@ export interface GetWebIdentityTokenRequest {
157
191
  Audience: string[] | undefined;
158
192
  DurationSeconds?: number | undefined;
159
193
  SigningAlgorithm: string | undefined;
194
+ Scope?: string | undefined;
195
+ SubjectMode?: WebIdentityTokenSubjectModeType | undefined;
160
196
  Tags?: Tag[] | undefined;
161
197
  }
162
198
  export interface GetWebIdentityTokenResponse {
@@ -5,8 +5,11 @@ export declare var ExpiredTokenException$: StaticErrorSchema;
5
5
  export declare var ExpiredTradeInTokenException$: StaticErrorSchema;
6
6
  export declare var IDPCommunicationErrorException$: StaticErrorSchema;
7
7
  export declare var IDPRejectedClaimException$: StaticErrorSchema;
8
+ export declare var InsufficientSessionLifetimeException$: StaticErrorSchema;
8
9
  export declare var InvalidAuthorizationMessageException$: StaticErrorSchema;
10
+ export declare var InvalidContextAssertionException$: StaticErrorSchema;
9
11
  export declare var InvalidIdentityTokenException$: StaticErrorSchema;
12
+ export declare var InvalidSubjectCredentialsException$: StaticErrorSchema;
10
13
  export declare var JWTPayloadSizeExceededException$: StaticErrorSchema;
11
14
  export declare var MalformedPolicyDocumentException$: StaticErrorSchema;
12
15
  export declare var OutboundWebIdentityFederationDisabledException$: StaticErrorSchema;
@@ -35,13 +38,19 @@ export declare var GetDelegatedAccessTokenRequest$: StaticStructureSchema;
35
38
  export declare var GetDelegatedAccessTokenResponse$: StaticStructureSchema;
36
39
  export declare var GetFederationTokenRequest$: StaticStructureSchema;
37
40
  export declare var GetFederationTokenResponse$: StaticStructureSchema;
41
+ export declare var GetScopedCredentialsRequest$: StaticStructureSchema;
42
+ export declare var GetScopedCredentialsResponse$: StaticStructureSchema;
38
43
  export declare var GetSessionTokenRequest$: StaticStructureSchema;
39
44
  export declare var GetSessionTokenResponse$: StaticStructureSchema;
40
45
  export declare var GetWebIdentityTokenRequest$: StaticStructureSchema;
41
46
  export declare var GetWebIdentityTokenResponse$: StaticStructureSchema;
47
+ export declare var OriginIdentity$: StaticStructureSchema;
42
48
  export declare var PolicyDescriptorType$: StaticStructureSchema;
43
49
  export declare var ProvidedContext$: StaticStructureSchema;
50
+ export declare var ScopedSession$: StaticStructureSchema;
44
51
  export declare var Tag$: StaticStructureSchema;
52
+ export declare var TransactionContext$: StaticStructureSchema;
53
+ export declare var TrustedIdentityPropagationContext$: StaticStructureSchema;
45
54
  export declare var AssumeRole$: StaticOperationSchema;
46
55
  export declare var AssumeRoleWithSAML$: StaticOperationSchema;
47
56
  export declare var AssumeRoleWithWebIdentity$: StaticOperationSchema;
@@ -51,5 +60,6 @@ export declare var GetAccessKeyInfo$: StaticOperationSchema;
51
60
  export declare var GetCallerIdentity$: StaticOperationSchema;
52
61
  export declare var GetDelegatedAccessToken$: StaticOperationSchema;
53
62
  export declare var GetFederationToken$: StaticOperationSchema;
63
+ export declare var GetScopedCredentials$: StaticOperationSchema;
54
64
  export declare var GetSessionToken$: StaticOperationSchema;
55
65
  export declare var GetWebIdentityToken$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
- "version": "3.1172.0",
3
+ "version": "3.1173.0",
4
4
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",
6
6
  "license": "Apache-2.0",