@aws-sdk/client-sts 3.306.0 → 3.310.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.
- package/dist-cjs/commands/AssumeRoleCommand.js +2 -2
- package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +2 -2
- package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +2 -2
- package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +2 -2
- package/dist-cjs/commands/GetAccessKeyInfoCommand.js +2 -2
- package/dist-cjs/commands/GetCallerIdentityCommand.js +2 -2
- package/dist-cjs/commands/GetFederationTokenCommand.js +2 -2
- package/dist-cjs/commands/GetSessionTokenCommand.js +2 -2
- package/dist-cjs/protocols/Aws_query.js +153 -153
- package/dist-es/commands/AssumeRoleCommand.js +3 -3
- package/dist-es/commands/AssumeRoleWithSAMLCommand.js +3 -3
- package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +3 -3
- package/dist-es/commands/DecodeAuthorizationMessageCommand.js +3 -3
- package/dist-es/commands/GetAccessKeyInfoCommand.js +3 -3
- package/dist-es/commands/GetCallerIdentityCommand.js +3 -3
- package/dist-es/commands/GetFederationTokenCommand.js +3 -3
- package/dist-es/commands/GetSessionTokenCommand.js +3 -3
- package/dist-es/protocols/Aws_query.js +136 -136
- package/dist-types/protocols/Aws_query.d.ts +64 -16
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +16 -16
- package/package.json +35 -35
|
@@ -3,116 +3,116 @@ import { decorateServiceException as __decorateServiceException, expectNonNull a
|
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0";
|
|
5
5
|
import { STSServiceException as __BaseException } from "../models/STSServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_AssumeRoleCommand = async (input, context) => {
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/x-www-form-urlencoded",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
11
|
body = buildFormUrlencodedString({
|
|
12
|
-
...
|
|
12
|
+
...se_AssumeRoleRequest(input, context),
|
|
13
13
|
Action: "AssumeRole",
|
|
14
14
|
Version: "2011-06-15",
|
|
15
15
|
});
|
|
16
16
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
17
|
};
|
|
18
|
-
export const
|
|
18
|
+
export const se_AssumeRoleWithSAMLCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-www-form-urlencoded",
|
|
21
21
|
};
|
|
22
22
|
let body;
|
|
23
23
|
body = buildFormUrlencodedString({
|
|
24
|
-
...
|
|
24
|
+
...se_AssumeRoleWithSAMLRequest(input, context),
|
|
25
25
|
Action: "AssumeRoleWithSAML",
|
|
26
26
|
Version: "2011-06-15",
|
|
27
27
|
});
|
|
28
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
29
|
};
|
|
30
|
-
export const
|
|
30
|
+
export const se_AssumeRoleWithWebIdentityCommand = async (input, context) => {
|
|
31
31
|
const headers = {
|
|
32
32
|
"content-type": "application/x-www-form-urlencoded",
|
|
33
33
|
};
|
|
34
34
|
let body;
|
|
35
35
|
body = buildFormUrlencodedString({
|
|
36
|
-
...
|
|
36
|
+
...se_AssumeRoleWithWebIdentityRequest(input, context),
|
|
37
37
|
Action: "AssumeRoleWithWebIdentity",
|
|
38
38
|
Version: "2011-06-15",
|
|
39
39
|
});
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const se_DecodeAuthorizationMessageCommand = async (input, context) => {
|
|
43
43
|
const headers = {
|
|
44
44
|
"content-type": "application/x-www-form-urlencoded",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
47
|
body = buildFormUrlencodedString({
|
|
48
|
-
...
|
|
48
|
+
...se_DecodeAuthorizationMessageRequest(input, context),
|
|
49
49
|
Action: "DecodeAuthorizationMessage",
|
|
50
50
|
Version: "2011-06-15",
|
|
51
51
|
});
|
|
52
52
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
53
|
};
|
|
54
|
-
export const
|
|
54
|
+
export const se_GetAccessKeyInfoCommand = async (input, context) => {
|
|
55
55
|
const headers = {
|
|
56
56
|
"content-type": "application/x-www-form-urlencoded",
|
|
57
57
|
};
|
|
58
58
|
let body;
|
|
59
59
|
body = buildFormUrlencodedString({
|
|
60
|
-
...
|
|
60
|
+
...se_GetAccessKeyInfoRequest(input, context),
|
|
61
61
|
Action: "GetAccessKeyInfo",
|
|
62
62
|
Version: "2011-06-15",
|
|
63
63
|
});
|
|
64
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
65
|
};
|
|
66
|
-
export const
|
|
66
|
+
export const se_GetCallerIdentityCommand = async (input, context) => {
|
|
67
67
|
const headers = {
|
|
68
68
|
"content-type": "application/x-www-form-urlencoded",
|
|
69
69
|
};
|
|
70
70
|
let body;
|
|
71
71
|
body = buildFormUrlencodedString({
|
|
72
|
-
...
|
|
72
|
+
...se_GetCallerIdentityRequest(input, context),
|
|
73
73
|
Action: "GetCallerIdentity",
|
|
74
74
|
Version: "2011-06-15",
|
|
75
75
|
});
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
export const
|
|
78
|
+
export const se_GetFederationTokenCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-www-form-urlencoded",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
83
|
body = buildFormUrlencodedString({
|
|
84
|
-
...
|
|
84
|
+
...se_GetFederationTokenRequest(input, context),
|
|
85
85
|
Action: "GetFederationToken",
|
|
86
86
|
Version: "2011-06-15",
|
|
87
87
|
});
|
|
88
88
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
89
|
};
|
|
90
|
-
export const
|
|
90
|
+
export const se_GetSessionTokenCommand = async (input, context) => {
|
|
91
91
|
const headers = {
|
|
92
92
|
"content-type": "application/x-www-form-urlencoded",
|
|
93
93
|
};
|
|
94
94
|
let body;
|
|
95
95
|
body = buildFormUrlencodedString({
|
|
96
|
-
...
|
|
96
|
+
...se_GetSessionTokenRequest(input, context),
|
|
97
97
|
Action: "GetSessionToken",
|
|
98
98
|
Version: "2011-06-15",
|
|
99
99
|
});
|
|
100
100
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
101
|
};
|
|
102
|
-
export const
|
|
102
|
+
export const de_AssumeRoleCommand = async (output, context) => {
|
|
103
103
|
if (output.statusCode >= 300) {
|
|
104
|
-
return
|
|
104
|
+
return de_AssumeRoleCommandError(output, context);
|
|
105
105
|
}
|
|
106
106
|
const data = await parseBody(output.body, context);
|
|
107
107
|
let contents = {};
|
|
108
|
-
contents =
|
|
108
|
+
contents = de_AssumeRoleResponse(data.AssumeRoleResult, context);
|
|
109
109
|
const response = {
|
|
110
110
|
$metadata: deserializeMetadata(output),
|
|
111
111
|
...contents,
|
|
112
112
|
};
|
|
113
113
|
return Promise.resolve(response);
|
|
114
114
|
};
|
|
115
|
-
const
|
|
115
|
+
const de_AssumeRoleCommandError = async (output, context) => {
|
|
116
116
|
const parsedOutput = {
|
|
117
117
|
...output,
|
|
118
118
|
body: await parseErrorBody(output.body, context),
|
|
@@ -121,16 +121,16 @@ const deserializeAws_queryAssumeRoleCommandError = async (output, context) => {
|
|
|
121
121
|
switch (errorCode) {
|
|
122
122
|
case "ExpiredTokenException":
|
|
123
123
|
case "com.amazonaws.sts#ExpiredTokenException":
|
|
124
|
-
throw await
|
|
124
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
125
125
|
case "MalformedPolicyDocument":
|
|
126
126
|
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
|
127
|
-
throw await
|
|
127
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
128
128
|
case "PackedPolicyTooLarge":
|
|
129
129
|
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
|
130
|
-
throw await
|
|
130
|
+
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
|
131
131
|
case "RegionDisabledException":
|
|
132
132
|
case "com.amazonaws.sts#RegionDisabledException":
|
|
133
|
-
throw await
|
|
133
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
134
134
|
default:
|
|
135
135
|
const parsedBody = parsedOutput.body;
|
|
136
136
|
throwDefaultError({
|
|
@@ -141,20 +141,20 @@ const deserializeAws_queryAssumeRoleCommandError = async (output, context) => {
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
|
-
export const
|
|
144
|
+
export const de_AssumeRoleWithSAMLCommand = async (output, context) => {
|
|
145
145
|
if (output.statusCode >= 300) {
|
|
146
|
-
return
|
|
146
|
+
return de_AssumeRoleWithSAMLCommandError(output, context);
|
|
147
147
|
}
|
|
148
148
|
const data = await parseBody(output.body, context);
|
|
149
149
|
let contents = {};
|
|
150
|
-
contents =
|
|
150
|
+
contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context);
|
|
151
151
|
const response = {
|
|
152
152
|
$metadata: deserializeMetadata(output),
|
|
153
153
|
...contents,
|
|
154
154
|
};
|
|
155
155
|
return Promise.resolve(response);
|
|
156
156
|
};
|
|
157
|
-
const
|
|
157
|
+
const de_AssumeRoleWithSAMLCommandError = async (output, context) => {
|
|
158
158
|
const parsedOutput = {
|
|
159
159
|
...output,
|
|
160
160
|
body: await parseErrorBody(output.body, context),
|
|
@@ -163,22 +163,22 @@ const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, contex
|
|
|
163
163
|
switch (errorCode) {
|
|
164
164
|
case "ExpiredTokenException":
|
|
165
165
|
case "com.amazonaws.sts#ExpiredTokenException":
|
|
166
|
-
throw await
|
|
166
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
167
167
|
case "IDPRejectedClaim":
|
|
168
168
|
case "com.amazonaws.sts#IDPRejectedClaimException":
|
|
169
|
-
throw await
|
|
169
|
+
throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
|
|
170
170
|
case "InvalidIdentityToken":
|
|
171
171
|
case "com.amazonaws.sts#InvalidIdentityTokenException":
|
|
172
|
-
throw await
|
|
172
|
+
throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
|
|
173
173
|
case "MalformedPolicyDocument":
|
|
174
174
|
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
|
175
|
-
throw await
|
|
175
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
176
176
|
case "PackedPolicyTooLarge":
|
|
177
177
|
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
|
178
|
-
throw await
|
|
178
|
+
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
|
179
179
|
case "RegionDisabledException":
|
|
180
180
|
case "com.amazonaws.sts#RegionDisabledException":
|
|
181
|
-
throw await
|
|
181
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
182
182
|
default:
|
|
183
183
|
const parsedBody = parsedOutput.body;
|
|
184
184
|
throwDefaultError({
|
|
@@ -189,20 +189,20 @@ const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, contex
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
export const
|
|
192
|
+
export const de_AssumeRoleWithWebIdentityCommand = async (output, context) => {
|
|
193
193
|
if (output.statusCode >= 300) {
|
|
194
|
-
return
|
|
194
|
+
return de_AssumeRoleWithWebIdentityCommandError(output, context);
|
|
195
195
|
}
|
|
196
196
|
const data = await parseBody(output.body, context);
|
|
197
197
|
let contents = {};
|
|
198
|
-
contents =
|
|
198
|
+
contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
|
|
199
199
|
const response = {
|
|
200
200
|
$metadata: deserializeMetadata(output),
|
|
201
201
|
...contents,
|
|
202
202
|
};
|
|
203
203
|
return Promise.resolve(response);
|
|
204
204
|
};
|
|
205
|
-
const
|
|
205
|
+
const de_AssumeRoleWithWebIdentityCommandError = async (output, context) => {
|
|
206
206
|
const parsedOutput = {
|
|
207
207
|
...output,
|
|
208
208
|
body: await parseErrorBody(output.body, context),
|
|
@@ -211,25 +211,25 @@ const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output,
|
|
|
211
211
|
switch (errorCode) {
|
|
212
212
|
case "ExpiredTokenException":
|
|
213
213
|
case "com.amazonaws.sts#ExpiredTokenException":
|
|
214
|
-
throw await
|
|
214
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
215
215
|
case "IDPCommunicationError":
|
|
216
216
|
case "com.amazonaws.sts#IDPCommunicationErrorException":
|
|
217
|
-
throw await
|
|
217
|
+
throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
|
|
218
218
|
case "IDPRejectedClaim":
|
|
219
219
|
case "com.amazonaws.sts#IDPRejectedClaimException":
|
|
220
|
-
throw await
|
|
220
|
+
throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
|
|
221
221
|
case "InvalidIdentityToken":
|
|
222
222
|
case "com.amazonaws.sts#InvalidIdentityTokenException":
|
|
223
|
-
throw await
|
|
223
|
+
throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
|
|
224
224
|
case "MalformedPolicyDocument":
|
|
225
225
|
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
|
226
|
-
throw await
|
|
226
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
227
227
|
case "PackedPolicyTooLarge":
|
|
228
228
|
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
|
229
|
-
throw await
|
|
229
|
+
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
|
230
230
|
case "RegionDisabledException":
|
|
231
231
|
case "com.amazonaws.sts#RegionDisabledException":
|
|
232
|
-
throw await
|
|
232
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
233
233
|
default:
|
|
234
234
|
const parsedBody = parsedOutput.body;
|
|
235
235
|
throwDefaultError({
|
|
@@ -240,20 +240,20 @@ const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output,
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
-
export const
|
|
243
|
+
export const de_DecodeAuthorizationMessageCommand = async (output, context) => {
|
|
244
244
|
if (output.statusCode >= 300) {
|
|
245
|
-
return
|
|
245
|
+
return de_DecodeAuthorizationMessageCommandError(output, context);
|
|
246
246
|
}
|
|
247
247
|
const data = await parseBody(output.body, context);
|
|
248
248
|
let contents = {};
|
|
249
|
-
contents =
|
|
249
|
+
contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context);
|
|
250
250
|
const response = {
|
|
251
251
|
$metadata: deserializeMetadata(output),
|
|
252
252
|
...contents,
|
|
253
253
|
};
|
|
254
254
|
return Promise.resolve(response);
|
|
255
255
|
};
|
|
256
|
-
const
|
|
256
|
+
const de_DecodeAuthorizationMessageCommandError = async (output, context) => {
|
|
257
257
|
const parsedOutput = {
|
|
258
258
|
...output,
|
|
259
259
|
body: await parseErrorBody(output.body, context),
|
|
@@ -262,7 +262,7 @@ const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output
|
|
|
262
262
|
switch (errorCode) {
|
|
263
263
|
case "InvalidAuthorizationMessageException":
|
|
264
264
|
case "com.amazonaws.sts#InvalidAuthorizationMessageException":
|
|
265
|
-
throw await
|
|
265
|
+
throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context);
|
|
266
266
|
default:
|
|
267
267
|
const parsedBody = parsedOutput.body;
|
|
268
268
|
throwDefaultError({
|
|
@@ -273,20 +273,20 @@ const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output
|
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
export const
|
|
276
|
+
export const de_GetAccessKeyInfoCommand = async (output, context) => {
|
|
277
277
|
if (output.statusCode >= 300) {
|
|
278
|
-
return
|
|
278
|
+
return de_GetAccessKeyInfoCommandError(output, context);
|
|
279
279
|
}
|
|
280
280
|
const data = await parseBody(output.body, context);
|
|
281
281
|
let contents = {};
|
|
282
|
-
contents =
|
|
282
|
+
contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context);
|
|
283
283
|
const response = {
|
|
284
284
|
$metadata: deserializeMetadata(output),
|
|
285
285
|
...contents,
|
|
286
286
|
};
|
|
287
287
|
return Promise.resolve(response);
|
|
288
288
|
};
|
|
289
|
-
const
|
|
289
|
+
const de_GetAccessKeyInfoCommandError = async (output, context) => {
|
|
290
290
|
const parsedOutput = {
|
|
291
291
|
...output,
|
|
292
292
|
body: await parseErrorBody(output.body, context),
|
|
@@ -300,20 +300,20 @@ const deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context)
|
|
|
300
300
|
errorCode,
|
|
301
301
|
});
|
|
302
302
|
};
|
|
303
|
-
export const
|
|
303
|
+
export const de_GetCallerIdentityCommand = async (output, context) => {
|
|
304
304
|
if (output.statusCode >= 300) {
|
|
305
|
-
return
|
|
305
|
+
return de_GetCallerIdentityCommandError(output, context);
|
|
306
306
|
}
|
|
307
307
|
const data = await parseBody(output.body, context);
|
|
308
308
|
let contents = {};
|
|
309
|
-
contents =
|
|
309
|
+
contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context);
|
|
310
310
|
const response = {
|
|
311
311
|
$metadata: deserializeMetadata(output),
|
|
312
312
|
...contents,
|
|
313
313
|
};
|
|
314
314
|
return Promise.resolve(response);
|
|
315
315
|
};
|
|
316
|
-
const
|
|
316
|
+
const de_GetCallerIdentityCommandError = async (output, context) => {
|
|
317
317
|
const parsedOutput = {
|
|
318
318
|
...output,
|
|
319
319
|
body: await parseErrorBody(output.body, context),
|
|
@@ -327,20 +327,20 @@ const deserializeAws_queryGetCallerIdentityCommandError = async (output, context
|
|
|
327
327
|
errorCode,
|
|
328
328
|
});
|
|
329
329
|
};
|
|
330
|
-
export const
|
|
330
|
+
export const de_GetFederationTokenCommand = async (output, context) => {
|
|
331
331
|
if (output.statusCode >= 300) {
|
|
332
|
-
return
|
|
332
|
+
return de_GetFederationTokenCommandError(output, context);
|
|
333
333
|
}
|
|
334
334
|
const data = await parseBody(output.body, context);
|
|
335
335
|
let contents = {};
|
|
336
|
-
contents =
|
|
336
|
+
contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context);
|
|
337
337
|
const response = {
|
|
338
338
|
$metadata: deserializeMetadata(output),
|
|
339
339
|
...contents,
|
|
340
340
|
};
|
|
341
341
|
return Promise.resolve(response);
|
|
342
342
|
};
|
|
343
|
-
const
|
|
343
|
+
const de_GetFederationTokenCommandError = async (output, context) => {
|
|
344
344
|
const parsedOutput = {
|
|
345
345
|
...output,
|
|
346
346
|
body: await parseErrorBody(output.body, context),
|
|
@@ -349,13 +349,13 @@ const deserializeAws_queryGetFederationTokenCommandError = async (output, contex
|
|
|
349
349
|
switch (errorCode) {
|
|
350
350
|
case "MalformedPolicyDocument":
|
|
351
351
|
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
|
352
|
-
throw await
|
|
352
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
353
353
|
case "PackedPolicyTooLarge":
|
|
354
354
|
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
|
355
|
-
throw await
|
|
355
|
+
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
|
356
356
|
case "RegionDisabledException":
|
|
357
357
|
case "com.amazonaws.sts#RegionDisabledException":
|
|
358
|
-
throw await
|
|
358
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
359
359
|
default:
|
|
360
360
|
const parsedBody = parsedOutput.body;
|
|
361
361
|
throwDefaultError({
|
|
@@ -366,20 +366,20 @@ const deserializeAws_queryGetFederationTokenCommandError = async (output, contex
|
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
|
-
export const
|
|
369
|
+
export const de_GetSessionTokenCommand = async (output, context) => {
|
|
370
370
|
if (output.statusCode >= 300) {
|
|
371
|
-
return
|
|
371
|
+
return de_GetSessionTokenCommandError(output, context);
|
|
372
372
|
}
|
|
373
373
|
const data = await parseBody(output.body, context);
|
|
374
374
|
let contents = {};
|
|
375
|
-
contents =
|
|
375
|
+
contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context);
|
|
376
376
|
const response = {
|
|
377
377
|
$metadata: deserializeMetadata(output),
|
|
378
378
|
...contents,
|
|
379
379
|
};
|
|
380
380
|
return Promise.resolve(response);
|
|
381
381
|
};
|
|
382
|
-
const
|
|
382
|
+
const de_GetSessionTokenCommandError = async (output, context) => {
|
|
383
383
|
const parsedOutput = {
|
|
384
384
|
...output,
|
|
385
385
|
body: await parseErrorBody(output.body, context),
|
|
@@ -388,7 +388,7 @@ const deserializeAws_queryGetSessionTokenCommandError = async (output, context)
|
|
|
388
388
|
switch (errorCode) {
|
|
389
389
|
case "RegionDisabledException":
|
|
390
390
|
case "com.amazonaws.sts#RegionDisabledException":
|
|
391
|
-
throw await
|
|
391
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
392
392
|
default:
|
|
393
393
|
const parsedBody = parsedOutput.body;
|
|
394
394
|
throwDefaultError({
|
|
@@ -399,79 +399,79 @@ const deserializeAws_queryGetSessionTokenCommandError = async (output, context)
|
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
|
-
const
|
|
402
|
+
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
403
403
|
const body = parsedOutput.body;
|
|
404
|
-
const deserialized =
|
|
404
|
+
const deserialized = de_ExpiredTokenException(body.Error, context);
|
|
405
405
|
const exception = new ExpiredTokenException({
|
|
406
406
|
$metadata: deserializeMetadata(parsedOutput),
|
|
407
407
|
...deserialized,
|
|
408
408
|
});
|
|
409
409
|
return __decorateServiceException(exception, body);
|
|
410
410
|
};
|
|
411
|
-
const
|
|
411
|
+
const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => {
|
|
412
412
|
const body = parsedOutput.body;
|
|
413
|
-
const deserialized =
|
|
413
|
+
const deserialized = de_IDPCommunicationErrorException(body.Error, context);
|
|
414
414
|
const exception = new IDPCommunicationErrorException({
|
|
415
415
|
$metadata: deserializeMetadata(parsedOutput),
|
|
416
416
|
...deserialized,
|
|
417
417
|
});
|
|
418
418
|
return __decorateServiceException(exception, body);
|
|
419
419
|
};
|
|
420
|
-
const
|
|
420
|
+
const de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => {
|
|
421
421
|
const body = parsedOutput.body;
|
|
422
|
-
const deserialized =
|
|
422
|
+
const deserialized = de_IDPRejectedClaimException(body.Error, context);
|
|
423
423
|
const exception = new IDPRejectedClaimException({
|
|
424
424
|
$metadata: deserializeMetadata(parsedOutput),
|
|
425
425
|
...deserialized,
|
|
426
426
|
});
|
|
427
427
|
return __decorateServiceException(exception, body);
|
|
428
428
|
};
|
|
429
|
-
const
|
|
429
|
+
const de_InvalidAuthorizationMessageExceptionRes = async (parsedOutput, context) => {
|
|
430
430
|
const body = parsedOutput.body;
|
|
431
|
-
const deserialized =
|
|
431
|
+
const deserialized = de_InvalidAuthorizationMessageException(body.Error, context);
|
|
432
432
|
const exception = new InvalidAuthorizationMessageException({
|
|
433
433
|
$metadata: deserializeMetadata(parsedOutput),
|
|
434
434
|
...deserialized,
|
|
435
435
|
});
|
|
436
436
|
return __decorateServiceException(exception, body);
|
|
437
437
|
};
|
|
438
|
-
const
|
|
438
|
+
const de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => {
|
|
439
439
|
const body = parsedOutput.body;
|
|
440
|
-
const deserialized =
|
|
440
|
+
const deserialized = de_InvalidIdentityTokenException(body.Error, context);
|
|
441
441
|
const exception = new InvalidIdentityTokenException({
|
|
442
442
|
$metadata: deserializeMetadata(parsedOutput),
|
|
443
443
|
...deserialized,
|
|
444
444
|
});
|
|
445
445
|
return __decorateServiceException(exception, body);
|
|
446
446
|
};
|
|
447
|
-
const
|
|
447
|
+
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
448
448
|
const body = parsedOutput.body;
|
|
449
|
-
const deserialized =
|
|
449
|
+
const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
|
|
450
450
|
const exception = new MalformedPolicyDocumentException({
|
|
451
451
|
$metadata: deserializeMetadata(parsedOutput),
|
|
452
452
|
...deserialized,
|
|
453
453
|
});
|
|
454
454
|
return __decorateServiceException(exception, body);
|
|
455
455
|
};
|
|
456
|
-
const
|
|
456
|
+
const de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
457
457
|
const body = parsedOutput.body;
|
|
458
|
-
const deserialized =
|
|
458
|
+
const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
|
|
459
459
|
const exception = new PackedPolicyTooLargeException({
|
|
460
460
|
$metadata: deserializeMetadata(parsedOutput),
|
|
461
461
|
...deserialized,
|
|
462
462
|
});
|
|
463
463
|
return __decorateServiceException(exception, body);
|
|
464
464
|
};
|
|
465
|
-
const
|
|
465
|
+
const de_RegionDisabledExceptionRes = async (parsedOutput, context) => {
|
|
466
466
|
const body = parsedOutput.body;
|
|
467
|
-
const deserialized =
|
|
467
|
+
const deserialized = de_RegionDisabledException(body.Error, context);
|
|
468
468
|
const exception = new RegionDisabledException({
|
|
469
469
|
$metadata: deserializeMetadata(parsedOutput),
|
|
470
470
|
...deserialized,
|
|
471
471
|
});
|
|
472
472
|
return __decorateServiceException(exception, body);
|
|
473
473
|
};
|
|
474
|
-
const
|
|
474
|
+
const se_AssumeRoleRequest = (input, context) => {
|
|
475
475
|
const entries = {};
|
|
476
476
|
if (input.RoleArn != null) {
|
|
477
477
|
entries["RoleArn"] = input.RoleArn;
|
|
@@ -480,7 +480,7 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
|
|
|
480
480
|
entries["RoleSessionName"] = input.RoleSessionName;
|
|
481
481
|
}
|
|
482
482
|
if (input.PolicyArns != null) {
|
|
483
|
-
const memberEntries =
|
|
483
|
+
const memberEntries = se_policyDescriptorListType(input.PolicyArns, context);
|
|
484
484
|
if (input.PolicyArns?.length === 0) {
|
|
485
485
|
entries.PolicyArns = [];
|
|
486
486
|
}
|
|
@@ -496,7 +496,7 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
|
|
|
496
496
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
497
497
|
}
|
|
498
498
|
if (input.Tags != null) {
|
|
499
|
-
const memberEntries =
|
|
499
|
+
const memberEntries = se_tagListType(input.Tags, context);
|
|
500
500
|
if (input.Tags?.length === 0) {
|
|
501
501
|
entries.Tags = [];
|
|
502
502
|
}
|
|
@@ -506,7 +506,7 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
|
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
if (input.TransitiveTagKeys != null) {
|
|
509
|
-
const memberEntries =
|
|
509
|
+
const memberEntries = se_tagKeyListType(input.TransitiveTagKeys, context);
|
|
510
510
|
if (input.TransitiveTagKeys?.length === 0) {
|
|
511
511
|
entries.TransitiveTagKeys = [];
|
|
512
512
|
}
|
|
@@ -529,7 +529,7 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
|
|
|
529
529
|
}
|
|
530
530
|
return entries;
|
|
531
531
|
};
|
|
532
|
-
const
|
|
532
|
+
const se_AssumeRoleWithSAMLRequest = (input, context) => {
|
|
533
533
|
const entries = {};
|
|
534
534
|
if (input.RoleArn != null) {
|
|
535
535
|
entries["RoleArn"] = input.RoleArn;
|
|
@@ -541,7 +541,7 @@ const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => {
|
|
|
541
541
|
entries["SAMLAssertion"] = input.SAMLAssertion;
|
|
542
542
|
}
|
|
543
543
|
if (input.PolicyArns != null) {
|
|
544
|
-
const memberEntries =
|
|
544
|
+
const memberEntries = se_policyDescriptorListType(input.PolicyArns, context);
|
|
545
545
|
if (input.PolicyArns?.length === 0) {
|
|
546
546
|
entries.PolicyArns = [];
|
|
547
547
|
}
|
|
@@ -558,7 +558,7 @@ const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => {
|
|
|
558
558
|
}
|
|
559
559
|
return entries;
|
|
560
560
|
};
|
|
561
|
-
const
|
|
561
|
+
const se_AssumeRoleWithWebIdentityRequest = (input, context) => {
|
|
562
562
|
const entries = {};
|
|
563
563
|
if (input.RoleArn != null) {
|
|
564
564
|
entries["RoleArn"] = input.RoleArn;
|
|
@@ -573,7 +573,7 @@ const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => {
|
|
|
573
573
|
entries["ProviderId"] = input.ProviderId;
|
|
574
574
|
}
|
|
575
575
|
if (input.PolicyArns != null) {
|
|
576
|
-
const memberEntries =
|
|
576
|
+
const memberEntries = se_policyDescriptorListType(input.PolicyArns, context);
|
|
577
577
|
if (input.PolicyArns?.length === 0) {
|
|
578
578
|
entries.PolicyArns = [];
|
|
579
579
|
}
|
|
@@ -590,25 +590,25 @@ const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => {
|
|
|
590
590
|
}
|
|
591
591
|
return entries;
|
|
592
592
|
};
|
|
593
|
-
const
|
|
593
|
+
const se_DecodeAuthorizationMessageRequest = (input, context) => {
|
|
594
594
|
const entries = {};
|
|
595
595
|
if (input.EncodedMessage != null) {
|
|
596
596
|
entries["EncodedMessage"] = input.EncodedMessage;
|
|
597
597
|
}
|
|
598
598
|
return entries;
|
|
599
599
|
};
|
|
600
|
-
const
|
|
600
|
+
const se_GetAccessKeyInfoRequest = (input, context) => {
|
|
601
601
|
const entries = {};
|
|
602
602
|
if (input.AccessKeyId != null) {
|
|
603
603
|
entries["AccessKeyId"] = input.AccessKeyId;
|
|
604
604
|
}
|
|
605
605
|
return entries;
|
|
606
606
|
};
|
|
607
|
-
const
|
|
607
|
+
const se_GetCallerIdentityRequest = (input, context) => {
|
|
608
608
|
const entries = {};
|
|
609
609
|
return entries;
|
|
610
610
|
};
|
|
611
|
-
const
|
|
611
|
+
const se_GetFederationTokenRequest = (input, context) => {
|
|
612
612
|
const entries = {};
|
|
613
613
|
if (input.Name != null) {
|
|
614
614
|
entries["Name"] = input.Name;
|
|
@@ -617,7 +617,7 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
|
|
|
617
617
|
entries["Policy"] = input.Policy;
|
|
618
618
|
}
|
|
619
619
|
if (input.PolicyArns != null) {
|
|
620
|
-
const memberEntries =
|
|
620
|
+
const memberEntries = se_policyDescriptorListType(input.PolicyArns, context);
|
|
621
621
|
if (input.PolicyArns?.length === 0) {
|
|
622
622
|
entries.PolicyArns = [];
|
|
623
623
|
}
|
|
@@ -630,7 +630,7 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
|
|
|
630
630
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
631
631
|
}
|
|
632
632
|
if (input.Tags != null) {
|
|
633
|
-
const memberEntries =
|
|
633
|
+
const memberEntries = se_tagListType(input.Tags, context);
|
|
634
634
|
if (input.Tags?.length === 0) {
|
|
635
635
|
entries.Tags = [];
|
|
636
636
|
}
|
|
@@ -641,7 +641,7 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
|
|
|
641
641
|
}
|
|
642
642
|
return entries;
|
|
643
643
|
};
|
|
644
|
-
const
|
|
644
|
+
const se_GetSessionTokenRequest = (input, context) => {
|
|
645
645
|
const entries = {};
|
|
646
646
|
if (input.DurationSeconds != null) {
|
|
647
647
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
@@ -654,14 +654,14 @@ const serializeAws_queryGetSessionTokenRequest = (input, context) => {
|
|
|
654
654
|
}
|
|
655
655
|
return entries;
|
|
656
656
|
};
|
|
657
|
-
const
|
|
657
|
+
const se_policyDescriptorListType = (input, context) => {
|
|
658
658
|
const entries = {};
|
|
659
659
|
let counter = 1;
|
|
660
660
|
for (const entry of input) {
|
|
661
661
|
if (entry === null) {
|
|
662
662
|
continue;
|
|
663
663
|
}
|
|
664
|
-
const memberEntries =
|
|
664
|
+
const memberEntries = se_PolicyDescriptorType(entry, context);
|
|
665
665
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
666
666
|
entries[`member.${counter}.${key}`] = value;
|
|
667
667
|
});
|
|
@@ -669,14 +669,14 @@ const serializeAws_querypolicyDescriptorListType = (input, context) => {
|
|
|
669
669
|
}
|
|
670
670
|
return entries;
|
|
671
671
|
};
|
|
672
|
-
const
|
|
672
|
+
const se_PolicyDescriptorType = (input, context) => {
|
|
673
673
|
const entries = {};
|
|
674
674
|
if (input.arn != null) {
|
|
675
675
|
entries["arn"] = input.arn;
|
|
676
676
|
}
|
|
677
677
|
return entries;
|
|
678
678
|
};
|
|
679
|
-
const
|
|
679
|
+
const se_Tag = (input, context) => {
|
|
680
680
|
const entries = {};
|
|
681
681
|
if (input.Key != null) {
|
|
682
682
|
entries["Key"] = input.Key;
|
|
@@ -686,7 +686,7 @@ const serializeAws_queryTag = (input, context) => {
|
|
|
686
686
|
}
|
|
687
687
|
return entries;
|
|
688
688
|
};
|
|
689
|
-
const
|
|
689
|
+
const se_tagKeyListType = (input, context) => {
|
|
690
690
|
const entries = {};
|
|
691
691
|
let counter = 1;
|
|
692
692
|
for (const entry of input) {
|
|
@@ -698,14 +698,14 @@ const serializeAws_querytagKeyListType = (input, context) => {
|
|
|
698
698
|
}
|
|
699
699
|
return entries;
|
|
700
700
|
};
|
|
701
|
-
const
|
|
701
|
+
const se_tagListType = (input, context) => {
|
|
702
702
|
const entries = {};
|
|
703
703
|
let counter = 1;
|
|
704
704
|
for (const entry of input) {
|
|
705
705
|
if (entry === null) {
|
|
706
706
|
continue;
|
|
707
707
|
}
|
|
708
|
-
const memberEntries =
|
|
708
|
+
const memberEntries = se_Tag(entry, context);
|
|
709
709
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
710
710
|
entries[`member.${counter}.${key}`] = value;
|
|
711
711
|
});
|
|
@@ -713,7 +713,7 @@ const serializeAws_querytagListType = (input, context) => {
|
|
|
713
713
|
}
|
|
714
714
|
return entries;
|
|
715
715
|
};
|
|
716
|
-
const
|
|
716
|
+
const de_AssumedRoleUser = (output, context) => {
|
|
717
717
|
const contents = {};
|
|
718
718
|
if (output["AssumedRoleId"] !== undefined) {
|
|
719
719
|
contents.AssumedRoleId = __expectString(output["AssumedRoleId"]);
|
|
@@ -723,13 +723,13 @@ const deserializeAws_queryAssumedRoleUser = (output, context) => {
|
|
|
723
723
|
}
|
|
724
724
|
return contents;
|
|
725
725
|
};
|
|
726
|
-
const
|
|
726
|
+
const de_AssumeRoleResponse = (output, context) => {
|
|
727
727
|
const contents = {};
|
|
728
728
|
if (output["Credentials"] !== undefined) {
|
|
729
|
-
contents.Credentials =
|
|
729
|
+
contents.Credentials = de_Credentials(output["Credentials"], context);
|
|
730
730
|
}
|
|
731
731
|
if (output["AssumedRoleUser"] !== undefined) {
|
|
732
|
-
contents.AssumedRoleUser =
|
|
732
|
+
contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context);
|
|
733
733
|
}
|
|
734
734
|
if (output["PackedPolicySize"] !== undefined) {
|
|
735
735
|
contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]);
|
|
@@ -739,13 +739,13 @@ const deserializeAws_queryAssumeRoleResponse = (output, context) => {
|
|
|
739
739
|
}
|
|
740
740
|
return contents;
|
|
741
741
|
};
|
|
742
|
-
const
|
|
742
|
+
const de_AssumeRoleWithSAMLResponse = (output, context) => {
|
|
743
743
|
const contents = {};
|
|
744
744
|
if (output["Credentials"] !== undefined) {
|
|
745
|
-
contents.Credentials =
|
|
745
|
+
contents.Credentials = de_Credentials(output["Credentials"], context);
|
|
746
746
|
}
|
|
747
747
|
if (output["AssumedRoleUser"] !== undefined) {
|
|
748
|
-
contents.AssumedRoleUser =
|
|
748
|
+
contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context);
|
|
749
749
|
}
|
|
750
750
|
if (output["PackedPolicySize"] !== undefined) {
|
|
751
751
|
contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]);
|
|
@@ -770,16 +770,16 @@ const deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => {
|
|
|
770
770
|
}
|
|
771
771
|
return contents;
|
|
772
772
|
};
|
|
773
|
-
const
|
|
773
|
+
const de_AssumeRoleWithWebIdentityResponse = (output, context) => {
|
|
774
774
|
const contents = {};
|
|
775
775
|
if (output["Credentials"] !== undefined) {
|
|
776
|
-
contents.Credentials =
|
|
776
|
+
contents.Credentials = de_Credentials(output["Credentials"], context);
|
|
777
777
|
}
|
|
778
778
|
if (output["SubjectFromWebIdentityToken"] !== undefined) {
|
|
779
779
|
contents.SubjectFromWebIdentityToken = __expectString(output["SubjectFromWebIdentityToken"]);
|
|
780
780
|
}
|
|
781
781
|
if (output["AssumedRoleUser"] !== undefined) {
|
|
782
|
-
contents.AssumedRoleUser =
|
|
782
|
+
contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context);
|
|
783
783
|
}
|
|
784
784
|
if (output["PackedPolicySize"] !== undefined) {
|
|
785
785
|
contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]);
|
|
@@ -795,7 +795,7 @@ const deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context)
|
|
|
795
795
|
}
|
|
796
796
|
return contents;
|
|
797
797
|
};
|
|
798
|
-
const
|
|
798
|
+
const de_Credentials = (output, context) => {
|
|
799
799
|
const contents = {};
|
|
800
800
|
if (output["AccessKeyId"] !== undefined) {
|
|
801
801
|
contents.AccessKeyId = __expectString(output["AccessKeyId"]);
|
|
@@ -811,21 +811,21 @@ const deserializeAws_queryCredentials = (output, context) => {
|
|
|
811
811
|
}
|
|
812
812
|
return contents;
|
|
813
813
|
};
|
|
814
|
-
const
|
|
814
|
+
const de_DecodeAuthorizationMessageResponse = (output, context) => {
|
|
815
815
|
const contents = {};
|
|
816
816
|
if (output["DecodedMessage"] !== undefined) {
|
|
817
817
|
contents.DecodedMessage = __expectString(output["DecodedMessage"]);
|
|
818
818
|
}
|
|
819
819
|
return contents;
|
|
820
820
|
};
|
|
821
|
-
const
|
|
821
|
+
const de_ExpiredTokenException = (output, context) => {
|
|
822
822
|
const contents = {};
|
|
823
823
|
if (output["message"] !== undefined) {
|
|
824
824
|
contents.message = __expectString(output["message"]);
|
|
825
825
|
}
|
|
826
826
|
return contents;
|
|
827
827
|
};
|
|
828
|
-
const
|
|
828
|
+
const de_FederatedUser = (output, context) => {
|
|
829
829
|
const contents = {};
|
|
830
830
|
if (output["FederatedUserId"] !== undefined) {
|
|
831
831
|
contents.FederatedUserId = __expectString(output["FederatedUserId"]);
|
|
@@ -835,14 +835,14 @@ const deserializeAws_queryFederatedUser = (output, context) => {
|
|
|
835
835
|
}
|
|
836
836
|
return contents;
|
|
837
837
|
};
|
|
838
|
-
const
|
|
838
|
+
const de_GetAccessKeyInfoResponse = (output, context) => {
|
|
839
839
|
const contents = {};
|
|
840
840
|
if (output["Account"] !== undefined) {
|
|
841
841
|
contents.Account = __expectString(output["Account"]);
|
|
842
842
|
}
|
|
843
843
|
return contents;
|
|
844
844
|
};
|
|
845
|
-
const
|
|
845
|
+
const de_GetCallerIdentityResponse = (output, context) => {
|
|
846
846
|
const contents = {};
|
|
847
847
|
if (output["UserId"] !== undefined) {
|
|
848
848
|
contents.UserId = __expectString(output["UserId"]);
|
|
@@ -855,69 +855,69 @@ const deserializeAws_queryGetCallerIdentityResponse = (output, context) => {
|
|
|
855
855
|
}
|
|
856
856
|
return contents;
|
|
857
857
|
};
|
|
858
|
-
const
|
|
858
|
+
const de_GetFederationTokenResponse = (output, context) => {
|
|
859
859
|
const contents = {};
|
|
860
860
|
if (output["Credentials"] !== undefined) {
|
|
861
|
-
contents.Credentials =
|
|
861
|
+
contents.Credentials = de_Credentials(output["Credentials"], context);
|
|
862
862
|
}
|
|
863
863
|
if (output["FederatedUser"] !== undefined) {
|
|
864
|
-
contents.FederatedUser =
|
|
864
|
+
contents.FederatedUser = de_FederatedUser(output["FederatedUser"], context);
|
|
865
865
|
}
|
|
866
866
|
if (output["PackedPolicySize"] !== undefined) {
|
|
867
867
|
contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]);
|
|
868
868
|
}
|
|
869
869
|
return contents;
|
|
870
870
|
};
|
|
871
|
-
const
|
|
871
|
+
const de_GetSessionTokenResponse = (output, context) => {
|
|
872
872
|
const contents = {};
|
|
873
873
|
if (output["Credentials"] !== undefined) {
|
|
874
|
-
contents.Credentials =
|
|
874
|
+
contents.Credentials = de_Credentials(output["Credentials"], context);
|
|
875
875
|
}
|
|
876
876
|
return contents;
|
|
877
877
|
};
|
|
878
|
-
const
|
|
878
|
+
const de_IDPCommunicationErrorException = (output, context) => {
|
|
879
879
|
const contents = {};
|
|
880
880
|
if (output["message"] !== undefined) {
|
|
881
881
|
contents.message = __expectString(output["message"]);
|
|
882
882
|
}
|
|
883
883
|
return contents;
|
|
884
884
|
};
|
|
885
|
-
const
|
|
885
|
+
const de_IDPRejectedClaimException = (output, context) => {
|
|
886
886
|
const contents = {};
|
|
887
887
|
if (output["message"] !== undefined) {
|
|
888
888
|
contents.message = __expectString(output["message"]);
|
|
889
889
|
}
|
|
890
890
|
return contents;
|
|
891
891
|
};
|
|
892
|
-
const
|
|
892
|
+
const de_InvalidAuthorizationMessageException = (output, context) => {
|
|
893
893
|
const contents = {};
|
|
894
894
|
if (output["message"] !== undefined) {
|
|
895
895
|
contents.message = __expectString(output["message"]);
|
|
896
896
|
}
|
|
897
897
|
return contents;
|
|
898
898
|
};
|
|
899
|
-
const
|
|
899
|
+
const de_InvalidIdentityTokenException = (output, context) => {
|
|
900
900
|
const contents = {};
|
|
901
901
|
if (output["message"] !== undefined) {
|
|
902
902
|
contents.message = __expectString(output["message"]);
|
|
903
903
|
}
|
|
904
904
|
return contents;
|
|
905
905
|
};
|
|
906
|
-
const
|
|
906
|
+
const de_MalformedPolicyDocumentException = (output, context) => {
|
|
907
907
|
const contents = {};
|
|
908
908
|
if (output["message"] !== undefined) {
|
|
909
909
|
contents.message = __expectString(output["message"]);
|
|
910
910
|
}
|
|
911
911
|
return contents;
|
|
912
912
|
};
|
|
913
|
-
const
|
|
913
|
+
const de_PackedPolicyTooLargeException = (output, context) => {
|
|
914
914
|
const contents = {};
|
|
915
915
|
if (output["message"] !== undefined) {
|
|
916
916
|
contents.message = __expectString(output["message"]);
|
|
917
917
|
}
|
|
918
918
|
return contents;
|
|
919
919
|
};
|
|
920
|
-
const
|
|
920
|
+
const de_RegionDisabledException = (output, context) => {
|
|
921
921
|
const contents = {};
|
|
922
922
|
if (output["message"] !== undefined) {
|
|
923
923
|
contents.message = __expectString(output["message"]);
|