@aws-sdk/client-sts 3.33.0 → 3.34.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/CHANGELOG.md +11 -0
- package/dist/cjs/package.json +38 -38
- package/dist/es/STS.js +1 -8
- package/dist/es/STS.js.map +1 -1
- package/dist/es/STSClient.js +1 -13
- package/dist/es/STSClient.js.map +1 -1
- package/dist/es/commands/AssumeRoleCommand.js +2 -110
- package/dist/es/commands/AssumeRoleCommand.js.map +1 -1
- package/dist/es/commands/AssumeRoleWithSAMLCommand.js +2 -158
- package/dist/es/commands/AssumeRoleWithSAMLCommand.js.map +1 -1
- package/dist/es/commands/AssumeRoleWithWebIdentityCommand.js +2 -162
- package/dist/es/commands/AssumeRoleWithWebIdentityCommand.js.map +1 -1
- package/dist/es/commands/DecodeAuthorizationMessageCommand.js +2 -62
- package/dist/es/commands/DecodeAuthorizationMessageCommand.js.map +1 -1
- package/dist/es/commands/GetAccessKeyInfoCommand.js +2 -44
- package/dist/es/commands/GetAccessKeyInfoCommand.js.map +1 -1
- package/dist/es/commands/GetCallerIdentityCommand.js +2 -36
- package/dist/es/commands/GetCallerIdentityCommand.js.map +1 -1
- package/dist/es/commands/GetFederationTokenCommand.js +2 -165
- package/dist/es/commands/GetFederationTokenCommand.js.map +1 -1
- package/dist/es/commands/GetSessionTokenCommand.js +2 -78
- package/dist/es/commands/GetSessionTokenCommand.js.map +1 -1
- package/dist/es/defaultRoleAssumers.js +0 -16
- package/dist/es/defaultRoleAssumers.js.map +1 -1
- package/dist/es/defaultRoleAssumers.spec.js +9 -14
- package/dist/es/defaultRoleAssumers.spec.js.map +1 -1
- package/dist/es/defaultStsRoleAssumers.js +10 -31
- package/dist/es/defaultStsRoleAssumers.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -87
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +38 -38
- package/dist/es/protocols/Aws_query.js +152 -154
- package/dist/es/protocols/Aws_query.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/package.json +38 -38
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +4 -5
- package/tsconfig.types.json +8 -0
|
@@ -10,7 +10,7 @@ export var serializeAws_queryAssumeRoleCommand = function (input, context) { ret
|
|
|
10
10
|
"content-type": "application/x-www-form-urlencoded",
|
|
11
11
|
};
|
|
12
12
|
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryAssumeRoleRequest(input, context)), { Action: "AssumeRole", Version: "2011-06-15" }));
|
|
13
|
-
return [2
|
|
13
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
14
14
|
});
|
|
15
15
|
}); };
|
|
16
16
|
export var serializeAws_queryAssumeRoleWithSAMLCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_queryAssumeRoleWithSAMLCommand = function (input, contex
|
|
|
20
20
|
"content-type": "application/x-www-form-urlencoded",
|
|
21
21
|
};
|
|
22
22
|
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryAssumeRoleWithSAMLRequest(input, context)), { Action: "AssumeRoleWithSAML", Version: "2011-06-15" }));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_queryAssumeRoleWithWebIdentityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -30,7 +30,7 @@ export var serializeAws_queryAssumeRoleWithWebIdentityCommand = function (input,
|
|
|
30
30
|
"content-type": "application/x-www-form-urlencoded",
|
|
31
31
|
};
|
|
32
32
|
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryAssumeRoleWithWebIdentityRequest(input, context)), { Action: "AssumeRoleWithWebIdentity", Version: "2011-06-15" }));
|
|
33
|
-
return [2
|
|
33
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
34
34
|
});
|
|
35
35
|
}); };
|
|
36
36
|
export var serializeAws_queryDecodeAuthorizationMessageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -40,7 +40,7 @@ export var serializeAws_queryDecodeAuthorizationMessageCommand = function (input
|
|
|
40
40
|
"content-type": "application/x-www-form-urlencoded",
|
|
41
41
|
};
|
|
42
42
|
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryDecodeAuthorizationMessageRequest(input, context)), { Action: "DecodeAuthorizationMessage", Version: "2011-06-15" }));
|
|
43
|
-
return [2
|
|
43
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
44
44
|
});
|
|
45
45
|
}); };
|
|
46
46
|
export var serializeAws_queryGetAccessKeyInfoCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -50,7 +50,7 @@ export var serializeAws_queryGetAccessKeyInfoCommand = function (input, context)
|
|
|
50
50
|
"content-type": "application/x-www-form-urlencoded",
|
|
51
51
|
};
|
|
52
52
|
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryGetAccessKeyInfoRequest(input, context)), { Action: "GetAccessKeyInfo", Version: "2011-06-15" }));
|
|
53
|
-
return [2
|
|
53
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
54
54
|
});
|
|
55
55
|
}); };
|
|
56
56
|
export var serializeAws_queryGetCallerIdentityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -60,7 +60,7 @@ export var serializeAws_queryGetCallerIdentityCommand = function (input, context
|
|
|
60
60
|
"content-type": "application/x-www-form-urlencoded",
|
|
61
61
|
};
|
|
62
62
|
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryGetCallerIdentityRequest(input, context)), { Action: "GetCallerIdentity", Version: "2011-06-15" }));
|
|
63
|
-
return [2
|
|
63
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
64
64
|
});
|
|
65
65
|
}); };
|
|
66
66
|
export var serializeAws_queryGetFederationTokenCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -70,7 +70,7 @@ export var serializeAws_queryGetFederationTokenCommand = function (input, contex
|
|
|
70
70
|
"content-type": "application/x-www-form-urlencoded",
|
|
71
71
|
};
|
|
72
72
|
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryGetFederationTokenRequest(input, context)), { Action: "GetFederationToken", Version: "2011-06-15" }));
|
|
73
|
-
return [2
|
|
73
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
74
74
|
});
|
|
75
75
|
}); };
|
|
76
76
|
export var serializeAws_queryGetSessionTokenCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -80,7 +80,7 @@ export var serializeAws_queryGetSessionTokenCommand = function (input, context)
|
|
|
80
80
|
"content-type": "application/x-www-form-urlencoded",
|
|
81
81
|
};
|
|
82
82
|
body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_queryGetSessionTokenRequest(input, context)), { Action: "GetSessionToken", Version: "2011-06-15" }));
|
|
83
|
-
return [2
|
|
83
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
84
84
|
});
|
|
85
85
|
}); };
|
|
86
86
|
export var deserializeAws_queryAssumeRoleCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -89,15 +89,15 @@ export var deserializeAws_queryAssumeRoleCommand = function (output, context) {
|
|
|
89
89
|
switch (_a.label) {
|
|
90
90
|
case 0:
|
|
91
91
|
if (output.statusCode >= 300) {
|
|
92
|
-
return [2
|
|
92
|
+
return [2, deserializeAws_queryAssumeRoleCommandError(output, context)];
|
|
93
93
|
}
|
|
94
|
-
return [4
|
|
94
|
+
return [4, parseBody(output.body, context)];
|
|
95
95
|
case 1:
|
|
96
96
|
data = _a.sent();
|
|
97
97
|
contents = {};
|
|
98
98
|
contents = deserializeAws_queryAssumeRoleResponse(data.AssumeRoleResult, context);
|
|
99
99
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
100
|
-
return [2
|
|
100
|
+
return [2, Promise.resolve(response)];
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
}); };
|
|
@@ -109,47 +109,47 @@ var deserializeAws_queryAssumeRoleCommandError = function (output, context) { re
|
|
|
109
109
|
case 0:
|
|
110
110
|
_a = [__assign({}, output)];
|
|
111
111
|
_g = {};
|
|
112
|
-
return [4
|
|
112
|
+
return [4, parseBody(output.body, context)];
|
|
113
113
|
case 1:
|
|
114
114
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
115
115
|
errorCode = "UnknownError";
|
|
116
116
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
117
117
|
_b = errorCode;
|
|
118
118
|
switch (_b) {
|
|
119
|
-
case "ExpiredTokenException": return [3
|
|
120
|
-
case "com.amazonaws.sts#ExpiredTokenException": return [3
|
|
121
|
-
case "MalformedPolicyDocumentException": return [3
|
|
122
|
-
case "com.amazonaws.sts#MalformedPolicyDocumentException": return [3
|
|
123
|
-
case "PackedPolicyTooLargeException": return [3
|
|
124
|
-
case "com.amazonaws.sts#PackedPolicyTooLargeException": return [3
|
|
125
|
-
case "RegionDisabledException": return [3
|
|
126
|
-
case "com.amazonaws.sts#RegionDisabledException": return [3
|
|
119
|
+
case "ExpiredTokenException": return [3, 2];
|
|
120
|
+
case "com.amazonaws.sts#ExpiredTokenException": return [3, 2];
|
|
121
|
+
case "MalformedPolicyDocumentException": return [3, 4];
|
|
122
|
+
case "com.amazonaws.sts#MalformedPolicyDocumentException": return [3, 4];
|
|
123
|
+
case "PackedPolicyTooLargeException": return [3, 6];
|
|
124
|
+
case "com.amazonaws.sts#PackedPolicyTooLargeException": return [3, 6];
|
|
125
|
+
case "RegionDisabledException": return [3, 8];
|
|
126
|
+
case "com.amazonaws.sts#RegionDisabledException": return [3, 8];
|
|
127
127
|
}
|
|
128
|
-
return [3
|
|
128
|
+
return [3, 10];
|
|
129
129
|
case 2:
|
|
130
130
|
_c = [{}];
|
|
131
|
-
return [4
|
|
131
|
+
return [4, deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context)];
|
|
132
132
|
case 3:
|
|
133
133
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
134
|
-
return [3
|
|
134
|
+
return [3, 11];
|
|
135
135
|
case 4:
|
|
136
136
|
_d = [{}];
|
|
137
|
-
return [4
|
|
137
|
+
return [4, deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context)];
|
|
138
138
|
case 5:
|
|
139
139
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
140
|
-
return [3
|
|
140
|
+
return [3, 11];
|
|
141
141
|
case 6:
|
|
142
142
|
_e = [{}];
|
|
143
|
-
return [4
|
|
143
|
+
return [4, deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context)];
|
|
144
144
|
case 7:
|
|
145
145
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
146
|
-
return [3
|
|
146
|
+
return [3, 11];
|
|
147
147
|
case 8:
|
|
148
148
|
_f = [{}];
|
|
149
|
-
return [4
|
|
149
|
+
return [4, deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context)];
|
|
150
150
|
case 9:
|
|
151
151
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
152
|
-
return [3
|
|
152
|
+
return [3, 11];
|
|
153
153
|
case 10:
|
|
154
154
|
parsedBody = parsedOutput.body;
|
|
155
155
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -159,7 +159,7 @@ var deserializeAws_queryAssumeRoleCommandError = function (output, context) { re
|
|
|
159
159
|
message = response.message || response.Message || errorCode;
|
|
160
160
|
response.message = message;
|
|
161
161
|
delete response.Message;
|
|
162
|
-
return [2
|
|
162
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
}); };
|
|
@@ -169,15 +169,15 @@ export var deserializeAws_queryAssumeRoleWithSAMLCommand = function (output, con
|
|
|
169
169
|
switch (_a.label) {
|
|
170
170
|
case 0:
|
|
171
171
|
if (output.statusCode >= 300) {
|
|
172
|
-
return [2
|
|
172
|
+
return [2, deserializeAws_queryAssumeRoleWithSAMLCommandError(output, context)];
|
|
173
173
|
}
|
|
174
|
-
return [4
|
|
174
|
+
return [4, parseBody(output.body, context)];
|
|
175
175
|
case 1:
|
|
176
176
|
data = _a.sent();
|
|
177
177
|
contents = {};
|
|
178
178
|
contents = deserializeAws_queryAssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context);
|
|
179
179
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
180
|
-
return [2
|
|
180
|
+
return [2, Promise.resolve(response)];
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
}); };
|
|
@@ -189,63 +189,63 @@ var deserializeAws_queryAssumeRoleWithSAMLCommandError = function (output, conte
|
|
|
189
189
|
case 0:
|
|
190
190
|
_a = [__assign({}, output)];
|
|
191
191
|
_j = {};
|
|
192
|
-
return [4
|
|
192
|
+
return [4, parseBody(output.body, context)];
|
|
193
193
|
case 1:
|
|
194
194
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
195
195
|
errorCode = "UnknownError";
|
|
196
196
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
197
197
|
_b = errorCode;
|
|
198
198
|
switch (_b) {
|
|
199
|
-
case "ExpiredTokenException": return [3
|
|
200
|
-
case "com.amazonaws.sts#ExpiredTokenException": return [3
|
|
201
|
-
case "IDPRejectedClaimException": return [3
|
|
202
|
-
case "com.amazonaws.sts#IDPRejectedClaimException": return [3
|
|
203
|
-
case "InvalidIdentityTokenException": return [3
|
|
204
|
-
case "com.amazonaws.sts#InvalidIdentityTokenException": return [3
|
|
205
|
-
case "MalformedPolicyDocumentException": return [3
|
|
206
|
-
case "com.amazonaws.sts#MalformedPolicyDocumentException": return [3
|
|
207
|
-
case "PackedPolicyTooLargeException": return [3
|
|
208
|
-
case "com.amazonaws.sts#PackedPolicyTooLargeException": return [3
|
|
209
|
-
case "RegionDisabledException": return [3
|
|
210
|
-
case "com.amazonaws.sts#RegionDisabledException": return [3
|
|
199
|
+
case "ExpiredTokenException": return [3, 2];
|
|
200
|
+
case "com.amazonaws.sts#ExpiredTokenException": return [3, 2];
|
|
201
|
+
case "IDPRejectedClaimException": return [3, 4];
|
|
202
|
+
case "com.amazonaws.sts#IDPRejectedClaimException": return [3, 4];
|
|
203
|
+
case "InvalidIdentityTokenException": return [3, 6];
|
|
204
|
+
case "com.amazonaws.sts#InvalidIdentityTokenException": return [3, 6];
|
|
205
|
+
case "MalformedPolicyDocumentException": return [3, 8];
|
|
206
|
+
case "com.amazonaws.sts#MalformedPolicyDocumentException": return [3, 8];
|
|
207
|
+
case "PackedPolicyTooLargeException": return [3, 10];
|
|
208
|
+
case "com.amazonaws.sts#PackedPolicyTooLargeException": return [3, 10];
|
|
209
|
+
case "RegionDisabledException": return [3, 12];
|
|
210
|
+
case "com.amazonaws.sts#RegionDisabledException": return [3, 12];
|
|
211
211
|
}
|
|
212
|
-
return [3
|
|
212
|
+
return [3, 14];
|
|
213
213
|
case 2:
|
|
214
214
|
_c = [{}];
|
|
215
|
-
return [4
|
|
215
|
+
return [4, deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context)];
|
|
216
216
|
case 3:
|
|
217
217
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
218
|
-
return [3
|
|
218
|
+
return [3, 15];
|
|
219
219
|
case 4:
|
|
220
220
|
_d = [{}];
|
|
221
|
-
return [4
|
|
221
|
+
return [4, deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context)];
|
|
222
222
|
case 5:
|
|
223
223
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
224
|
-
return [3
|
|
224
|
+
return [3, 15];
|
|
225
225
|
case 6:
|
|
226
226
|
_e = [{}];
|
|
227
|
-
return [4
|
|
227
|
+
return [4, deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context)];
|
|
228
228
|
case 7:
|
|
229
229
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
230
|
-
return [3
|
|
230
|
+
return [3, 15];
|
|
231
231
|
case 8:
|
|
232
232
|
_f = [{}];
|
|
233
|
-
return [4
|
|
233
|
+
return [4, deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context)];
|
|
234
234
|
case 9:
|
|
235
235
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
236
|
-
return [3
|
|
236
|
+
return [3, 15];
|
|
237
237
|
case 10:
|
|
238
238
|
_g = [{}];
|
|
239
|
-
return [4
|
|
239
|
+
return [4, deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context)];
|
|
240
240
|
case 11:
|
|
241
241
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
242
|
-
return [3
|
|
242
|
+
return [3, 15];
|
|
243
243
|
case 12:
|
|
244
244
|
_h = [{}];
|
|
245
|
-
return [4
|
|
245
|
+
return [4, deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context)];
|
|
246
246
|
case 13:
|
|
247
247
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
248
|
-
return [3
|
|
248
|
+
return [3, 15];
|
|
249
249
|
case 14:
|
|
250
250
|
parsedBody = parsedOutput.body;
|
|
251
251
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -255,7 +255,7 @@ var deserializeAws_queryAssumeRoleWithSAMLCommandError = function (output, conte
|
|
|
255
255
|
message = response.message || response.Message || errorCode;
|
|
256
256
|
response.message = message;
|
|
257
257
|
delete response.Message;
|
|
258
|
-
return [2
|
|
258
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
261
|
}); };
|
|
@@ -265,15 +265,15 @@ export var deserializeAws_queryAssumeRoleWithWebIdentityCommand = function (outp
|
|
|
265
265
|
switch (_a.label) {
|
|
266
266
|
case 0:
|
|
267
267
|
if (output.statusCode >= 300) {
|
|
268
|
-
return [2
|
|
268
|
+
return [2, deserializeAws_queryAssumeRoleWithWebIdentityCommandError(output, context)];
|
|
269
269
|
}
|
|
270
|
-
return [4
|
|
270
|
+
return [4, parseBody(output.body, context)];
|
|
271
271
|
case 1:
|
|
272
272
|
data = _a.sent();
|
|
273
273
|
contents = {};
|
|
274
274
|
contents = deserializeAws_queryAssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context);
|
|
275
275
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
276
|
-
return [2
|
|
276
|
+
return [2, Promise.resolve(response)];
|
|
277
277
|
}
|
|
278
278
|
});
|
|
279
279
|
}); };
|
|
@@ -285,71 +285,71 @@ var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = function (output
|
|
|
285
285
|
case 0:
|
|
286
286
|
_a = [__assign({}, output)];
|
|
287
287
|
_k = {};
|
|
288
|
-
return [4
|
|
288
|
+
return [4, parseBody(output.body, context)];
|
|
289
289
|
case 1:
|
|
290
290
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
291
291
|
errorCode = "UnknownError";
|
|
292
292
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
293
293
|
_b = errorCode;
|
|
294
294
|
switch (_b) {
|
|
295
|
-
case "ExpiredTokenException": return [3
|
|
296
|
-
case "com.amazonaws.sts#ExpiredTokenException": return [3
|
|
297
|
-
case "IDPCommunicationErrorException": return [3
|
|
298
|
-
case "com.amazonaws.sts#IDPCommunicationErrorException": return [3
|
|
299
|
-
case "IDPRejectedClaimException": return [3
|
|
300
|
-
case "com.amazonaws.sts#IDPRejectedClaimException": return [3
|
|
301
|
-
case "InvalidIdentityTokenException": return [3
|
|
302
|
-
case "com.amazonaws.sts#InvalidIdentityTokenException": return [3
|
|
303
|
-
case "MalformedPolicyDocumentException": return [3
|
|
304
|
-
case "com.amazonaws.sts#MalformedPolicyDocumentException": return [3
|
|
305
|
-
case "PackedPolicyTooLargeException": return [3
|
|
306
|
-
case "com.amazonaws.sts#PackedPolicyTooLargeException": return [3
|
|
307
|
-
case "RegionDisabledException": return [3
|
|
308
|
-
case "com.amazonaws.sts#RegionDisabledException": return [3
|
|
295
|
+
case "ExpiredTokenException": return [3, 2];
|
|
296
|
+
case "com.amazonaws.sts#ExpiredTokenException": return [3, 2];
|
|
297
|
+
case "IDPCommunicationErrorException": return [3, 4];
|
|
298
|
+
case "com.amazonaws.sts#IDPCommunicationErrorException": return [3, 4];
|
|
299
|
+
case "IDPRejectedClaimException": return [3, 6];
|
|
300
|
+
case "com.amazonaws.sts#IDPRejectedClaimException": return [3, 6];
|
|
301
|
+
case "InvalidIdentityTokenException": return [3, 8];
|
|
302
|
+
case "com.amazonaws.sts#InvalidIdentityTokenException": return [3, 8];
|
|
303
|
+
case "MalformedPolicyDocumentException": return [3, 10];
|
|
304
|
+
case "com.amazonaws.sts#MalformedPolicyDocumentException": return [3, 10];
|
|
305
|
+
case "PackedPolicyTooLargeException": return [3, 12];
|
|
306
|
+
case "com.amazonaws.sts#PackedPolicyTooLargeException": return [3, 12];
|
|
307
|
+
case "RegionDisabledException": return [3, 14];
|
|
308
|
+
case "com.amazonaws.sts#RegionDisabledException": return [3, 14];
|
|
309
309
|
}
|
|
310
|
-
return [3
|
|
310
|
+
return [3, 16];
|
|
311
311
|
case 2:
|
|
312
312
|
_c = [{}];
|
|
313
|
-
return [4
|
|
313
|
+
return [4, deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context)];
|
|
314
314
|
case 3:
|
|
315
315
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
316
|
-
return [3
|
|
316
|
+
return [3, 17];
|
|
317
317
|
case 4:
|
|
318
318
|
_d = [{}];
|
|
319
|
-
return [4
|
|
319
|
+
return [4, deserializeAws_queryIDPCommunicationErrorExceptionResponse(parsedOutput, context)];
|
|
320
320
|
case 5:
|
|
321
321
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
322
|
-
return [3
|
|
322
|
+
return [3, 17];
|
|
323
323
|
case 6:
|
|
324
324
|
_e = [{}];
|
|
325
|
-
return [4
|
|
325
|
+
return [4, deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context)];
|
|
326
326
|
case 7:
|
|
327
327
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
328
|
-
return [3
|
|
328
|
+
return [3, 17];
|
|
329
329
|
case 8:
|
|
330
330
|
_f = [{}];
|
|
331
|
-
return [4
|
|
331
|
+
return [4, deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context)];
|
|
332
332
|
case 9:
|
|
333
333
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
334
|
-
return [3
|
|
334
|
+
return [3, 17];
|
|
335
335
|
case 10:
|
|
336
336
|
_g = [{}];
|
|
337
|
-
return [4
|
|
337
|
+
return [4, deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context)];
|
|
338
338
|
case 11:
|
|
339
339
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
340
|
-
return [3
|
|
340
|
+
return [3, 17];
|
|
341
341
|
case 12:
|
|
342
342
|
_h = [{}];
|
|
343
|
-
return [4
|
|
343
|
+
return [4, deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context)];
|
|
344
344
|
case 13:
|
|
345
345
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
346
|
-
return [3
|
|
346
|
+
return [3, 17];
|
|
347
347
|
case 14:
|
|
348
348
|
_j = [{}];
|
|
349
|
-
return [4
|
|
349
|
+
return [4, deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context)];
|
|
350
350
|
case 15:
|
|
351
351
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
352
|
-
return [3
|
|
352
|
+
return [3, 17];
|
|
353
353
|
case 16:
|
|
354
354
|
parsedBody = parsedOutput.body;
|
|
355
355
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -359,7 +359,7 @@ var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = function (output
|
|
|
359
359
|
message = response.message || response.Message || errorCode;
|
|
360
360
|
response.message = message;
|
|
361
361
|
delete response.Message;
|
|
362
|
-
return [2
|
|
362
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
365
|
}); };
|
|
@@ -369,15 +369,15 @@ export var deserializeAws_queryDecodeAuthorizationMessageCommand = function (out
|
|
|
369
369
|
switch (_a.label) {
|
|
370
370
|
case 0:
|
|
371
371
|
if (output.statusCode >= 300) {
|
|
372
|
-
return [2
|
|
372
|
+
return [2, deserializeAws_queryDecodeAuthorizationMessageCommandError(output, context)];
|
|
373
373
|
}
|
|
374
|
-
return [4
|
|
374
|
+
return [4, parseBody(output.body, context)];
|
|
375
375
|
case 1:
|
|
376
376
|
data = _a.sent();
|
|
377
377
|
contents = {};
|
|
378
378
|
contents = deserializeAws_queryDecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context);
|
|
379
379
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
380
|
-
return [2
|
|
380
|
+
return [2, Promise.resolve(response)];
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
383
|
}); };
|
|
@@ -389,23 +389,23 @@ var deserializeAws_queryDecodeAuthorizationMessageCommandError = function (outpu
|
|
|
389
389
|
case 0:
|
|
390
390
|
_a = [__assign({}, output)];
|
|
391
391
|
_d = {};
|
|
392
|
-
return [4
|
|
392
|
+
return [4, parseBody(output.body, context)];
|
|
393
393
|
case 1:
|
|
394
394
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
395
395
|
errorCode = "UnknownError";
|
|
396
396
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
397
397
|
_b = errorCode;
|
|
398
398
|
switch (_b) {
|
|
399
|
-
case "InvalidAuthorizationMessageException": return [3
|
|
400
|
-
case "com.amazonaws.sts#InvalidAuthorizationMessageException": return [3
|
|
399
|
+
case "InvalidAuthorizationMessageException": return [3, 2];
|
|
400
|
+
case "com.amazonaws.sts#InvalidAuthorizationMessageException": return [3, 2];
|
|
401
401
|
}
|
|
402
|
-
return [3
|
|
402
|
+
return [3, 4];
|
|
403
403
|
case 2:
|
|
404
404
|
_c = [{}];
|
|
405
|
-
return [4
|
|
405
|
+
return [4, deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context)];
|
|
406
406
|
case 3:
|
|
407
407
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
408
|
-
return [3
|
|
408
|
+
return [3, 5];
|
|
409
409
|
case 4:
|
|
410
410
|
parsedBody = parsedOutput.body;
|
|
411
411
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -415,7 +415,7 @@ var deserializeAws_queryDecodeAuthorizationMessageCommandError = function (outpu
|
|
|
415
415
|
message = response.message || response.Message || errorCode;
|
|
416
416
|
response.message = message;
|
|
417
417
|
delete response.Message;
|
|
418
|
-
return [2
|
|
418
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
419
419
|
}
|
|
420
420
|
});
|
|
421
421
|
}); };
|
|
@@ -425,15 +425,15 @@ export var deserializeAws_queryGetAccessKeyInfoCommand = function (output, conte
|
|
|
425
425
|
switch (_a.label) {
|
|
426
426
|
case 0:
|
|
427
427
|
if (output.statusCode >= 300) {
|
|
428
|
-
return [2
|
|
428
|
+
return [2, deserializeAws_queryGetAccessKeyInfoCommandError(output, context)];
|
|
429
429
|
}
|
|
430
|
-
return [4
|
|
430
|
+
return [4, parseBody(output.body, context)];
|
|
431
431
|
case 1:
|
|
432
432
|
data = _a.sent();
|
|
433
433
|
contents = {};
|
|
434
434
|
contents = deserializeAws_queryGetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context);
|
|
435
435
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
436
|
-
return [2
|
|
436
|
+
return [2, Promise.resolve(response)];
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
}); };
|
|
@@ -445,7 +445,7 @@ var deserializeAws_queryGetAccessKeyInfoCommandError = function (output, context
|
|
|
445
445
|
case 0:
|
|
446
446
|
_a = [__assign({}, output)];
|
|
447
447
|
_b = {};
|
|
448
|
-
return [4
|
|
448
|
+
return [4, parseBody(output.body, context)];
|
|
449
449
|
case 1:
|
|
450
450
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
451
451
|
errorCode = "UnknownError";
|
|
@@ -459,7 +459,7 @@ var deserializeAws_queryGetAccessKeyInfoCommandError = function (output, context
|
|
|
459
459
|
message = response.message || response.Message || errorCode;
|
|
460
460
|
response.message = message;
|
|
461
461
|
delete response.Message;
|
|
462
|
-
return [2
|
|
462
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
465
|
}); };
|
|
@@ -469,15 +469,15 @@ export var deserializeAws_queryGetCallerIdentityCommand = function (output, cont
|
|
|
469
469
|
switch (_a.label) {
|
|
470
470
|
case 0:
|
|
471
471
|
if (output.statusCode >= 300) {
|
|
472
|
-
return [2
|
|
472
|
+
return [2, deserializeAws_queryGetCallerIdentityCommandError(output, context)];
|
|
473
473
|
}
|
|
474
|
-
return [4
|
|
474
|
+
return [4, parseBody(output.body, context)];
|
|
475
475
|
case 1:
|
|
476
476
|
data = _a.sent();
|
|
477
477
|
contents = {};
|
|
478
478
|
contents = deserializeAws_queryGetCallerIdentityResponse(data.GetCallerIdentityResult, context);
|
|
479
479
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
480
|
-
return [2
|
|
480
|
+
return [2, Promise.resolve(response)];
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
483
|
}); };
|
|
@@ -489,7 +489,7 @@ var deserializeAws_queryGetCallerIdentityCommandError = function (output, contex
|
|
|
489
489
|
case 0:
|
|
490
490
|
_a = [__assign({}, output)];
|
|
491
491
|
_b = {};
|
|
492
|
-
return [4
|
|
492
|
+
return [4, parseBody(output.body, context)];
|
|
493
493
|
case 1:
|
|
494
494
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
495
495
|
errorCode = "UnknownError";
|
|
@@ -503,7 +503,7 @@ var deserializeAws_queryGetCallerIdentityCommandError = function (output, contex
|
|
|
503
503
|
message = response.message || response.Message || errorCode;
|
|
504
504
|
response.message = message;
|
|
505
505
|
delete response.Message;
|
|
506
|
-
return [2
|
|
506
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
507
507
|
}
|
|
508
508
|
});
|
|
509
509
|
}); };
|
|
@@ -513,15 +513,15 @@ export var deserializeAws_queryGetFederationTokenCommand = function (output, con
|
|
|
513
513
|
switch (_a.label) {
|
|
514
514
|
case 0:
|
|
515
515
|
if (output.statusCode >= 300) {
|
|
516
|
-
return [2
|
|
516
|
+
return [2, deserializeAws_queryGetFederationTokenCommandError(output, context)];
|
|
517
517
|
}
|
|
518
|
-
return [4
|
|
518
|
+
return [4, parseBody(output.body, context)];
|
|
519
519
|
case 1:
|
|
520
520
|
data = _a.sent();
|
|
521
521
|
contents = {};
|
|
522
522
|
contents = deserializeAws_queryGetFederationTokenResponse(data.GetFederationTokenResult, context);
|
|
523
523
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
524
|
-
return [2
|
|
524
|
+
return [2, Promise.resolve(response)];
|
|
525
525
|
}
|
|
526
526
|
});
|
|
527
527
|
}); };
|
|
@@ -533,39 +533,39 @@ var deserializeAws_queryGetFederationTokenCommandError = function (output, conte
|
|
|
533
533
|
case 0:
|
|
534
534
|
_a = [__assign({}, output)];
|
|
535
535
|
_f = {};
|
|
536
|
-
return [4
|
|
536
|
+
return [4, parseBody(output.body, context)];
|
|
537
537
|
case 1:
|
|
538
538
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
539
539
|
errorCode = "UnknownError";
|
|
540
540
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
541
541
|
_b = errorCode;
|
|
542
542
|
switch (_b) {
|
|
543
|
-
case "MalformedPolicyDocumentException": return [3
|
|
544
|
-
case "com.amazonaws.sts#MalformedPolicyDocumentException": return [3
|
|
545
|
-
case "PackedPolicyTooLargeException": return [3
|
|
546
|
-
case "com.amazonaws.sts#PackedPolicyTooLargeException": return [3
|
|
547
|
-
case "RegionDisabledException": return [3
|
|
548
|
-
case "com.amazonaws.sts#RegionDisabledException": return [3
|
|
543
|
+
case "MalformedPolicyDocumentException": return [3, 2];
|
|
544
|
+
case "com.amazonaws.sts#MalformedPolicyDocumentException": return [3, 2];
|
|
545
|
+
case "PackedPolicyTooLargeException": return [3, 4];
|
|
546
|
+
case "com.amazonaws.sts#PackedPolicyTooLargeException": return [3, 4];
|
|
547
|
+
case "RegionDisabledException": return [3, 6];
|
|
548
|
+
case "com.amazonaws.sts#RegionDisabledException": return [3, 6];
|
|
549
549
|
}
|
|
550
|
-
return [3
|
|
550
|
+
return [3, 8];
|
|
551
551
|
case 2:
|
|
552
552
|
_c = [{}];
|
|
553
|
-
return [4
|
|
553
|
+
return [4, deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context)];
|
|
554
554
|
case 3:
|
|
555
555
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
556
|
-
return [3
|
|
556
|
+
return [3, 9];
|
|
557
557
|
case 4:
|
|
558
558
|
_d = [{}];
|
|
559
|
-
return [4
|
|
559
|
+
return [4, deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context)];
|
|
560
560
|
case 5:
|
|
561
561
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
562
|
-
return [3
|
|
562
|
+
return [3, 9];
|
|
563
563
|
case 6:
|
|
564
564
|
_e = [{}];
|
|
565
|
-
return [4
|
|
565
|
+
return [4, deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context)];
|
|
566
566
|
case 7:
|
|
567
567
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
568
|
-
return [3
|
|
568
|
+
return [3, 9];
|
|
569
569
|
case 8:
|
|
570
570
|
parsedBody = parsedOutput.body;
|
|
571
571
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -575,7 +575,7 @@ var deserializeAws_queryGetFederationTokenCommandError = function (output, conte
|
|
|
575
575
|
message = response.message || response.Message || errorCode;
|
|
576
576
|
response.message = message;
|
|
577
577
|
delete response.Message;
|
|
578
|
-
return [2
|
|
578
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
579
579
|
}
|
|
580
580
|
});
|
|
581
581
|
}); };
|
|
@@ -585,15 +585,15 @@ export var deserializeAws_queryGetSessionTokenCommand = function (output, contex
|
|
|
585
585
|
switch (_a.label) {
|
|
586
586
|
case 0:
|
|
587
587
|
if (output.statusCode >= 300) {
|
|
588
|
-
return [2
|
|
588
|
+
return [2, deserializeAws_queryGetSessionTokenCommandError(output, context)];
|
|
589
589
|
}
|
|
590
|
-
return [4
|
|
590
|
+
return [4, parseBody(output.body, context)];
|
|
591
591
|
case 1:
|
|
592
592
|
data = _a.sent();
|
|
593
593
|
contents = {};
|
|
594
594
|
contents = deserializeAws_queryGetSessionTokenResponse(data.GetSessionTokenResult, context);
|
|
595
595
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
596
|
-
return [2
|
|
596
|
+
return [2, Promise.resolve(response)];
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
599
|
}); };
|
|
@@ -605,23 +605,23 @@ var deserializeAws_queryGetSessionTokenCommandError = function (output, context)
|
|
|
605
605
|
case 0:
|
|
606
606
|
_a = [__assign({}, output)];
|
|
607
607
|
_d = {};
|
|
608
|
-
return [4
|
|
608
|
+
return [4, parseBody(output.body, context)];
|
|
609
609
|
case 1:
|
|
610
610
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
611
611
|
errorCode = "UnknownError";
|
|
612
612
|
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
613
613
|
_b = errorCode;
|
|
614
614
|
switch (_b) {
|
|
615
|
-
case "RegionDisabledException": return [3
|
|
616
|
-
case "com.amazonaws.sts#RegionDisabledException": return [3
|
|
615
|
+
case "RegionDisabledException": return [3, 2];
|
|
616
|
+
case "com.amazonaws.sts#RegionDisabledException": return [3, 2];
|
|
617
617
|
}
|
|
618
|
-
return [3
|
|
618
|
+
return [3, 4];
|
|
619
619
|
case 2:
|
|
620
620
|
_c = [{}];
|
|
621
|
-
return [4
|
|
621
|
+
return [4, deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context)];
|
|
622
622
|
case 3:
|
|
623
623
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
624
|
-
return [3
|
|
624
|
+
return [3, 5];
|
|
625
625
|
case 4:
|
|
626
626
|
parsedBody = parsedOutput.body;
|
|
627
627
|
errorCode = parsedBody.Error.code || parsedBody.Error.Code || errorCode;
|
|
@@ -631,7 +631,7 @@ var deserializeAws_queryGetSessionTokenCommandError = function (output, context)
|
|
|
631
631
|
message = response.message || response.Message || errorCode;
|
|
632
632
|
response.message = message;
|
|
633
633
|
delete response.Message;
|
|
634
|
-
return [2
|
|
634
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
635
635
|
}
|
|
636
636
|
});
|
|
637
637
|
}); };
|
|
@@ -641,7 +641,7 @@ var deserializeAws_queryExpiredTokenExceptionResponse = function (parsedOutput,
|
|
|
641
641
|
body = parsedOutput.body;
|
|
642
642
|
deserialized = deserializeAws_queryExpiredTokenException(body.Error, context);
|
|
643
643
|
contents = __assign({ name: "ExpiredTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
644
|
-
return [2
|
|
644
|
+
return [2, contents];
|
|
645
645
|
});
|
|
646
646
|
}); };
|
|
647
647
|
var deserializeAws_queryIDPCommunicationErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -650,7 +650,7 @@ var deserializeAws_queryIDPCommunicationErrorExceptionResponse = function (parse
|
|
|
650
650
|
body = parsedOutput.body;
|
|
651
651
|
deserialized = deserializeAws_queryIDPCommunicationErrorException(body.Error, context);
|
|
652
652
|
contents = __assign({ name: "IDPCommunicationErrorException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
653
|
-
return [2
|
|
653
|
+
return [2, contents];
|
|
654
654
|
});
|
|
655
655
|
}); };
|
|
656
656
|
var deserializeAws_queryIDPRejectedClaimExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -659,7 +659,7 @@ var deserializeAws_queryIDPRejectedClaimExceptionResponse = function (parsedOutp
|
|
|
659
659
|
body = parsedOutput.body;
|
|
660
660
|
deserialized = deserializeAws_queryIDPRejectedClaimException(body.Error, context);
|
|
661
661
|
contents = __assign({ name: "IDPRejectedClaimException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
662
|
-
return [2
|
|
662
|
+
return [2, contents];
|
|
663
663
|
});
|
|
664
664
|
}); };
|
|
665
665
|
var deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -668,7 +668,7 @@ var deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = function
|
|
|
668
668
|
body = parsedOutput.body;
|
|
669
669
|
deserialized = deserializeAws_queryInvalidAuthorizationMessageException(body.Error, context);
|
|
670
670
|
contents = __assign({ name: "InvalidAuthorizationMessageException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
671
|
-
return [2
|
|
671
|
+
return [2, contents];
|
|
672
672
|
});
|
|
673
673
|
}); };
|
|
674
674
|
var deserializeAws_queryInvalidIdentityTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -677,7 +677,7 @@ var deserializeAws_queryInvalidIdentityTokenExceptionResponse = function (parsed
|
|
|
677
677
|
body = parsedOutput.body;
|
|
678
678
|
deserialized = deserializeAws_queryInvalidIdentityTokenException(body.Error, context);
|
|
679
679
|
contents = __assign({ name: "InvalidIdentityTokenException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
680
|
-
return [2
|
|
680
|
+
return [2, contents];
|
|
681
681
|
});
|
|
682
682
|
}); };
|
|
683
683
|
var deserializeAws_queryMalformedPolicyDocumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -686,7 +686,7 @@ var deserializeAws_queryMalformedPolicyDocumentExceptionResponse = function (par
|
|
|
686
686
|
body = parsedOutput.body;
|
|
687
687
|
deserialized = deserializeAws_queryMalformedPolicyDocumentException(body.Error, context);
|
|
688
688
|
contents = __assign({ name: "MalformedPolicyDocumentException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
689
|
-
return [2
|
|
689
|
+
return [2, contents];
|
|
690
690
|
});
|
|
691
691
|
}); };
|
|
692
692
|
var deserializeAws_queryPackedPolicyTooLargeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -695,7 +695,7 @@ var deserializeAws_queryPackedPolicyTooLargeExceptionResponse = function (parsed
|
|
|
695
695
|
body = parsedOutput.body;
|
|
696
696
|
deserialized = deserializeAws_queryPackedPolicyTooLargeException(body.Error, context);
|
|
697
697
|
contents = __assign({ name: "PackedPolicyTooLargeException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
698
|
-
return [2
|
|
698
|
+
return [2, contents];
|
|
699
699
|
});
|
|
700
700
|
}); };
|
|
701
701
|
var deserializeAws_queryRegionDisabledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -704,7 +704,7 @@ var deserializeAws_queryRegionDisabledExceptionResponse = function (parsedOutput
|
|
|
704
704
|
body = parsedOutput.body;
|
|
705
705
|
deserialized = deserializeAws_queryRegionDisabledException(body.Error, context);
|
|
706
706
|
contents = __assign({ name: "RegionDisabledException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
707
|
-
return [2
|
|
707
|
+
return [2, contents];
|
|
708
708
|
});
|
|
709
709
|
}); };
|
|
710
710
|
var serializeAws_queryAssumeRoleRequest = function (input, context) {
|
|
@@ -1254,7 +1254,6 @@ var deserializeMetadata = function (output) {
|
|
|
1254
1254
|
cfId: output.headers["x-amz-cf-id"],
|
|
1255
1255
|
});
|
|
1256
1256
|
};
|
|
1257
|
-
// Collect low-level response body stream to Uint8Array.
|
|
1258
1257
|
var collectBody = function (streamBody, context) {
|
|
1259
1258
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1260
1259
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -1262,7 +1261,6 @@ var collectBody = function (streamBody, context) {
|
|
|
1262
1261
|
}
|
|
1263
1262
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1264
1263
|
};
|
|
1265
|
-
// Encode Uint8Array data into string with utf-8.
|
|
1266
1264
|
var collectBodyString = function (streamBody, context) {
|
|
1267
1265
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1268
1266
|
};
|
|
@@ -1270,7 +1268,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
1270
1268
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
1271
1269
|
return __generator(this, function (_c) {
|
|
1272
1270
|
switch (_c.label) {
|
|
1273
|
-
case 0: return [4
|
|
1271
|
+
case 0: return [4, context.endpoint()];
|
|
1274
1272
|
case 1:
|
|
1275
1273
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1276
1274
|
contents = {
|
|
@@ -1287,7 +1285,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
1287
1285
|
if (body !== undefined) {
|
|
1288
1286
|
contents.body = body;
|
|
1289
1287
|
}
|
|
1290
|
-
return [2
|
|
1288
|
+
return [2, new __HttpRequest(contents)];
|
|
1291
1289
|
}
|
|
1292
1290
|
});
|
|
1293
1291
|
}); };
|