@aws-sdk/client-sts 3.169.0 → 3.171.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.
@@ -1,302 +1,238 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
- import { STSServiceException as __BaseException } from "./STSServiceException";
3
-
4
- export interface AssumedRoleUser {
5
-
6
- AssumedRoleId: string | undefined;
7
-
8
- Arn: string | undefined;
9
- }
10
-
11
- export interface PolicyDescriptorType {
12
-
13
- arn?: string;
14
- }
15
-
16
- export interface Tag {
17
-
18
- Key: string | undefined;
19
-
20
- Value: string | undefined;
21
- }
22
- export interface AssumeRoleRequest {
23
-
24
- RoleArn: string | undefined;
25
-
26
- RoleSessionName: string | undefined;
27
-
28
- PolicyArns?: PolicyDescriptorType[];
29
-
30
- Policy?: string;
31
-
32
- DurationSeconds?: number;
33
-
34
- Tags?: Tag[];
35
-
36
- TransitiveTagKeys?: string[];
37
-
38
- ExternalId?: string;
39
-
40
- SerialNumber?: string;
41
-
42
- TokenCode?: string;
43
-
44
- SourceIdentity?: string;
45
- }
46
-
47
- export interface Credentials {
48
-
49
- AccessKeyId: string | undefined;
50
-
51
- SecretAccessKey: string | undefined;
52
-
53
- SessionToken: string | undefined;
54
-
55
- Expiration: Date | undefined;
56
- }
57
-
58
- export interface AssumeRoleResponse {
59
-
60
- Credentials?: Credentials;
61
-
62
- AssumedRoleUser?: AssumedRoleUser;
63
-
64
- PackedPolicySize?: number;
65
-
66
- SourceIdentity?: string;
67
- }
68
-
69
- export declare class ExpiredTokenException extends __BaseException {
70
- readonly name: "ExpiredTokenException";
71
- readonly $fault: "client";
72
-
73
- constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
74
- }
75
-
76
- export declare class MalformedPolicyDocumentException extends __BaseException {
77
- readonly name: "MalformedPolicyDocumentException";
78
- readonly $fault: "client";
79
-
80
- constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
81
- }
82
-
83
- export declare class PackedPolicyTooLargeException extends __BaseException {
84
- readonly name: "PackedPolicyTooLargeException";
85
- readonly $fault: "client";
86
-
87
- constructor(opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>);
88
- }
89
-
90
- export declare class RegionDisabledException extends __BaseException {
91
- readonly name: "RegionDisabledException";
92
- readonly $fault: "client";
93
-
94
- constructor(opts: __ExceptionOptionType<RegionDisabledException, __BaseException>);
95
- }
96
- export interface AssumeRoleWithSAMLRequest {
97
-
98
- RoleArn: string | undefined;
99
-
100
- PrincipalArn: string | undefined;
101
-
102
- SAMLAssertion: string | undefined;
103
-
104
- PolicyArns?: PolicyDescriptorType[];
105
-
106
- Policy?: string;
107
-
108
- DurationSeconds?: number;
109
- }
110
-
111
- export interface AssumeRoleWithSAMLResponse {
112
-
113
- Credentials?: Credentials;
114
-
115
- AssumedRoleUser?: AssumedRoleUser;
116
-
117
- PackedPolicySize?: number;
118
-
119
- Subject?: string;
120
-
121
- SubjectType?: string;
122
-
123
- Issuer?: string;
124
-
125
- Audience?: string;
126
-
127
- NameQualifier?: string;
128
-
129
- SourceIdentity?: string;
130
- }
131
-
132
- export declare class IDPRejectedClaimException extends __BaseException {
133
- readonly name: "IDPRejectedClaimException";
134
- readonly $fault: "client";
135
-
136
- constructor(opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>);
137
- }
138
-
139
- export declare class InvalidIdentityTokenException extends __BaseException {
140
- readonly name: "InvalidIdentityTokenException";
141
- readonly $fault: "client";
142
-
143
- constructor(opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>);
144
- }
145
- export interface AssumeRoleWithWebIdentityRequest {
146
-
147
- RoleArn: string | undefined;
148
-
149
- RoleSessionName: string | undefined;
150
-
151
- WebIdentityToken: string | undefined;
152
-
153
- ProviderId?: string;
154
-
155
- PolicyArns?: PolicyDescriptorType[];
156
-
157
- Policy?: string;
158
-
159
- DurationSeconds?: number;
160
- }
161
-
162
- export interface AssumeRoleWithWebIdentityResponse {
163
-
164
- Credentials?: Credentials;
165
-
166
- SubjectFromWebIdentityToken?: string;
167
-
168
- AssumedRoleUser?: AssumedRoleUser;
169
-
170
- PackedPolicySize?: number;
171
-
172
- Provider?: string;
173
-
174
- Audience?: string;
175
-
176
- SourceIdentity?: string;
177
- }
178
-
179
- export declare class IDPCommunicationErrorException extends __BaseException {
180
- readonly name: "IDPCommunicationErrorException";
181
- readonly $fault: "client";
182
-
183
- constructor(opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>);
184
- }
185
- export interface DecodeAuthorizationMessageRequest {
186
-
187
- EncodedMessage: string | undefined;
188
- }
189
-
190
- export interface DecodeAuthorizationMessageResponse {
191
-
192
- DecodedMessage?: string;
193
- }
194
-
195
- export declare class InvalidAuthorizationMessageException extends __BaseException {
196
- readonly name: "InvalidAuthorizationMessageException";
197
- readonly $fault: "client";
198
-
199
- constructor(opts: __ExceptionOptionType<InvalidAuthorizationMessageException, __BaseException>);
200
- }
201
- export interface GetAccessKeyInfoRequest {
202
-
203
- AccessKeyId: string | undefined;
204
- }
205
- export interface GetAccessKeyInfoResponse {
206
-
207
- Account?: string;
208
- }
209
- export interface GetCallerIdentityRequest {
210
- }
211
-
212
- export interface GetCallerIdentityResponse {
213
-
214
- UserId?: string;
215
-
216
- Account?: string;
217
-
218
- Arn?: string;
219
- }
220
- export interface GetFederationTokenRequest {
221
-
222
- Name: string | undefined;
223
-
224
- Policy?: string;
225
-
226
- PolicyArns?: PolicyDescriptorType[];
227
-
228
- DurationSeconds?: number;
229
-
230
- Tags?: Tag[];
231
- }
232
-
233
- export interface FederatedUser {
234
-
235
- FederatedUserId: string | undefined;
236
-
237
- Arn: string | undefined;
238
- }
239
-
240
- export interface GetFederationTokenResponse {
241
-
242
- Credentials?: Credentials;
243
-
244
- FederatedUser?: FederatedUser;
245
-
246
- PackedPolicySize?: number;
247
- }
248
- export interface GetSessionTokenRequest {
249
-
250
- DurationSeconds?: number;
251
-
252
- SerialNumber?: string;
253
-
254
- TokenCode?: string;
255
- }
256
-
257
- export interface GetSessionTokenResponse {
258
-
259
- Credentials?: Credentials;
260
- }
261
-
262
- export declare const AssumedRoleUserFilterSensitiveLog: (obj: AssumedRoleUser) => any;
263
-
264
- export declare const PolicyDescriptorTypeFilterSensitiveLog: (obj: PolicyDescriptorType) => any;
265
-
266
- export declare const TagFilterSensitiveLog: (obj: Tag) => any;
267
-
268
- export declare const AssumeRoleRequestFilterSensitiveLog: (obj: AssumeRoleRequest) => any;
269
-
270
- export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
271
-
272
- export declare const AssumeRoleResponseFilterSensitiveLog: (obj: AssumeRoleResponse) => any;
273
-
274
- export declare const AssumeRoleWithSAMLRequestFilterSensitiveLog: (obj: AssumeRoleWithSAMLRequest) => any;
275
-
276
- export declare const AssumeRoleWithSAMLResponseFilterSensitiveLog: (obj: AssumeRoleWithSAMLResponse) => any;
277
-
278
- export declare const AssumeRoleWithWebIdentityRequestFilterSensitiveLog: (obj: AssumeRoleWithWebIdentityRequest) => any;
279
-
280
- export declare const AssumeRoleWithWebIdentityResponseFilterSensitiveLog: (obj: AssumeRoleWithWebIdentityResponse) => any;
281
-
282
- export declare const DecodeAuthorizationMessageRequestFilterSensitiveLog: (obj: DecodeAuthorizationMessageRequest) => any;
283
-
284
- export declare const DecodeAuthorizationMessageResponseFilterSensitiveLog: (obj: DecodeAuthorizationMessageResponse) => any;
285
-
286
- export declare const GetAccessKeyInfoRequestFilterSensitiveLog: (obj: GetAccessKeyInfoRequest) => any;
287
-
288
- export declare const GetAccessKeyInfoResponseFilterSensitiveLog: (obj: GetAccessKeyInfoResponse) => any;
289
-
290
- export declare const GetCallerIdentityRequestFilterSensitiveLog: (obj: GetCallerIdentityRequest) => any;
291
-
292
- export declare const GetCallerIdentityResponseFilterSensitiveLog: (obj: GetCallerIdentityResponse) => any;
293
-
294
- export declare const GetFederationTokenRequestFilterSensitiveLog: (obj: GetFederationTokenRequest) => any;
295
-
296
- export declare const FederatedUserFilterSensitiveLog: (obj: FederatedUser) => any;
297
-
298
- export declare const GetFederationTokenResponseFilterSensitiveLog: (obj: GetFederationTokenResponse) => any;
299
-
300
- export declare const GetSessionTokenRequestFilterSensitiveLog: (obj: GetSessionTokenRequest) => any;
301
-
302
- export declare const GetSessionTokenResponseFilterSensitiveLog: (obj: GetSessionTokenResponse) => any;
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { STSServiceException as __BaseException } from "./STSServiceException";
3
+ export interface AssumedRoleUser {
4
+ AssumedRoleId: string | undefined;
5
+ Arn: string | undefined;
6
+ }
7
+ export interface PolicyDescriptorType {
8
+ arn?: string;
9
+ }
10
+ export interface Tag {
11
+ Key: string | undefined;
12
+ Value: string | undefined;
13
+ }
14
+ export interface AssumeRoleRequest {
15
+ RoleArn: string | undefined;
16
+ RoleSessionName: string | undefined;
17
+ PolicyArns?: PolicyDescriptorType[];
18
+ Policy?: string;
19
+ DurationSeconds?: number;
20
+ Tags?: Tag[];
21
+ TransitiveTagKeys?: string[];
22
+ ExternalId?: string;
23
+ SerialNumber?: string;
24
+ TokenCode?: string;
25
+ SourceIdentity?: string;
26
+ }
27
+ export interface Credentials {
28
+ AccessKeyId: string | undefined;
29
+ SecretAccessKey: string | undefined;
30
+ SessionToken: string | undefined;
31
+ Expiration: Date | undefined;
32
+ }
33
+ export interface AssumeRoleResponse {
34
+ Credentials?: Credentials;
35
+ AssumedRoleUser?: AssumedRoleUser;
36
+ PackedPolicySize?: number;
37
+ SourceIdentity?: string;
38
+ }
39
+ export declare class ExpiredTokenException extends __BaseException {
40
+ readonly name: "ExpiredTokenException";
41
+ readonly $fault: "client";
42
+ constructor(
43
+ opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>
44
+ );
45
+ }
46
+ export declare class MalformedPolicyDocumentException extends __BaseException {
47
+ readonly name: "MalformedPolicyDocumentException";
48
+ readonly $fault: "client";
49
+ constructor(
50
+ opts: __ExceptionOptionType<
51
+ MalformedPolicyDocumentException,
52
+ __BaseException
53
+ >
54
+ );
55
+ }
56
+ export declare class PackedPolicyTooLargeException extends __BaseException {
57
+ readonly name: "PackedPolicyTooLargeException";
58
+ readonly $fault: "client";
59
+ constructor(
60
+ opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>
61
+ );
62
+ }
63
+ export declare class RegionDisabledException extends __BaseException {
64
+ readonly name: "RegionDisabledException";
65
+ readonly $fault: "client";
66
+ constructor(
67
+ opts: __ExceptionOptionType<RegionDisabledException, __BaseException>
68
+ );
69
+ }
70
+ export interface AssumeRoleWithSAMLRequest {
71
+ RoleArn: string | undefined;
72
+ PrincipalArn: string | undefined;
73
+ SAMLAssertion: string | undefined;
74
+ PolicyArns?: PolicyDescriptorType[];
75
+ Policy?: string;
76
+ DurationSeconds?: number;
77
+ }
78
+ export interface AssumeRoleWithSAMLResponse {
79
+ Credentials?: Credentials;
80
+ AssumedRoleUser?: AssumedRoleUser;
81
+ PackedPolicySize?: number;
82
+ Subject?: string;
83
+ SubjectType?: string;
84
+ Issuer?: string;
85
+ Audience?: string;
86
+ NameQualifier?: string;
87
+ SourceIdentity?: string;
88
+ }
89
+ export declare class IDPRejectedClaimException extends __BaseException {
90
+ readonly name: "IDPRejectedClaimException";
91
+ readonly $fault: "client";
92
+ constructor(
93
+ opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>
94
+ );
95
+ }
96
+ export declare class InvalidIdentityTokenException extends __BaseException {
97
+ readonly name: "InvalidIdentityTokenException";
98
+ readonly $fault: "client";
99
+ constructor(
100
+ opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>
101
+ );
102
+ }
103
+ export interface AssumeRoleWithWebIdentityRequest {
104
+ RoleArn: string | undefined;
105
+ RoleSessionName: string | undefined;
106
+ WebIdentityToken: string | undefined;
107
+ ProviderId?: string;
108
+ PolicyArns?: PolicyDescriptorType[];
109
+ Policy?: string;
110
+ DurationSeconds?: number;
111
+ }
112
+ export interface AssumeRoleWithWebIdentityResponse {
113
+ Credentials?: Credentials;
114
+ SubjectFromWebIdentityToken?: string;
115
+ AssumedRoleUser?: AssumedRoleUser;
116
+ PackedPolicySize?: number;
117
+ Provider?: string;
118
+ Audience?: string;
119
+ SourceIdentity?: string;
120
+ }
121
+ export declare class IDPCommunicationErrorException extends __BaseException {
122
+ readonly name: "IDPCommunicationErrorException";
123
+ readonly $fault: "client";
124
+ constructor(
125
+ opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>
126
+ );
127
+ }
128
+ export interface DecodeAuthorizationMessageRequest {
129
+ EncodedMessage: string | undefined;
130
+ }
131
+ export interface DecodeAuthorizationMessageResponse {
132
+ DecodedMessage?: string;
133
+ }
134
+ export declare class InvalidAuthorizationMessageException extends __BaseException {
135
+ readonly name: "InvalidAuthorizationMessageException";
136
+ readonly $fault: "client";
137
+ constructor(
138
+ opts: __ExceptionOptionType<
139
+ InvalidAuthorizationMessageException,
140
+ __BaseException
141
+ >
142
+ );
143
+ }
144
+ export interface GetAccessKeyInfoRequest {
145
+ AccessKeyId: string | undefined;
146
+ }
147
+ export interface GetAccessKeyInfoResponse {
148
+ Account?: string;
149
+ }
150
+ export interface GetCallerIdentityRequest {}
151
+ export interface GetCallerIdentityResponse {
152
+ UserId?: string;
153
+ Account?: string;
154
+ Arn?: string;
155
+ }
156
+ export interface GetFederationTokenRequest {
157
+ Name: string | undefined;
158
+ Policy?: string;
159
+ PolicyArns?: PolicyDescriptorType[];
160
+ DurationSeconds?: number;
161
+ Tags?: Tag[];
162
+ }
163
+ export interface FederatedUser {
164
+ FederatedUserId: string | undefined;
165
+ Arn: string | undefined;
166
+ }
167
+ export interface GetFederationTokenResponse {
168
+ Credentials?: Credentials;
169
+ FederatedUser?: FederatedUser;
170
+ PackedPolicySize?: number;
171
+ }
172
+ export interface GetSessionTokenRequest {
173
+ DurationSeconds?: number;
174
+ SerialNumber?: string;
175
+ TokenCode?: string;
176
+ }
177
+ export interface GetSessionTokenResponse {
178
+ Credentials?: Credentials;
179
+ }
180
+ export declare const AssumedRoleUserFilterSensitiveLog: (
181
+ obj: AssumedRoleUser
182
+ ) => any;
183
+ export declare const PolicyDescriptorTypeFilterSensitiveLog: (
184
+ obj: PolicyDescriptorType
185
+ ) => any;
186
+ export declare const TagFilterSensitiveLog: (obj: Tag) => any;
187
+ export declare const AssumeRoleRequestFilterSensitiveLog: (
188
+ obj: AssumeRoleRequest
189
+ ) => any;
190
+ export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any;
191
+ export declare const AssumeRoleResponseFilterSensitiveLog: (
192
+ obj: AssumeRoleResponse
193
+ ) => any;
194
+ export declare const AssumeRoleWithSAMLRequestFilterSensitiveLog: (
195
+ obj: AssumeRoleWithSAMLRequest
196
+ ) => any;
197
+ export declare const AssumeRoleWithSAMLResponseFilterSensitiveLog: (
198
+ obj: AssumeRoleWithSAMLResponse
199
+ ) => any;
200
+ export declare const AssumeRoleWithWebIdentityRequestFilterSensitiveLog: (
201
+ obj: AssumeRoleWithWebIdentityRequest
202
+ ) => any;
203
+ export declare const AssumeRoleWithWebIdentityResponseFilterSensitiveLog: (
204
+ obj: AssumeRoleWithWebIdentityResponse
205
+ ) => any;
206
+ export declare const DecodeAuthorizationMessageRequestFilterSensitiveLog: (
207
+ obj: DecodeAuthorizationMessageRequest
208
+ ) => any;
209
+ export declare const DecodeAuthorizationMessageResponseFilterSensitiveLog: (
210
+ obj: DecodeAuthorizationMessageResponse
211
+ ) => any;
212
+ export declare const GetAccessKeyInfoRequestFilterSensitiveLog: (
213
+ obj: GetAccessKeyInfoRequest
214
+ ) => any;
215
+ export declare const GetAccessKeyInfoResponseFilterSensitiveLog: (
216
+ obj: GetAccessKeyInfoResponse
217
+ ) => any;
218
+ export declare const GetCallerIdentityRequestFilterSensitiveLog: (
219
+ obj: GetCallerIdentityRequest
220
+ ) => any;
221
+ export declare const GetCallerIdentityResponseFilterSensitiveLog: (
222
+ obj: GetCallerIdentityResponse
223
+ ) => any;
224
+ export declare const GetFederationTokenRequestFilterSensitiveLog: (
225
+ obj: GetFederationTokenRequest
226
+ ) => any;
227
+ export declare const FederatedUserFilterSensitiveLog: (
228
+ obj: FederatedUser
229
+ ) => any;
230
+ export declare const GetFederationTokenResponseFilterSensitiveLog: (
231
+ obj: GetFederationTokenResponse
232
+ ) => any;
233
+ export declare const GetSessionTokenRequestFilterSensitiveLog: (
234
+ obj: GetSessionTokenRequest
235
+ ) => any;
236
+ export declare const GetSessionTokenResponseFilterSensitiveLog: (
237
+ obj: GetSessionTokenResponse
238
+ ) => any;