@aws-sdk/client-sts 3.687.0 → 3.692.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.
@@ -3,6 +3,7 @@ import { SerdeContext as __SerdeContext } from "@smithy/types";
3
3
  import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "../commands/AssumeRoleCommand";
4
4
  import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "../commands/AssumeRoleWithSAMLCommand";
5
5
  import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "../commands/AssumeRoleWithWebIdentityCommand";
6
+ import { AssumeRootCommandInput, AssumeRootCommandOutput } from "../commands/AssumeRootCommand";
6
7
  import { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "../commands/DecodeAuthorizationMessageCommand";
7
8
  import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "../commands/GetAccessKeyInfoCommand";
8
9
  import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "../commands/GetCallerIdentityCommand";
@@ -20,6 +21,10 @@ export declare const se_AssumeRoleWithSAMLCommand: (input: AssumeRoleWithSAMLCom
20
21
  * serializeAws_queryAssumeRoleWithWebIdentityCommand
21
22
  */
22
23
  export declare const se_AssumeRoleWithWebIdentityCommand: (input: AssumeRoleWithWebIdentityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
+ /**
25
+ * serializeAws_queryAssumeRootCommand
26
+ */
27
+ export declare const se_AssumeRootCommand: (input: AssumeRootCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
28
  /**
24
29
  * serializeAws_queryDecodeAuthorizationMessageCommand
25
30
  */
@@ -52,6 +57,10 @@ export declare const de_AssumeRoleWithSAMLCommand: (output: __HttpResponse, cont
52
57
  * deserializeAws_queryAssumeRoleWithWebIdentityCommand
53
58
  */
54
59
  export declare const de_AssumeRoleWithWebIdentityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AssumeRoleWithWebIdentityCommandOutput>;
60
+ /**
61
+ * deserializeAws_queryAssumeRootCommand
62
+ */
63
+ export declare const de_AssumeRootCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AssumeRootCommandOutput>;
55
64
  /**
56
65
  * deserializeAws_queryDecodeAuthorizationMessageCommand
57
66
  */
@@ -11,6 +11,10 @@ import {
11
11
  AssumeRoleWithWebIdentityCommandInput,
12
12
  AssumeRoleWithWebIdentityCommandOutput,
13
13
  } from "./commands/AssumeRoleWithWebIdentityCommand";
14
+ import {
15
+ AssumeRootCommandInput,
16
+ AssumeRootCommandOutput,
17
+ } from "./commands/AssumeRootCommand";
14
18
  import {
15
19
  DecodeAuthorizationMessageCommandInput,
16
20
  DecodeAuthorizationMessageCommandOutput,
@@ -72,6 +76,19 @@ export interface STS {
72
76
  options: __HttpHandlerOptions,
73
77
  cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void
74
78
  ): void;
79
+ assumeRoot(
80
+ args: AssumeRootCommandInput,
81
+ options?: __HttpHandlerOptions
82
+ ): Promise<AssumeRootCommandOutput>;
83
+ assumeRoot(
84
+ args: AssumeRootCommandInput,
85
+ cb: (err: any, data?: AssumeRootCommandOutput) => void
86
+ ): void;
87
+ assumeRoot(
88
+ args: AssumeRootCommandInput,
89
+ options: __HttpHandlerOptions,
90
+ cb: (err: any, data?: AssumeRootCommandOutput) => void
91
+ ): void;
75
92
  decodeAuthorizationMessage(
76
93
  args: DecodeAuthorizationMessageCommandInput,
77
94
  options?: __HttpHandlerOptions
@@ -57,6 +57,10 @@ import {
57
57
  AssumeRoleWithWebIdentityCommandInput,
58
58
  AssumeRoleWithWebIdentityCommandOutput,
59
59
  } from "./commands/AssumeRoleWithWebIdentityCommand";
60
+ import {
61
+ AssumeRootCommandInput,
62
+ AssumeRootCommandOutput,
63
+ } from "./commands/AssumeRootCommand";
60
64
  import {
61
65
  DecodeAuthorizationMessageCommandInput,
62
66
  DecodeAuthorizationMessageCommandOutput,
@@ -88,6 +92,7 @@ export type ServiceInputTypes =
88
92
  | AssumeRoleCommandInput
89
93
  | AssumeRoleWithSAMLCommandInput
90
94
  | AssumeRoleWithWebIdentityCommandInput
95
+ | AssumeRootCommandInput
91
96
  | DecodeAuthorizationMessageCommandInput
92
97
  | GetAccessKeyInfoCommandInput
93
98
  | GetCallerIdentityCommandInput
@@ -97,6 +102,7 @@ export type ServiceOutputTypes =
97
102
  | AssumeRoleCommandOutput
98
103
  | AssumeRoleWithSAMLCommandOutput
99
104
  | AssumeRoleWithWebIdentityCommandOutput
105
+ | AssumeRootCommandOutput
100
106
  | DecodeAuthorizationMessageCommandOutput
101
107
  | GetAccessKeyInfoCommandOutput
102
108
  | GetCallerIdentityCommandOutput
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AssumeRootRequest, AssumeRootResponse } from "../models/models_0";
4
+ import {
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ STSClientResolvedConfig,
8
+ } from "../STSClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface AssumeRootCommandInput extends AssumeRootRequest {}
12
+ export interface AssumeRootCommandOutput
13
+ extends AssumeRootResponse,
14
+ __MetadataBearer {}
15
+ declare const AssumeRootCommand_base: {
16
+ new (
17
+ input: AssumeRootCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ AssumeRootCommandInput,
20
+ AssumeRootCommandOutput,
21
+ STSClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ __0_0: AssumeRootCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ AssumeRootCommandInput,
29
+ AssumeRootCommandOutput,
30
+ STSClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class AssumeRootCommand extends AssumeRootCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: AssumeRootRequest;
40
+ output: AssumeRootResponse;
41
+ };
42
+ sdk: {
43
+ input: AssumeRootCommandInput;
44
+ output: AssumeRootCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./AssumeRoleCommand";
2
2
  export * from "./AssumeRoleWithSAMLCommand";
3
3
  export * from "./AssumeRoleWithWebIdentityCommand";
4
+ export * from "./AssumeRootCommand";
4
5
  export * from "./DecodeAuthorizationMessageCommand";
5
6
  export * from "./GetAccessKeyInfoCommand";
6
7
  export * from "./GetCallerIdentityCommand";
@@ -5,11 +5,11 @@ export interface AssumedRoleUser {
5
5
  Arn: string | undefined;
6
6
  }
7
7
  export interface PolicyDescriptorType {
8
- arn?: string;
8
+ arn?: string | undefined;
9
9
  }
10
10
  export interface ProvidedContext {
11
- ProviderArn?: string;
12
- ContextAssertion?: string;
11
+ ProviderArn?: string | undefined;
12
+ ContextAssertion?: string | undefined;
13
13
  }
14
14
  export interface Tag {
15
15
  Key: string | undefined;
@@ -18,16 +18,16 @@ export interface Tag {
18
18
  export interface AssumeRoleRequest {
19
19
  RoleArn: string | undefined;
20
20
  RoleSessionName: string | undefined;
21
- PolicyArns?: PolicyDescriptorType[];
22
- Policy?: string;
23
- DurationSeconds?: number;
24
- Tags?: Tag[];
25
- TransitiveTagKeys?: string[];
26
- ExternalId?: string;
27
- SerialNumber?: string;
28
- TokenCode?: string;
29
- SourceIdentity?: string;
30
- ProvidedContexts?: ProvidedContext[];
21
+ PolicyArns?: PolicyDescriptorType[] | undefined;
22
+ Policy?: string | undefined;
23
+ DurationSeconds?: number | undefined;
24
+ Tags?: Tag[] | undefined;
25
+ TransitiveTagKeys?: string[] | undefined;
26
+ ExternalId?: string | undefined;
27
+ SerialNumber?: string | undefined;
28
+ TokenCode?: string | undefined;
29
+ SourceIdentity?: string | undefined;
30
+ ProvidedContexts?: ProvidedContext[] | undefined;
31
31
  }
32
32
  export interface Credentials {
33
33
  AccessKeyId: string | undefined;
@@ -36,10 +36,10 @@ export interface Credentials {
36
36
  Expiration: Date | undefined;
37
37
  }
38
38
  export interface AssumeRoleResponse {
39
- Credentials?: Credentials;
40
- AssumedRoleUser?: AssumedRoleUser;
41
- PackedPolicySize?: number;
42
- SourceIdentity?: string;
39
+ Credentials?: Credentials | undefined;
40
+ AssumedRoleUser?: AssumedRoleUser | undefined;
41
+ PackedPolicySize?: number | undefined;
42
+ SourceIdentity?: string | undefined;
43
43
  }
44
44
  export declare class ExpiredTokenException extends __BaseException {
45
45
  readonly name: "ExpiredTokenException";
@@ -76,20 +76,20 @@ export interface AssumeRoleWithSAMLRequest {
76
76
  RoleArn: string | undefined;
77
77
  PrincipalArn: string | undefined;
78
78
  SAMLAssertion: string | undefined;
79
- PolicyArns?: PolicyDescriptorType[];
80
- Policy?: string;
81
- DurationSeconds?: number;
79
+ PolicyArns?: PolicyDescriptorType[] | undefined;
80
+ Policy?: string | undefined;
81
+ DurationSeconds?: number | undefined;
82
82
  }
83
83
  export interface AssumeRoleWithSAMLResponse {
84
- Credentials?: Credentials;
85
- AssumedRoleUser?: AssumedRoleUser;
86
- PackedPolicySize?: number;
87
- Subject?: string;
88
- SubjectType?: string;
89
- Issuer?: string;
90
- Audience?: string;
91
- NameQualifier?: string;
92
- SourceIdentity?: string;
84
+ Credentials?: Credentials | undefined;
85
+ AssumedRoleUser?: AssumedRoleUser | undefined;
86
+ PackedPolicySize?: number | undefined;
87
+ Subject?: string | undefined;
88
+ SubjectType?: string | undefined;
89
+ Issuer?: string | undefined;
90
+ Audience?: string | undefined;
91
+ NameQualifier?: string | undefined;
92
+ SourceIdentity?: string | undefined;
93
93
  }
94
94
  export declare class IDPRejectedClaimException extends __BaseException {
95
95
  readonly name: "IDPRejectedClaimException";
@@ -109,19 +109,19 @@ export interface AssumeRoleWithWebIdentityRequest {
109
109
  RoleArn: string | undefined;
110
110
  RoleSessionName: string | undefined;
111
111
  WebIdentityToken: string | undefined;
112
- ProviderId?: string;
113
- PolicyArns?: PolicyDescriptorType[];
114
- Policy?: string;
115
- DurationSeconds?: number;
112
+ ProviderId?: string | undefined;
113
+ PolicyArns?: PolicyDescriptorType[] | undefined;
114
+ Policy?: string | undefined;
115
+ DurationSeconds?: number | undefined;
116
116
  }
117
117
  export interface AssumeRoleWithWebIdentityResponse {
118
- Credentials?: Credentials;
119
- SubjectFromWebIdentityToken?: string;
120
- AssumedRoleUser?: AssumedRoleUser;
121
- PackedPolicySize?: number;
122
- Provider?: string;
123
- Audience?: string;
124
- SourceIdentity?: string;
118
+ Credentials?: Credentials | undefined;
119
+ SubjectFromWebIdentityToken?: string | undefined;
120
+ AssumedRoleUser?: AssumedRoleUser | undefined;
121
+ PackedPolicySize?: number | undefined;
122
+ Provider?: string | undefined;
123
+ Audience?: string | undefined;
124
+ SourceIdentity?: string | undefined;
125
125
  }
126
126
  export declare class IDPCommunicationErrorException extends __BaseException {
127
127
  readonly name: "IDPCommunicationErrorException";
@@ -130,11 +130,20 @@ export declare class IDPCommunicationErrorException extends __BaseException {
130
130
  opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>
131
131
  );
132
132
  }
133
+ export interface AssumeRootRequest {
134
+ TargetPrincipal: string | undefined;
135
+ TaskPolicyArn: PolicyDescriptorType | undefined;
136
+ DurationSeconds?: number | undefined;
137
+ }
138
+ export interface AssumeRootResponse {
139
+ Credentials?: Credentials | undefined;
140
+ SourceIdentity?: string | undefined;
141
+ }
133
142
  export interface DecodeAuthorizationMessageRequest {
134
143
  EncodedMessage: string | undefined;
135
144
  }
136
145
  export interface DecodeAuthorizationMessageResponse {
137
- DecodedMessage?: string;
146
+ DecodedMessage?: string | undefined;
138
147
  }
139
148
  export declare class InvalidAuthorizationMessageException extends __BaseException {
140
149
  readonly name: "InvalidAuthorizationMessageException";
@@ -150,37 +159,37 @@ export interface GetAccessKeyInfoRequest {
150
159
  AccessKeyId: string | undefined;
151
160
  }
152
161
  export interface GetAccessKeyInfoResponse {
153
- Account?: string;
162
+ Account?: string | undefined;
154
163
  }
155
164
  export interface GetCallerIdentityRequest {}
156
165
  export interface GetCallerIdentityResponse {
157
- UserId?: string;
158
- Account?: string;
159
- Arn?: string;
166
+ UserId?: string | undefined;
167
+ Account?: string | undefined;
168
+ Arn?: string | undefined;
160
169
  }
161
170
  export interface GetFederationTokenRequest {
162
171
  Name: string | undefined;
163
- Policy?: string;
164
- PolicyArns?: PolicyDescriptorType[];
165
- DurationSeconds?: number;
166
- Tags?: Tag[];
172
+ Policy?: string | undefined;
173
+ PolicyArns?: PolicyDescriptorType[] | undefined;
174
+ DurationSeconds?: number | undefined;
175
+ Tags?: Tag[] | undefined;
167
176
  }
168
177
  export interface FederatedUser {
169
178
  FederatedUserId: string | undefined;
170
179
  Arn: string | undefined;
171
180
  }
172
181
  export interface GetFederationTokenResponse {
173
- Credentials?: Credentials;
174
- FederatedUser?: FederatedUser;
175
- PackedPolicySize?: number;
182
+ Credentials?: Credentials | undefined;
183
+ FederatedUser?: FederatedUser | undefined;
184
+ PackedPolicySize?: number | undefined;
176
185
  }
177
186
  export interface GetSessionTokenRequest {
178
- DurationSeconds?: number;
179
- SerialNumber?: string;
180
- TokenCode?: string;
187
+ DurationSeconds?: number | undefined;
188
+ SerialNumber?: string | undefined;
189
+ TokenCode?: string | undefined;
181
190
  }
182
191
  export interface GetSessionTokenResponse {
183
- Credentials?: Credentials;
192
+ Credentials?: Credentials | undefined;
184
193
  }
185
194
  export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
186
195
  export declare const AssumeRoleResponseFilterSensitiveLog: (
@@ -198,6 +207,9 @@ export declare const AssumeRoleWithWebIdentityRequestFilterSensitiveLog: (
198
207
  export declare const AssumeRoleWithWebIdentityResponseFilterSensitiveLog: (
199
208
  obj: AssumeRoleWithWebIdentityResponse
200
209
  ) => any;
210
+ export declare const AssumeRootResponseFilterSensitiveLog: (
211
+ obj: AssumeRootResponse
212
+ ) => any;
201
213
  export declare const GetFederationTokenResponseFilterSensitiveLog: (
202
214
  obj: GetFederationTokenResponse
203
215
  ) => any;
@@ -15,6 +15,10 @@ import {
15
15
  AssumeRoleWithWebIdentityCommandInput,
16
16
  AssumeRoleWithWebIdentityCommandOutput,
17
17
  } from "../commands/AssumeRoleWithWebIdentityCommand";
18
+ import {
19
+ AssumeRootCommandInput,
20
+ AssumeRootCommandOutput,
21
+ } from "../commands/AssumeRootCommand";
18
22
  import {
19
23
  DecodeAuthorizationMessageCommandInput,
20
24
  DecodeAuthorizationMessageCommandOutput,
@@ -47,6 +51,10 @@ export declare const se_AssumeRoleWithWebIdentityCommand: (
47
51
  input: AssumeRoleWithWebIdentityCommandInput,
48
52
  context: __SerdeContext
49
53
  ) => Promise<__HttpRequest>;
54
+ export declare const se_AssumeRootCommand: (
55
+ input: AssumeRootCommandInput,
56
+ context: __SerdeContext
57
+ ) => Promise<__HttpRequest>;
50
58
  export declare const se_DecodeAuthorizationMessageCommand: (
51
59
  input: DecodeAuthorizationMessageCommandInput,
52
60
  context: __SerdeContext
@@ -79,6 +87,10 @@ export declare const de_AssumeRoleWithWebIdentityCommand: (
79
87
  output: __HttpResponse,
80
88
  context: __SerdeContext
81
89
  ) => Promise<AssumeRoleWithWebIdentityCommandOutput>;
90
+ export declare const de_AssumeRootCommand: (
91
+ output: __HttpResponse,
92
+ context: __SerdeContext
93
+ ) => Promise<AssumeRootCommandOutput>;
82
94
  export declare const de_DecodeAuthorizationMessageCommand: (
83
95
  output: __HttpResponse,
84
96
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.687.0",
4
+ "version": "3.692.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-sts",
@@ -22,42 +22,42 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "5.2.0",
24
24
  "@aws-crypto/sha256-js": "5.2.0",
25
- "@aws-sdk/client-sso-oidc": "3.687.0",
26
- "@aws-sdk/core": "3.686.0",
27
- "@aws-sdk/credential-provider-node": "3.687.0",
28
- "@aws-sdk/middleware-host-header": "3.686.0",
29
- "@aws-sdk/middleware-logger": "3.686.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.686.0",
31
- "@aws-sdk/middleware-user-agent": "3.687.0",
32
- "@aws-sdk/region-config-resolver": "3.686.0",
33
- "@aws-sdk/types": "3.686.0",
34
- "@aws-sdk/util-endpoints": "3.686.0",
35
- "@aws-sdk/util-user-agent-browser": "3.686.0",
36
- "@aws-sdk/util-user-agent-node": "3.687.0",
37
- "@smithy/config-resolver": "^3.0.10",
38
- "@smithy/core": "^2.5.1",
39
- "@smithy/fetch-http-handler": "^4.0.0",
40
- "@smithy/hash-node": "^3.0.8",
41
- "@smithy/invalid-dependency": "^3.0.8",
42
- "@smithy/middleware-content-length": "^3.0.10",
43
- "@smithy/middleware-endpoint": "^3.2.1",
44
- "@smithy/middleware-retry": "^3.0.25",
45
- "@smithy/middleware-serde": "^3.0.8",
46
- "@smithy/middleware-stack": "^3.0.8",
47
- "@smithy/node-config-provider": "^3.1.9",
48
- "@smithy/node-http-handler": "^3.2.5",
49
- "@smithy/protocol-http": "^4.1.5",
50
- "@smithy/smithy-client": "^3.4.2",
51
- "@smithy/types": "^3.6.0",
52
- "@smithy/url-parser": "^3.0.8",
25
+ "@aws-sdk/client-sso-oidc": "3.692.0",
26
+ "@aws-sdk/core": "3.692.0",
27
+ "@aws-sdk/credential-provider-node": "3.692.0",
28
+ "@aws-sdk/middleware-host-header": "3.692.0",
29
+ "@aws-sdk/middleware-logger": "3.692.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.692.0",
31
+ "@aws-sdk/middleware-user-agent": "3.692.0",
32
+ "@aws-sdk/region-config-resolver": "3.692.0",
33
+ "@aws-sdk/types": "3.692.0",
34
+ "@aws-sdk/util-endpoints": "3.692.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.692.0",
36
+ "@aws-sdk/util-user-agent-node": "3.692.0",
37
+ "@smithy/config-resolver": "^3.0.11",
38
+ "@smithy/core": "^2.5.2",
39
+ "@smithy/fetch-http-handler": "^4.1.0",
40
+ "@smithy/hash-node": "^3.0.9",
41
+ "@smithy/invalid-dependency": "^3.0.9",
42
+ "@smithy/middleware-content-length": "^3.0.11",
43
+ "@smithy/middleware-endpoint": "^3.2.2",
44
+ "@smithy/middleware-retry": "^3.0.26",
45
+ "@smithy/middleware-serde": "^3.0.9",
46
+ "@smithy/middleware-stack": "^3.0.9",
47
+ "@smithy/node-config-provider": "^3.1.10",
48
+ "@smithy/node-http-handler": "^3.3.0",
49
+ "@smithy/protocol-http": "^4.1.6",
50
+ "@smithy/smithy-client": "^3.4.3",
51
+ "@smithy/types": "^3.7.0",
52
+ "@smithy/url-parser": "^3.0.9",
53
53
  "@smithy/util-base64": "^3.0.0",
54
54
  "@smithy/util-body-length-browser": "^3.0.0",
55
55
  "@smithy/util-body-length-node": "^3.0.0",
56
- "@smithy/util-defaults-mode-browser": "^3.0.25",
57
- "@smithy/util-defaults-mode-node": "^3.0.25",
58
- "@smithy/util-endpoints": "^2.1.4",
59
- "@smithy/util-middleware": "^3.0.8",
60
- "@smithy/util-retry": "^3.0.8",
56
+ "@smithy/util-defaults-mode-browser": "^3.0.26",
57
+ "@smithy/util-defaults-mode-node": "^3.0.26",
58
+ "@smithy/util-endpoints": "^2.1.5",
59
+ "@smithy/util-middleware": "^3.0.9",
60
+ "@smithy/util-retry": "^3.0.9",
61
61
  "@smithy/util-utf8": "^3.0.0",
62
62
  "tslib": "^2.6.2"
63
63
  },