@aws-sdk/client-cognito-identity 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +144 -880
- package/dist-es/protocols/Aws_json1_1.js +145 -881
- package/package.json +7 -7
|
@@ -1,212 +1,143 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CognitoIdentityServiceException as __BaseException } from "../models/CognitoIdentityServiceException";
|
|
4
4
|
import { ConcurrentModificationException, DeveloperUserAlreadyRegisteredException, ExternalServiceException, InternalErrorException, InvalidIdentityPoolConfigurationException, InvalidParameterException, LimitExceededException, NotAuthorizedException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateIdentityPoolCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "AWSCognitoIdentityService.CreateIdentityPool",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("CreateIdentityPool");
|
|
10
7
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_DeleteIdentitiesCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AWSCognitoIdentityService.DeleteIdentities",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("DeleteIdentities");
|
|
19
13
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_DeleteIdentityPoolCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AWSCognitoIdentityService.DeleteIdentityPool",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("DeleteIdentityPool");
|
|
28
19
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_DescribeIdentityCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AWSCognitoIdentityService.DescribeIdentity",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DescribeIdentity");
|
|
37
25
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_DescribeIdentityPoolCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AWSCognitoIdentityService.DescribeIdentityPool",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DescribeIdentityPool");
|
|
46
31
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_GetCredentialsForIdentityCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AWSCognitoIdentityService.GetCredentialsForIdentity",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("GetCredentialsForIdentity");
|
|
55
37
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_GetIdCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSCognitoIdentityService.GetId",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("GetId");
|
|
64
43
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_GetIdentityPoolRolesCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSCognitoIdentityService.GetIdentityPoolRoles",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("GetIdentityPoolRoles");
|
|
73
49
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_GetOpenIdTokenCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "AWSCognitoIdentityService.GetOpenIdToken",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("GetOpenIdToken");
|
|
82
55
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_GetOpenIdTokenForDeveloperIdentityCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AWSCognitoIdentityService.GetOpenIdTokenForDeveloperIdentity",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("GetOpenIdTokenForDeveloperIdentity");
|
|
91
61
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_GetPrincipalTagAttributeMapCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "AWSCognitoIdentityService.GetPrincipalTagAttributeMap",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("GetPrincipalTagAttributeMap");
|
|
100
67
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_ListIdentitiesCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "AWSCognitoIdentityService.ListIdentities",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("ListIdentities");
|
|
109
73
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_ListIdentityPoolsCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "AWSCognitoIdentityService.ListIdentityPools",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("ListIdentityPools");
|
|
118
79
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "AWSCognitoIdentityService.ListTagsForResource",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
127
85
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_LookupDeveloperIdentityCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "AWSCognitoIdentityService.LookupDeveloperIdentity",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("LookupDeveloperIdentity");
|
|
136
91
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_MergeDeveloperIdentitiesCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "AWSCognitoIdentityService.MergeDeveloperIdentities",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("MergeDeveloperIdentities");
|
|
145
97
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_SetIdentityPoolRolesCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AWSCognitoIdentityService.SetIdentityPoolRoles",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("SetIdentityPoolRoles");
|
|
154
103
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_SetPrincipalTagAttributeMapCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSCognitoIdentityService.SetPrincipalTagAttributeMap",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("SetPrincipalTagAttributeMap");
|
|
163
109
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_TagResourceCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "AWSCognitoIdentityService.TagResource",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("TagResource");
|
|
172
115
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_UnlinkDeveloperIdentityCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "AWSCognitoIdentityService.UnlinkDeveloperIdentity",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("UnlinkDeveloperIdentity");
|
|
181
121
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_UnlinkIdentityCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "AWSCognitoIdentityService.UnlinkIdentity",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("UnlinkIdentity");
|
|
190
127
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "AWSCognitoIdentityService.UntagResource",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("UntagResource");
|
|
199
133
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_UpdateIdentityPoolCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "AWSCognitoIdentityService.UpdateIdentityPool",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("UpdateIdentityPool");
|
|
208
139
|
let body;
|
|
209
|
-
body = JSON.stringify(
|
|
140
|
+
body = JSON.stringify(_json(input));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const de_CreateIdentityPoolCommand = async (output, context) => {
|
|
@@ -215,12 +146,12 @@ export const de_CreateIdentityPoolCommand = async (output, context) => {
|
|
|
215
146
|
}
|
|
216
147
|
const data = await parseBody(output.body, context);
|
|
217
148
|
let contents = {};
|
|
218
|
-
contents =
|
|
149
|
+
contents = _json(data);
|
|
219
150
|
const response = {
|
|
220
151
|
$metadata: deserializeMetadata(output),
|
|
221
152
|
...contents,
|
|
222
153
|
};
|
|
223
|
-
return
|
|
154
|
+
return response;
|
|
224
155
|
};
|
|
225
156
|
const de_CreateIdentityPoolCommandError = async (output, context) => {
|
|
226
157
|
const parsedOutput = {
|
|
@@ -249,10 +180,9 @@ const de_CreateIdentityPoolCommandError = async (output, context) => {
|
|
|
249
180
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
250
181
|
default:
|
|
251
182
|
const parsedBody = parsedOutput.body;
|
|
252
|
-
throwDefaultError({
|
|
183
|
+
return throwDefaultError({
|
|
253
184
|
output,
|
|
254
185
|
parsedBody,
|
|
255
|
-
exceptionCtor: __BaseException,
|
|
256
186
|
errorCode,
|
|
257
187
|
});
|
|
258
188
|
}
|
|
@@ -263,12 +193,12 @@ export const de_DeleteIdentitiesCommand = async (output, context) => {
|
|
|
263
193
|
}
|
|
264
194
|
const data = await parseBody(output.body, context);
|
|
265
195
|
let contents = {};
|
|
266
|
-
contents =
|
|
196
|
+
contents = _json(data);
|
|
267
197
|
const response = {
|
|
268
198
|
$metadata: deserializeMetadata(output),
|
|
269
199
|
...contents,
|
|
270
200
|
};
|
|
271
|
-
return
|
|
201
|
+
return response;
|
|
272
202
|
};
|
|
273
203
|
const de_DeleteIdentitiesCommandError = async (output, context) => {
|
|
274
204
|
const parsedOutput = {
|
|
@@ -288,10 +218,9 @@ const de_DeleteIdentitiesCommandError = async (output, context) => {
|
|
|
288
218
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
289
219
|
default:
|
|
290
220
|
const parsedBody = parsedOutput.body;
|
|
291
|
-
throwDefaultError({
|
|
221
|
+
return throwDefaultError({
|
|
292
222
|
output,
|
|
293
223
|
parsedBody,
|
|
294
|
-
exceptionCtor: __BaseException,
|
|
295
224
|
errorCode,
|
|
296
225
|
});
|
|
297
226
|
}
|
|
@@ -304,7 +233,7 @@ export const de_DeleteIdentityPoolCommand = async (output, context) => {
|
|
|
304
233
|
const response = {
|
|
305
234
|
$metadata: deserializeMetadata(output),
|
|
306
235
|
};
|
|
307
|
-
return
|
|
236
|
+
return response;
|
|
308
237
|
};
|
|
309
238
|
const de_DeleteIdentityPoolCommandError = async (output, context) => {
|
|
310
239
|
const parsedOutput = {
|
|
@@ -330,10 +259,9 @@ const de_DeleteIdentityPoolCommandError = async (output, context) => {
|
|
|
330
259
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
331
260
|
default:
|
|
332
261
|
const parsedBody = parsedOutput.body;
|
|
333
|
-
throwDefaultError({
|
|
262
|
+
return throwDefaultError({
|
|
334
263
|
output,
|
|
335
264
|
parsedBody,
|
|
336
|
-
exceptionCtor: __BaseException,
|
|
337
265
|
errorCode,
|
|
338
266
|
});
|
|
339
267
|
}
|
|
@@ -349,7 +277,7 @@ export const de_DescribeIdentityCommand = async (output, context) => {
|
|
|
349
277
|
$metadata: deserializeMetadata(output),
|
|
350
278
|
...contents,
|
|
351
279
|
};
|
|
352
|
-
return
|
|
280
|
+
return response;
|
|
353
281
|
};
|
|
354
282
|
const de_DescribeIdentityCommandError = async (output, context) => {
|
|
355
283
|
const parsedOutput = {
|
|
@@ -375,10 +303,9 @@ const de_DescribeIdentityCommandError = async (output, context) => {
|
|
|
375
303
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
376
304
|
default:
|
|
377
305
|
const parsedBody = parsedOutput.body;
|
|
378
|
-
throwDefaultError({
|
|
306
|
+
return throwDefaultError({
|
|
379
307
|
output,
|
|
380
308
|
parsedBody,
|
|
381
|
-
exceptionCtor: __BaseException,
|
|
382
309
|
errorCode,
|
|
383
310
|
});
|
|
384
311
|
}
|
|
@@ -389,12 +316,12 @@ export const de_DescribeIdentityPoolCommand = async (output, context) => {
|
|
|
389
316
|
}
|
|
390
317
|
const data = await parseBody(output.body, context);
|
|
391
318
|
let contents = {};
|
|
392
|
-
contents =
|
|
319
|
+
contents = _json(data);
|
|
393
320
|
const response = {
|
|
394
321
|
$metadata: deserializeMetadata(output),
|
|
395
322
|
...contents,
|
|
396
323
|
};
|
|
397
|
-
return
|
|
324
|
+
return response;
|
|
398
325
|
};
|
|
399
326
|
const de_DescribeIdentityPoolCommandError = async (output, context) => {
|
|
400
327
|
const parsedOutput = {
|
|
@@ -420,10 +347,9 @@ const de_DescribeIdentityPoolCommandError = async (output, context) => {
|
|
|
420
347
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
421
348
|
default:
|
|
422
349
|
const parsedBody = parsedOutput.body;
|
|
423
|
-
throwDefaultError({
|
|
350
|
+
return throwDefaultError({
|
|
424
351
|
output,
|
|
425
352
|
parsedBody,
|
|
426
|
-
exceptionCtor: __BaseException,
|
|
427
353
|
errorCode,
|
|
428
354
|
});
|
|
429
355
|
}
|
|
@@ -439,7 +365,7 @@ export const de_GetCredentialsForIdentityCommand = async (output, context) => {
|
|
|
439
365
|
$metadata: deserializeMetadata(output),
|
|
440
366
|
...contents,
|
|
441
367
|
};
|
|
442
|
-
return
|
|
368
|
+
return response;
|
|
443
369
|
};
|
|
444
370
|
const de_GetCredentialsForIdentityCommandError = async (output, context) => {
|
|
445
371
|
const parsedOutput = {
|
|
@@ -474,10 +400,9 @@ const de_GetCredentialsForIdentityCommandError = async (output, context) => {
|
|
|
474
400
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
475
401
|
default:
|
|
476
402
|
const parsedBody = parsedOutput.body;
|
|
477
|
-
throwDefaultError({
|
|
403
|
+
return throwDefaultError({
|
|
478
404
|
output,
|
|
479
405
|
parsedBody,
|
|
480
|
-
exceptionCtor: __BaseException,
|
|
481
406
|
errorCode,
|
|
482
407
|
});
|
|
483
408
|
}
|
|
@@ -488,12 +413,12 @@ export const de_GetIdCommand = async (output, context) => {
|
|
|
488
413
|
}
|
|
489
414
|
const data = await parseBody(output.body, context);
|
|
490
415
|
let contents = {};
|
|
491
|
-
contents =
|
|
416
|
+
contents = _json(data);
|
|
492
417
|
const response = {
|
|
493
418
|
$metadata: deserializeMetadata(output),
|
|
494
419
|
...contents,
|
|
495
420
|
};
|
|
496
|
-
return
|
|
421
|
+
return response;
|
|
497
422
|
};
|
|
498
423
|
const de_GetIdCommandError = async (output, context) => {
|
|
499
424
|
const parsedOutput = {
|
|
@@ -528,10 +453,9 @@ const de_GetIdCommandError = async (output, context) => {
|
|
|
528
453
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
529
454
|
default:
|
|
530
455
|
const parsedBody = parsedOutput.body;
|
|
531
|
-
throwDefaultError({
|
|
456
|
+
return throwDefaultError({
|
|
532
457
|
output,
|
|
533
458
|
parsedBody,
|
|
534
|
-
exceptionCtor: __BaseException,
|
|
535
459
|
errorCode,
|
|
536
460
|
});
|
|
537
461
|
}
|
|
@@ -542,12 +466,12 @@ export const de_GetIdentityPoolRolesCommand = async (output, context) => {
|
|
|
542
466
|
}
|
|
543
467
|
const data = await parseBody(output.body, context);
|
|
544
468
|
let contents = {};
|
|
545
|
-
contents =
|
|
469
|
+
contents = _json(data);
|
|
546
470
|
const response = {
|
|
547
471
|
$metadata: deserializeMetadata(output),
|
|
548
472
|
...contents,
|
|
549
473
|
};
|
|
550
|
-
return
|
|
474
|
+
return response;
|
|
551
475
|
};
|
|
552
476
|
const de_GetIdentityPoolRolesCommandError = async (output, context) => {
|
|
553
477
|
const parsedOutput = {
|
|
@@ -576,10 +500,9 @@ const de_GetIdentityPoolRolesCommandError = async (output, context) => {
|
|
|
576
500
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
577
501
|
default:
|
|
578
502
|
const parsedBody = parsedOutput.body;
|
|
579
|
-
throwDefaultError({
|
|
503
|
+
return throwDefaultError({
|
|
580
504
|
output,
|
|
581
505
|
parsedBody,
|
|
582
|
-
exceptionCtor: __BaseException,
|
|
583
506
|
errorCode,
|
|
584
507
|
});
|
|
585
508
|
}
|
|
@@ -590,12 +513,12 @@ export const de_GetOpenIdTokenCommand = async (output, context) => {
|
|
|
590
513
|
}
|
|
591
514
|
const data = await parseBody(output.body, context);
|
|
592
515
|
let contents = {};
|
|
593
|
-
contents =
|
|
516
|
+
contents = _json(data);
|
|
594
517
|
const response = {
|
|
595
518
|
$metadata: deserializeMetadata(output),
|
|
596
519
|
...contents,
|
|
597
520
|
};
|
|
598
|
-
return
|
|
521
|
+
return response;
|
|
599
522
|
};
|
|
600
523
|
const de_GetOpenIdTokenCommandError = async (output, context) => {
|
|
601
524
|
const parsedOutput = {
|
|
@@ -627,10 +550,9 @@ const de_GetOpenIdTokenCommandError = async (output, context) => {
|
|
|
627
550
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
628
551
|
default:
|
|
629
552
|
const parsedBody = parsedOutput.body;
|
|
630
|
-
throwDefaultError({
|
|
553
|
+
return throwDefaultError({
|
|
631
554
|
output,
|
|
632
555
|
parsedBody,
|
|
633
|
-
exceptionCtor: __BaseException,
|
|
634
556
|
errorCode,
|
|
635
557
|
});
|
|
636
558
|
}
|
|
@@ -641,12 +563,12 @@ export const de_GetOpenIdTokenForDeveloperIdentityCommand = async (output, conte
|
|
|
641
563
|
}
|
|
642
564
|
const data = await parseBody(output.body, context);
|
|
643
565
|
let contents = {};
|
|
644
|
-
contents =
|
|
566
|
+
contents = _json(data);
|
|
645
567
|
const response = {
|
|
646
568
|
$metadata: deserializeMetadata(output),
|
|
647
569
|
...contents,
|
|
648
570
|
};
|
|
649
|
-
return
|
|
571
|
+
return response;
|
|
650
572
|
};
|
|
651
573
|
const de_GetOpenIdTokenForDeveloperIdentityCommandError = async (output, context) => {
|
|
652
574
|
const parsedOutput = {
|
|
@@ -678,10 +600,9 @@ const de_GetOpenIdTokenForDeveloperIdentityCommandError = async (output, context
|
|
|
678
600
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
679
601
|
default:
|
|
680
602
|
const parsedBody = parsedOutput.body;
|
|
681
|
-
throwDefaultError({
|
|
603
|
+
return throwDefaultError({
|
|
682
604
|
output,
|
|
683
605
|
parsedBody,
|
|
684
|
-
exceptionCtor: __BaseException,
|
|
685
606
|
errorCode,
|
|
686
607
|
});
|
|
687
608
|
}
|
|
@@ -692,12 +613,12 @@ export const de_GetPrincipalTagAttributeMapCommand = async (output, context) =>
|
|
|
692
613
|
}
|
|
693
614
|
const data = await parseBody(output.body, context);
|
|
694
615
|
let contents = {};
|
|
695
|
-
contents =
|
|
616
|
+
contents = _json(data);
|
|
696
617
|
const response = {
|
|
697
618
|
$metadata: deserializeMetadata(output),
|
|
698
619
|
...contents,
|
|
699
620
|
};
|
|
700
|
-
return
|
|
621
|
+
return response;
|
|
701
622
|
};
|
|
702
623
|
const de_GetPrincipalTagAttributeMapCommandError = async (output, context) => {
|
|
703
624
|
const parsedOutput = {
|
|
@@ -723,10 +644,9 @@ const de_GetPrincipalTagAttributeMapCommandError = async (output, context) => {
|
|
|
723
644
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
724
645
|
default:
|
|
725
646
|
const parsedBody = parsedOutput.body;
|
|
726
|
-
throwDefaultError({
|
|
647
|
+
return throwDefaultError({
|
|
727
648
|
output,
|
|
728
649
|
parsedBody,
|
|
729
|
-
exceptionCtor: __BaseException,
|
|
730
650
|
errorCode,
|
|
731
651
|
});
|
|
732
652
|
}
|
|
@@ -742,7 +662,7 @@ export const de_ListIdentitiesCommand = async (output, context) => {
|
|
|
742
662
|
$metadata: deserializeMetadata(output),
|
|
743
663
|
...contents,
|
|
744
664
|
};
|
|
745
|
-
return
|
|
665
|
+
return response;
|
|
746
666
|
};
|
|
747
667
|
const de_ListIdentitiesCommandError = async (output, context) => {
|
|
748
668
|
const parsedOutput = {
|
|
@@ -768,10 +688,9 @@ const de_ListIdentitiesCommandError = async (output, context) => {
|
|
|
768
688
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
769
689
|
default:
|
|
770
690
|
const parsedBody = parsedOutput.body;
|
|
771
|
-
throwDefaultError({
|
|
691
|
+
return throwDefaultError({
|
|
772
692
|
output,
|
|
773
693
|
parsedBody,
|
|
774
|
-
exceptionCtor: __BaseException,
|
|
775
694
|
errorCode,
|
|
776
695
|
});
|
|
777
696
|
}
|
|
@@ -782,12 +701,12 @@ export const de_ListIdentityPoolsCommand = async (output, context) => {
|
|
|
782
701
|
}
|
|
783
702
|
const data = await parseBody(output.body, context);
|
|
784
703
|
let contents = {};
|
|
785
|
-
contents =
|
|
704
|
+
contents = _json(data);
|
|
786
705
|
const response = {
|
|
787
706
|
$metadata: deserializeMetadata(output),
|
|
788
707
|
...contents,
|
|
789
708
|
};
|
|
790
|
-
return
|
|
709
|
+
return response;
|
|
791
710
|
};
|
|
792
711
|
const de_ListIdentityPoolsCommandError = async (output, context) => {
|
|
793
712
|
const parsedOutput = {
|
|
@@ -813,10 +732,9 @@ const de_ListIdentityPoolsCommandError = async (output, context) => {
|
|
|
813
732
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
814
733
|
default:
|
|
815
734
|
const parsedBody = parsedOutput.body;
|
|
816
|
-
throwDefaultError({
|
|
735
|
+
return throwDefaultError({
|
|
817
736
|
output,
|
|
818
737
|
parsedBody,
|
|
819
|
-
exceptionCtor: __BaseException,
|
|
820
738
|
errorCode,
|
|
821
739
|
});
|
|
822
740
|
}
|
|
@@ -827,12 +745,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
827
745
|
}
|
|
828
746
|
const data = await parseBody(output.body, context);
|
|
829
747
|
let contents = {};
|
|
830
|
-
contents =
|
|
748
|
+
contents = _json(data);
|
|
831
749
|
const response = {
|
|
832
750
|
$metadata: deserializeMetadata(output),
|
|
833
751
|
...contents,
|
|
834
752
|
};
|
|
835
|
-
return
|
|
753
|
+
return response;
|
|
836
754
|
};
|
|
837
755
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
838
756
|
const parsedOutput = {
|
|
@@ -858,10 +776,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
858
776
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
859
777
|
default:
|
|
860
778
|
const parsedBody = parsedOutput.body;
|
|
861
|
-
throwDefaultError({
|
|
779
|
+
return throwDefaultError({
|
|
862
780
|
output,
|
|
863
781
|
parsedBody,
|
|
864
|
-
exceptionCtor: __BaseException,
|
|
865
782
|
errorCode,
|
|
866
783
|
});
|
|
867
784
|
}
|
|
@@ -872,12 +789,12 @@ export const de_LookupDeveloperIdentityCommand = async (output, context) => {
|
|
|
872
789
|
}
|
|
873
790
|
const data = await parseBody(output.body, context);
|
|
874
791
|
let contents = {};
|
|
875
|
-
contents =
|
|
792
|
+
contents = _json(data);
|
|
876
793
|
const response = {
|
|
877
794
|
$metadata: deserializeMetadata(output),
|
|
878
795
|
...contents,
|
|
879
796
|
};
|
|
880
|
-
return
|
|
797
|
+
return response;
|
|
881
798
|
};
|
|
882
799
|
const de_LookupDeveloperIdentityCommandError = async (output, context) => {
|
|
883
800
|
const parsedOutput = {
|
|
@@ -906,10 +823,9 @@ const de_LookupDeveloperIdentityCommandError = async (output, context) => {
|
|
|
906
823
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
907
824
|
default:
|
|
908
825
|
const parsedBody = parsedOutput.body;
|
|
909
|
-
throwDefaultError({
|
|
826
|
+
return throwDefaultError({
|
|
910
827
|
output,
|
|
911
828
|
parsedBody,
|
|
912
|
-
exceptionCtor: __BaseException,
|
|
913
829
|
errorCode,
|
|
914
830
|
});
|
|
915
831
|
}
|
|
@@ -920,12 +836,12 @@ export const de_MergeDeveloperIdentitiesCommand = async (output, context) => {
|
|
|
920
836
|
}
|
|
921
837
|
const data = await parseBody(output.body, context);
|
|
922
838
|
let contents = {};
|
|
923
|
-
contents =
|
|
839
|
+
contents = _json(data);
|
|
924
840
|
const response = {
|
|
925
841
|
$metadata: deserializeMetadata(output),
|
|
926
842
|
...contents,
|
|
927
843
|
};
|
|
928
|
-
return
|
|
844
|
+
return response;
|
|
929
845
|
};
|
|
930
846
|
const de_MergeDeveloperIdentitiesCommandError = async (output, context) => {
|
|
931
847
|
const parsedOutput = {
|
|
@@ -954,10 +870,9 @@ const de_MergeDeveloperIdentitiesCommandError = async (output, context) => {
|
|
|
954
870
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
955
871
|
default:
|
|
956
872
|
const parsedBody = parsedOutput.body;
|
|
957
|
-
throwDefaultError({
|
|
873
|
+
return throwDefaultError({
|
|
958
874
|
output,
|
|
959
875
|
parsedBody,
|
|
960
|
-
exceptionCtor: __BaseException,
|
|
961
876
|
errorCode,
|
|
962
877
|
});
|
|
963
878
|
}
|
|
@@ -970,7 +885,7 @@ export const de_SetIdentityPoolRolesCommand = async (output, context) => {
|
|
|
970
885
|
const response = {
|
|
971
886
|
$metadata: deserializeMetadata(output),
|
|
972
887
|
};
|
|
973
|
-
return
|
|
888
|
+
return response;
|
|
974
889
|
};
|
|
975
890
|
const de_SetIdentityPoolRolesCommandError = async (output, context) => {
|
|
976
891
|
const parsedOutput = {
|
|
@@ -1002,10 +917,9 @@ const de_SetIdentityPoolRolesCommandError = async (output, context) => {
|
|
|
1002
917
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1003
918
|
default:
|
|
1004
919
|
const parsedBody = parsedOutput.body;
|
|
1005
|
-
throwDefaultError({
|
|
920
|
+
return throwDefaultError({
|
|
1006
921
|
output,
|
|
1007
922
|
parsedBody,
|
|
1008
|
-
exceptionCtor: __BaseException,
|
|
1009
923
|
errorCode,
|
|
1010
924
|
});
|
|
1011
925
|
}
|
|
@@ -1016,12 +930,12 @@ export const de_SetPrincipalTagAttributeMapCommand = async (output, context) =>
|
|
|
1016
930
|
}
|
|
1017
931
|
const data = await parseBody(output.body, context);
|
|
1018
932
|
let contents = {};
|
|
1019
|
-
contents =
|
|
933
|
+
contents = _json(data);
|
|
1020
934
|
const response = {
|
|
1021
935
|
$metadata: deserializeMetadata(output),
|
|
1022
936
|
...contents,
|
|
1023
937
|
};
|
|
1024
|
-
return
|
|
938
|
+
return response;
|
|
1025
939
|
};
|
|
1026
940
|
const de_SetPrincipalTagAttributeMapCommandError = async (output, context) => {
|
|
1027
941
|
const parsedOutput = {
|
|
@@ -1047,10 +961,9 @@ const de_SetPrincipalTagAttributeMapCommandError = async (output, context) => {
|
|
|
1047
961
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1048
962
|
default:
|
|
1049
963
|
const parsedBody = parsedOutput.body;
|
|
1050
|
-
throwDefaultError({
|
|
964
|
+
return throwDefaultError({
|
|
1051
965
|
output,
|
|
1052
966
|
parsedBody,
|
|
1053
|
-
exceptionCtor: __BaseException,
|
|
1054
967
|
errorCode,
|
|
1055
968
|
});
|
|
1056
969
|
}
|
|
@@ -1061,12 +974,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1061
974
|
}
|
|
1062
975
|
const data = await parseBody(output.body, context);
|
|
1063
976
|
let contents = {};
|
|
1064
|
-
contents =
|
|
977
|
+
contents = _json(data);
|
|
1065
978
|
const response = {
|
|
1066
979
|
$metadata: deserializeMetadata(output),
|
|
1067
980
|
...contents,
|
|
1068
981
|
};
|
|
1069
|
-
return
|
|
982
|
+
return response;
|
|
1070
983
|
};
|
|
1071
984
|
const de_TagResourceCommandError = async (output, context) => {
|
|
1072
985
|
const parsedOutput = {
|
|
@@ -1092,10 +1005,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1092
1005
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1093
1006
|
default:
|
|
1094
1007
|
const parsedBody = parsedOutput.body;
|
|
1095
|
-
throwDefaultError({
|
|
1008
|
+
return throwDefaultError({
|
|
1096
1009
|
output,
|
|
1097
1010
|
parsedBody,
|
|
1098
|
-
exceptionCtor: __BaseException,
|
|
1099
1011
|
errorCode,
|
|
1100
1012
|
});
|
|
1101
1013
|
}
|
|
@@ -1108,7 +1020,7 @@ export const de_UnlinkDeveloperIdentityCommand = async (output, context) => {
|
|
|
1108
1020
|
const response = {
|
|
1109
1021
|
$metadata: deserializeMetadata(output),
|
|
1110
1022
|
};
|
|
1111
|
-
return
|
|
1023
|
+
return response;
|
|
1112
1024
|
};
|
|
1113
1025
|
const de_UnlinkDeveloperIdentityCommandError = async (output, context) => {
|
|
1114
1026
|
const parsedOutput = {
|
|
@@ -1137,10 +1049,9 @@ const de_UnlinkDeveloperIdentityCommandError = async (output, context) => {
|
|
|
1137
1049
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1138
1050
|
default:
|
|
1139
1051
|
const parsedBody = parsedOutput.body;
|
|
1140
|
-
throwDefaultError({
|
|
1052
|
+
return throwDefaultError({
|
|
1141
1053
|
output,
|
|
1142
1054
|
parsedBody,
|
|
1143
|
-
exceptionCtor: __BaseException,
|
|
1144
1055
|
errorCode,
|
|
1145
1056
|
});
|
|
1146
1057
|
}
|
|
@@ -1153,7 +1064,7 @@ export const de_UnlinkIdentityCommand = async (output, context) => {
|
|
|
1153
1064
|
const response = {
|
|
1154
1065
|
$metadata: deserializeMetadata(output),
|
|
1155
1066
|
};
|
|
1156
|
-
return
|
|
1067
|
+
return response;
|
|
1157
1068
|
};
|
|
1158
1069
|
const de_UnlinkIdentityCommandError = async (output, context) => {
|
|
1159
1070
|
const parsedOutput = {
|
|
@@ -1185,10 +1096,9 @@ const de_UnlinkIdentityCommandError = async (output, context) => {
|
|
|
1185
1096
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1186
1097
|
default:
|
|
1187
1098
|
const parsedBody = parsedOutput.body;
|
|
1188
|
-
throwDefaultError({
|
|
1099
|
+
return throwDefaultError({
|
|
1189
1100
|
output,
|
|
1190
1101
|
parsedBody,
|
|
1191
|
-
exceptionCtor: __BaseException,
|
|
1192
1102
|
errorCode,
|
|
1193
1103
|
});
|
|
1194
1104
|
}
|
|
@@ -1199,12 +1109,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1199
1109
|
}
|
|
1200
1110
|
const data = await parseBody(output.body, context);
|
|
1201
1111
|
let contents = {};
|
|
1202
|
-
contents =
|
|
1112
|
+
contents = _json(data);
|
|
1203
1113
|
const response = {
|
|
1204
1114
|
$metadata: deserializeMetadata(output),
|
|
1205
1115
|
...contents,
|
|
1206
1116
|
};
|
|
1207
|
-
return
|
|
1117
|
+
return response;
|
|
1208
1118
|
};
|
|
1209
1119
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1210
1120
|
const parsedOutput = {
|
|
@@ -1230,10 +1140,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1230
1140
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1231
1141
|
default:
|
|
1232
1142
|
const parsedBody = parsedOutput.body;
|
|
1233
|
-
throwDefaultError({
|
|
1143
|
+
return throwDefaultError({
|
|
1234
1144
|
output,
|
|
1235
1145
|
parsedBody,
|
|
1236
|
-
exceptionCtor: __BaseException,
|
|
1237
1146
|
errorCode,
|
|
1238
1147
|
});
|
|
1239
1148
|
}
|
|
@@ -1244,12 +1153,12 @@ export const de_UpdateIdentityPoolCommand = async (output, context) => {
|
|
|
1244
1153
|
}
|
|
1245
1154
|
const data = await parseBody(output.body, context);
|
|
1246
1155
|
let contents = {};
|
|
1247
|
-
contents =
|
|
1156
|
+
contents = _json(data);
|
|
1248
1157
|
const response = {
|
|
1249
1158
|
$metadata: deserializeMetadata(output),
|
|
1250
1159
|
...contents,
|
|
1251
1160
|
};
|
|
1252
|
-
return
|
|
1161
|
+
return response;
|
|
1253
1162
|
};
|
|
1254
1163
|
const de_UpdateIdentityPoolCommandError = async (output, context) => {
|
|
1255
1164
|
const parsedOutput = {
|
|
@@ -1284,17 +1193,16 @@ const de_UpdateIdentityPoolCommandError = async (output, context) => {
|
|
|
1284
1193
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1285
1194
|
default:
|
|
1286
1195
|
const parsedBody = parsedOutput.body;
|
|
1287
|
-
throwDefaultError({
|
|
1196
|
+
return throwDefaultError({
|
|
1288
1197
|
output,
|
|
1289
1198
|
parsedBody,
|
|
1290
|
-
exceptionCtor: __BaseException,
|
|
1291
1199
|
errorCode,
|
|
1292
1200
|
});
|
|
1293
1201
|
}
|
|
1294
1202
|
};
|
|
1295
1203
|
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
1296
1204
|
const body = parsedOutput.body;
|
|
1297
|
-
const deserialized =
|
|
1205
|
+
const deserialized = _json(body);
|
|
1298
1206
|
const exception = new ConcurrentModificationException({
|
|
1299
1207
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1300
1208
|
...deserialized,
|
|
@@ -1303,7 +1211,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
|
1303
1211
|
};
|
|
1304
1212
|
const de_DeveloperUserAlreadyRegisteredExceptionRes = async (parsedOutput, context) => {
|
|
1305
1213
|
const body = parsedOutput.body;
|
|
1306
|
-
const deserialized =
|
|
1214
|
+
const deserialized = _json(body);
|
|
1307
1215
|
const exception = new DeveloperUserAlreadyRegisteredException({
|
|
1308
1216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1309
1217
|
...deserialized,
|
|
@@ -1312,7 +1220,7 @@ const de_DeveloperUserAlreadyRegisteredExceptionRes = async (parsedOutput, conte
|
|
|
1312
1220
|
};
|
|
1313
1221
|
const de_ExternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
1314
1222
|
const body = parsedOutput.body;
|
|
1315
|
-
const deserialized =
|
|
1223
|
+
const deserialized = _json(body);
|
|
1316
1224
|
const exception = new ExternalServiceException({
|
|
1317
1225
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1318
1226
|
...deserialized,
|
|
@@ -1321,7 +1229,7 @@ const de_ExternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
1321
1229
|
};
|
|
1322
1230
|
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
1323
1231
|
const body = parsedOutput.body;
|
|
1324
|
-
const deserialized =
|
|
1232
|
+
const deserialized = _json(body);
|
|
1325
1233
|
const exception = new InternalErrorException({
|
|
1326
1234
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1327
1235
|
...deserialized,
|
|
@@ -1330,7 +1238,7 @@ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1330
1238
|
};
|
|
1331
1239
|
const de_InvalidIdentityPoolConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
1332
1240
|
const body = parsedOutput.body;
|
|
1333
|
-
const deserialized =
|
|
1241
|
+
const deserialized = _json(body);
|
|
1334
1242
|
const exception = new InvalidIdentityPoolConfigurationException({
|
|
1335
1243
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1336
1244
|
...deserialized,
|
|
@@ -1339,7 +1247,7 @@ const de_InvalidIdentityPoolConfigurationExceptionRes = async (parsedOutput, con
|
|
|
1339
1247
|
};
|
|
1340
1248
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1341
1249
|
const body = parsedOutput.body;
|
|
1342
|
-
const deserialized =
|
|
1250
|
+
const deserialized = _json(body);
|
|
1343
1251
|
const exception = new InvalidParameterException({
|
|
1344
1252
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1345
1253
|
...deserialized,
|
|
@@ -1348,7 +1256,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
1348
1256
|
};
|
|
1349
1257
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1350
1258
|
const body = parsedOutput.body;
|
|
1351
|
-
const deserialized =
|
|
1259
|
+
const deserialized = _json(body);
|
|
1352
1260
|
const exception = new LimitExceededException({
|
|
1353
1261
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1354
1262
|
...deserialized,
|
|
@@ -1357,7 +1265,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1357
1265
|
};
|
|
1358
1266
|
const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1359
1267
|
const body = parsedOutput.body;
|
|
1360
|
-
const deserialized =
|
|
1268
|
+
const deserialized = _json(body);
|
|
1361
1269
|
const exception = new NotAuthorizedException({
|
|
1362
1270
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1363
1271
|
...deserialized,
|
|
@@ -1366,7 +1274,7 @@ const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
|
|
|
1366
1274
|
};
|
|
1367
1275
|
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
1368
1276
|
const body = parsedOutput.body;
|
|
1369
|
-
const deserialized =
|
|
1277
|
+
const deserialized = _json(body);
|
|
1370
1278
|
const exception = new ResourceConflictException({
|
|
1371
1279
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1372
1280
|
...deserialized,
|
|
@@ -1375,7 +1283,7 @@ const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1375
1283
|
};
|
|
1376
1284
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1377
1285
|
const body = parsedOutput.body;
|
|
1378
|
-
const deserialized =
|
|
1286
|
+
const deserialized = _json(body);
|
|
1379
1287
|
const exception = new ResourceNotFoundException({
|
|
1380
1288
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1381
1289
|
...deserialized,
|
|
@@ -1384,700 +1292,49 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1384
1292
|
};
|
|
1385
1293
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1386
1294
|
const body = parsedOutput.body;
|
|
1387
|
-
const deserialized =
|
|
1295
|
+
const deserialized = _json(body);
|
|
1388
1296
|
const exception = new TooManyRequestsException({
|
|
1389
1297
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1390
1298
|
...deserialized,
|
|
1391
1299
|
});
|
|
1392
1300
|
return __decorateServiceException(exception, body);
|
|
1393
1301
|
};
|
|
1394
|
-
const se_CognitoIdentityProvider = (input, context) => {
|
|
1395
|
-
return {
|
|
1396
|
-
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
1397
|
-
...(input.ProviderName != null && { ProviderName: input.ProviderName }),
|
|
1398
|
-
...(input.ServerSideTokenCheck != null && { ServerSideTokenCheck: input.ServerSideTokenCheck }),
|
|
1399
|
-
};
|
|
1400
|
-
};
|
|
1401
|
-
const se_CognitoIdentityProviderList = (input, context) => {
|
|
1402
|
-
return input
|
|
1403
|
-
.filter((e) => e != null)
|
|
1404
|
-
.map((entry) => {
|
|
1405
|
-
return se_CognitoIdentityProvider(entry, context);
|
|
1406
|
-
});
|
|
1407
|
-
};
|
|
1408
|
-
const se_CreateIdentityPoolInput = (input, context) => {
|
|
1409
|
-
return {
|
|
1410
|
-
...(input.AllowClassicFlow != null && { AllowClassicFlow: input.AllowClassicFlow }),
|
|
1411
|
-
...(input.AllowUnauthenticatedIdentities != null && {
|
|
1412
|
-
AllowUnauthenticatedIdentities: input.AllowUnauthenticatedIdentities,
|
|
1413
|
-
}),
|
|
1414
|
-
...(input.CognitoIdentityProviders != null && {
|
|
1415
|
-
CognitoIdentityProviders: se_CognitoIdentityProviderList(input.CognitoIdentityProviders, context),
|
|
1416
|
-
}),
|
|
1417
|
-
...(input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName }),
|
|
1418
|
-
...(input.IdentityPoolName != null && { IdentityPoolName: input.IdentityPoolName }),
|
|
1419
|
-
...(input.IdentityPoolTags != null && {
|
|
1420
|
-
IdentityPoolTags: se_IdentityPoolTagsType(input.IdentityPoolTags, context),
|
|
1421
|
-
}),
|
|
1422
|
-
...(input.OpenIdConnectProviderARNs != null && {
|
|
1423
|
-
OpenIdConnectProviderARNs: se_OIDCProviderList(input.OpenIdConnectProviderARNs, context),
|
|
1424
|
-
}),
|
|
1425
|
-
...(input.SamlProviderARNs != null && { SamlProviderARNs: se_SAMLProviderList(input.SamlProviderARNs, context) }),
|
|
1426
|
-
...(input.SupportedLoginProviders != null && {
|
|
1427
|
-
SupportedLoginProviders: se_IdentityProviders(input.SupportedLoginProviders, context),
|
|
1428
|
-
}),
|
|
1429
|
-
};
|
|
1430
|
-
};
|
|
1431
|
-
const se_DeleteIdentitiesInput = (input, context) => {
|
|
1432
|
-
return {
|
|
1433
|
-
...(input.IdentityIdsToDelete != null && {
|
|
1434
|
-
IdentityIdsToDelete: se_IdentityIdList(input.IdentityIdsToDelete, context),
|
|
1435
|
-
}),
|
|
1436
|
-
};
|
|
1437
|
-
};
|
|
1438
|
-
const se_DeleteIdentityPoolInput = (input, context) => {
|
|
1439
|
-
return {
|
|
1440
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1441
|
-
};
|
|
1442
|
-
};
|
|
1443
|
-
const se_DescribeIdentityInput = (input, context) => {
|
|
1444
|
-
return {
|
|
1445
|
-
...(input.IdentityId != null && { IdentityId: input.IdentityId }),
|
|
1446
|
-
};
|
|
1447
|
-
};
|
|
1448
|
-
const se_DescribeIdentityPoolInput = (input, context) => {
|
|
1449
|
-
return {
|
|
1450
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1451
|
-
};
|
|
1452
|
-
};
|
|
1453
|
-
const se_GetCredentialsForIdentityInput = (input, context) => {
|
|
1454
|
-
return {
|
|
1455
|
-
...(input.CustomRoleArn != null && { CustomRoleArn: input.CustomRoleArn }),
|
|
1456
|
-
...(input.IdentityId != null && { IdentityId: input.IdentityId }),
|
|
1457
|
-
...(input.Logins != null && { Logins: se_LoginsMap(input.Logins, context) }),
|
|
1458
|
-
};
|
|
1459
|
-
};
|
|
1460
|
-
const se_GetIdentityPoolRolesInput = (input, context) => {
|
|
1461
|
-
return {
|
|
1462
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1463
|
-
};
|
|
1464
|
-
};
|
|
1465
|
-
const se_GetIdInput = (input, context) => {
|
|
1466
|
-
return {
|
|
1467
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1468
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1469
|
-
...(input.Logins != null && { Logins: se_LoginsMap(input.Logins, context) }),
|
|
1470
|
-
};
|
|
1471
|
-
};
|
|
1472
|
-
const se_GetOpenIdTokenForDeveloperIdentityInput = (input, context) => {
|
|
1473
|
-
return {
|
|
1474
|
-
...(input.IdentityId != null && { IdentityId: input.IdentityId }),
|
|
1475
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1476
|
-
...(input.Logins != null && { Logins: se_LoginsMap(input.Logins, context) }),
|
|
1477
|
-
...(input.PrincipalTags != null && { PrincipalTags: se_PrincipalTags(input.PrincipalTags, context) }),
|
|
1478
|
-
...(input.TokenDuration != null && { TokenDuration: input.TokenDuration }),
|
|
1479
|
-
};
|
|
1480
|
-
};
|
|
1481
|
-
const se_GetOpenIdTokenInput = (input, context) => {
|
|
1482
|
-
return {
|
|
1483
|
-
...(input.IdentityId != null && { IdentityId: input.IdentityId }),
|
|
1484
|
-
...(input.Logins != null && { Logins: se_LoginsMap(input.Logins, context) }),
|
|
1485
|
-
};
|
|
1486
|
-
};
|
|
1487
|
-
const se_GetPrincipalTagAttributeMapInput = (input, context) => {
|
|
1488
|
-
return {
|
|
1489
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1490
|
-
...(input.IdentityProviderName != null && { IdentityProviderName: input.IdentityProviderName }),
|
|
1491
|
-
};
|
|
1492
|
-
};
|
|
1493
|
-
const se_IdentityIdList = (input, context) => {
|
|
1494
|
-
return input
|
|
1495
|
-
.filter((e) => e != null)
|
|
1496
|
-
.map((entry) => {
|
|
1497
|
-
return entry;
|
|
1498
|
-
});
|
|
1499
|
-
};
|
|
1500
|
-
const se_IdentityPool = (input, context) => {
|
|
1501
|
-
return {
|
|
1502
|
-
...(input.AllowClassicFlow != null && { AllowClassicFlow: input.AllowClassicFlow }),
|
|
1503
|
-
...(input.AllowUnauthenticatedIdentities != null && {
|
|
1504
|
-
AllowUnauthenticatedIdentities: input.AllowUnauthenticatedIdentities,
|
|
1505
|
-
}),
|
|
1506
|
-
...(input.CognitoIdentityProviders != null && {
|
|
1507
|
-
CognitoIdentityProviders: se_CognitoIdentityProviderList(input.CognitoIdentityProviders, context),
|
|
1508
|
-
}),
|
|
1509
|
-
...(input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName }),
|
|
1510
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1511
|
-
...(input.IdentityPoolName != null && { IdentityPoolName: input.IdentityPoolName }),
|
|
1512
|
-
...(input.IdentityPoolTags != null && {
|
|
1513
|
-
IdentityPoolTags: se_IdentityPoolTagsType(input.IdentityPoolTags, context),
|
|
1514
|
-
}),
|
|
1515
|
-
...(input.OpenIdConnectProviderARNs != null && {
|
|
1516
|
-
OpenIdConnectProviderARNs: se_OIDCProviderList(input.OpenIdConnectProviderARNs, context),
|
|
1517
|
-
}),
|
|
1518
|
-
...(input.SamlProviderARNs != null && { SamlProviderARNs: se_SAMLProviderList(input.SamlProviderARNs, context) }),
|
|
1519
|
-
...(input.SupportedLoginProviders != null && {
|
|
1520
|
-
SupportedLoginProviders: se_IdentityProviders(input.SupportedLoginProviders, context),
|
|
1521
|
-
}),
|
|
1522
|
-
};
|
|
1523
|
-
};
|
|
1524
|
-
const se_IdentityPoolTagsListType = (input, context) => {
|
|
1525
|
-
return input
|
|
1526
|
-
.filter((e) => e != null)
|
|
1527
|
-
.map((entry) => {
|
|
1528
|
-
return entry;
|
|
1529
|
-
});
|
|
1530
|
-
};
|
|
1531
|
-
const se_IdentityPoolTagsType = (input, context) => {
|
|
1532
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1533
|
-
if (value === null) {
|
|
1534
|
-
return acc;
|
|
1535
|
-
}
|
|
1536
|
-
acc[key] = value;
|
|
1537
|
-
return acc;
|
|
1538
|
-
}, {});
|
|
1539
|
-
};
|
|
1540
|
-
const se_IdentityProviders = (input, context) => {
|
|
1541
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1542
|
-
if (value === null) {
|
|
1543
|
-
return acc;
|
|
1544
|
-
}
|
|
1545
|
-
acc[key] = value;
|
|
1546
|
-
return acc;
|
|
1547
|
-
}, {});
|
|
1548
|
-
};
|
|
1549
|
-
const se_ListIdentitiesInput = (input, context) => {
|
|
1550
|
-
return {
|
|
1551
|
-
...(input.HideDisabled != null && { HideDisabled: input.HideDisabled }),
|
|
1552
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1553
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1554
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1555
|
-
};
|
|
1556
|
-
};
|
|
1557
|
-
const se_ListIdentityPoolsInput = (input, context) => {
|
|
1558
|
-
return {
|
|
1559
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1560
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1561
|
-
};
|
|
1562
|
-
};
|
|
1563
|
-
const se_ListTagsForResourceInput = (input, context) => {
|
|
1564
|
-
return {
|
|
1565
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1566
|
-
};
|
|
1567
|
-
};
|
|
1568
|
-
const se_LoginsList = (input, context) => {
|
|
1569
|
-
return input
|
|
1570
|
-
.filter((e) => e != null)
|
|
1571
|
-
.map((entry) => {
|
|
1572
|
-
return entry;
|
|
1573
|
-
});
|
|
1574
|
-
};
|
|
1575
|
-
const se_LoginsMap = (input, context) => {
|
|
1576
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1577
|
-
if (value === null) {
|
|
1578
|
-
return acc;
|
|
1579
|
-
}
|
|
1580
|
-
acc[key] = value;
|
|
1581
|
-
return acc;
|
|
1582
|
-
}, {});
|
|
1583
|
-
};
|
|
1584
|
-
const se_LookupDeveloperIdentityInput = (input, context) => {
|
|
1585
|
-
return {
|
|
1586
|
-
...(input.DeveloperUserIdentifier != null && { DeveloperUserIdentifier: input.DeveloperUserIdentifier }),
|
|
1587
|
-
...(input.IdentityId != null && { IdentityId: input.IdentityId }),
|
|
1588
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1589
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1590
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1591
|
-
};
|
|
1592
|
-
};
|
|
1593
|
-
const se_MappingRule = (input, context) => {
|
|
1594
|
-
return {
|
|
1595
|
-
...(input.Claim != null && { Claim: input.Claim }),
|
|
1596
|
-
...(input.MatchType != null && { MatchType: input.MatchType }),
|
|
1597
|
-
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
1598
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1599
|
-
};
|
|
1600
|
-
};
|
|
1601
|
-
const se_MappingRulesList = (input, context) => {
|
|
1602
|
-
return input
|
|
1603
|
-
.filter((e) => e != null)
|
|
1604
|
-
.map((entry) => {
|
|
1605
|
-
return se_MappingRule(entry, context);
|
|
1606
|
-
});
|
|
1607
|
-
};
|
|
1608
|
-
const se_MergeDeveloperIdentitiesInput = (input, context) => {
|
|
1609
|
-
return {
|
|
1610
|
-
...(input.DestinationUserIdentifier != null && { DestinationUserIdentifier: input.DestinationUserIdentifier }),
|
|
1611
|
-
...(input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName }),
|
|
1612
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1613
|
-
...(input.SourceUserIdentifier != null && { SourceUserIdentifier: input.SourceUserIdentifier }),
|
|
1614
|
-
};
|
|
1615
|
-
};
|
|
1616
|
-
const se_OIDCProviderList = (input, context) => {
|
|
1617
|
-
return input
|
|
1618
|
-
.filter((e) => e != null)
|
|
1619
|
-
.map((entry) => {
|
|
1620
|
-
return entry;
|
|
1621
|
-
});
|
|
1622
|
-
};
|
|
1623
|
-
const se_PrincipalTags = (input, context) => {
|
|
1624
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1625
|
-
if (value === null) {
|
|
1626
|
-
return acc;
|
|
1627
|
-
}
|
|
1628
|
-
acc[key] = value;
|
|
1629
|
-
return acc;
|
|
1630
|
-
}, {});
|
|
1631
|
-
};
|
|
1632
|
-
const se_RoleMapping = (input, context) => {
|
|
1633
|
-
return {
|
|
1634
|
-
...(input.AmbiguousRoleResolution != null && { AmbiguousRoleResolution: input.AmbiguousRoleResolution }),
|
|
1635
|
-
...(input.RulesConfiguration != null && {
|
|
1636
|
-
RulesConfiguration: se_RulesConfigurationType(input.RulesConfiguration, context),
|
|
1637
|
-
}),
|
|
1638
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1639
|
-
};
|
|
1640
|
-
};
|
|
1641
|
-
const se_RoleMappingMap = (input, context) => {
|
|
1642
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1643
|
-
if (value === null) {
|
|
1644
|
-
return acc;
|
|
1645
|
-
}
|
|
1646
|
-
acc[key] = se_RoleMapping(value, context);
|
|
1647
|
-
return acc;
|
|
1648
|
-
}, {});
|
|
1649
|
-
};
|
|
1650
|
-
const se_RolesMap = (input, context) => {
|
|
1651
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1652
|
-
if (value === null) {
|
|
1653
|
-
return acc;
|
|
1654
|
-
}
|
|
1655
|
-
acc[key] = value;
|
|
1656
|
-
return acc;
|
|
1657
|
-
}, {});
|
|
1658
|
-
};
|
|
1659
|
-
const se_RulesConfigurationType = (input, context) => {
|
|
1660
|
-
return {
|
|
1661
|
-
...(input.Rules != null && { Rules: se_MappingRulesList(input.Rules, context) }),
|
|
1662
|
-
};
|
|
1663
|
-
};
|
|
1664
|
-
const se_SAMLProviderList = (input, context) => {
|
|
1665
|
-
return input
|
|
1666
|
-
.filter((e) => e != null)
|
|
1667
|
-
.map((entry) => {
|
|
1668
|
-
return entry;
|
|
1669
|
-
});
|
|
1670
|
-
};
|
|
1671
|
-
const se_SetIdentityPoolRolesInput = (input, context) => {
|
|
1672
|
-
return {
|
|
1673
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1674
|
-
...(input.RoleMappings != null && { RoleMappings: se_RoleMappingMap(input.RoleMappings, context) }),
|
|
1675
|
-
...(input.Roles != null && { Roles: se_RolesMap(input.Roles, context) }),
|
|
1676
|
-
};
|
|
1677
|
-
};
|
|
1678
|
-
const se_SetPrincipalTagAttributeMapInput = (input, context) => {
|
|
1679
|
-
return {
|
|
1680
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1681
|
-
...(input.IdentityProviderName != null && { IdentityProviderName: input.IdentityProviderName }),
|
|
1682
|
-
...(input.PrincipalTags != null && { PrincipalTags: se_PrincipalTags(input.PrincipalTags, context) }),
|
|
1683
|
-
...(input.UseDefaults != null && { UseDefaults: input.UseDefaults }),
|
|
1684
|
-
};
|
|
1685
|
-
};
|
|
1686
|
-
const se_TagResourceInput = (input, context) => {
|
|
1687
|
-
return {
|
|
1688
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1689
|
-
...(input.Tags != null && { Tags: se_IdentityPoolTagsType(input.Tags, context) }),
|
|
1690
|
-
};
|
|
1691
|
-
};
|
|
1692
|
-
const se_UnlinkDeveloperIdentityInput = (input, context) => {
|
|
1693
|
-
return {
|
|
1694
|
-
...(input.DeveloperProviderName != null && { DeveloperProviderName: input.DeveloperProviderName }),
|
|
1695
|
-
...(input.DeveloperUserIdentifier != null && { DeveloperUserIdentifier: input.DeveloperUserIdentifier }),
|
|
1696
|
-
...(input.IdentityId != null && { IdentityId: input.IdentityId }),
|
|
1697
|
-
...(input.IdentityPoolId != null && { IdentityPoolId: input.IdentityPoolId }),
|
|
1698
|
-
};
|
|
1699
|
-
};
|
|
1700
|
-
const se_UnlinkIdentityInput = (input, context) => {
|
|
1701
|
-
return {
|
|
1702
|
-
...(input.IdentityId != null && { IdentityId: input.IdentityId }),
|
|
1703
|
-
...(input.Logins != null && { Logins: se_LoginsMap(input.Logins, context) }),
|
|
1704
|
-
...(input.LoginsToRemove != null && { LoginsToRemove: se_LoginsList(input.LoginsToRemove, context) }),
|
|
1705
|
-
};
|
|
1706
|
-
};
|
|
1707
|
-
const se_UntagResourceInput = (input, context) => {
|
|
1708
|
-
return {
|
|
1709
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1710
|
-
...(input.TagKeys != null && { TagKeys: se_IdentityPoolTagsListType(input.TagKeys, context) }),
|
|
1711
|
-
};
|
|
1712
|
-
};
|
|
1713
|
-
const de_CognitoIdentityProvider = (output, context) => {
|
|
1714
|
-
return {
|
|
1715
|
-
ClientId: __expectString(output.ClientId),
|
|
1716
|
-
ProviderName: __expectString(output.ProviderName),
|
|
1717
|
-
ServerSideTokenCheck: __expectBoolean(output.ServerSideTokenCheck),
|
|
1718
|
-
};
|
|
1719
|
-
};
|
|
1720
|
-
const de_CognitoIdentityProviderList = (output, context) => {
|
|
1721
|
-
const retVal = (output || [])
|
|
1722
|
-
.filter((e) => e != null)
|
|
1723
|
-
.map((entry) => {
|
|
1724
|
-
if (entry === null) {
|
|
1725
|
-
return null;
|
|
1726
|
-
}
|
|
1727
|
-
return de_CognitoIdentityProvider(entry, context);
|
|
1728
|
-
});
|
|
1729
|
-
return retVal;
|
|
1730
|
-
};
|
|
1731
|
-
const de_ConcurrentModificationException = (output, context) => {
|
|
1732
|
-
return {
|
|
1733
|
-
message: __expectString(output.message),
|
|
1734
|
-
};
|
|
1735
|
-
};
|
|
1736
1302
|
const de_Credentials = (output, context) => {
|
|
1737
|
-
return {
|
|
1738
|
-
AccessKeyId: __expectString
|
|
1739
|
-
Expiration:
|
|
1740
|
-
SecretKey: __expectString
|
|
1741
|
-
SessionToken: __expectString
|
|
1742
|
-
};
|
|
1743
|
-
};
|
|
1744
|
-
const de_DeleteIdentitiesResponse = (output, context) => {
|
|
1745
|
-
return {
|
|
1746
|
-
UnprocessedIdentityIds: output.UnprocessedIdentityIds != null
|
|
1747
|
-
? de_UnprocessedIdentityIdList(output.UnprocessedIdentityIds, context)
|
|
1748
|
-
: undefined,
|
|
1749
|
-
};
|
|
1750
|
-
};
|
|
1751
|
-
const de_DeveloperUserAlreadyRegisteredException = (output, context) => {
|
|
1752
|
-
return {
|
|
1753
|
-
message: __expectString(output.message),
|
|
1754
|
-
};
|
|
1755
|
-
};
|
|
1756
|
-
const de_DeveloperUserIdentifierList = (output, context) => {
|
|
1757
|
-
const retVal = (output || [])
|
|
1758
|
-
.filter((e) => e != null)
|
|
1759
|
-
.map((entry) => {
|
|
1760
|
-
if (entry === null) {
|
|
1761
|
-
return null;
|
|
1762
|
-
}
|
|
1763
|
-
return __expectString(entry);
|
|
1303
|
+
return take(output, {
|
|
1304
|
+
AccessKeyId: __expectString,
|
|
1305
|
+
Expiration: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1306
|
+
SecretKey: __expectString,
|
|
1307
|
+
SessionToken: __expectString,
|
|
1764
1308
|
});
|
|
1765
|
-
return retVal;
|
|
1766
|
-
};
|
|
1767
|
-
const de_ExternalServiceException = (output, context) => {
|
|
1768
|
-
return {
|
|
1769
|
-
message: __expectString(output.message),
|
|
1770
|
-
};
|
|
1771
1309
|
};
|
|
1772
1310
|
const de_GetCredentialsForIdentityResponse = (output, context) => {
|
|
1773
|
-
return {
|
|
1774
|
-
Credentials:
|
|
1775
|
-
IdentityId: __expectString
|
|
1776
|
-
};
|
|
1777
|
-
};
|
|
1778
|
-
const de_GetIdentityPoolRolesResponse = (output, context) => {
|
|
1779
|
-
return {
|
|
1780
|
-
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
1781
|
-
RoleMappings: output.RoleMappings != null ? de_RoleMappingMap(output.RoleMappings, context) : undefined,
|
|
1782
|
-
Roles: output.Roles != null ? de_RolesMap(output.Roles, context) : undefined,
|
|
1783
|
-
};
|
|
1784
|
-
};
|
|
1785
|
-
const de_GetIdResponse = (output, context) => {
|
|
1786
|
-
return {
|
|
1787
|
-
IdentityId: __expectString(output.IdentityId),
|
|
1788
|
-
};
|
|
1789
|
-
};
|
|
1790
|
-
const de_GetOpenIdTokenForDeveloperIdentityResponse = (output, context) => {
|
|
1791
|
-
return {
|
|
1792
|
-
IdentityId: __expectString(output.IdentityId),
|
|
1793
|
-
Token: __expectString(output.Token),
|
|
1794
|
-
};
|
|
1795
|
-
};
|
|
1796
|
-
const de_GetOpenIdTokenResponse = (output, context) => {
|
|
1797
|
-
return {
|
|
1798
|
-
IdentityId: __expectString(output.IdentityId),
|
|
1799
|
-
Token: __expectString(output.Token),
|
|
1800
|
-
};
|
|
1801
|
-
};
|
|
1802
|
-
const de_GetPrincipalTagAttributeMapResponse = (output, context) => {
|
|
1803
|
-
return {
|
|
1804
|
-
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
1805
|
-
IdentityProviderName: __expectString(output.IdentityProviderName),
|
|
1806
|
-
PrincipalTags: output.PrincipalTags != null ? de_PrincipalTags(output.PrincipalTags, context) : undefined,
|
|
1807
|
-
UseDefaults: __expectBoolean(output.UseDefaults),
|
|
1808
|
-
};
|
|
1311
|
+
return take(output, {
|
|
1312
|
+
Credentials: (_) => de_Credentials(_, context),
|
|
1313
|
+
IdentityId: __expectString,
|
|
1314
|
+
});
|
|
1809
1315
|
};
|
|
1810
1316
|
const de_IdentitiesList = (output, context) => {
|
|
1811
1317
|
const retVal = (output || [])
|
|
1812
1318
|
.filter((e) => e != null)
|
|
1813
1319
|
.map((entry) => {
|
|
1814
|
-
if (entry === null) {
|
|
1815
|
-
return null;
|
|
1816
|
-
}
|
|
1817
1320
|
return de_IdentityDescription(entry, context);
|
|
1818
1321
|
});
|
|
1819
1322
|
return retVal;
|
|
1820
1323
|
};
|
|
1821
1324
|
const de_IdentityDescription = (output, context) => {
|
|
1822
|
-
return {
|
|
1823
|
-
CreationDate:
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
LastModifiedDate: output.LastModifiedDate != null
|
|
1828
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
|
|
1829
|
-
: undefined,
|
|
1830
|
-
Logins: output.Logins != null ? de_LoginsList(output.Logins, context) : undefined,
|
|
1831
|
-
};
|
|
1832
|
-
};
|
|
1833
|
-
const de_IdentityPool = (output, context) => {
|
|
1834
|
-
return {
|
|
1835
|
-
AllowClassicFlow: __expectBoolean(output.AllowClassicFlow),
|
|
1836
|
-
AllowUnauthenticatedIdentities: __expectBoolean(output.AllowUnauthenticatedIdentities),
|
|
1837
|
-
CognitoIdentityProviders: output.CognitoIdentityProviders != null
|
|
1838
|
-
? de_CognitoIdentityProviderList(output.CognitoIdentityProviders, context)
|
|
1839
|
-
: undefined,
|
|
1840
|
-
DeveloperProviderName: __expectString(output.DeveloperProviderName),
|
|
1841
|
-
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
1842
|
-
IdentityPoolName: __expectString(output.IdentityPoolName),
|
|
1843
|
-
IdentityPoolTags: output.IdentityPoolTags != null ? de_IdentityPoolTagsType(output.IdentityPoolTags, context) : undefined,
|
|
1844
|
-
OpenIdConnectProviderARNs: output.OpenIdConnectProviderARNs != null
|
|
1845
|
-
? de_OIDCProviderList(output.OpenIdConnectProviderARNs, context)
|
|
1846
|
-
: undefined,
|
|
1847
|
-
SamlProviderARNs: output.SamlProviderARNs != null ? de_SAMLProviderList(output.SamlProviderARNs, context) : undefined,
|
|
1848
|
-
SupportedLoginProviders: output.SupportedLoginProviders != null
|
|
1849
|
-
? de_IdentityProviders(output.SupportedLoginProviders, context)
|
|
1850
|
-
: undefined,
|
|
1851
|
-
};
|
|
1852
|
-
};
|
|
1853
|
-
const de_IdentityPoolShortDescription = (output, context) => {
|
|
1854
|
-
return {
|
|
1855
|
-
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
1856
|
-
IdentityPoolName: __expectString(output.IdentityPoolName),
|
|
1857
|
-
};
|
|
1858
|
-
};
|
|
1859
|
-
const de_IdentityPoolsList = (output, context) => {
|
|
1860
|
-
const retVal = (output || [])
|
|
1861
|
-
.filter((e) => e != null)
|
|
1862
|
-
.map((entry) => {
|
|
1863
|
-
if (entry === null) {
|
|
1864
|
-
return null;
|
|
1865
|
-
}
|
|
1866
|
-
return de_IdentityPoolShortDescription(entry, context);
|
|
1325
|
+
return take(output, {
|
|
1326
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1327
|
+
IdentityId: __expectString,
|
|
1328
|
+
LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1329
|
+
Logins: _json,
|
|
1867
1330
|
});
|
|
1868
|
-
return retVal;
|
|
1869
|
-
};
|
|
1870
|
-
const de_IdentityPoolTagsType = (output, context) => {
|
|
1871
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1872
|
-
if (value === null) {
|
|
1873
|
-
return acc;
|
|
1874
|
-
}
|
|
1875
|
-
acc[key] = __expectString(value);
|
|
1876
|
-
return acc;
|
|
1877
|
-
}, {});
|
|
1878
|
-
};
|
|
1879
|
-
const de_IdentityProviders = (output, context) => {
|
|
1880
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1881
|
-
if (value === null) {
|
|
1882
|
-
return acc;
|
|
1883
|
-
}
|
|
1884
|
-
acc[key] = __expectString(value);
|
|
1885
|
-
return acc;
|
|
1886
|
-
}, {});
|
|
1887
|
-
};
|
|
1888
|
-
const de_InternalErrorException = (output, context) => {
|
|
1889
|
-
return {
|
|
1890
|
-
message: __expectString(output.message),
|
|
1891
|
-
};
|
|
1892
|
-
};
|
|
1893
|
-
const de_InvalidIdentityPoolConfigurationException = (output, context) => {
|
|
1894
|
-
return {
|
|
1895
|
-
message: __expectString(output.message),
|
|
1896
|
-
};
|
|
1897
|
-
};
|
|
1898
|
-
const de_InvalidParameterException = (output, context) => {
|
|
1899
|
-
return {
|
|
1900
|
-
message: __expectString(output.message),
|
|
1901
|
-
};
|
|
1902
|
-
};
|
|
1903
|
-
const de_LimitExceededException = (output, context) => {
|
|
1904
|
-
return {
|
|
1905
|
-
message: __expectString(output.message),
|
|
1906
|
-
};
|
|
1907
1331
|
};
|
|
1908
1332
|
const de_ListIdentitiesResponse = (output, context) => {
|
|
1909
|
-
return {
|
|
1910
|
-
Identities:
|
|
1911
|
-
IdentityPoolId: __expectString
|
|
1912
|
-
NextToken: __expectString
|
|
1913
|
-
};
|
|
1914
|
-
};
|
|
1915
|
-
const de_ListIdentityPoolsResponse = (output, context) => {
|
|
1916
|
-
return {
|
|
1917
|
-
IdentityPools: output.IdentityPools != null ? de_IdentityPoolsList(output.IdentityPools, context) : undefined,
|
|
1918
|
-
NextToken: __expectString(output.NextToken),
|
|
1919
|
-
};
|
|
1920
|
-
};
|
|
1921
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1922
|
-
return {
|
|
1923
|
-
Tags: output.Tags != null ? de_IdentityPoolTagsType(output.Tags, context) : undefined,
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
const de_LoginsList = (output, context) => {
|
|
1927
|
-
const retVal = (output || [])
|
|
1928
|
-
.filter((e) => e != null)
|
|
1929
|
-
.map((entry) => {
|
|
1930
|
-
if (entry === null) {
|
|
1931
|
-
return null;
|
|
1932
|
-
}
|
|
1933
|
-
return __expectString(entry);
|
|
1934
|
-
});
|
|
1935
|
-
return retVal;
|
|
1936
|
-
};
|
|
1937
|
-
const de_LookupDeveloperIdentityResponse = (output, context) => {
|
|
1938
|
-
return {
|
|
1939
|
-
DeveloperUserIdentifierList: output.DeveloperUserIdentifierList != null
|
|
1940
|
-
? de_DeveloperUserIdentifierList(output.DeveloperUserIdentifierList, context)
|
|
1941
|
-
: undefined,
|
|
1942
|
-
IdentityId: __expectString(output.IdentityId),
|
|
1943
|
-
NextToken: __expectString(output.NextToken),
|
|
1944
|
-
};
|
|
1945
|
-
};
|
|
1946
|
-
const de_MappingRule = (output, context) => {
|
|
1947
|
-
return {
|
|
1948
|
-
Claim: __expectString(output.Claim),
|
|
1949
|
-
MatchType: __expectString(output.MatchType),
|
|
1950
|
-
RoleARN: __expectString(output.RoleARN),
|
|
1951
|
-
Value: __expectString(output.Value),
|
|
1952
|
-
};
|
|
1953
|
-
};
|
|
1954
|
-
const de_MappingRulesList = (output, context) => {
|
|
1955
|
-
const retVal = (output || [])
|
|
1956
|
-
.filter((e) => e != null)
|
|
1957
|
-
.map((entry) => {
|
|
1958
|
-
if (entry === null) {
|
|
1959
|
-
return null;
|
|
1960
|
-
}
|
|
1961
|
-
return de_MappingRule(entry, context);
|
|
1962
|
-
});
|
|
1963
|
-
return retVal;
|
|
1964
|
-
};
|
|
1965
|
-
const de_MergeDeveloperIdentitiesResponse = (output, context) => {
|
|
1966
|
-
return {
|
|
1967
|
-
IdentityId: __expectString(output.IdentityId),
|
|
1968
|
-
};
|
|
1969
|
-
};
|
|
1970
|
-
const de_NotAuthorizedException = (output, context) => {
|
|
1971
|
-
return {
|
|
1972
|
-
message: __expectString(output.message),
|
|
1973
|
-
};
|
|
1974
|
-
};
|
|
1975
|
-
const de_OIDCProviderList = (output, context) => {
|
|
1976
|
-
const retVal = (output || [])
|
|
1977
|
-
.filter((e) => e != null)
|
|
1978
|
-
.map((entry) => {
|
|
1979
|
-
if (entry === null) {
|
|
1980
|
-
return null;
|
|
1981
|
-
}
|
|
1982
|
-
return __expectString(entry);
|
|
1983
|
-
});
|
|
1984
|
-
return retVal;
|
|
1985
|
-
};
|
|
1986
|
-
const de_PrincipalTags = (output, context) => {
|
|
1987
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1988
|
-
if (value === null) {
|
|
1989
|
-
return acc;
|
|
1990
|
-
}
|
|
1991
|
-
acc[key] = __expectString(value);
|
|
1992
|
-
return acc;
|
|
1993
|
-
}, {});
|
|
1994
|
-
};
|
|
1995
|
-
const de_ResourceConflictException = (output, context) => {
|
|
1996
|
-
return {
|
|
1997
|
-
message: __expectString(output.message),
|
|
1998
|
-
};
|
|
1999
|
-
};
|
|
2000
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2001
|
-
return {
|
|
2002
|
-
message: __expectString(output.message),
|
|
2003
|
-
};
|
|
2004
|
-
};
|
|
2005
|
-
const de_RoleMapping = (output, context) => {
|
|
2006
|
-
return {
|
|
2007
|
-
AmbiguousRoleResolution: __expectString(output.AmbiguousRoleResolution),
|
|
2008
|
-
RulesConfiguration: output.RulesConfiguration != null ? de_RulesConfigurationType(output.RulesConfiguration, context) : undefined,
|
|
2009
|
-
Type: __expectString(output.Type),
|
|
2010
|
-
};
|
|
2011
|
-
};
|
|
2012
|
-
const de_RoleMappingMap = (output, context) => {
|
|
2013
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2014
|
-
if (value === null) {
|
|
2015
|
-
return acc;
|
|
2016
|
-
}
|
|
2017
|
-
acc[key] = de_RoleMapping(value, context);
|
|
2018
|
-
return acc;
|
|
2019
|
-
}, {});
|
|
2020
|
-
};
|
|
2021
|
-
const de_RolesMap = (output, context) => {
|
|
2022
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2023
|
-
if (value === null) {
|
|
2024
|
-
return acc;
|
|
2025
|
-
}
|
|
2026
|
-
acc[key] = __expectString(value);
|
|
2027
|
-
return acc;
|
|
2028
|
-
}, {});
|
|
2029
|
-
};
|
|
2030
|
-
const de_RulesConfigurationType = (output, context) => {
|
|
2031
|
-
return {
|
|
2032
|
-
Rules: output.Rules != null ? de_MappingRulesList(output.Rules, context) : undefined,
|
|
2033
|
-
};
|
|
2034
|
-
};
|
|
2035
|
-
const de_SAMLProviderList = (output, context) => {
|
|
2036
|
-
const retVal = (output || [])
|
|
2037
|
-
.filter((e) => e != null)
|
|
2038
|
-
.map((entry) => {
|
|
2039
|
-
if (entry === null) {
|
|
2040
|
-
return null;
|
|
2041
|
-
}
|
|
2042
|
-
return __expectString(entry);
|
|
1333
|
+
return take(output, {
|
|
1334
|
+
Identities: (_) => de_IdentitiesList(_, context),
|
|
1335
|
+
IdentityPoolId: __expectString,
|
|
1336
|
+
NextToken: __expectString,
|
|
2043
1337
|
});
|
|
2044
|
-
return retVal;
|
|
2045
|
-
};
|
|
2046
|
-
const de_SetPrincipalTagAttributeMapResponse = (output, context) => {
|
|
2047
|
-
return {
|
|
2048
|
-
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2049
|
-
IdentityProviderName: __expectString(output.IdentityProviderName),
|
|
2050
|
-
PrincipalTags: output.PrincipalTags != null ? de_PrincipalTags(output.PrincipalTags, context) : undefined,
|
|
2051
|
-
UseDefaults: __expectBoolean(output.UseDefaults),
|
|
2052
|
-
};
|
|
2053
|
-
};
|
|
2054
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2055
|
-
return {};
|
|
2056
|
-
};
|
|
2057
|
-
const de_TooManyRequestsException = (output, context) => {
|
|
2058
|
-
return {
|
|
2059
|
-
message: __expectString(output.message),
|
|
2060
|
-
};
|
|
2061
|
-
};
|
|
2062
|
-
const de_UnprocessedIdentityId = (output, context) => {
|
|
2063
|
-
return {
|
|
2064
|
-
ErrorCode: __expectString(output.ErrorCode),
|
|
2065
|
-
IdentityId: __expectString(output.IdentityId),
|
|
2066
|
-
};
|
|
2067
|
-
};
|
|
2068
|
-
const de_UnprocessedIdentityIdList = (output, context) => {
|
|
2069
|
-
const retVal = (output || [])
|
|
2070
|
-
.filter((e) => e != null)
|
|
2071
|
-
.map((entry) => {
|
|
2072
|
-
if (entry === null) {
|
|
2073
|
-
return null;
|
|
2074
|
-
}
|
|
2075
|
-
return de_UnprocessedIdentityId(entry, context);
|
|
2076
|
-
});
|
|
2077
|
-
return retVal;
|
|
2078
|
-
};
|
|
2079
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2080
|
-
return {};
|
|
2081
1338
|
};
|
|
2082
1339
|
const deserializeMetadata = (output) => ({
|
|
2083
1340
|
httpStatusCode: output.statusCode,
|
|
@@ -2092,6 +1349,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2092
1349
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2093
1350
|
};
|
|
2094
1351
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1352
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2095
1353
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2096
1354
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2097
1355
|
const contents = {
|
|
@@ -2110,6 +1368,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2110
1368
|
}
|
|
2111
1369
|
return new __HttpRequest(contents);
|
|
2112
1370
|
};
|
|
1371
|
+
function sharedHeaders(operation) {
|
|
1372
|
+
return {
|
|
1373
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1374
|
+
"x-amz-target": `AWSCognitoIdentityService.${operation}`,
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
2113
1377
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2114
1378
|
if (encoded.length) {
|
|
2115
1379
|
return JSON.parse(encoded);
|