@aws-sdk/client-sts 3.306.0 → 3.309.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 +5 -5
|
@@ -1,130 +1,130 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_GetSessionTokenCommand = exports.de_GetFederationTokenCommand = exports.de_GetCallerIdentityCommand = exports.de_GetAccessKeyInfoCommand = exports.de_DecodeAuthorizationMessageCommand = exports.de_AssumeRoleWithWebIdentityCommand = exports.de_AssumeRoleWithSAMLCommand = exports.de_AssumeRoleCommand = exports.se_GetSessionTokenCommand = exports.se_GetFederationTokenCommand = exports.se_GetCallerIdentityCommand = exports.se_GetAccessKeyInfoCommand = exports.se_DecodeAuthorizationMessageCommand = exports.se_AssumeRoleWithWebIdentityCommand = exports.se_AssumeRoleWithSAMLCommand = exports.se_AssumeRoleCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const STSServiceException_1 = require("../models/STSServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_AssumeRoleCommand = async (input, context) => {
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/x-www-form-urlencoded",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
14
|
body = buildFormUrlencodedString({
|
|
15
|
-
...
|
|
15
|
+
...se_AssumeRoleRequest(input, context),
|
|
16
16
|
Action: "AssumeRole",
|
|
17
17
|
Version: "2011-06-15",
|
|
18
18
|
});
|
|
19
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
20
|
};
|
|
21
|
-
exports.
|
|
22
|
-
const
|
|
21
|
+
exports.se_AssumeRoleCommand = se_AssumeRoleCommand;
|
|
22
|
+
const se_AssumeRoleWithSAMLCommand = async (input, context) => {
|
|
23
23
|
const headers = {
|
|
24
24
|
"content-type": "application/x-www-form-urlencoded",
|
|
25
25
|
};
|
|
26
26
|
let body;
|
|
27
27
|
body = buildFormUrlencodedString({
|
|
28
|
-
...
|
|
28
|
+
...se_AssumeRoleWithSAMLRequest(input, context),
|
|
29
29
|
Action: "AssumeRoleWithSAML",
|
|
30
30
|
Version: "2011-06-15",
|
|
31
31
|
});
|
|
32
32
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
33
33
|
};
|
|
34
|
-
exports.
|
|
35
|
-
const
|
|
34
|
+
exports.se_AssumeRoleWithSAMLCommand = se_AssumeRoleWithSAMLCommand;
|
|
35
|
+
const se_AssumeRoleWithWebIdentityCommand = async (input, context) => {
|
|
36
36
|
const headers = {
|
|
37
37
|
"content-type": "application/x-www-form-urlencoded",
|
|
38
38
|
};
|
|
39
39
|
let body;
|
|
40
40
|
body = buildFormUrlencodedString({
|
|
41
|
-
...
|
|
41
|
+
...se_AssumeRoleWithWebIdentityRequest(input, context),
|
|
42
42
|
Action: "AssumeRoleWithWebIdentity",
|
|
43
43
|
Version: "2011-06-15",
|
|
44
44
|
});
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_AssumeRoleWithWebIdentityCommand = se_AssumeRoleWithWebIdentityCommand;
|
|
48
|
+
const se_DecodeAuthorizationMessageCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-www-form-urlencoded",
|
|
51
51
|
};
|
|
52
52
|
let body;
|
|
53
53
|
body = buildFormUrlencodedString({
|
|
54
|
-
...
|
|
54
|
+
...se_DecodeAuthorizationMessageRequest(input, context),
|
|
55
55
|
Action: "DecodeAuthorizationMessage",
|
|
56
56
|
Version: "2011-06-15",
|
|
57
57
|
});
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
|
-
exports.
|
|
61
|
-
const
|
|
60
|
+
exports.se_DecodeAuthorizationMessageCommand = se_DecodeAuthorizationMessageCommand;
|
|
61
|
+
const se_GetAccessKeyInfoCommand = async (input, context) => {
|
|
62
62
|
const headers = {
|
|
63
63
|
"content-type": "application/x-www-form-urlencoded",
|
|
64
64
|
};
|
|
65
65
|
let body;
|
|
66
66
|
body = buildFormUrlencodedString({
|
|
67
|
-
...
|
|
67
|
+
...se_GetAccessKeyInfoRequest(input, context),
|
|
68
68
|
Action: "GetAccessKeyInfo",
|
|
69
69
|
Version: "2011-06-15",
|
|
70
70
|
});
|
|
71
71
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
72
|
};
|
|
73
|
-
exports.
|
|
74
|
-
const
|
|
73
|
+
exports.se_GetAccessKeyInfoCommand = se_GetAccessKeyInfoCommand;
|
|
74
|
+
const se_GetCallerIdentityCommand = async (input, context) => {
|
|
75
75
|
const headers = {
|
|
76
76
|
"content-type": "application/x-www-form-urlencoded",
|
|
77
77
|
};
|
|
78
78
|
let body;
|
|
79
79
|
body = buildFormUrlencodedString({
|
|
80
|
-
...
|
|
80
|
+
...se_GetCallerIdentityRequest(input, context),
|
|
81
81
|
Action: "GetCallerIdentity",
|
|
82
82
|
Version: "2011-06-15",
|
|
83
83
|
});
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
exports.
|
|
87
|
-
const
|
|
86
|
+
exports.se_GetCallerIdentityCommand = se_GetCallerIdentityCommand;
|
|
87
|
+
const se_GetFederationTokenCommand = async (input, context) => {
|
|
88
88
|
const headers = {
|
|
89
89
|
"content-type": "application/x-www-form-urlencoded",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
92
|
body = buildFormUrlencodedString({
|
|
93
|
-
...
|
|
93
|
+
...se_GetFederationTokenRequest(input, context),
|
|
94
94
|
Action: "GetFederationToken",
|
|
95
95
|
Version: "2011-06-15",
|
|
96
96
|
});
|
|
97
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
98
|
};
|
|
99
|
-
exports.
|
|
100
|
-
const
|
|
99
|
+
exports.se_GetFederationTokenCommand = se_GetFederationTokenCommand;
|
|
100
|
+
const se_GetSessionTokenCommand = async (input, context) => {
|
|
101
101
|
const headers = {
|
|
102
102
|
"content-type": "application/x-www-form-urlencoded",
|
|
103
103
|
};
|
|
104
104
|
let body;
|
|
105
105
|
body = buildFormUrlencodedString({
|
|
106
|
-
...
|
|
106
|
+
...se_GetSessionTokenRequest(input, context),
|
|
107
107
|
Action: "GetSessionToken",
|
|
108
108
|
Version: "2011-06-15",
|
|
109
109
|
});
|
|
110
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
111
|
};
|
|
112
|
-
exports.
|
|
113
|
-
const
|
|
112
|
+
exports.se_GetSessionTokenCommand = se_GetSessionTokenCommand;
|
|
113
|
+
const de_AssumeRoleCommand = async (output, context) => {
|
|
114
114
|
if (output.statusCode >= 300) {
|
|
115
|
-
return
|
|
115
|
+
return de_AssumeRoleCommandError(output, context);
|
|
116
116
|
}
|
|
117
117
|
const data = await parseBody(output.body, context);
|
|
118
118
|
let contents = {};
|
|
119
|
-
contents =
|
|
119
|
+
contents = de_AssumeRoleResponse(data.AssumeRoleResult, context);
|
|
120
120
|
const response = {
|
|
121
121
|
$metadata: deserializeMetadata(output),
|
|
122
122
|
...contents,
|
|
123
123
|
};
|
|
124
124
|
return Promise.resolve(response);
|
|
125
125
|
};
|
|
126
|
-
exports.
|
|
127
|
-
const
|
|
126
|
+
exports.de_AssumeRoleCommand = de_AssumeRoleCommand;
|
|
127
|
+
const de_AssumeRoleCommandError = async (output, context) => {
|
|
128
128
|
const parsedOutput = {
|
|
129
129
|
...output,
|
|
130
130
|
body: await parseErrorBody(output.body, context),
|
|
@@ -133,16 +133,16 @@ const deserializeAws_queryAssumeRoleCommandError = async (output, context) => {
|
|
|
133
133
|
switch (errorCode) {
|
|
134
134
|
case "ExpiredTokenException":
|
|
135
135
|
case "com.amazonaws.sts#ExpiredTokenException":
|
|
136
|
-
throw await
|
|
136
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
137
137
|
case "MalformedPolicyDocument":
|
|
138
138
|
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
|
139
|
-
throw await
|
|
139
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
140
140
|
case "PackedPolicyTooLarge":
|
|
141
141
|
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
|
142
|
-
throw await
|
|
142
|
+
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
|
143
143
|
case "RegionDisabledException":
|
|
144
144
|
case "com.amazonaws.sts#RegionDisabledException":
|
|
145
|
-
throw await
|
|
145
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
146
146
|
default:
|
|
147
147
|
const parsedBody = parsedOutput.body;
|
|
148
148
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -153,21 +153,21 @@ const deserializeAws_queryAssumeRoleCommandError = async (output, context) => {
|
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
|
-
const
|
|
156
|
+
const de_AssumeRoleWithSAMLCommand = async (output, context) => {
|
|
157
157
|
if (output.statusCode >= 300) {
|
|
158
|
-
return
|
|
158
|
+
return de_AssumeRoleWithSAMLCommandError(output, context);
|
|
159
159
|
}
|
|
160
160
|
const data = await parseBody(output.body, context);
|
|
161
161
|
let contents = {};
|
|
162
|
-
contents =
|
|
162
|
+
contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context);
|
|
163
163
|
const response = {
|
|
164
164
|
$metadata: deserializeMetadata(output),
|
|
165
165
|
...contents,
|
|
166
166
|
};
|
|
167
167
|
return Promise.resolve(response);
|
|
168
168
|
};
|
|
169
|
-
exports.
|
|
170
|
-
const
|
|
169
|
+
exports.de_AssumeRoleWithSAMLCommand = de_AssumeRoleWithSAMLCommand;
|
|
170
|
+
const de_AssumeRoleWithSAMLCommandError = async (output, context) => {
|
|
171
171
|
const parsedOutput = {
|
|
172
172
|
...output,
|
|
173
173
|
body: await parseErrorBody(output.body, context),
|
|
@@ -176,22 +176,22 @@ const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, contex
|
|
|
176
176
|
switch (errorCode) {
|
|
177
177
|
case "ExpiredTokenException":
|
|
178
178
|
case "com.amazonaws.sts#ExpiredTokenException":
|
|
179
|
-
throw await
|
|
179
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
180
180
|
case "IDPRejectedClaim":
|
|
181
181
|
case "com.amazonaws.sts#IDPRejectedClaimException":
|
|
182
|
-
throw await
|
|
182
|
+
throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
|
|
183
183
|
case "InvalidIdentityToken":
|
|
184
184
|
case "com.amazonaws.sts#InvalidIdentityTokenException":
|
|
185
|
-
throw await
|
|
185
|
+
throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
|
|
186
186
|
case "MalformedPolicyDocument":
|
|
187
187
|
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
|
188
|
-
throw await
|
|
188
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
189
189
|
case "PackedPolicyTooLarge":
|
|
190
190
|
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
|
191
|
-
throw await
|
|
191
|
+
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
|
192
192
|
case "RegionDisabledException":
|
|
193
193
|
case "com.amazonaws.sts#RegionDisabledException":
|
|
194
|
-
throw await
|
|
194
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
195
195
|
default:
|
|
196
196
|
const parsedBody = parsedOutput.body;
|
|
197
197
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -202,21 +202,21 @@ const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, contex
|
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
|
-
const
|
|
205
|
+
const de_AssumeRoleWithWebIdentityCommand = async (output, context) => {
|
|
206
206
|
if (output.statusCode >= 300) {
|
|
207
|
-
return
|
|
207
|
+
return de_AssumeRoleWithWebIdentityCommandError(output, context);
|
|
208
208
|
}
|
|
209
209
|
const data = await parseBody(output.body, context);
|
|
210
210
|
let contents = {};
|
|
211
|
-
contents =
|
|
211
|
+
contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
|
|
212
212
|
const response = {
|
|
213
213
|
$metadata: deserializeMetadata(output),
|
|
214
214
|
...contents,
|
|
215
215
|
};
|
|
216
216
|
return Promise.resolve(response);
|
|
217
217
|
};
|
|
218
|
-
exports.
|
|
219
|
-
const
|
|
218
|
+
exports.de_AssumeRoleWithWebIdentityCommand = de_AssumeRoleWithWebIdentityCommand;
|
|
219
|
+
const de_AssumeRoleWithWebIdentityCommandError = async (output, context) => {
|
|
220
220
|
const parsedOutput = {
|
|
221
221
|
...output,
|
|
222
222
|
body: await parseErrorBody(output.body, context),
|
|
@@ -225,25 +225,25 @@ const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output,
|
|
|
225
225
|
switch (errorCode) {
|
|
226
226
|
case "ExpiredTokenException":
|
|
227
227
|
case "com.amazonaws.sts#ExpiredTokenException":
|
|
228
|
-
throw await
|
|
228
|
+
throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
|
|
229
229
|
case "IDPCommunicationError":
|
|
230
230
|
case "com.amazonaws.sts#IDPCommunicationErrorException":
|
|
231
|
-
throw await
|
|
231
|
+
throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context);
|
|
232
232
|
case "IDPRejectedClaim":
|
|
233
233
|
case "com.amazonaws.sts#IDPRejectedClaimException":
|
|
234
|
-
throw await
|
|
234
|
+
throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context);
|
|
235
235
|
case "InvalidIdentityToken":
|
|
236
236
|
case "com.amazonaws.sts#InvalidIdentityTokenException":
|
|
237
|
-
throw await
|
|
237
|
+
throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context);
|
|
238
238
|
case "MalformedPolicyDocument":
|
|
239
239
|
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
|
240
|
-
throw await
|
|
240
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
241
241
|
case "PackedPolicyTooLarge":
|
|
242
242
|
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
|
243
|
-
throw await
|
|
243
|
+
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
|
244
244
|
case "RegionDisabledException":
|
|
245
245
|
case "com.amazonaws.sts#RegionDisabledException":
|
|
246
|
-
throw await
|
|
246
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
247
247
|
default:
|
|
248
248
|
const parsedBody = parsedOutput.body;
|
|
249
249
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -254,21 +254,21 @@ const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output,
|
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
|
-
const
|
|
257
|
+
const de_DecodeAuthorizationMessageCommand = async (output, context) => {
|
|
258
258
|
if (output.statusCode >= 300) {
|
|
259
|
-
return
|
|
259
|
+
return de_DecodeAuthorizationMessageCommandError(output, context);
|
|
260
260
|
}
|
|
261
261
|
const data = await parseBody(output.body, context);
|
|
262
262
|
let contents = {};
|
|
263
|
-
contents =
|
|
263
|
+
contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context);
|
|
264
264
|
const response = {
|
|
265
265
|
$metadata: deserializeMetadata(output),
|
|
266
266
|
...contents,
|
|
267
267
|
};
|
|
268
268
|
return Promise.resolve(response);
|
|
269
269
|
};
|
|
270
|
-
exports.
|
|
271
|
-
const
|
|
270
|
+
exports.de_DecodeAuthorizationMessageCommand = de_DecodeAuthorizationMessageCommand;
|
|
271
|
+
const de_DecodeAuthorizationMessageCommandError = async (output, context) => {
|
|
272
272
|
const parsedOutput = {
|
|
273
273
|
...output,
|
|
274
274
|
body: await parseErrorBody(output.body, context),
|
|
@@ -277,7 +277,7 @@ const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output
|
|
|
277
277
|
switch (errorCode) {
|
|
278
278
|
case "InvalidAuthorizationMessageException":
|
|
279
279
|
case "com.amazonaws.sts#InvalidAuthorizationMessageException":
|
|
280
|
-
throw await
|
|
280
|
+
throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context);
|
|
281
281
|
default:
|
|
282
282
|
const parsedBody = parsedOutput.body;
|
|
283
283
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -288,21 +288,21 @@ const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
|
-
const
|
|
291
|
+
const de_GetAccessKeyInfoCommand = async (output, context) => {
|
|
292
292
|
if (output.statusCode >= 300) {
|
|
293
|
-
return
|
|
293
|
+
return de_GetAccessKeyInfoCommandError(output, context);
|
|
294
294
|
}
|
|
295
295
|
const data = await parseBody(output.body, context);
|
|
296
296
|
let contents = {};
|
|
297
|
-
contents =
|
|
297
|
+
contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context);
|
|
298
298
|
const response = {
|
|
299
299
|
$metadata: deserializeMetadata(output),
|
|
300
300
|
...contents,
|
|
301
301
|
};
|
|
302
302
|
return Promise.resolve(response);
|
|
303
303
|
};
|
|
304
|
-
exports.
|
|
305
|
-
const
|
|
304
|
+
exports.de_GetAccessKeyInfoCommand = de_GetAccessKeyInfoCommand;
|
|
305
|
+
const de_GetAccessKeyInfoCommandError = async (output, context) => {
|
|
306
306
|
const parsedOutput = {
|
|
307
307
|
...output,
|
|
308
308
|
body: await parseErrorBody(output.body, context),
|
|
@@ -316,21 +316,21 @@ const deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context)
|
|
|
316
316
|
errorCode,
|
|
317
317
|
});
|
|
318
318
|
};
|
|
319
|
-
const
|
|
319
|
+
const de_GetCallerIdentityCommand = async (output, context) => {
|
|
320
320
|
if (output.statusCode >= 300) {
|
|
321
|
-
return
|
|
321
|
+
return de_GetCallerIdentityCommandError(output, context);
|
|
322
322
|
}
|
|
323
323
|
const data = await parseBody(output.body, context);
|
|
324
324
|
let contents = {};
|
|
325
|
-
contents =
|
|
325
|
+
contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context);
|
|
326
326
|
const response = {
|
|
327
327
|
$metadata: deserializeMetadata(output),
|
|
328
328
|
...contents,
|
|
329
329
|
};
|
|
330
330
|
return Promise.resolve(response);
|
|
331
331
|
};
|
|
332
|
-
exports.
|
|
333
|
-
const
|
|
332
|
+
exports.de_GetCallerIdentityCommand = de_GetCallerIdentityCommand;
|
|
333
|
+
const de_GetCallerIdentityCommandError = async (output, context) => {
|
|
334
334
|
const parsedOutput = {
|
|
335
335
|
...output,
|
|
336
336
|
body: await parseErrorBody(output.body, context),
|
|
@@ -344,21 +344,21 @@ const deserializeAws_queryGetCallerIdentityCommandError = async (output, context
|
|
|
344
344
|
errorCode,
|
|
345
345
|
});
|
|
346
346
|
};
|
|
347
|
-
const
|
|
347
|
+
const de_GetFederationTokenCommand = async (output, context) => {
|
|
348
348
|
if (output.statusCode >= 300) {
|
|
349
|
-
return
|
|
349
|
+
return de_GetFederationTokenCommandError(output, context);
|
|
350
350
|
}
|
|
351
351
|
const data = await parseBody(output.body, context);
|
|
352
352
|
let contents = {};
|
|
353
|
-
contents =
|
|
353
|
+
contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context);
|
|
354
354
|
const response = {
|
|
355
355
|
$metadata: deserializeMetadata(output),
|
|
356
356
|
...contents,
|
|
357
357
|
};
|
|
358
358
|
return Promise.resolve(response);
|
|
359
359
|
};
|
|
360
|
-
exports.
|
|
361
|
-
const
|
|
360
|
+
exports.de_GetFederationTokenCommand = de_GetFederationTokenCommand;
|
|
361
|
+
const de_GetFederationTokenCommandError = async (output, context) => {
|
|
362
362
|
const parsedOutput = {
|
|
363
363
|
...output,
|
|
364
364
|
body: await parseErrorBody(output.body, context),
|
|
@@ -367,13 +367,13 @@ const deserializeAws_queryGetFederationTokenCommandError = async (output, contex
|
|
|
367
367
|
switch (errorCode) {
|
|
368
368
|
case "MalformedPolicyDocument":
|
|
369
369
|
case "com.amazonaws.sts#MalformedPolicyDocumentException":
|
|
370
|
-
throw await
|
|
370
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
371
371
|
case "PackedPolicyTooLarge":
|
|
372
372
|
case "com.amazonaws.sts#PackedPolicyTooLargeException":
|
|
373
|
-
throw await
|
|
373
|
+
throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context);
|
|
374
374
|
case "RegionDisabledException":
|
|
375
375
|
case "com.amazonaws.sts#RegionDisabledException":
|
|
376
|
-
throw await
|
|
376
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
377
377
|
default:
|
|
378
378
|
const parsedBody = parsedOutput.body;
|
|
379
379
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -384,21 +384,21 @@ const deserializeAws_queryGetFederationTokenCommandError = async (output, contex
|
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
|
-
const
|
|
387
|
+
const de_GetSessionTokenCommand = async (output, context) => {
|
|
388
388
|
if (output.statusCode >= 300) {
|
|
389
|
-
return
|
|
389
|
+
return de_GetSessionTokenCommandError(output, context);
|
|
390
390
|
}
|
|
391
391
|
const data = await parseBody(output.body, context);
|
|
392
392
|
let contents = {};
|
|
393
|
-
contents =
|
|
393
|
+
contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context);
|
|
394
394
|
const response = {
|
|
395
395
|
$metadata: deserializeMetadata(output),
|
|
396
396
|
...contents,
|
|
397
397
|
};
|
|
398
398
|
return Promise.resolve(response);
|
|
399
399
|
};
|
|
400
|
-
exports.
|
|
401
|
-
const
|
|
400
|
+
exports.de_GetSessionTokenCommand = de_GetSessionTokenCommand;
|
|
401
|
+
const de_GetSessionTokenCommandError = async (output, context) => {
|
|
402
402
|
const parsedOutput = {
|
|
403
403
|
...output,
|
|
404
404
|
body: await parseErrorBody(output.body, context),
|
|
@@ -407,7 +407,7 @@ const deserializeAws_queryGetSessionTokenCommandError = async (output, context)
|
|
|
407
407
|
switch (errorCode) {
|
|
408
408
|
case "RegionDisabledException":
|
|
409
409
|
case "com.amazonaws.sts#RegionDisabledException":
|
|
410
|
-
throw await
|
|
410
|
+
throw await de_RegionDisabledExceptionRes(parsedOutput, context);
|
|
411
411
|
default:
|
|
412
412
|
const parsedBody = parsedOutput.body;
|
|
413
413
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -418,79 +418,79 @@ const deserializeAws_queryGetSessionTokenCommandError = async (output, context)
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
|
-
const
|
|
421
|
+
const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
|
|
422
422
|
const body = parsedOutput.body;
|
|
423
|
-
const deserialized =
|
|
423
|
+
const deserialized = de_ExpiredTokenException(body.Error, context);
|
|
424
424
|
const exception = new models_0_1.ExpiredTokenException({
|
|
425
425
|
$metadata: deserializeMetadata(parsedOutput),
|
|
426
426
|
...deserialized,
|
|
427
427
|
});
|
|
428
428
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
429
429
|
};
|
|
430
|
-
const
|
|
430
|
+
const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => {
|
|
431
431
|
const body = parsedOutput.body;
|
|
432
|
-
const deserialized =
|
|
432
|
+
const deserialized = de_IDPCommunicationErrorException(body.Error, context);
|
|
433
433
|
const exception = new models_0_1.IDPCommunicationErrorException({
|
|
434
434
|
$metadata: deserializeMetadata(parsedOutput),
|
|
435
435
|
...deserialized,
|
|
436
436
|
});
|
|
437
437
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
438
438
|
};
|
|
439
|
-
const
|
|
439
|
+
const de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => {
|
|
440
440
|
const body = parsedOutput.body;
|
|
441
|
-
const deserialized =
|
|
441
|
+
const deserialized = de_IDPRejectedClaimException(body.Error, context);
|
|
442
442
|
const exception = new models_0_1.IDPRejectedClaimException({
|
|
443
443
|
$metadata: deserializeMetadata(parsedOutput),
|
|
444
444
|
...deserialized,
|
|
445
445
|
});
|
|
446
446
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
447
447
|
};
|
|
448
|
-
const
|
|
448
|
+
const de_InvalidAuthorizationMessageExceptionRes = async (parsedOutput, context) => {
|
|
449
449
|
const body = parsedOutput.body;
|
|
450
|
-
const deserialized =
|
|
450
|
+
const deserialized = de_InvalidAuthorizationMessageException(body.Error, context);
|
|
451
451
|
const exception = new models_0_1.InvalidAuthorizationMessageException({
|
|
452
452
|
$metadata: deserializeMetadata(parsedOutput),
|
|
453
453
|
...deserialized,
|
|
454
454
|
});
|
|
455
455
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
456
456
|
};
|
|
457
|
-
const
|
|
457
|
+
const de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => {
|
|
458
458
|
const body = parsedOutput.body;
|
|
459
|
-
const deserialized =
|
|
459
|
+
const deserialized = de_InvalidIdentityTokenException(body.Error, context);
|
|
460
460
|
const exception = new models_0_1.InvalidIdentityTokenException({
|
|
461
461
|
$metadata: deserializeMetadata(parsedOutput),
|
|
462
462
|
...deserialized,
|
|
463
463
|
});
|
|
464
464
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
465
465
|
};
|
|
466
|
-
const
|
|
466
|
+
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
467
467
|
const body = parsedOutput.body;
|
|
468
|
-
const deserialized =
|
|
468
|
+
const deserialized = de_MalformedPolicyDocumentException(body.Error, context);
|
|
469
469
|
const exception = new models_0_1.MalformedPolicyDocumentException({
|
|
470
470
|
$metadata: deserializeMetadata(parsedOutput),
|
|
471
471
|
...deserialized,
|
|
472
472
|
});
|
|
473
473
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
474
474
|
};
|
|
475
|
-
const
|
|
475
|
+
const de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
476
476
|
const body = parsedOutput.body;
|
|
477
|
-
const deserialized =
|
|
477
|
+
const deserialized = de_PackedPolicyTooLargeException(body.Error, context);
|
|
478
478
|
const exception = new models_0_1.PackedPolicyTooLargeException({
|
|
479
479
|
$metadata: deserializeMetadata(parsedOutput),
|
|
480
480
|
...deserialized,
|
|
481
481
|
});
|
|
482
482
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
483
483
|
};
|
|
484
|
-
const
|
|
484
|
+
const de_RegionDisabledExceptionRes = async (parsedOutput, context) => {
|
|
485
485
|
const body = parsedOutput.body;
|
|
486
|
-
const deserialized =
|
|
486
|
+
const deserialized = de_RegionDisabledException(body.Error, context);
|
|
487
487
|
const exception = new models_0_1.RegionDisabledException({
|
|
488
488
|
$metadata: deserializeMetadata(parsedOutput),
|
|
489
489
|
...deserialized,
|
|
490
490
|
});
|
|
491
491
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
492
492
|
};
|
|
493
|
-
const
|
|
493
|
+
const se_AssumeRoleRequest = (input, context) => {
|
|
494
494
|
const entries = {};
|
|
495
495
|
if (input.RoleArn != null) {
|
|
496
496
|
entries["RoleArn"] = input.RoleArn;
|
|
@@ -499,7 +499,7 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
|
|
|
499
499
|
entries["RoleSessionName"] = input.RoleSessionName;
|
|
500
500
|
}
|
|
501
501
|
if (input.PolicyArns != null) {
|
|
502
|
-
const memberEntries =
|
|
502
|
+
const memberEntries = se_policyDescriptorListType(input.PolicyArns, context);
|
|
503
503
|
if (input.PolicyArns?.length === 0) {
|
|
504
504
|
entries.PolicyArns = [];
|
|
505
505
|
}
|
|
@@ -515,7 +515,7 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
|
|
|
515
515
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
516
516
|
}
|
|
517
517
|
if (input.Tags != null) {
|
|
518
|
-
const memberEntries =
|
|
518
|
+
const memberEntries = se_tagListType(input.Tags, context);
|
|
519
519
|
if (input.Tags?.length === 0) {
|
|
520
520
|
entries.Tags = [];
|
|
521
521
|
}
|
|
@@ -525,7 +525,7 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
|
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
if (input.TransitiveTagKeys != null) {
|
|
528
|
-
const memberEntries =
|
|
528
|
+
const memberEntries = se_tagKeyListType(input.TransitiveTagKeys, context);
|
|
529
529
|
if (input.TransitiveTagKeys?.length === 0) {
|
|
530
530
|
entries.TransitiveTagKeys = [];
|
|
531
531
|
}
|
|
@@ -548,7 +548,7 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
|
|
|
548
548
|
}
|
|
549
549
|
return entries;
|
|
550
550
|
};
|
|
551
|
-
const
|
|
551
|
+
const se_AssumeRoleWithSAMLRequest = (input, context) => {
|
|
552
552
|
const entries = {};
|
|
553
553
|
if (input.RoleArn != null) {
|
|
554
554
|
entries["RoleArn"] = input.RoleArn;
|
|
@@ -560,7 +560,7 @@ const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => {
|
|
|
560
560
|
entries["SAMLAssertion"] = input.SAMLAssertion;
|
|
561
561
|
}
|
|
562
562
|
if (input.PolicyArns != null) {
|
|
563
|
-
const memberEntries =
|
|
563
|
+
const memberEntries = se_policyDescriptorListType(input.PolicyArns, context);
|
|
564
564
|
if (input.PolicyArns?.length === 0) {
|
|
565
565
|
entries.PolicyArns = [];
|
|
566
566
|
}
|
|
@@ -577,7 +577,7 @@ const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => {
|
|
|
577
577
|
}
|
|
578
578
|
return entries;
|
|
579
579
|
};
|
|
580
|
-
const
|
|
580
|
+
const se_AssumeRoleWithWebIdentityRequest = (input, context) => {
|
|
581
581
|
const entries = {};
|
|
582
582
|
if (input.RoleArn != null) {
|
|
583
583
|
entries["RoleArn"] = input.RoleArn;
|
|
@@ -592,7 +592,7 @@ const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => {
|
|
|
592
592
|
entries["ProviderId"] = input.ProviderId;
|
|
593
593
|
}
|
|
594
594
|
if (input.PolicyArns != null) {
|
|
595
|
-
const memberEntries =
|
|
595
|
+
const memberEntries = se_policyDescriptorListType(input.PolicyArns, context);
|
|
596
596
|
if (input.PolicyArns?.length === 0) {
|
|
597
597
|
entries.PolicyArns = [];
|
|
598
598
|
}
|
|
@@ -609,25 +609,25 @@ const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => {
|
|
|
609
609
|
}
|
|
610
610
|
return entries;
|
|
611
611
|
};
|
|
612
|
-
const
|
|
612
|
+
const se_DecodeAuthorizationMessageRequest = (input, context) => {
|
|
613
613
|
const entries = {};
|
|
614
614
|
if (input.EncodedMessage != null) {
|
|
615
615
|
entries["EncodedMessage"] = input.EncodedMessage;
|
|
616
616
|
}
|
|
617
617
|
return entries;
|
|
618
618
|
};
|
|
619
|
-
const
|
|
619
|
+
const se_GetAccessKeyInfoRequest = (input, context) => {
|
|
620
620
|
const entries = {};
|
|
621
621
|
if (input.AccessKeyId != null) {
|
|
622
622
|
entries["AccessKeyId"] = input.AccessKeyId;
|
|
623
623
|
}
|
|
624
624
|
return entries;
|
|
625
625
|
};
|
|
626
|
-
const
|
|
626
|
+
const se_GetCallerIdentityRequest = (input, context) => {
|
|
627
627
|
const entries = {};
|
|
628
628
|
return entries;
|
|
629
629
|
};
|
|
630
|
-
const
|
|
630
|
+
const se_GetFederationTokenRequest = (input, context) => {
|
|
631
631
|
const entries = {};
|
|
632
632
|
if (input.Name != null) {
|
|
633
633
|
entries["Name"] = input.Name;
|
|
@@ -636,7 +636,7 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
|
|
|
636
636
|
entries["Policy"] = input.Policy;
|
|
637
637
|
}
|
|
638
638
|
if (input.PolicyArns != null) {
|
|
639
|
-
const memberEntries =
|
|
639
|
+
const memberEntries = se_policyDescriptorListType(input.PolicyArns, context);
|
|
640
640
|
if (input.PolicyArns?.length === 0) {
|
|
641
641
|
entries.PolicyArns = [];
|
|
642
642
|
}
|
|
@@ -649,7 +649,7 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
|
|
|
649
649
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
650
650
|
}
|
|
651
651
|
if (input.Tags != null) {
|
|
652
|
-
const memberEntries =
|
|
652
|
+
const memberEntries = se_tagListType(input.Tags, context);
|
|
653
653
|
if (input.Tags?.length === 0) {
|
|
654
654
|
entries.Tags = [];
|
|
655
655
|
}
|
|
@@ -660,7 +660,7 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
|
|
|
660
660
|
}
|
|
661
661
|
return entries;
|
|
662
662
|
};
|
|
663
|
-
const
|
|
663
|
+
const se_GetSessionTokenRequest = (input, context) => {
|
|
664
664
|
const entries = {};
|
|
665
665
|
if (input.DurationSeconds != null) {
|
|
666
666
|
entries["DurationSeconds"] = input.DurationSeconds;
|
|
@@ -673,14 +673,14 @@ const serializeAws_queryGetSessionTokenRequest = (input, context) => {
|
|
|
673
673
|
}
|
|
674
674
|
return entries;
|
|
675
675
|
};
|
|
676
|
-
const
|
|
676
|
+
const se_policyDescriptorListType = (input, context) => {
|
|
677
677
|
const entries = {};
|
|
678
678
|
let counter = 1;
|
|
679
679
|
for (const entry of input) {
|
|
680
680
|
if (entry === null) {
|
|
681
681
|
continue;
|
|
682
682
|
}
|
|
683
|
-
const memberEntries =
|
|
683
|
+
const memberEntries = se_PolicyDescriptorType(entry, context);
|
|
684
684
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
685
685
|
entries[`member.${counter}.${key}`] = value;
|
|
686
686
|
});
|
|
@@ -688,14 +688,14 @@ const serializeAws_querypolicyDescriptorListType = (input, context) => {
|
|
|
688
688
|
}
|
|
689
689
|
return entries;
|
|
690
690
|
};
|
|
691
|
-
const
|
|
691
|
+
const se_PolicyDescriptorType = (input, context) => {
|
|
692
692
|
const entries = {};
|
|
693
693
|
if (input.arn != null) {
|
|
694
694
|
entries["arn"] = input.arn;
|
|
695
695
|
}
|
|
696
696
|
return entries;
|
|
697
697
|
};
|
|
698
|
-
const
|
|
698
|
+
const se_Tag = (input, context) => {
|
|
699
699
|
const entries = {};
|
|
700
700
|
if (input.Key != null) {
|
|
701
701
|
entries["Key"] = input.Key;
|
|
@@ -705,7 +705,7 @@ const serializeAws_queryTag = (input, context) => {
|
|
|
705
705
|
}
|
|
706
706
|
return entries;
|
|
707
707
|
};
|
|
708
|
-
const
|
|
708
|
+
const se_tagKeyListType = (input, context) => {
|
|
709
709
|
const entries = {};
|
|
710
710
|
let counter = 1;
|
|
711
711
|
for (const entry of input) {
|
|
@@ -717,14 +717,14 @@ const serializeAws_querytagKeyListType = (input, context) => {
|
|
|
717
717
|
}
|
|
718
718
|
return entries;
|
|
719
719
|
};
|
|
720
|
-
const
|
|
720
|
+
const se_tagListType = (input, context) => {
|
|
721
721
|
const entries = {};
|
|
722
722
|
let counter = 1;
|
|
723
723
|
for (const entry of input) {
|
|
724
724
|
if (entry === null) {
|
|
725
725
|
continue;
|
|
726
726
|
}
|
|
727
|
-
const memberEntries =
|
|
727
|
+
const memberEntries = se_Tag(entry, context);
|
|
728
728
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
729
729
|
entries[`member.${counter}.${key}`] = value;
|
|
730
730
|
});
|
|
@@ -732,7 +732,7 @@ const serializeAws_querytagListType = (input, context) => {
|
|
|
732
732
|
}
|
|
733
733
|
return entries;
|
|
734
734
|
};
|
|
735
|
-
const
|
|
735
|
+
const de_AssumedRoleUser = (output, context) => {
|
|
736
736
|
const contents = {};
|
|
737
737
|
if (output["AssumedRoleId"] !== undefined) {
|
|
738
738
|
contents.AssumedRoleId = (0, smithy_client_1.expectString)(output["AssumedRoleId"]);
|
|
@@ -742,13 +742,13 @@ const deserializeAws_queryAssumedRoleUser = (output, context) => {
|
|
|
742
742
|
}
|
|
743
743
|
return contents;
|
|
744
744
|
};
|
|
745
|
-
const
|
|
745
|
+
const de_AssumeRoleResponse = (output, context) => {
|
|
746
746
|
const contents = {};
|
|
747
747
|
if (output["Credentials"] !== undefined) {
|
|
748
|
-
contents.Credentials =
|
|
748
|
+
contents.Credentials = de_Credentials(output["Credentials"], context);
|
|
749
749
|
}
|
|
750
750
|
if (output["AssumedRoleUser"] !== undefined) {
|
|
751
|
-
contents.AssumedRoleUser =
|
|
751
|
+
contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context);
|
|
752
752
|
}
|
|
753
753
|
if (output["PackedPolicySize"] !== undefined) {
|
|
754
754
|
contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
|
|
@@ -758,13 +758,13 @@ const deserializeAws_queryAssumeRoleResponse = (output, context) => {
|
|
|
758
758
|
}
|
|
759
759
|
return contents;
|
|
760
760
|
};
|
|
761
|
-
const
|
|
761
|
+
const de_AssumeRoleWithSAMLResponse = (output, context) => {
|
|
762
762
|
const contents = {};
|
|
763
763
|
if (output["Credentials"] !== undefined) {
|
|
764
|
-
contents.Credentials =
|
|
764
|
+
contents.Credentials = de_Credentials(output["Credentials"], context);
|
|
765
765
|
}
|
|
766
766
|
if (output["AssumedRoleUser"] !== undefined) {
|
|
767
|
-
contents.AssumedRoleUser =
|
|
767
|
+
contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context);
|
|
768
768
|
}
|
|
769
769
|
if (output["PackedPolicySize"] !== undefined) {
|
|
770
770
|
contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
|
|
@@ -789,16 +789,16 @@ const deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => {
|
|
|
789
789
|
}
|
|
790
790
|
return contents;
|
|
791
791
|
};
|
|
792
|
-
const
|
|
792
|
+
const de_AssumeRoleWithWebIdentityResponse = (output, context) => {
|
|
793
793
|
const contents = {};
|
|
794
794
|
if (output["Credentials"] !== undefined) {
|
|
795
|
-
contents.Credentials =
|
|
795
|
+
contents.Credentials = de_Credentials(output["Credentials"], context);
|
|
796
796
|
}
|
|
797
797
|
if (output["SubjectFromWebIdentityToken"] !== undefined) {
|
|
798
798
|
contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output["SubjectFromWebIdentityToken"]);
|
|
799
799
|
}
|
|
800
800
|
if (output["AssumedRoleUser"] !== undefined) {
|
|
801
|
-
contents.AssumedRoleUser =
|
|
801
|
+
contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context);
|
|
802
802
|
}
|
|
803
803
|
if (output["PackedPolicySize"] !== undefined) {
|
|
804
804
|
contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
|
|
@@ -814,7 +814,7 @@ const deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context)
|
|
|
814
814
|
}
|
|
815
815
|
return contents;
|
|
816
816
|
};
|
|
817
|
-
const
|
|
817
|
+
const de_Credentials = (output, context) => {
|
|
818
818
|
const contents = {};
|
|
819
819
|
if (output["AccessKeyId"] !== undefined) {
|
|
820
820
|
contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]);
|
|
@@ -830,21 +830,21 @@ const deserializeAws_queryCredentials = (output, context) => {
|
|
|
830
830
|
}
|
|
831
831
|
return contents;
|
|
832
832
|
};
|
|
833
|
-
const
|
|
833
|
+
const de_DecodeAuthorizationMessageResponse = (output, context) => {
|
|
834
834
|
const contents = {};
|
|
835
835
|
if (output["DecodedMessage"] !== undefined) {
|
|
836
836
|
contents.DecodedMessage = (0, smithy_client_1.expectString)(output["DecodedMessage"]);
|
|
837
837
|
}
|
|
838
838
|
return contents;
|
|
839
839
|
};
|
|
840
|
-
const
|
|
840
|
+
const de_ExpiredTokenException = (output, context) => {
|
|
841
841
|
const contents = {};
|
|
842
842
|
if (output["message"] !== undefined) {
|
|
843
843
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
844
844
|
}
|
|
845
845
|
return contents;
|
|
846
846
|
};
|
|
847
|
-
const
|
|
847
|
+
const de_FederatedUser = (output, context) => {
|
|
848
848
|
const contents = {};
|
|
849
849
|
if (output["FederatedUserId"] !== undefined) {
|
|
850
850
|
contents.FederatedUserId = (0, smithy_client_1.expectString)(output["FederatedUserId"]);
|
|
@@ -854,14 +854,14 @@ const deserializeAws_queryFederatedUser = (output, context) => {
|
|
|
854
854
|
}
|
|
855
855
|
return contents;
|
|
856
856
|
};
|
|
857
|
-
const
|
|
857
|
+
const de_GetAccessKeyInfoResponse = (output, context) => {
|
|
858
858
|
const contents = {};
|
|
859
859
|
if (output["Account"] !== undefined) {
|
|
860
860
|
contents.Account = (0, smithy_client_1.expectString)(output["Account"]);
|
|
861
861
|
}
|
|
862
862
|
return contents;
|
|
863
863
|
};
|
|
864
|
-
const
|
|
864
|
+
const de_GetCallerIdentityResponse = (output, context) => {
|
|
865
865
|
const contents = {};
|
|
866
866
|
if (output["UserId"] !== undefined) {
|
|
867
867
|
contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]);
|
|
@@ -874,69 +874,69 @@ const deserializeAws_queryGetCallerIdentityResponse = (output, context) => {
|
|
|
874
874
|
}
|
|
875
875
|
return contents;
|
|
876
876
|
};
|
|
877
|
-
const
|
|
877
|
+
const de_GetFederationTokenResponse = (output, context) => {
|
|
878
878
|
const contents = {};
|
|
879
879
|
if (output["Credentials"] !== undefined) {
|
|
880
|
-
contents.Credentials =
|
|
880
|
+
contents.Credentials = de_Credentials(output["Credentials"], context);
|
|
881
881
|
}
|
|
882
882
|
if (output["FederatedUser"] !== undefined) {
|
|
883
|
-
contents.FederatedUser =
|
|
883
|
+
contents.FederatedUser = de_FederatedUser(output["FederatedUser"], context);
|
|
884
884
|
}
|
|
885
885
|
if (output["PackedPolicySize"] !== undefined) {
|
|
886
886
|
contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
|
|
887
887
|
}
|
|
888
888
|
return contents;
|
|
889
889
|
};
|
|
890
|
-
const
|
|
890
|
+
const de_GetSessionTokenResponse = (output, context) => {
|
|
891
891
|
const contents = {};
|
|
892
892
|
if (output["Credentials"] !== undefined) {
|
|
893
|
-
contents.Credentials =
|
|
893
|
+
contents.Credentials = de_Credentials(output["Credentials"], context);
|
|
894
894
|
}
|
|
895
895
|
return contents;
|
|
896
896
|
};
|
|
897
|
-
const
|
|
897
|
+
const de_IDPCommunicationErrorException = (output, context) => {
|
|
898
898
|
const contents = {};
|
|
899
899
|
if (output["message"] !== undefined) {
|
|
900
900
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
901
901
|
}
|
|
902
902
|
return contents;
|
|
903
903
|
};
|
|
904
|
-
const
|
|
904
|
+
const de_IDPRejectedClaimException = (output, context) => {
|
|
905
905
|
const contents = {};
|
|
906
906
|
if (output["message"] !== undefined) {
|
|
907
907
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
908
908
|
}
|
|
909
909
|
return contents;
|
|
910
910
|
};
|
|
911
|
-
const
|
|
911
|
+
const de_InvalidAuthorizationMessageException = (output, context) => {
|
|
912
912
|
const contents = {};
|
|
913
913
|
if (output["message"] !== undefined) {
|
|
914
914
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
915
915
|
}
|
|
916
916
|
return contents;
|
|
917
917
|
};
|
|
918
|
-
const
|
|
918
|
+
const de_InvalidIdentityTokenException = (output, context) => {
|
|
919
919
|
const contents = {};
|
|
920
920
|
if (output["message"] !== undefined) {
|
|
921
921
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
922
922
|
}
|
|
923
923
|
return contents;
|
|
924
924
|
};
|
|
925
|
-
const
|
|
925
|
+
const de_MalformedPolicyDocumentException = (output, context) => {
|
|
926
926
|
const contents = {};
|
|
927
927
|
if (output["message"] !== undefined) {
|
|
928
928
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
929
929
|
}
|
|
930
930
|
return contents;
|
|
931
931
|
};
|
|
932
|
-
const
|
|
932
|
+
const de_PackedPolicyTooLargeException = (output, context) => {
|
|
933
933
|
const contents = {};
|
|
934
934
|
if (output["message"] !== undefined) {
|
|
935
935
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|
|
936
936
|
}
|
|
937
937
|
return contents;
|
|
938
938
|
};
|
|
939
|
-
const
|
|
939
|
+
const de_RegionDisabledException = (output, context) => {
|
|
940
940
|
const contents = {};
|
|
941
941
|
if (output["message"] !== undefined) {
|
|
942
942
|
contents.message = (0, smithy_client_1.expectString)(output["message"]);
|