@aws-sdk/client-identitystore 3.51.0 → 3.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/IdentitystoreServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +79 -1
- package/dist-cjs/protocols/Aws_json1_1.js +57 -187
- package/dist-es/index.js +1 -0
- package/dist-es/models/IdentitystoreServiceException.js +12 -0
- package/dist-es/models/models_0.js +74 -1
- package/dist-es/protocols/Aws_json1_1.js +110 -194
- package/dist-types/IdentitystoreClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/IdentitystoreServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +37 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/IdentitystoreClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/IdentitystoreServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -16
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectString as __expectString } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { IdentitystoreServiceException as __BaseException } from "../models/IdentitystoreServiceException";
|
|
5
|
+
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_1DescribeGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -64,16 +66,16 @@ export var deserializeAws_json1_1DescribeGroupCommand = function (output, contex
|
|
|
64
66
|
});
|
|
65
67
|
}); };
|
|
66
68
|
var deserializeAws_json1_1DescribeGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
67
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
68
|
-
var
|
|
69
|
-
return __generator(this, function (
|
|
70
|
-
switch (
|
|
69
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
70
|
+
var _c;
|
|
71
|
+
return __generator(this, function (_d) {
|
|
72
|
+
switch (_d.label) {
|
|
71
73
|
case 0:
|
|
72
74
|
_a = [__assign({}, output)];
|
|
73
|
-
|
|
75
|
+
_c = {};
|
|
74
76
|
return [4, parseBody(output.body, context)];
|
|
75
77
|
case 1:
|
|
76
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
78
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
77
79
|
errorCode = "UnknownError";
|
|
78
80
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
79
81
|
_b = errorCode;
|
|
@@ -90,46 +92,24 @@ var deserializeAws_json1_1DescribeGroupCommandError = function (output, context)
|
|
|
90
92
|
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
91
93
|
}
|
|
92
94
|
return [3, 12];
|
|
93
|
-
case 2:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
case
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
case 4
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
case
|
|
103
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
104
|
-
return [3, 13];
|
|
105
|
-
case 6:
|
|
106
|
-
_e = [{}];
|
|
107
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
108
|
-
case 7:
|
|
109
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
110
|
-
return [3, 13];
|
|
111
|
-
case 8:
|
|
112
|
-
_f = [{}];
|
|
113
|
-
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
114
|
-
case 9:
|
|
115
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
116
|
-
return [3, 13];
|
|
117
|
-
case 10:
|
|
118
|
-
_g = [{}];
|
|
119
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
120
|
-
case 11:
|
|
121
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
122
|
-
return [3, 13];
|
|
95
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
96
|
+
case 3: throw _d.sent();
|
|
97
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
98
|
+
case 5: throw _d.sent();
|
|
99
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
100
|
+
case 7: throw _d.sent();
|
|
101
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
102
|
+
case 9: throw _d.sent();
|
|
103
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
104
|
+
case 11: throw _d.sent();
|
|
123
105
|
case 12:
|
|
124
106
|
parsedBody = parsedOutput.body;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
response
|
|
131
|
-
delete response.Message;
|
|
132
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
107
|
+
response = new __BaseException({
|
|
108
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
109
|
+
$fault: "client",
|
|
110
|
+
$metadata: deserializeMetadata(output),
|
|
111
|
+
});
|
|
112
|
+
throw __decorateServiceException(response, parsedBody);
|
|
133
113
|
}
|
|
134
114
|
});
|
|
135
115
|
}); };
|
|
@@ -152,16 +132,16 @@ export var deserializeAws_json1_1DescribeUserCommand = function (output, context
|
|
|
152
132
|
});
|
|
153
133
|
}); };
|
|
154
134
|
var deserializeAws_json1_1DescribeUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
155
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
156
|
-
var
|
|
157
|
-
return __generator(this, function (
|
|
158
|
-
switch (
|
|
135
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
136
|
+
var _c;
|
|
137
|
+
return __generator(this, function (_d) {
|
|
138
|
+
switch (_d.label) {
|
|
159
139
|
case 0:
|
|
160
140
|
_a = [__assign({}, output)];
|
|
161
|
-
|
|
141
|
+
_c = {};
|
|
162
142
|
return [4, parseBody(output.body, context)];
|
|
163
143
|
case 1:
|
|
164
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
144
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
165
145
|
errorCode = "UnknownError";
|
|
166
146
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
167
147
|
_b = errorCode;
|
|
@@ -178,46 +158,24 @@ var deserializeAws_json1_1DescribeUserCommandError = function (output, context)
|
|
|
178
158
|
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
179
159
|
}
|
|
180
160
|
return [3, 12];
|
|
181
|
-
case 2:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
case
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
case 4
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
case
|
|
191
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
192
|
-
return [3, 13];
|
|
193
|
-
case 6:
|
|
194
|
-
_e = [{}];
|
|
195
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
196
|
-
case 7:
|
|
197
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
198
|
-
return [3, 13];
|
|
199
|
-
case 8:
|
|
200
|
-
_f = [{}];
|
|
201
|
-
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
202
|
-
case 9:
|
|
203
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
204
|
-
return [3, 13];
|
|
205
|
-
case 10:
|
|
206
|
-
_g = [{}];
|
|
207
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
208
|
-
case 11:
|
|
209
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
210
|
-
return [3, 13];
|
|
161
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
162
|
+
case 3: throw _d.sent();
|
|
163
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
164
|
+
case 5: throw _d.sent();
|
|
165
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
166
|
+
case 7: throw _d.sent();
|
|
167
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
168
|
+
case 9: throw _d.sent();
|
|
169
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
170
|
+
case 11: throw _d.sent();
|
|
211
171
|
case 12:
|
|
212
172
|
parsedBody = parsedOutput.body;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
response
|
|
219
|
-
delete response.Message;
|
|
220
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
173
|
+
response = new __BaseException({
|
|
174
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
175
|
+
$fault: "client",
|
|
176
|
+
$metadata: deserializeMetadata(output),
|
|
177
|
+
});
|
|
178
|
+
throw __decorateServiceException(response, parsedBody);
|
|
221
179
|
}
|
|
222
180
|
});
|
|
223
181
|
}); };
|
|
@@ -240,16 +198,16 @@ export var deserializeAws_json1_1ListGroupsCommand = function (output, context)
|
|
|
240
198
|
});
|
|
241
199
|
}); };
|
|
242
200
|
var deserializeAws_json1_1ListGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
243
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
244
|
-
var
|
|
245
|
-
return __generator(this, function (
|
|
246
|
-
switch (
|
|
201
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
202
|
+
var _c;
|
|
203
|
+
return __generator(this, function (_d) {
|
|
204
|
+
switch (_d.label) {
|
|
247
205
|
case 0:
|
|
248
206
|
_a = [__assign({}, output)];
|
|
249
|
-
|
|
207
|
+
_c = {};
|
|
250
208
|
return [4, parseBody(output.body, context)];
|
|
251
209
|
case 1:
|
|
252
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
210
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
253
211
|
errorCode = "UnknownError";
|
|
254
212
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
255
213
|
_b = errorCode;
|
|
@@ -266,46 +224,24 @@ var deserializeAws_json1_1ListGroupsCommandError = function (output, context) {
|
|
|
266
224
|
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
267
225
|
}
|
|
268
226
|
return [3, 12];
|
|
269
|
-
case 2:
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
case
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
case 4
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
case
|
|
279
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
280
|
-
return [3, 13];
|
|
281
|
-
case 6:
|
|
282
|
-
_e = [{}];
|
|
283
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
284
|
-
case 7:
|
|
285
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
286
|
-
return [3, 13];
|
|
287
|
-
case 8:
|
|
288
|
-
_f = [{}];
|
|
289
|
-
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
290
|
-
case 9:
|
|
291
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
292
|
-
return [3, 13];
|
|
293
|
-
case 10:
|
|
294
|
-
_g = [{}];
|
|
295
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
296
|
-
case 11:
|
|
297
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
298
|
-
return [3, 13];
|
|
227
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
228
|
+
case 3: throw _d.sent();
|
|
229
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
230
|
+
case 5: throw _d.sent();
|
|
231
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
232
|
+
case 7: throw _d.sent();
|
|
233
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
234
|
+
case 9: throw _d.sent();
|
|
235
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
236
|
+
case 11: throw _d.sent();
|
|
299
237
|
case 12:
|
|
300
238
|
parsedBody = parsedOutput.body;
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
response
|
|
307
|
-
delete response.Message;
|
|
308
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
239
|
+
response = new __BaseException({
|
|
240
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
241
|
+
$fault: "client",
|
|
242
|
+
$metadata: deserializeMetadata(output),
|
|
243
|
+
});
|
|
244
|
+
throw __decorateServiceException(response, parsedBody);
|
|
309
245
|
}
|
|
310
246
|
});
|
|
311
247
|
}); };
|
|
@@ -328,16 +264,16 @@ export var deserializeAws_json1_1ListUsersCommand = function (output, context) {
|
|
|
328
264
|
});
|
|
329
265
|
}); };
|
|
330
266
|
var deserializeAws_json1_1ListUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
331
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
332
|
-
var
|
|
333
|
-
return __generator(this, function (
|
|
334
|
-
switch (
|
|
267
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
268
|
+
var _c;
|
|
269
|
+
return __generator(this, function (_d) {
|
|
270
|
+
switch (_d.label) {
|
|
335
271
|
case 0:
|
|
336
272
|
_a = [__assign({}, output)];
|
|
337
|
-
|
|
273
|
+
_c = {};
|
|
338
274
|
return [4, parseBody(output.body, context)];
|
|
339
275
|
case 1:
|
|
340
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
276
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
341
277
|
errorCode = "UnknownError";
|
|
342
278
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
279
|
_b = errorCode;
|
|
@@ -354,92 +290,70 @@ var deserializeAws_json1_1ListUsersCommandError = function (output, context) { r
|
|
|
354
290
|
case "com.amazonaws.identitystore#ValidationException": return [3, 10];
|
|
355
291
|
}
|
|
356
292
|
return [3, 12];
|
|
357
|
-
case 2:
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
case
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
case 4
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
case
|
|
367
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
368
|
-
return [3, 13];
|
|
369
|
-
case 6:
|
|
370
|
-
_e = [{}];
|
|
371
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
372
|
-
case 7:
|
|
373
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
374
|
-
return [3, 13];
|
|
375
|
-
case 8:
|
|
376
|
-
_f = [{}];
|
|
377
|
-
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
378
|
-
case 9:
|
|
379
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
380
|
-
return [3, 13];
|
|
381
|
-
case 10:
|
|
382
|
-
_g = [{}];
|
|
383
|
-
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
384
|
-
case 11:
|
|
385
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
386
|
-
return [3, 13];
|
|
293
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
294
|
+
case 3: throw _d.sent();
|
|
295
|
+
case 4: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
296
|
+
case 5: throw _d.sent();
|
|
297
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
298
|
+
case 7: throw _d.sent();
|
|
299
|
+
case 8: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
300
|
+
case 9: throw _d.sent();
|
|
301
|
+
case 10: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
302
|
+
case 11: throw _d.sent();
|
|
387
303
|
case 12:
|
|
388
304
|
parsedBody = parsedOutput.body;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
response
|
|
395
|
-
delete response.Message;
|
|
396
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
305
|
+
response = new __BaseException({
|
|
306
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
307
|
+
$fault: "client",
|
|
308
|
+
$metadata: deserializeMetadata(output),
|
|
309
|
+
});
|
|
310
|
+
throw __decorateServiceException(response, parsedBody);
|
|
397
311
|
}
|
|
398
312
|
});
|
|
399
313
|
}); };
|
|
400
314
|
var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
401
|
-
var body, deserialized,
|
|
315
|
+
var body, deserialized, exception;
|
|
402
316
|
return __generator(this, function (_a) {
|
|
403
317
|
body = parsedOutput.body;
|
|
404
318
|
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
405
|
-
|
|
406
|
-
return [2,
|
|
319
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
320
|
+
return [2, __decorateServiceException(exception, body)];
|
|
407
321
|
});
|
|
408
322
|
}); };
|
|
409
323
|
var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
410
|
-
var body, deserialized,
|
|
324
|
+
var body, deserialized, exception;
|
|
411
325
|
return __generator(this, function (_a) {
|
|
412
326
|
body = parsedOutput.body;
|
|
413
327
|
deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
414
|
-
|
|
415
|
-
return [2,
|
|
328
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
329
|
+
return [2, __decorateServiceException(exception, body)];
|
|
416
330
|
});
|
|
417
331
|
}); };
|
|
418
332
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
419
|
-
var body, deserialized,
|
|
333
|
+
var body, deserialized, exception;
|
|
420
334
|
return __generator(this, function (_a) {
|
|
421
335
|
body = parsedOutput.body;
|
|
422
336
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
423
|
-
|
|
424
|
-
return [2,
|
|
337
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
338
|
+
return [2, __decorateServiceException(exception, body)];
|
|
425
339
|
});
|
|
426
340
|
}); };
|
|
427
341
|
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
428
|
-
var body, deserialized,
|
|
342
|
+
var body, deserialized, exception;
|
|
429
343
|
return __generator(this, function (_a) {
|
|
430
344
|
body = parsedOutput.body;
|
|
431
345
|
deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
432
|
-
|
|
433
|
-
return [2,
|
|
346
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
347
|
+
return [2, __decorateServiceException(exception, body)];
|
|
434
348
|
});
|
|
435
349
|
}); };
|
|
436
350
|
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
437
|
-
var body, deserialized,
|
|
351
|
+
var body, deserialized, exception;
|
|
438
352
|
return __generator(this, function (_a) {
|
|
439
353
|
body = parsedOutput.body;
|
|
440
354
|
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
441
|
-
|
|
442
|
-
return [2,
|
|
355
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
356
|
+
return [2, __decorateServiceException(exception, body)];
|
|
443
357
|
});
|
|
444
358
|
}); };
|
|
445
359
|
var serializeAws_json1_1DescribeGroupRequest = function (input, context) {
|
|
@@ -499,7 +413,7 @@ var deserializeAws_json1_1Group = function (output, context) {
|
|
|
499
413
|
};
|
|
500
414
|
};
|
|
501
415
|
var deserializeAws_json1_1Groups = function (output, context) {
|
|
502
|
-
|
|
416
|
+
var retVal = (output || [])
|
|
503
417
|
.filter(function (e) { return e != null; })
|
|
504
418
|
.map(function (entry) {
|
|
505
419
|
if (entry === null) {
|
|
@@ -507,6 +421,7 @@ var deserializeAws_json1_1Groups = function (output, context) {
|
|
|
507
421
|
}
|
|
508
422
|
return deserializeAws_json1_1Group(entry, context);
|
|
509
423
|
});
|
|
424
|
+
return retVal;
|
|
510
425
|
};
|
|
511
426
|
var deserializeAws_json1_1InternalServerException = function (output, context) {
|
|
512
427
|
return {
|
|
@@ -551,7 +466,7 @@ var deserializeAws_json1_1User = function (output, context) {
|
|
|
551
466
|
};
|
|
552
467
|
};
|
|
553
468
|
var deserializeAws_json1_1Users = function (output, context) {
|
|
554
|
-
|
|
469
|
+
var retVal = (output || [])
|
|
555
470
|
.filter(function (e) { return e != null; })
|
|
556
471
|
.map(function (entry) {
|
|
557
472
|
if (entry === null) {
|
|
@@ -559,6 +474,7 @@ var deserializeAws_json1_1Users = function (output, context) {
|
|
|
559
474
|
}
|
|
560
475
|
return deserializeAws_json1_1User(entry, context);
|
|
561
476
|
});
|
|
477
|
+
return retVal;
|
|
562
478
|
};
|
|
563
479
|
var deserializeAws_json1_1ValidationException = function (output, context) {
|
|
564
480
|
return {
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { DescribeGroupCommandInput, DescribeGroupCommandOutput } from "./commands/DescribeGroupCommand";
|
|
10
10
|
import { DescribeUserCommandInput, DescribeUserCommandOutput } from "./commands/DescribeUserCommand";
|
|
11
11
|
import { ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
|
|
@@ -32,7 +32,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
32
32
|
* A function that can calculate the length of a request body.
|
|
33
33
|
* @internal
|
|
34
34
|
*/
|
|
35
|
-
bodyLengthChecker?:
|
|
35
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
36
36
|
/**
|
|
37
37
|
* A function that converts a stream into an array of bytes.
|
|
38
38
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from Identitystore service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class IdentitystoreServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { IdentitystoreServiceException as __BaseException } from "./IdentitystoreServiceException";
|
|
2
3
|
/**
|
|
3
4
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
-
name: "AccessDeniedException";
|
|
7
|
-
$fault: "client";
|
|
6
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
7
|
+
readonly name: "AccessDeniedException";
|
|
8
|
+
readonly $fault: "client";
|
|
8
9
|
Message?: string;
|
|
9
10
|
/**
|
|
10
11
|
* <p>The identifier for each request. This value is a globally unique ID that is generated by the Identity Store service for each sent request, and is then returned inside the exception if the request fails.</p>
|
|
11
12
|
*/
|
|
12
13
|
RequestId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
13
18
|
}
|
|
14
19
|
export interface DescribeGroupRequest {
|
|
15
20
|
/**
|
|
@@ -55,14 +60,18 @@ export declare namespace DescribeGroupResponse {
|
|
|
55
60
|
/**
|
|
56
61
|
* <p>The request processing has failed because of an unknown error, exception or failure with an internal server.</p>
|
|
57
62
|
*/
|
|
58
|
-
export
|
|
59
|
-
name: "InternalServerException";
|
|
60
|
-
$fault: "server";
|
|
63
|
+
export declare class InternalServerException extends __BaseException {
|
|
64
|
+
readonly name: "InternalServerException";
|
|
65
|
+
readonly $fault: "server";
|
|
61
66
|
Message?: string;
|
|
62
67
|
/**
|
|
63
68
|
* <p>The identifier for each request. This value is a globally unique ID that is generated by the Identity Store service for each sent request, and is then returned inside the exception if the request fails.</p>
|
|
64
69
|
*/
|
|
65
70
|
RequestId?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
66
75
|
}
|
|
67
76
|
export declare enum ResourceType {
|
|
68
77
|
GROUP = "GROUP",
|
|
@@ -72,9 +81,9 @@ export declare enum ResourceType {
|
|
|
72
81
|
/**
|
|
73
82
|
* <p>Indicates that a requested resource is not found.</p>
|
|
74
83
|
*/
|
|
75
|
-
export
|
|
76
|
-
name: "ResourceNotFoundException";
|
|
77
|
-
$fault: "client";
|
|
84
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
85
|
+
readonly name: "ResourceNotFoundException";
|
|
86
|
+
readonly $fault: "client";
|
|
78
87
|
/**
|
|
79
88
|
* <p>The type of resource in the Identity Store service, which is an enum object. Valid values include USER, GROUP, and IDENTITY_STORE.</p>
|
|
80
89
|
*/
|
|
@@ -88,30 +97,42 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
88
97
|
* <p>The identifier for each request. This value is a globally unique ID that is generated by the Identity Store service for each sent request, and is then returned inside the exception if the request fails.</p>
|
|
89
98
|
*/
|
|
90
99
|
RequestId?: string;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
91
104
|
}
|
|
92
105
|
/**
|
|
93
106
|
* <p>Indicates that the principal has crossed the throttling limits of the API operations.</p>
|
|
94
107
|
*/
|
|
95
|
-
export
|
|
96
|
-
name: "ThrottlingException";
|
|
97
|
-
$fault: "client";
|
|
108
|
+
export declare class ThrottlingException extends __BaseException {
|
|
109
|
+
readonly name: "ThrottlingException";
|
|
110
|
+
readonly $fault: "client";
|
|
98
111
|
Message?: string;
|
|
99
112
|
/**
|
|
100
113
|
* <p>The identifier for each request. This value is a globally unique ID that is generated by the Identity Store service for each sent request, and is then returned inside the exception if the request fails.</p>
|
|
101
114
|
*/
|
|
102
115
|
RequestId?: string;
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
103
120
|
}
|
|
104
121
|
/**
|
|
105
122
|
* <p>The request failed because it contains a syntax error.</p>
|
|
106
123
|
*/
|
|
107
|
-
export
|
|
108
|
-
name: "ValidationException";
|
|
109
|
-
$fault: "client";
|
|
124
|
+
export declare class ValidationException extends __BaseException {
|
|
125
|
+
readonly name: "ValidationException";
|
|
126
|
+
readonly $fault: "client";
|
|
110
127
|
Message?: string;
|
|
111
128
|
/**
|
|
112
129
|
* <p>The identifier for each request. This value is a globally unique ID that is generated by the Identity Store service for each sent request, and is then returned inside the exception if the request fails.</p>
|
|
113
130
|
*/
|
|
114
131
|
RequestId?: string;
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
115
136
|
}
|
|
116
137
|
export interface DescribeUserRequest {
|
|
117
138
|
/**
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IdentitystoreClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IdentitystoreClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IdentitystoreClientConfig) => {
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|