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