@aws-sdk/client-clouddirectory 3.141.0 → 3.150.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/protocols/Aws_restJson1.js +855 -1185
- package/dist-es/protocols/Aws_restJson1.js +1101 -1067
- package/package.json +11 -6
|
@@ -9,10 +9,10 @@ const CloudDirectoryServiceException_1 = require("../models/CloudDirectoryServic
|
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const serializeAws_restJson1AddFacetToObjectCommand = async (input, context) => {
|
|
11
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
12
|
-
const headers = {
|
|
12
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
13
13
|
"content-type": "application/json",
|
|
14
|
-
|
|
15
|
-
};
|
|
14
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
15
|
+
});
|
|
16
16
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
17
17
|
"/amazonclouddirectory/2017-01-11/object/facets";
|
|
18
18
|
let body;
|
|
@@ -38,10 +38,10 @@ const serializeAws_restJson1AddFacetToObjectCommand = async (input, context) =>
|
|
|
38
38
|
exports.serializeAws_restJson1AddFacetToObjectCommand = serializeAws_restJson1AddFacetToObjectCommand;
|
|
39
39
|
const serializeAws_restJson1ApplySchemaCommand = async (input, context) => {
|
|
40
40
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
|
-
const headers = {
|
|
41
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
42
42
|
"content-type": "application/json",
|
|
43
|
-
|
|
44
|
-
};
|
|
43
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
44
|
+
});
|
|
45
45
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
46
46
|
"/amazonclouddirectory/2017-01-11/schema/apply";
|
|
47
47
|
let body;
|
|
@@ -61,10 +61,10 @@ const serializeAws_restJson1ApplySchemaCommand = async (input, context) => {
|
|
|
61
61
|
exports.serializeAws_restJson1ApplySchemaCommand = serializeAws_restJson1ApplySchemaCommand;
|
|
62
62
|
const serializeAws_restJson1AttachObjectCommand = async (input, context) => {
|
|
63
63
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
64
|
-
const headers = {
|
|
64
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
65
65
|
"content-type": "application/json",
|
|
66
|
-
|
|
67
|
-
};
|
|
66
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
67
|
+
});
|
|
68
68
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
69
69
|
"/amazonclouddirectory/2017-01-11/object/attach";
|
|
70
70
|
let body;
|
|
@@ -90,10 +90,10 @@ const serializeAws_restJson1AttachObjectCommand = async (input, context) => {
|
|
|
90
90
|
exports.serializeAws_restJson1AttachObjectCommand = serializeAws_restJson1AttachObjectCommand;
|
|
91
91
|
const serializeAws_restJson1AttachPolicyCommand = async (input, context) => {
|
|
92
92
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
93
|
-
const headers = {
|
|
93
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
94
94
|
"content-type": "application/json",
|
|
95
|
-
|
|
96
|
-
};
|
|
95
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
96
|
+
});
|
|
97
97
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
98
98
|
"/amazonclouddirectory/2017-01-11/policy/attach";
|
|
99
99
|
let body;
|
|
@@ -118,10 +118,10 @@ const serializeAws_restJson1AttachPolicyCommand = async (input, context) => {
|
|
|
118
118
|
exports.serializeAws_restJson1AttachPolicyCommand = serializeAws_restJson1AttachPolicyCommand;
|
|
119
119
|
const serializeAws_restJson1AttachToIndexCommand = async (input, context) => {
|
|
120
120
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
121
|
-
const headers = {
|
|
121
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
122
122
|
"content-type": "application/json",
|
|
123
|
-
|
|
124
|
-
};
|
|
123
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
124
|
+
});
|
|
125
125
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
126
126
|
"/amazonclouddirectory/2017-01-11/index/attach";
|
|
127
127
|
let body;
|
|
@@ -146,10 +146,10 @@ const serializeAws_restJson1AttachToIndexCommand = async (input, context) => {
|
|
|
146
146
|
exports.serializeAws_restJson1AttachToIndexCommand = serializeAws_restJson1AttachToIndexCommand;
|
|
147
147
|
const serializeAws_restJson1AttachTypedLinkCommand = async (input, context) => {
|
|
148
148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
149
|
-
const headers = {
|
|
149
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
150
150
|
"content-type": "application/json",
|
|
151
|
-
|
|
152
|
-
};
|
|
151
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
152
|
+
});
|
|
153
153
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
154
154
|
"/amazonclouddirectory/2017-01-11/typedlink/attach";
|
|
155
155
|
let body;
|
|
@@ -180,11 +180,11 @@ const serializeAws_restJson1AttachTypedLinkCommand = async (input, context) => {
|
|
|
180
180
|
exports.serializeAws_restJson1AttachTypedLinkCommand = serializeAws_restJson1AttachTypedLinkCommand;
|
|
181
181
|
const serializeAws_restJson1BatchReadCommand = async (input, context) => {
|
|
182
182
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
183
|
-
const headers = {
|
|
183
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
184
184
|
"content-type": "application/json",
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
};
|
|
185
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
186
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
187
|
+
});
|
|
188
188
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
189
189
|
"/amazonclouddirectory/2017-01-11/batchread";
|
|
190
190
|
let body;
|
|
@@ -206,10 +206,10 @@ const serializeAws_restJson1BatchReadCommand = async (input, context) => {
|
|
|
206
206
|
exports.serializeAws_restJson1BatchReadCommand = serializeAws_restJson1BatchReadCommand;
|
|
207
207
|
const serializeAws_restJson1BatchWriteCommand = async (input, context) => {
|
|
208
208
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
|
-
const headers = {
|
|
209
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
210
210
|
"content-type": "application/json",
|
|
211
|
-
|
|
212
|
-
};
|
|
211
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
212
|
+
});
|
|
213
213
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
214
214
|
"/amazonclouddirectory/2017-01-11/batchwrite";
|
|
215
215
|
let body;
|
|
@@ -231,10 +231,10 @@ const serializeAws_restJson1BatchWriteCommand = async (input, context) => {
|
|
|
231
231
|
exports.serializeAws_restJson1BatchWriteCommand = serializeAws_restJson1BatchWriteCommand;
|
|
232
232
|
const serializeAws_restJson1CreateDirectoryCommand = async (input, context) => {
|
|
233
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
234
|
-
const headers = {
|
|
234
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
235
235
|
"content-type": "application/json",
|
|
236
|
-
|
|
237
|
-
};
|
|
236
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
237
|
+
});
|
|
238
238
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
239
239
|
"/amazonclouddirectory/2017-01-11/directory/create";
|
|
240
240
|
let body;
|
|
@@ -254,10 +254,10 @@ const serializeAws_restJson1CreateDirectoryCommand = async (input, context) => {
|
|
|
254
254
|
exports.serializeAws_restJson1CreateDirectoryCommand = serializeAws_restJson1CreateDirectoryCommand;
|
|
255
255
|
const serializeAws_restJson1CreateFacetCommand = async (input, context) => {
|
|
256
256
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
257
|
-
const headers = {
|
|
257
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
258
258
|
"content-type": "application/json",
|
|
259
|
-
|
|
260
|
-
};
|
|
259
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
260
|
+
});
|
|
261
261
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
262
262
|
"/amazonclouddirectory/2017-01-11/facet/create";
|
|
263
263
|
let body;
|
|
@@ -282,10 +282,10 @@ const serializeAws_restJson1CreateFacetCommand = async (input, context) => {
|
|
|
282
282
|
exports.serializeAws_restJson1CreateFacetCommand = serializeAws_restJson1CreateFacetCommand;
|
|
283
283
|
const serializeAws_restJson1CreateIndexCommand = async (input, context) => {
|
|
284
284
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
285
|
-
const headers = {
|
|
285
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
286
286
|
"content-type": "application/json",
|
|
287
|
-
|
|
288
|
-
};
|
|
287
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
288
|
+
});
|
|
289
289
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/index";
|
|
290
290
|
let body;
|
|
291
291
|
body = JSON.stringify({
|
|
@@ -311,10 +311,10 @@ const serializeAws_restJson1CreateIndexCommand = async (input, context) => {
|
|
|
311
311
|
exports.serializeAws_restJson1CreateIndexCommand = serializeAws_restJson1CreateIndexCommand;
|
|
312
312
|
const serializeAws_restJson1CreateObjectCommand = async (input, context) => {
|
|
313
313
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
314
|
-
const headers = {
|
|
314
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
315
315
|
"content-type": "application/json",
|
|
316
|
-
|
|
317
|
-
};
|
|
316
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
317
|
+
});
|
|
318
318
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/object";
|
|
319
319
|
let body;
|
|
320
320
|
body = JSON.stringify({
|
|
@@ -364,10 +364,10 @@ const serializeAws_restJson1CreateSchemaCommand = async (input, context) => {
|
|
|
364
364
|
exports.serializeAws_restJson1CreateSchemaCommand = serializeAws_restJson1CreateSchemaCommand;
|
|
365
365
|
const serializeAws_restJson1CreateTypedLinkFacetCommand = async (input, context) => {
|
|
366
366
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
367
|
-
const headers = {
|
|
367
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
368
368
|
"content-type": "application/json",
|
|
369
|
-
|
|
370
|
-
};
|
|
369
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
370
|
+
});
|
|
371
371
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
372
372
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/create";
|
|
373
373
|
let body;
|
|
@@ -387,9 +387,9 @@ const serializeAws_restJson1CreateTypedLinkFacetCommand = async (input, context)
|
|
|
387
387
|
exports.serializeAws_restJson1CreateTypedLinkFacetCommand = serializeAws_restJson1CreateTypedLinkFacetCommand;
|
|
388
388
|
const serializeAws_restJson1DeleteDirectoryCommand = async (input, context) => {
|
|
389
389
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
390
|
-
const headers = {
|
|
391
|
-
|
|
392
|
-
};
|
|
390
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
391
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
392
|
+
});
|
|
393
393
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
394
394
|
"/amazonclouddirectory/2017-01-11/directory";
|
|
395
395
|
let body;
|
|
@@ -406,10 +406,10 @@ const serializeAws_restJson1DeleteDirectoryCommand = async (input, context) => {
|
|
|
406
406
|
exports.serializeAws_restJson1DeleteDirectoryCommand = serializeAws_restJson1DeleteDirectoryCommand;
|
|
407
407
|
const serializeAws_restJson1DeleteFacetCommand = async (input, context) => {
|
|
408
408
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
409
|
-
const headers = {
|
|
409
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
410
410
|
"content-type": "application/json",
|
|
411
|
-
|
|
412
|
-
};
|
|
411
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
412
|
+
});
|
|
413
413
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
414
414
|
"/amazonclouddirectory/2017-01-11/facet/delete";
|
|
415
415
|
let body;
|
|
@@ -429,10 +429,10 @@ const serializeAws_restJson1DeleteFacetCommand = async (input, context) => {
|
|
|
429
429
|
exports.serializeAws_restJson1DeleteFacetCommand = serializeAws_restJson1DeleteFacetCommand;
|
|
430
430
|
const serializeAws_restJson1DeleteObjectCommand = async (input, context) => {
|
|
431
431
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
432
|
-
const headers = {
|
|
432
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
433
433
|
"content-type": "application/json",
|
|
434
|
-
|
|
435
|
-
};
|
|
434
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
435
|
+
});
|
|
436
436
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
437
437
|
"/amazonclouddirectory/2017-01-11/object/delete";
|
|
438
438
|
let body;
|
|
@@ -454,9 +454,9 @@ const serializeAws_restJson1DeleteObjectCommand = async (input, context) => {
|
|
|
454
454
|
exports.serializeAws_restJson1DeleteObjectCommand = serializeAws_restJson1DeleteObjectCommand;
|
|
455
455
|
const serializeAws_restJson1DeleteSchemaCommand = async (input, context) => {
|
|
456
456
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
457
|
-
const headers = {
|
|
458
|
-
|
|
459
|
-
};
|
|
457
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
458
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
459
|
+
});
|
|
460
460
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/schema";
|
|
461
461
|
let body;
|
|
462
462
|
return new protocol_http_1.HttpRequest({
|
|
@@ -472,10 +472,10 @@ const serializeAws_restJson1DeleteSchemaCommand = async (input, context) => {
|
|
|
472
472
|
exports.serializeAws_restJson1DeleteSchemaCommand = serializeAws_restJson1DeleteSchemaCommand;
|
|
473
473
|
const serializeAws_restJson1DeleteTypedLinkFacetCommand = async (input, context) => {
|
|
474
474
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
475
|
-
const headers = {
|
|
475
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
476
476
|
"content-type": "application/json",
|
|
477
|
-
|
|
478
|
-
};
|
|
477
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
478
|
+
});
|
|
479
479
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
480
480
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/delete";
|
|
481
481
|
let body;
|
|
@@ -495,10 +495,10 @@ const serializeAws_restJson1DeleteTypedLinkFacetCommand = async (input, context)
|
|
|
495
495
|
exports.serializeAws_restJson1DeleteTypedLinkFacetCommand = serializeAws_restJson1DeleteTypedLinkFacetCommand;
|
|
496
496
|
const serializeAws_restJson1DetachFromIndexCommand = async (input, context) => {
|
|
497
497
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
498
|
-
const headers = {
|
|
498
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
499
499
|
"content-type": "application/json",
|
|
500
|
-
|
|
501
|
-
};
|
|
500
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
501
|
+
});
|
|
502
502
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
503
503
|
"/amazonclouddirectory/2017-01-11/index/detach";
|
|
504
504
|
let body;
|
|
@@ -523,10 +523,10 @@ const serializeAws_restJson1DetachFromIndexCommand = async (input, context) => {
|
|
|
523
523
|
exports.serializeAws_restJson1DetachFromIndexCommand = serializeAws_restJson1DetachFromIndexCommand;
|
|
524
524
|
const serializeAws_restJson1DetachObjectCommand = async (input, context) => {
|
|
525
525
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
526
|
-
const headers = {
|
|
526
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
527
527
|
"content-type": "application/json",
|
|
528
|
-
|
|
529
|
-
};
|
|
528
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
529
|
+
});
|
|
530
530
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
531
531
|
"/amazonclouddirectory/2017-01-11/object/detach";
|
|
532
532
|
let body;
|
|
@@ -549,10 +549,10 @@ const serializeAws_restJson1DetachObjectCommand = async (input, context) => {
|
|
|
549
549
|
exports.serializeAws_restJson1DetachObjectCommand = serializeAws_restJson1DetachObjectCommand;
|
|
550
550
|
const serializeAws_restJson1DetachPolicyCommand = async (input, context) => {
|
|
551
551
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
552
|
-
const headers = {
|
|
552
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
553
553
|
"content-type": "application/json",
|
|
554
|
-
|
|
555
|
-
};
|
|
554
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
555
|
+
});
|
|
556
556
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
557
557
|
"/amazonclouddirectory/2017-01-11/policy/detach";
|
|
558
558
|
let body;
|
|
@@ -577,10 +577,10 @@ const serializeAws_restJson1DetachPolicyCommand = async (input, context) => {
|
|
|
577
577
|
exports.serializeAws_restJson1DetachPolicyCommand = serializeAws_restJson1DetachPolicyCommand;
|
|
578
578
|
const serializeAws_restJson1DetachTypedLinkCommand = async (input, context) => {
|
|
579
579
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
580
|
-
const headers = {
|
|
580
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
581
581
|
"content-type": "application/json",
|
|
582
|
-
|
|
583
|
-
};
|
|
582
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
583
|
+
});
|
|
584
584
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
585
585
|
"/amazonclouddirectory/2017-01-11/typedlink/detach";
|
|
586
586
|
let body;
|
|
@@ -602,9 +602,9 @@ const serializeAws_restJson1DetachTypedLinkCommand = async (input, context) => {
|
|
|
602
602
|
exports.serializeAws_restJson1DetachTypedLinkCommand = serializeAws_restJson1DetachTypedLinkCommand;
|
|
603
603
|
const serializeAws_restJson1DisableDirectoryCommand = async (input, context) => {
|
|
604
604
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
605
|
-
const headers = {
|
|
606
|
-
|
|
607
|
-
};
|
|
605
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
606
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
607
|
+
});
|
|
608
608
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
609
609
|
"/amazonclouddirectory/2017-01-11/directory/disable";
|
|
610
610
|
let body;
|
|
@@ -621,9 +621,9 @@ const serializeAws_restJson1DisableDirectoryCommand = async (input, context) =>
|
|
|
621
621
|
exports.serializeAws_restJson1DisableDirectoryCommand = serializeAws_restJson1DisableDirectoryCommand;
|
|
622
622
|
const serializeAws_restJson1EnableDirectoryCommand = async (input, context) => {
|
|
623
623
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
624
|
-
const headers = {
|
|
625
|
-
|
|
626
|
-
};
|
|
624
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
625
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
626
|
+
});
|
|
627
627
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
628
628
|
"/amazonclouddirectory/2017-01-11/directory/enable";
|
|
629
629
|
let body;
|
|
@@ -662,9 +662,9 @@ const serializeAws_restJson1GetAppliedSchemaVersionCommand = async (input, conte
|
|
|
662
662
|
exports.serializeAws_restJson1GetAppliedSchemaVersionCommand = serializeAws_restJson1GetAppliedSchemaVersionCommand;
|
|
663
663
|
const serializeAws_restJson1GetDirectoryCommand = async (input, context) => {
|
|
664
664
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
665
|
-
const headers = {
|
|
666
|
-
|
|
667
|
-
};
|
|
665
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
666
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
667
|
+
});
|
|
668
668
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
669
669
|
"/amazonclouddirectory/2017-01-11/directory/get";
|
|
670
670
|
let body;
|
|
@@ -681,10 +681,10 @@ const serializeAws_restJson1GetDirectoryCommand = async (input, context) => {
|
|
|
681
681
|
exports.serializeAws_restJson1GetDirectoryCommand = serializeAws_restJson1GetDirectoryCommand;
|
|
682
682
|
const serializeAws_restJson1GetFacetCommand = async (input, context) => {
|
|
683
683
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
684
|
-
const headers = {
|
|
684
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
685
685
|
"content-type": "application/json",
|
|
686
|
-
|
|
687
|
-
};
|
|
686
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
687
|
+
});
|
|
688
688
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/facet";
|
|
689
689
|
let body;
|
|
690
690
|
body = JSON.stringify({
|
|
@@ -703,10 +703,10 @@ const serializeAws_restJson1GetFacetCommand = async (input, context) => {
|
|
|
703
703
|
exports.serializeAws_restJson1GetFacetCommand = serializeAws_restJson1GetFacetCommand;
|
|
704
704
|
const serializeAws_restJson1GetLinkAttributesCommand = async (input, context) => {
|
|
705
705
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
706
|
-
const headers = {
|
|
706
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
707
707
|
"content-type": "application/json",
|
|
708
|
-
|
|
709
|
-
};
|
|
708
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
709
|
+
});
|
|
710
710
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
711
711
|
"/amazonclouddirectory/2017-01-11/typedlink/attributes/get";
|
|
712
712
|
let body;
|
|
@@ -732,11 +732,11 @@ const serializeAws_restJson1GetLinkAttributesCommand = async (input, context) =>
|
|
|
732
732
|
exports.serializeAws_restJson1GetLinkAttributesCommand = serializeAws_restJson1GetLinkAttributesCommand;
|
|
733
733
|
const serializeAws_restJson1GetObjectAttributesCommand = async (input, context) => {
|
|
734
734
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
735
|
-
const headers = {
|
|
735
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
736
736
|
"content-type": "application/json",
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
};
|
|
737
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
738
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
739
|
+
});
|
|
740
740
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
741
741
|
"/amazonclouddirectory/2017-01-11/object/attributes/get";
|
|
742
742
|
let body;
|
|
@@ -762,11 +762,11 @@ const serializeAws_restJson1GetObjectAttributesCommand = async (input, context)
|
|
|
762
762
|
exports.serializeAws_restJson1GetObjectAttributesCommand = serializeAws_restJson1GetObjectAttributesCommand;
|
|
763
763
|
const serializeAws_restJson1GetObjectInformationCommand = async (input, context) => {
|
|
764
764
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
765
|
-
const headers = {
|
|
765
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
766
766
|
"content-type": "application/json",
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
};
|
|
767
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
768
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
769
|
+
});
|
|
770
770
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
771
771
|
"/amazonclouddirectory/2017-01-11/object/information";
|
|
772
772
|
let body;
|
|
@@ -788,9 +788,9 @@ const serializeAws_restJson1GetObjectInformationCommand = async (input, context)
|
|
|
788
788
|
exports.serializeAws_restJson1GetObjectInformationCommand = serializeAws_restJson1GetObjectInformationCommand;
|
|
789
789
|
const serializeAws_restJson1GetSchemaAsJsonCommand = async (input, context) => {
|
|
790
790
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
791
|
-
const headers = {
|
|
792
|
-
|
|
793
|
-
};
|
|
791
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
792
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
793
|
+
});
|
|
794
794
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
795
795
|
"/amazonclouddirectory/2017-01-11/schema/json";
|
|
796
796
|
let body;
|
|
@@ -807,10 +807,10 @@ const serializeAws_restJson1GetSchemaAsJsonCommand = async (input, context) => {
|
|
|
807
807
|
exports.serializeAws_restJson1GetSchemaAsJsonCommand = serializeAws_restJson1GetSchemaAsJsonCommand;
|
|
808
808
|
const serializeAws_restJson1GetTypedLinkFacetInformationCommand = async (input, context) => {
|
|
809
809
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
810
|
-
const headers = {
|
|
810
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
811
811
|
"content-type": "application/json",
|
|
812
|
-
|
|
813
|
-
};
|
|
812
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
813
|
+
});
|
|
814
814
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
815
815
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/get";
|
|
816
816
|
let body;
|
|
@@ -855,11 +855,11 @@ const serializeAws_restJson1ListAppliedSchemaArnsCommand = async (input, context
|
|
|
855
855
|
exports.serializeAws_restJson1ListAppliedSchemaArnsCommand = serializeAws_restJson1ListAppliedSchemaArnsCommand;
|
|
856
856
|
const serializeAws_restJson1ListAttachedIndicesCommand = async (input, context) => {
|
|
857
857
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
858
|
-
const headers = {
|
|
858
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
859
859
|
"content-type": "application/json",
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
};
|
|
860
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
861
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
862
|
+
});
|
|
863
863
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
864
864
|
"/amazonclouddirectory/2017-01-11/object/indices";
|
|
865
865
|
let body;
|
|
@@ -930,10 +930,10 @@ const serializeAws_restJson1ListDirectoriesCommand = async (input, context) => {
|
|
|
930
930
|
exports.serializeAws_restJson1ListDirectoriesCommand = serializeAws_restJson1ListDirectoriesCommand;
|
|
931
931
|
const serializeAws_restJson1ListFacetAttributesCommand = async (input, context) => {
|
|
932
932
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
933
|
-
const headers = {
|
|
933
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
934
934
|
"content-type": "application/json",
|
|
935
|
-
|
|
936
|
-
};
|
|
935
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
936
|
+
});
|
|
937
937
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
938
938
|
"/amazonclouddirectory/2017-01-11/facet/attributes";
|
|
939
939
|
let body;
|
|
@@ -955,10 +955,10 @@ const serializeAws_restJson1ListFacetAttributesCommand = async (input, context)
|
|
|
955
955
|
exports.serializeAws_restJson1ListFacetAttributesCommand = serializeAws_restJson1ListFacetAttributesCommand;
|
|
956
956
|
const serializeAws_restJson1ListFacetNamesCommand = async (input, context) => {
|
|
957
957
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
958
|
-
const headers = {
|
|
958
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
959
959
|
"content-type": "application/json",
|
|
960
|
-
|
|
961
|
-
};
|
|
960
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
961
|
+
});
|
|
962
962
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
963
963
|
"/amazonclouddirectory/2017-01-11/facet/list";
|
|
964
964
|
let body;
|
|
@@ -979,10 +979,10 @@ const serializeAws_restJson1ListFacetNamesCommand = async (input, context) => {
|
|
|
979
979
|
exports.serializeAws_restJson1ListFacetNamesCommand = serializeAws_restJson1ListFacetNamesCommand;
|
|
980
980
|
const serializeAws_restJson1ListIncomingTypedLinksCommand = async (input, context) => {
|
|
981
981
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
982
|
-
const headers = {
|
|
982
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
983
983
|
"content-type": "application/json",
|
|
984
|
-
|
|
985
|
-
};
|
|
984
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
985
|
+
});
|
|
986
986
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
987
987
|
"/amazonclouddirectory/2017-01-11/typedlink/incoming";
|
|
988
988
|
let body;
|
|
@@ -1013,11 +1013,11 @@ const serializeAws_restJson1ListIncomingTypedLinksCommand = async (input, contex
|
|
|
1013
1013
|
exports.serializeAws_restJson1ListIncomingTypedLinksCommand = serializeAws_restJson1ListIncomingTypedLinksCommand;
|
|
1014
1014
|
const serializeAws_restJson1ListIndexCommand = async (input, context) => {
|
|
1015
1015
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1016
|
-
const headers = {
|
|
1016
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1017
1017
|
"content-type": "application/json",
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
};
|
|
1018
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1019
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1020
|
+
});
|
|
1021
1021
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1022
1022
|
"/amazonclouddirectory/2017-01-11/index/targets";
|
|
1023
1023
|
let body;
|
|
@@ -1068,11 +1068,11 @@ const serializeAws_restJson1ListManagedSchemaArnsCommand = async (input, context
|
|
|
1068
1068
|
exports.serializeAws_restJson1ListManagedSchemaArnsCommand = serializeAws_restJson1ListManagedSchemaArnsCommand;
|
|
1069
1069
|
const serializeAws_restJson1ListObjectAttributesCommand = async (input, context) => {
|
|
1070
1070
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1071
|
-
const headers = {
|
|
1071
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1072
1072
|
"content-type": "application/json",
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
};
|
|
1073
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1074
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1075
|
+
});
|
|
1076
1076
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1077
1077
|
"/amazonclouddirectory/2017-01-11/object/attributes";
|
|
1078
1078
|
let body;
|
|
@@ -1097,11 +1097,11 @@ const serializeAws_restJson1ListObjectAttributesCommand = async (input, context)
|
|
|
1097
1097
|
exports.serializeAws_restJson1ListObjectAttributesCommand = serializeAws_restJson1ListObjectAttributesCommand;
|
|
1098
1098
|
const serializeAws_restJson1ListObjectChildrenCommand = async (input, context) => {
|
|
1099
1099
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1100
|
-
const headers = {
|
|
1100
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1101
1101
|
"content-type": "application/json",
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
};
|
|
1102
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1103
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1104
|
+
});
|
|
1105
1105
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1106
1106
|
"/amazonclouddirectory/2017-01-11/object/children";
|
|
1107
1107
|
let body;
|
|
@@ -1125,10 +1125,10 @@ const serializeAws_restJson1ListObjectChildrenCommand = async (input, context) =
|
|
|
1125
1125
|
exports.serializeAws_restJson1ListObjectChildrenCommand = serializeAws_restJson1ListObjectChildrenCommand;
|
|
1126
1126
|
const serializeAws_restJson1ListObjectParentPathsCommand = async (input, context) => {
|
|
1127
1127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1128
|
-
const headers = {
|
|
1128
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1129
1129
|
"content-type": "application/json",
|
|
1130
|
-
|
|
1131
|
-
};
|
|
1130
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1131
|
+
});
|
|
1132
1132
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1133
1133
|
"/amazonclouddirectory/2017-01-11/object/parentpaths";
|
|
1134
1134
|
let body;
|
|
@@ -1152,11 +1152,11 @@ const serializeAws_restJson1ListObjectParentPathsCommand = async (input, context
|
|
|
1152
1152
|
exports.serializeAws_restJson1ListObjectParentPathsCommand = serializeAws_restJson1ListObjectParentPathsCommand;
|
|
1153
1153
|
const serializeAws_restJson1ListObjectParentsCommand = async (input, context) => {
|
|
1154
1154
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1155
|
-
const headers = {
|
|
1155
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1156
1156
|
"content-type": "application/json",
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
};
|
|
1157
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1158
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1159
|
+
});
|
|
1160
1160
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1161
1161
|
"/amazonclouddirectory/2017-01-11/object/parent";
|
|
1162
1162
|
let body;
|
|
@@ -1183,11 +1183,11 @@ const serializeAws_restJson1ListObjectParentsCommand = async (input, context) =>
|
|
|
1183
1183
|
exports.serializeAws_restJson1ListObjectParentsCommand = serializeAws_restJson1ListObjectParentsCommand;
|
|
1184
1184
|
const serializeAws_restJson1ListObjectPoliciesCommand = async (input, context) => {
|
|
1185
1185
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1186
|
-
const headers = {
|
|
1186
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1187
1187
|
"content-type": "application/json",
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
};
|
|
1188
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1189
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1190
|
+
});
|
|
1191
1191
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1192
1192
|
"/amazonclouddirectory/2017-01-11/object/policy";
|
|
1193
1193
|
let body;
|
|
@@ -1211,10 +1211,10 @@ const serializeAws_restJson1ListObjectPoliciesCommand = async (input, context) =
|
|
|
1211
1211
|
exports.serializeAws_restJson1ListObjectPoliciesCommand = serializeAws_restJson1ListObjectPoliciesCommand;
|
|
1212
1212
|
const serializeAws_restJson1ListOutgoingTypedLinksCommand = async (input, context) => {
|
|
1213
1213
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1214
|
-
const headers = {
|
|
1214
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1215
1215
|
"content-type": "application/json",
|
|
1216
|
-
|
|
1217
|
-
};
|
|
1216
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1217
|
+
});
|
|
1218
1218
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1219
1219
|
"/amazonclouddirectory/2017-01-11/typedlink/outgoing";
|
|
1220
1220
|
let body;
|
|
@@ -1245,11 +1245,11 @@ const serializeAws_restJson1ListOutgoingTypedLinksCommand = async (input, contex
|
|
|
1245
1245
|
exports.serializeAws_restJson1ListOutgoingTypedLinksCommand = serializeAws_restJson1ListOutgoingTypedLinksCommand;
|
|
1246
1246
|
const serializeAws_restJson1ListPolicyAttachmentsCommand = async (input, context) => {
|
|
1247
1247
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1248
|
-
const headers = {
|
|
1248
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1249
1249
|
"content-type": "application/json",
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
};
|
|
1250
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1251
|
+
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1252
|
+
});
|
|
1253
1253
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1254
1254
|
"/amazonclouddirectory/2017-01-11/policy/attachment";
|
|
1255
1255
|
let body;
|
|
@@ -1320,10 +1320,10 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1320
1320
|
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
1321
1321
|
const serializeAws_restJson1ListTypedLinkFacetAttributesCommand = async (input, context) => {
|
|
1322
1322
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1323
|
-
const headers = {
|
|
1323
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1324
1324
|
"content-type": "application/json",
|
|
1325
|
-
|
|
1326
|
-
};
|
|
1325
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1326
|
+
});
|
|
1327
1327
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1328
1328
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/attributes";
|
|
1329
1329
|
let body;
|
|
@@ -1345,10 +1345,10 @@ const serializeAws_restJson1ListTypedLinkFacetAttributesCommand = async (input,
|
|
|
1345
1345
|
exports.serializeAws_restJson1ListTypedLinkFacetAttributesCommand = serializeAws_restJson1ListTypedLinkFacetAttributesCommand;
|
|
1346
1346
|
const serializeAws_restJson1ListTypedLinkFacetNamesCommand = async (input, context) => {
|
|
1347
1347
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1348
|
-
const headers = {
|
|
1348
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1349
1349
|
"content-type": "application/json",
|
|
1350
|
-
|
|
1351
|
-
};
|
|
1350
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1351
|
+
});
|
|
1352
1352
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1353
1353
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/list";
|
|
1354
1354
|
let body;
|
|
@@ -1369,10 +1369,10 @@ const serializeAws_restJson1ListTypedLinkFacetNamesCommand = async (input, conte
|
|
|
1369
1369
|
exports.serializeAws_restJson1ListTypedLinkFacetNamesCommand = serializeAws_restJson1ListTypedLinkFacetNamesCommand;
|
|
1370
1370
|
const serializeAws_restJson1LookupPolicyCommand = async (input, context) => {
|
|
1371
1371
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1372
|
-
const headers = {
|
|
1372
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1373
1373
|
"content-type": "application/json",
|
|
1374
|
-
|
|
1375
|
-
};
|
|
1374
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1375
|
+
});
|
|
1376
1376
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1377
1377
|
"/amazonclouddirectory/2017-01-11/policy/lookup";
|
|
1378
1378
|
let body;
|
|
@@ -1396,12 +1396,10 @@ const serializeAws_restJson1LookupPolicyCommand = async (input, context) => {
|
|
|
1396
1396
|
exports.serializeAws_restJson1LookupPolicyCommand = serializeAws_restJson1LookupPolicyCommand;
|
|
1397
1397
|
const serializeAws_restJson1PublishSchemaCommand = async (input, context) => {
|
|
1398
1398
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1399
|
-
const headers = {
|
|
1399
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1400
1400
|
"content-type": "application/json",
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
}),
|
|
1404
|
-
};
|
|
1401
|
+
"x-amz-data-partition": input.DevelopmentSchemaArn,
|
|
1402
|
+
});
|
|
1405
1403
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1406
1404
|
"/amazonclouddirectory/2017-01-11/schema/publish";
|
|
1407
1405
|
let body;
|
|
@@ -1423,10 +1421,10 @@ const serializeAws_restJson1PublishSchemaCommand = async (input, context) => {
|
|
|
1423
1421
|
exports.serializeAws_restJson1PublishSchemaCommand = serializeAws_restJson1PublishSchemaCommand;
|
|
1424
1422
|
const serializeAws_restJson1PutSchemaFromJsonCommand = async (input, context) => {
|
|
1425
1423
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1426
|
-
const headers = {
|
|
1424
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1427
1425
|
"content-type": "application/json",
|
|
1428
|
-
|
|
1429
|
-
};
|
|
1426
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1427
|
+
});
|
|
1430
1428
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1431
1429
|
"/amazonclouddirectory/2017-01-11/schema/json";
|
|
1432
1430
|
let body;
|
|
@@ -1446,10 +1444,10 @@ const serializeAws_restJson1PutSchemaFromJsonCommand = async (input, context) =>
|
|
|
1446
1444
|
exports.serializeAws_restJson1PutSchemaFromJsonCommand = serializeAws_restJson1PutSchemaFromJsonCommand;
|
|
1447
1445
|
const serializeAws_restJson1RemoveFacetFromObjectCommand = async (input, context) => {
|
|
1448
1446
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1449
|
-
const headers = {
|
|
1447
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1450
1448
|
"content-type": "application/json",
|
|
1451
|
-
|
|
1452
|
-
};
|
|
1449
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1450
|
+
});
|
|
1453
1451
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1454
1452
|
"/amazonclouddirectory/2017-01-11/object/facets/delete";
|
|
1455
1453
|
let body;
|
|
@@ -1517,10 +1515,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1517
1515
|
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
1518
1516
|
const serializeAws_restJson1UpdateFacetCommand = async (input, context) => {
|
|
1519
1517
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1520
|
-
const headers = {
|
|
1518
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1521
1519
|
"content-type": "application/json",
|
|
1522
|
-
|
|
1523
|
-
};
|
|
1520
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1521
|
+
});
|
|
1524
1522
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/facet";
|
|
1525
1523
|
let body;
|
|
1526
1524
|
body = JSON.stringify({
|
|
@@ -1543,10 +1541,10 @@ const serializeAws_restJson1UpdateFacetCommand = async (input, context) => {
|
|
|
1543
1541
|
exports.serializeAws_restJson1UpdateFacetCommand = serializeAws_restJson1UpdateFacetCommand;
|
|
1544
1542
|
const serializeAws_restJson1UpdateLinkAttributesCommand = async (input, context) => {
|
|
1545
1543
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1546
|
-
const headers = {
|
|
1544
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1547
1545
|
"content-type": "application/json",
|
|
1548
|
-
|
|
1549
|
-
};
|
|
1546
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1547
|
+
});
|
|
1550
1548
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1551
1549
|
"/amazonclouddirectory/2017-01-11/typedlink/attributes/update";
|
|
1552
1550
|
let body;
|
|
@@ -1571,10 +1569,10 @@ const serializeAws_restJson1UpdateLinkAttributesCommand = async (input, context)
|
|
|
1571
1569
|
exports.serializeAws_restJson1UpdateLinkAttributesCommand = serializeAws_restJson1UpdateLinkAttributesCommand;
|
|
1572
1570
|
const serializeAws_restJson1UpdateObjectAttributesCommand = async (input, context) => {
|
|
1573
1571
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1574
|
-
const headers = {
|
|
1572
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1575
1573
|
"content-type": "application/json",
|
|
1576
|
-
|
|
1577
|
-
};
|
|
1574
|
+
"x-amz-data-partition": input.DirectoryArn,
|
|
1575
|
+
});
|
|
1578
1576
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1579
1577
|
"/amazonclouddirectory/2017-01-11/object/update";
|
|
1580
1578
|
let body;
|
|
@@ -1599,10 +1597,10 @@ const serializeAws_restJson1UpdateObjectAttributesCommand = async (input, contex
|
|
|
1599
1597
|
exports.serializeAws_restJson1UpdateObjectAttributesCommand = serializeAws_restJson1UpdateObjectAttributesCommand;
|
|
1600
1598
|
const serializeAws_restJson1UpdateSchemaCommand = async (input, context) => {
|
|
1601
1599
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1602
|
-
const headers = {
|
|
1600
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1603
1601
|
"content-type": "application/json",
|
|
1604
|
-
|
|
1605
|
-
};
|
|
1602
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1603
|
+
});
|
|
1606
1604
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1607
1605
|
"/amazonclouddirectory/2017-01-11/schema/update";
|
|
1608
1606
|
let body;
|
|
@@ -1622,10 +1620,10 @@ const serializeAws_restJson1UpdateSchemaCommand = async (input, context) => {
|
|
|
1622
1620
|
exports.serializeAws_restJson1UpdateSchemaCommand = serializeAws_restJson1UpdateSchemaCommand;
|
|
1623
1621
|
const serializeAws_restJson1UpdateTypedLinkFacetCommand = async (input, context) => {
|
|
1624
1622
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1625
|
-
const headers = {
|
|
1623
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
1626
1624
|
"content-type": "application/json",
|
|
1627
|
-
|
|
1628
|
-
};
|
|
1625
|
+
"x-amz-data-partition": input.SchemaArn,
|
|
1626
|
+
});
|
|
1629
1627
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1630
1628
|
"/amazonclouddirectory/2017-01-11/typedlink/facet";
|
|
1631
1629
|
let body;
|
|
@@ -1702,11 +1700,11 @@ const deserializeAws_restJson1AddFacetToObjectCommand = async (output, context)
|
|
|
1702
1700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1703
1701
|
return deserializeAws_restJson1AddFacetToObjectCommandError(output, context);
|
|
1704
1702
|
}
|
|
1705
|
-
const contents = {
|
|
1703
|
+
const contents = map({
|
|
1706
1704
|
$metadata: deserializeMetadata(output),
|
|
1707
|
-
};
|
|
1705
|
+
});
|
|
1708
1706
|
await collectBody(output.body, context);
|
|
1709
|
-
return
|
|
1707
|
+
return contents;
|
|
1710
1708
|
};
|
|
1711
1709
|
exports.deserializeAws_restJson1AddFacetToObjectCommand = deserializeAws_restJson1AddFacetToObjectCommand;
|
|
1712
1710
|
const deserializeAws_restJson1AddFacetToObjectCommandError = async (output, context) => {
|
|
@@ -1714,7 +1712,6 @@ const deserializeAws_restJson1AddFacetToObjectCommandError = async (output, cont
|
|
|
1714
1712
|
...output,
|
|
1715
1713
|
body: await parseBody(output.body, context),
|
|
1716
1714
|
};
|
|
1717
|
-
let response;
|
|
1718
1715
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1719
1716
|
switch (errorCode) {
|
|
1720
1717
|
case "AccessDeniedException":
|
|
@@ -1746,33 +1743,29 @@ const deserializeAws_restJson1AddFacetToObjectCommandError = async (output, cont
|
|
|
1746
1743
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1747
1744
|
default:
|
|
1748
1745
|
const parsedBody = parsedOutput.body;
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
$metadata,
|
|
1746
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1747
|
+
output,
|
|
1748
|
+
parsedBody,
|
|
1749
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
1750
|
+
errorCode,
|
|
1755
1751
|
});
|
|
1756
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1757
1752
|
}
|
|
1758
1753
|
};
|
|
1759
1754
|
const deserializeAws_restJson1ApplySchemaCommand = async (output, context) => {
|
|
1760
1755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1761
1756
|
return deserializeAws_restJson1ApplySchemaCommandError(output, context);
|
|
1762
1757
|
}
|
|
1763
|
-
const contents = {
|
|
1758
|
+
const contents = map({
|
|
1764
1759
|
$metadata: deserializeMetadata(output),
|
|
1765
|
-
|
|
1766
|
-
DirectoryArn: undefined,
|
|
1767
|
-
};
|
|
1760
|
+
});
|
|
1768
1761
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1769
|
-
if (data.AppliedSchemaArn
|
|
1762
|
+
if (data.AppliedSchemaArn != null) {
|
|
1770
1763
|
contents.AppliedSchemaArn = (0, smithy_client_1.expectString)(data.AppliedSchemaArn);
|
|
1771
1764
|
}
|
|
1772
|
-
if (data.DirectoryArn
|
|
1765
|
+
if (data.DirectoryArn != null) {
|
|
1773
1766
|
contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
|
|
1774
1767
|
}
|
|
1775
|
-
return
|
|
1768
|
+
return contents;
|
|
1776
1769
|
};
|
|
1777
1770
|
exports.deserializeAws_restJson1ApplySchemaCommand = deserializeAws_restJson1ApplySchemaCommand;
|
|
1778
1771
|
const deserializeAws_restJson1ApplySchemaCommandError = async (output, context) => {
|
|
@@ -1780,7 +1773,6 @@ const deserializeAws_restJson1ApplySchemaCommandError = async (output, context)
|
|
|
1780
1773
|
...output,
|
|
1781
1774
|
body: await parseBody(output.body, context),
|
|
1782
1775
|
};
|
|
1783
|
-
let response;
|
|
1784
1776
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
1777
|
switch (errorCode) {
|
|
1786
1778
|
case "AccessDeniedException":
|
|
@@ -1812,29 +1804,26 @@ const deserializeAws_restJson1ApplySchemaCommandError = async (output, context)
|
|
|
1812
1804
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1813
1805
|
default:
|
|
1814
1806
|
const parsedBody = parsedOutput.body;
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
$metadata,
|
|
1807
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1808
|
+
output,
|
|
1809
|
+
parsedBody,
|
|
1810
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
1811
|
+
errorCode,
|
|
1821
1812
|
});
|
|
1822
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1823
1813
|
}
|
|
1824
1814
|
};
|
|
1825
1815
|
const deserializeAws_restJson1AttachObjectCommand = async (output, context) => {
|
|
1826
1816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1827
1817
|
return deserializeAws_restJson1AttachObjectCommandError(output, context);
|
|
1828
1818
|
}
|
|
1829
|
-
const contents = {
|
|
1819
|
+
const contents = map({
|
|
1830
1820
|
$metadata: deserializeMetadata(output),
|
|
1831
|
-
|
|
1832
|
-
};
|
|
1821
|
+
});
|
|
1833
1822
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1834
|
-
if (data.AttachedObjectIdentifier
|
|
1823
|
+
if (data.AttachedObjectIdentifier != null) {
|
|
1835
1824
|
contents.AttachedObjectIdentifier = (0, smithy_client_1.expectString)(data.AttachedObjectIdentifier);
|
|
1836
1825
|
}
|
|
1837
|
-
return
|
|
1826
|
+
return contents;
|
|
1838
1827
|
};
|
|
1839
1828
|
exports.deserializeAws_restJson1AttachObjectCommand = deserializeAws_restJson1AttachObjectCommand;
|
|
1840
1829
|
const deserializeAws_restJson1AttachObjectCommandError = async (output, context) => {
|
|
@@ -1842,7 +1831,6 @@ const deserializeAws_restJson1AttachObjectCommandError = async (output, context)
|
|
|
1842
1831
|
...output,
|
|
1843
1832
|
body: await parseBody(output.body, context),
|
|
1844
1833
|
};
|
|
1845
|
-
let response;
|
|
1846
1834
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1847
1835
|
switch (errorCode) {
|
|
1848
1836
|
case "AccessDeniedException":
|
|
@@ -1880,25 +1868,23 @@ const deserializeAws_restJson1AttachObjectCommandError = async (output, context)
|
|
|
1880
1868
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1881
1869
|
default:
|
|
1882
1870
|
const parsedBody = parsedOutput.body;
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
$metadata,
|
|
1871
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1872
|
+
output,
|
|
1873
|
+
parsedBody,
|
|
1874
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
1875
|
+
errorCode,
|
|
1889
1876
|
});
|
|
1890
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1891
1877
|
}
|
|
1892
1878
|
};
|
|
1893
1879
|
const deserializeAws_restJson1AttachPolicyCommand = async (output, context) => {
|
|
1894
1880
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1895
1881
|
return deserializeAws_restJson1AttachPolicyCommandError(output, context);
|
|
1896
1882
|
}
|
|
1897
|
-
const contents = {
|
|
1883
|
+
const contents = map({
|
|
1898
1884
|
$metadata: deserializeMetadata(output),
|
|
1899
|
-
};
|
|
1885
|
+
});
|
|
1900
1886
|
await collectBody(output.body, context);
|
|
1901
|
-
return
|
|
1887
|
+
return contents;
|
|
1902
1888
|
};
|
|
1903
1889
|
exports.deserializeAws_restJson1AttachPolicyCommand = deserializeAws_restJson1AttachPolicyCommand;
|
|
1904
1890
|
const deserializeAws_restJson1AttachPolicyCommandError = async (output, context) => {
|
|
@@ -1906,7 +1892,6 @@ const deserializeAws_restJson1AttachPolicyCommandError = async (output, context)
|
|
|
1906
1892
|
...output,
|
|
1907
1893
|
body: await parseBody(output.body, context),
|
|
1908
1894
|
};
|
|
1909
|
-
let response;
|
|
1910
1895
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
1896
|
switch (errorCode) {
|
|
1912
1897
|
case "AccessDeniedException":
|
|
@@ -1938,29 +1923,26 @@ const deserializeAws_restJson1AttachPolicyCommandError = async (output, context)
|
|
|
1938
1923
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1939
1924
|
default:
|
|
1940
1925
|
const parsedBody = parsedOutput.body;
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
$metadata,
|
|
1926
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1927
|
+
output,
|
|
1928
|
+
parsedBody,
|
|
1929
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
1930
|
+
errorCode,
|
|
1947
1931
|
});
|
|
1948
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1949
1932
|
}
|
|
1950
1933
|
};
|
|
1951
1934
|
const deserializeAws_restJson1AttachToIndexCommand = async (output, context) => {
|
|
1952
1935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1953
1936
|
return deserializeAws_restJson1AttachToIndexCommandError(output, context);
|
|
1954
1937
|
}
|
|
1955
|
-
const contents = {
|
|
1938
|
+
const contents = map({
|
|
1956
1939
|
$metadata: deserializeMetadata(output),
|
|
1957
|
-
|
|
1958
|
-
};
|
|
1940
|
+
});
|
|
1959
1941
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1960
|
-
if (data.AttachedObjectIdentifier
|
|
1942
|
+
if (data.AttachedObjectIdentifier != null) {
|
|
1961
1943
|
contents.AttachedObjectIdentifier = (0, smithy_client_1.expectString)(data.AttachedObjectIdentifier);
|
|
1962
1944
|
}
|
|
1963
|
-
return
|
|
1945
|
+
return contents;
|
|
1964
1946
|
};
|
|
1965
1947
|
exports.deserializeAws_restJson1AttachToIndexCommand = deserializeAws_restJson1AttachToIndexCommand;
|
|
1966
1948
|
const deserializeAws_restJson1AttachToIndexCommandError = async (output, context) => {
|
|
@@ -1968,7 +1950,6 @@ const deserializeAws_restJson1AttachToIndexCommandError = async (output, context
|
|
|
1968
1950
|
...output,
|
|
1969
1951
|
body: await parseBody(output.body, context),
|
|
1970
1952
|
};
|
|
1971
|
-
let response;
|
|
1972
1953
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
1954
|
switch (errorCode) {
|
|
1974
1955
|
case "AccessDeniedException":
|
|
@@ -2009,29 +1990,26 @@ const deserializeAws_restJson1AttachToIndexCommandError = async (output, context
|
|
|
2009
1990
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2010
1991
|
default:
|
|
2011
1992
|
const parsedBody = parsedOutput.body;
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
$metadata,
|
|
1993
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1994
|
+
output,
|
|
1995
|
+
parsedBody,
|
|
1996
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
1997
|
+
errorCode,
|
|
2018
1998
|
});
|
|
2019
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2020
1999
|
}
|
|
2021
2000
|
};
|
|
2022
2001
|
const deserializeAws_restJson1AttachTypedLinkCommand = async (output, context) => {
|
|
2023
2002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2024
2003
|
return deserializeAws_restJson1AttachTypedLinkCommandError(output, context);
|
|
2025
2004
|
}
|
|
2026
|
-
const contents = {
|
|
2005
|
+
const contents = map({
|
|
2027
2006
|
$metadata: deserializeMetadata(output),
|
|
2028
|
-
|
|
2029
|
-
};
|
|
2007
|
+
});
|
|
2030
2008
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2031
|
-
if (data.TypedLinkSpecifier
|
|
2009
|
+
if (data.TypedLinkSpecifier != null) {
|
|
2032
2010
|
contents.TypedLinkSpecifier = deserializeAws_restJson1TypedLinkSpecifier(data.TypedLinkSpecifier, context);
|
|
2033
2011
|
}
|
|
2034
|
-
return
|
|
2012
|
+
return contents;
|
|
2035
2013
|
};
|
|
2036
2014
|
exports.deserializeAws_restJson1AttachTypedLinkCommand = deserializeAws_restJson1AttachTypedLinkCommand;
|
|
2037
2015
|
const deserializeAws_restJson1AttachTypedLinkCommandError = async (output, context) => {
|
|
@@ -2039,7 +2017,6 @@ const deserializeAws_restJson1AttachTypedLinkCommandError = async (output, conte
|
|
|
2039
2017
|
...output,
|
|
2040
2018
|
body: await parseBody(output.body, context),
|
|
2041
2019
|
};
|
|
2042
|
-
let response;
|
|
2043
2020
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
2021
|
switch (errorCode) {
|
|
2045
2022
|
case "AccessDeniedException":
|
|
@@ -2074,29 +2051,26 @@ const deserializeAws_restJson1AttachTypedLinkCommandError = async (output, conte
|
|
|
2074
2051
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2075
2052
|
default:
|
|
2076
2053
|
const parsedBody = parsedOutput.body;
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
$metadata,
|
|
2054
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2055
|
+
output,
|
|
2056
|
+
parsedBody,
|
|
2057
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2058
|
+
errorCode,
|
|
2083
2059
|
});
|
|
2084
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2085
2060
|
}
|
|
2086
2061
|
};
|
|
2087
2062
|
const deserializeAws_restJson1BatchReadCommand = async (output, context) => {
|
|
2088
2063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2089
2064
|
return deserializeAws_restJson1BatchReadCommandError(output, context);
|
|
2090
2065
|
}
|
|
2091
|
-
const contents = {
|
|
2066
|
+
const contents = map({
|
|
2092
2067
|
$metadata: deserializeMetadata(output),
|
|
2093
|
-
|
|
2094
|
-
};
|
|
2068
|
+
});
|
|
2095
2069
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2096
|
-
if (data.Responses
|
|
2070
|
+
if (data.Responses != null) {
|
|
2097
2071
|
contents.Responses = deserializeAws_restJson1BatchReadOperationResponseList(data.Responses, context);
|
|
2098
2072
|
}
|
|
2099
|
-
return
|
|
2073
|
+
return contents;
|
|
2100
2074
|
};
|
|
2101
2075
|
exports.deserializeAws_restJson1BatchReadCommand = deserializeAws_restJson1BatchReadCommand;
|
|
2102
2076
|
const deserializeAws_restJson1BatchReadCommandError = async (output, context) => {
|
|
@@ -2104,7 +2078,6 @@ const deserializeAws_restJson1BatchReadCommandError = async (output, context) =>
|
|
|
2104
2078
|
...output,
|
|
2105
2079
|
body: await parseBody(output.body, context),
|
|
2106
2080
|
};
|
|
2107
|
-
let response;
|
|
2108
2081
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2109
2082
|
switch (errorCode) {
|
|
2110
2083
|
case "AccessDeniedException":
|
|
@@ -2130,29 +2103,26 @@ const deserializeAws_restJson1BatchReadCommandError = async (output, context) =>
|
|
|
2130
2103
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2131
2104
|
default:
|
|
2132
2105
|
const parsedBody = parsedOutput.body;
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
$metadata,
|
|
2106
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2107
|
+
output,
|
|
2108
|
+
parsedBody,
|
|
2109
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2110
|
+
errorCode,
|
|
2139
2111
|
});
|
|
2140
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2141
2112
|
}
|
|
2142
2113
|
};
|
|
2143
2114
|
const deserializeAws_restJson1BatchWriteCommand = async (output, context) => {
|
|
2144
2115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2145
2116
|
return deserializeAws_restJson1BatchWriteCommandError(output, context);
|
|
2146
2117
|
}
|
|
2147
|
-
const contents = {
|
|
2118
|
+
const contents = map({
|
|
2148
2119
|
$metadata: deserializeMetadata(output),
|
|
2149
|
-
|
|
2150
|
-
};
|
|
2120
|
+
});
|
|
2151
2121
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2152
|
-
if (data.Responses
|
|
2122
|
+
if (data.Responses != null) {
|
|
2153
2123
|
contents.Responses = deserializeAws_restJson1BatchWriteOperationResponseList(data.Responses, context);
|
|
2154
2124
|
}
|
|
2155
|
-
return
|
|
2125
|
+
return contents;
|
|
2156
2126
|
};
|
|
2157
2127
|
exports.deserializeAws_restJson1BatchWriteCommand = deserializeAws_restJson1BatchWriteCommand;
|
|
2158
2128
|
const deserializeAws_restJson1BatchWriteCommandError = async (output, context) => {
|
|
@@ -2160,7 +2130,6 @@ const deserializeAws_restJson1BatchWriteCommandError = async (output, context) =
|
|
|
2160
2130
|
...output,
|
|
2161
2131
|
body: await parseBody(output.body, context),
|
|
2162
2132
|
};
|
|
2163
|
-
let response;
|
|
2164
2133
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2165
2134
|
switch (errorCode) {
|
|
2166
2135
|
case "AccessDeniedException":
|
|
@@ -2189,41 +2158,35 @@ const deserializeAws_restJson1BatchWriteCommandError = async (output, context) =
|
|
|
2189
2158
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2190
2159
|
default:
|
|
2191
2160
|
const parsedBody = parsedOutput.body;
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
$metadata,
|
|
2161
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2162
|
+
output,
|
|
2163
|
+
parsedBody,
|
|
2164
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2165
|
+
errorCode,
|
|
2198
2166
|
});
|
|
2199
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2200
2167
|
}
|
|
2201
2168
|
};
|
|
2202
2169
|
const deserializeAws_restJson1CreateDirectoryCommand = async (output, context) => {
|
|
2203
2170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2204
2171
|
return deserializeAws_restJson1CreateDirectoryCommandError(output, context);
|
|
2205
2172
|
}
|
|
2206
|
-
const contents = {
|
|
2173
|
+
const contents = map({
|
|
2207
2174
|
$metadata: deserializeMetadata(output),
|
|
2208
|
-
|
|
2209
|
-
DirectoryArn: undefined,
|
|
2210
|
-
Name: undefined,
|
|
2211
|
-
ObjectIdentifier: undefined,
|
|
2212
|
-
};
|
|
2175
|
+
});
|
|
2213
2176
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2214
|
-
if (data.AppliedSchemaArn
|
|
2177
|
+
if (data.AppliedSchemaArn != null) {
|
|
2215
2178
|
contents.AppliedSchemaArn = (0, smithy_client_1.expectString)(data.AppliedSchemaArn);
|
|
2216
2179
|
}
|
|
2217
|
-
if (data.DirectoryArn
|
|
2180
|
+
if (data.DirectoryArn != null) {
|
|
2218
2181
|
contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
|
|
2219
2182
|
}
|
|
2220
|
-
if (data.Name
|
|
2183
|
+
if (data.Name != null) {
|
|
2221
2184
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
2222
2185
|
}
|
|
2223
|
-
if (data.ObjectIdentifier
|
|
2186
|
+
if (data.ObjectIdentifier != null) {
|
|
2224
2187
|
contents.ObjectIdentifier = (0, smithy_client_1.expectString)(data.ObjectIdentifier);
|
|
2225
2188
|
}
|
|
2226
|
-
return
|
|
2189
|
+
return contents;
|
|
2227
2190
|
};
|
|
2228
2191
|
exports.deserializeAws_restJson1CreateDirectoryCommand = deserializeAws_restJson1CreateDirectoryCommand;
|
|
2229
2192
|
const deserializeAws_restJson1CreateDirectoryCommandError = async (output, context) => {
|
|
@@ -2231,7 +2194,6 @@ const deserializeAws_restJson1CreateDirectoryCommandError = async (output, conte
|
|
|
2231
2194
|
...output,
|
|
2232
2195
|
body: await parseBody(output.body, context),
|
|
2233
2196
|
};
|
|
2234
|
-
let response;
|
|
2235
2197
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2236
2198
|
switch (errorCode) {
|
|
2237
2199
|
case "AccessDeniedException":
|
|
@@ -2260,25 +2222,23 @@ const deserializeAws_restJson1CreateDirectoryCommandError = async (output, conte
|
|
|
2260
2222
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2261
2223
|
default:
|
|
2262
2224
|
const parsedBody = parsedOutput.body;
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
$metadata,
|
|
2225
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2226
|
+
output,
|
|
2227
|
+
parsedBody,
|
|
2228
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2229
|
+
errorCode,
|
|
2269
2230
|
});
|
|
2270
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2271
2231
|
}
|
|
2272
2232
|
};
|
|
2273
2233
|
const deserializeAws_restJson1CreateFacetCommand = async (output, context) => {
|
|
2274
2234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2275
2235
|
return deserializeAws_restJson1CreateFacetCommandError(output, context);
|
|
2276
2236
|
}
|
|
2277
|
-
const contents = {
|
|
2237
|
+
const contents = map({
|
|
2278
2238
|
$metadata: deserializeMetadata(output),
|
|
2279
|
-
};
|
|
2239
|
+
});
|
|
2280
2240
|
await collectBody(output.body, context);
|
|
2281
|
-
return
|
|
2241
|
+
return contents;
|
|
2282
2242
|
};
|
|
2283
2243
|
exports.deserializeAws_restJson1CreateFacetCommand = deserializeAws_restJson1CreateFacetCommand;
|
|
2284
2244
|
const deserializeAws_restJson1CreateFacetCommandError = async (output, context) => {
|
|
@@ -2286,7 +2246,6 @@ const deserializeAws_restJson1CreateFacetCommandError = async (output, context)
|
|
|
2286
2246
|
...output,
|
|
2287
2247
|
body: await parseBody(output.body, context),
|
|
2288
2248
|
};
|
|
2289
|
-
let response;
|
|
2290
2249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2291
2250
|
switch (errorCode) {
|
|
2292
2251
|
case "AccessDeniedException":
|
|
@@ -2321,29 +2280,26 @@ const deserializeAws_restJson1CreateFacetCommandError = async (output, context)
|
|
|
2321
2280
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2322
2281
|
default:
|
|
2323
2282
|
const parsedBody = parsedOutput.body;
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
$metadata,
|
|
2283
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2284
|
+
output,
|
|
2285
|
+
parsedBody,
|
|
2286
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2287
|
+
errorCode,
|
|
2330
2288
|
});
|
|
2331
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2332
2289
|
}
|
|
2333
2290
|
};
|
|
2334
2291
|
const deserializeAws_restJson1CreateIndexCommand = async (output, context) => {
|
|
2335
2292
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2336
2293
|
return deserializeAws_restJson1CreateIndexCommandError(output, context);
|
|
2337
2294
|
}
|
|
2338
|
-
const contents = {
|
|
2295
|
+
const contents = map({
|
|
2339
2296
|
$metadata: deserializeMetadata(output),
|
|
2340
|
-
|
|
2341
|
-
};
|
|
2297
|
+
});
|
|
2342
2298
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2343
|
-
if (data.ObjectIdentifier
|
|
2299
|
+
if (data.ObjectIdentifier != null) {
|
|
2344
2300
|
contents.ObjectIdentifier = (0, smithy_client_1.expectString)(data.ObjectIdentifier);
|
|
2345
2301
|
}
|
|
2346
|
-
return
|
|
2302
|
+
return contents;
|
|
2347
2303
|
};
|
|
2348
2304
|
exports.deserializeAws_restJson1CreateIndexCommand = deserializeAws_restJson1CreateIndexCommand;
|
|
2349
2305
|
const deserializeAws_restJson1CreateIndexCommandError = async (output, context) => {
|
|
@@ -2351,7 +2307,6 @@ const deserializeAws_restJson1CreateIndexCommandError = async (output, context)
|
|
|
2351
2307
|
...output,
|
|
2352
2308
|
body: await parseBody(output.body, context),
|
|
2353
2309
|
};
|
|
2354
|
-
let response;
|
|
2355
2310
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
2311
|
switch (errorCode) {
|
|
2357
2312
|
case "AccessDeniedException":
|
|
@@ -2389,29 +2344,26 @@ const deserializeAws_restJson1CreateIndexCommandError = async (output, context)
|
|
|
2389
2344
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2390
2345
|
default:
|
|
2391
2346
|
const parsedBody = parsedOutput.body;
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
$metadata,
|
|
2347
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2348
|
+
output,
|
|
2349
|
+
parsedBody,
|
|
2350
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2351
|
+
errorCode,
|
|
2398
2352
|
});
|
|
2399
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2400
2353
|
}
|
|
2401
2354
|
};
|
|
2402
2355
|
const deserializeAws_restJson1CreateObjectCommand = async (output, context) => {
|
|
2403
2356
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2404
2357
|
return deserializeAws_restJson1CreateObjectCommandError(output, context);
|
|
2405
2358
|
}
|
|
2406
|
-
const contents = {
|
|
2359
|
+
const contents = map({
|
|
2407
2360
|
$metadata: deserializeMetadata(output),
|
|
2408
|
-
|
|
2409
|
-
};
|
|
2361
|
+
});
|
|
2410
2362
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2411
|
-
if (data.ObjectIdentifier
|
|
2363
|
+
if (data.ObjectIdentifier != null) {
|
|
2412
2364
|
contents.ObjectIdentifier = (0, smithy_client_1.expectString)(data.ObjectIdentifier);
|
|
2413
2365
|
}
|
|
2414
|
-
return
|
|
2366
|
+
return contents;
|
|
2415
2367
|
};
|
|
2416
2368
|
exports.deserializeAws_restJson1CreateObjectCommand = deserializeAws_restJson1CreateObjectCommand;
|
|
2417
2369
|
const deserializeAws_restJson1CreateObjectCommandError = async (output, context) => {
|
|
@@ -2419,7 +2371,6 @@ const deserializeAws_restJson1CreateObjectCommandError = async (output, context)
|
|
|
2419
2371
|
...output,
|
|
2420
2372
|
body: await parseBody(output.body, context),
|
|
2421
2373
|
};
|
|
2422
|
-
let response;
|
|
2423
2374
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
2375
|
switch (errorCode) {
|
|
2425
2376
|
case "AccessDeniedException":
|
|
@@ -2457,29 +2408,26 @@ const deserializeAws_restJson1CreateObjectCommandError = async (output, context)
|
|
|
2457
2408
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2458
2409
|
default:
|
|
2459
2410
|
const parsedBody = parsedOutput.body;
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
$metadata,
|
|
2411
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2412
|
+
output,
|
|
2413
|
+
parsedBody,
|
|
2414
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2415
|
+
errorCode,
|
|
2466
2416
|
});
|
|
2467
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2468
2417
|
}
|
|
2469
2418
|
};
|
|
2470
2419
|
const deserializeAws_restJson1CreateSchemaCommand = async (output, context) => {
|
|
2471
2420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2472
2421
|
return deserializeAws_restJson1CreateSchemaCommandError(output, context);
|
|
2473
2422
|
}
|
|
2474
|
-
const contents = {
|
|
2423
|
+
const contents = map({
|
|
2475
2424
|
$metadata: deserializeMetadata(output),
|
|
2476
|
-
|
|
2477
|
-
};
|
|
2425
|
+
});
|
|
2478
2426
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2479
|
-
if (data.SchemaArn
|
|
2427
|
+
if (data.SchemaArn != null) {
|
|
2480
2428
|
contents.SchemaArn = (0, smithy_client_1.expectString)(data.SchemaArn);
|
|
2481
2429
|
}
|
|
2482
|
-
return
|
|
2430
|
+
return contents;
|
|
2483
2431
|
};
|
|
2484
2432
|
exports.deserializeAws_restJson1CreateSchemaCommand = deserializeAws_restJson1CreateSchemaCommand;
|
|
2485
2433
|
const deserializeAws_restJson1CreateSchemaCommandError = async (output, context) => {
|
|
@@ -2487,7 +2435,6 @@ const deserializeAws_restJson1CreateSchemaCommandError = async (output, context)
|
|
|
2487
2435
|
...output,
|
|
2488
2436
|
body: await parseBody(output.body, context),
|
|
2489
2437
|
};
|
|
2490
|
-
let response;
|
|
2491
2438
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2492
2439
|
switch (errorCode) {
|
|
2493
2440
|
case "AccessDeniedException":
|
|
@@ -2513,25 +2460,23 @@ const deserializeAws_restJson1CreateSchemaCommandError = async (output, context)
|
|
|
2513
2460
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2514
2461
|
default:
|
|
2515
2462
|
const parsedBody = parsedOutput.body;
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
$metadata,
|
|
2463
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2464
|
+
output,
|
|
2465
|
+
parsedBody,
|
|
2466
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2467
|
+
errorCode,
|
|
2522
2468
|
});
|
|
2523
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2524
2469
|
}
|
|
2525
2470
|
};
|
|
2526
2471
|
const deserializeAws_restJson1CreateTypedLinkFacetCommand = async (output, context) => {
|
|
2527
2472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2528
2473
|
return deserializeAws_restJson1CreateTypedLinkFacetCommandError(output, context);
|
|
2529
2474
|
}
|
|
2530
|
-
const contents = {
|
|
2475
|
+
const contents = map({
|
|
2531
2476
|
$metadata: deserializeMetadata(output),
|
|
2532
|
-
};
|
|
2477
|
+
});
|
|
2533
2478
|
await collectBody(output.body, context);
|
|
2534
|
-
return
|
|
2479
|
+
return contents;
|
|
2535
2480
|
};
|
|
2536
2481
|
exports.deserializeAws_restJson1CreateTypedLinkFacetCommand = deserializeAws_restJson1CreateTypedLinkFacetCommand;
|
|
2537
2482
|
const deserializeAws_restJson1CreateTypedLinkFacetCommandError = async (output, context) => {
|
|
@@ -2539,7 +2484,6 @@ const deserializeAws_restJson1CreateTypedLinkFacetCommandError = async (output,
|
|
|
2539
2484
|
...output,
|
|
2540
2485
|
body: await parseBody(output.body, context),
|
|
2541
2486
|
};
|
|
2542
|
-
let response;
|
|
2543
2487
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
2488
|
switch (errorCode) {
|
|
2545
2489
|
case "AccessDeniedException":
|
|
@@ -2574,29 +2518,26 @@ const deserializeAws_restJson1CreateTypedLinkFacetCommandError = async (output,
|
|
|
2574
2518
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2575
2519
|
default:
|
|
2576
2520
|
const parsedBody = parsedOutput.body;
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
$metadata,
|
|
2521
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2522
|
+
output,
|
|
2523
|
+
parsedBody,
|
|
2524
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2525
|
+
errorCode,
|
|
2583
2526
|
});
|
|
2584
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2585
2527
|
}
|
|
2586
2528
|
};
|
|
2587
2529
|
const deserializeAws_restJson1DeleteDirectoryCommand = async (output, context) => {
|
|
2588
2530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2589
2531
|
return deserializeAws_restJson1DeleteDirectoryCommandError(output, context);
|
|
2590
2532
|
}
|
|
2591
|
-
const contents = {
|
|
2533
|
+
const contents = map({
|
|
2592
2534
|
$metadata: deserializeMetadata(output),
|
|
2593
|
-
|
|
2594
|
-
};
|
|
2535
|
+
});
|
|
2595
2536
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2596
|
-
if (data.DirectoryArn
|
|
2537
|
+
if (data.DirectoryArn != null) {
|
|
2597
2538
|
contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
|
|
2598
2539
|
}
|
|
2599
|
-
return
|
|
2540
|
+
return contents;
|
|
2600
2541
|
};
|
|
2601
2542
|
exports.deserializeAws_restJson1DeleteDirectoryCommand = deserializeAws_restJson1DeleteDirectoryCommand;
|
|
2602
2543
|
const deserializeAws_restJson1DeleteDirectoryCommandError = async (output, context) => {
|
|
@@ -2604,7 +2545,6 @@ const deserializeAws_restJson1DeleteDirectoryCommandError = async (output, conte
|
|
|
2604
2545
|
...output,
|
|
2605
2546
|
body: await parseBody(output.body, context),
|
|
2606
2547
|
};
|
|
2607
|
-
let response;
|
|
2608
2548
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
2549
|
switch (errorCode) {
|
|
2610
2550
|
case "AccessDeniedException":
|
|
@@ -2636,25 +2576,23 @@ const deserializeAws_restJson1DeleteDirectoryCommandError = async (output, conte
|
|
|
2636
2576
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2637
2577
|
default:
|
|
2638
2578
|
const parsedBody = parsedOutput.body;
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
$metadata,
|
|
2579
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2580
|
+
output,
|
|
2581
|
+
parsedBody,
|
|
2582
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2583
|
+
errorCode,
|
|
2645
2584
|
});
|
|
2646
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2647
2585
|
}
|
|
2648
2586
|
};
|
|
2649
2587
|
const deserializeAws_restJson1DeleteFacetCommand = async (output, context) => {
|
|
2650
2588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2651
2589
|
return deserializeAws_restJson1DeleteFacetCommandError(output, context);
|
|
2652
2590
|
}
|
|
2653
|
-
const contents = {
|
|
2591
|
+
const contents = map({
|
|
2654
2592
|
$metadata: deserializeMetadata(output),
|
|
2655
|
-
};
|
|
2593
|
+
});
|
|
2656
2594
|
await collectBody(output.body, context);
|
|
2657
|
-
return
|
|
2595
|
+
return contents;
|
|
2658
2596
|
};
|
|
2659
2597
|
exports.deserializeAws_restJson1DeleteFacetCommand = deserializeAws_restJson1DeleteFacetCommand;
|
|
2660
2598
|
const deserializeAws_restJson1DeleteFacetCommandError = async (output, context) => {
|
|
@@ -2662,7 +2600,6 @@ const deserializeAws_restJson1DeleteFacetCommandError = async (output, context)
|
|
|
2662
2600
|
...output,
|
|
2663
2601
|
body: await parseBody(output.body, context),
|
|
2664
2602
|
};
|
|
2665
|
-
let response;
|
|
2666
2603
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
2604
|
switch (errorCode) {
|
|
2668
2605
|
case "AccessDeniedException":
|
|
@@ -2694,25 +2631,23 @@ const deserializeAws_restJson1DeleteFacetCommandError = async (output, context)
|
|
|
2694
2631
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2695
2632
|
default:
|
|
2696
2633
|
const parsedBody = parsedOutput.body;
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
$metadata,
|
|
2634
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2635
|
+
output,
|
|
2636
|
+
parsedBody,
|
|
2637
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2638
|
+
errorCode,
|
|
2703
2639
|
});
|
|
2704
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2705
2640
|
}
|
|
2706
2641
|
};
|
|
2707
2642
|
const deserializeAws_restJson1DeleteObjectCommand = async (output, context) => {
|
|
2708
2643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2709
2644
|
return deserializeAws_restJson1DeleteObjectCommandError(output, context);
|
|
2710
2645
|
}
|
|
2711
|
-
const contents = {
|
|
2646
|
+
const contents = map({
|
|
2712
2647
|
$metadata: deserializeMetadata(output),
|
|
2713
|
-
};
|
|
2648
|
+
});
|
|
2714
2649
|
await collectBody(output.body, context);
|
|
2715
|
-
return
|
|
2650
|
+
return contents;
|
|
2716
2651
|
};
|
|
2717
2652
|
exports.deserializeAws_restJson1DeleteObjectCommand = deserializeAws_restJson1DeleteObjectCommand;
|
|
2718
2653
|
const deserializeAws_restJson1DeleteObjectCommandError = async (output, context) => {
|
|
@@ -2720,7 +2655,6 @@ const deserializeAws_restJson1DeleteObjectCommandError = async (output, context)
|
|
|
2720
2655
|
...output,
|
|
2721
2656
|
body: await parseBody(output.body, context),
|
|
2722
2657
|
};
|
|
2723
|
-
let response;
|
|
2724
2658
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
2659
|
switch (errorCode) {
|
|
2726
2660
|
case "AccessDeniedException":
|
|
@@ -2752,29 +2686,26 @@ const deserializeAws_restJson1DeleteObjectCommandError = async (output, context)
|
|
|
2752
2686
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2753
2687
|
default:
|
|
2754
2688
|
const parsedBody = parsedOutput.body;
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
$metadata,
|
|
2689
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2690
|
+
output,
|
|
2691
|
+
parsedBody,
|
|
2692
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2693
|
+
errorCode,
|
|
2761
2694
|
});
|
|
2762
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2763
2695
|
}
|
|
2764
2696
|
};
|
|
2765
2697
|
const deserializeAws_restJson1DeleteSchemaCommand = async (output, context) => {
|
|
2766
2698
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2767
2699
|
return deserializeAws_restJson1DeleteSchemaCommandError(output, context);
|
|
2768
2700
|
}
|
|
2769
|
-
const contents = {
|
|
2701
|
+
const contents = map({
|
|
2770
2702
|
$metadata: deserializeMetadata(output),
|
|
2771
|
-
|
|
2772
|
-
};
|
|
2703
|
+
});
|
|
2773
2704
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2774
|
-
if (data.SchemaArn
|
|
2705
|
+
if (data.SchemaArn != null) {
|
|
2775
2706
|
contents.SchemaArn = (0, smithy_client_1.expectString)(data.SchemaArn);
|
|
2776
2707
|
}
|
|
2777
|
-
return
|
|
2708
|
+
return contents;
|
|
2778
2709
|
};
|
|
2779
2710
|
exports.deserializeAws_restJson1DeleteSchemaCommand = deserializeAws_restJson1DeleteSchemaCommand;
|
|
2780
2711
|
const deserializeAws_restJson1DeleteSchemaCommandError = async (output, context) => {
|
|
@@ -2782,7 +2713,6 @@ const deserializeAws_restJson1DeleteSchemaCommandError = async (output, context)
|
|
|
2782
2713
|
...output,
|
|
2783
2714
|
body: await parseBody(output.body, context),
|
|
2784
2715
|
};
|
|
2785
|
-
let response;
|
|
2786
2716
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2787
2717
|
switch (errorCode) {
|
|
2788
2718
|
case "AccessDeniedException":
|
|
@@ -2811,25 +2741,23 @@ const deserializeAws_restJson1DeleteSchemaCommandError = async (output, context)
|
|
|
2811
2741
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2812
2742
|
default:
|
|
2813
2743
|
const parsedBody = parsedOutput.body;
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
$metadata,
|
|
2744
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2745
|
+
output,
|
|
2746
|
+
parsedBody,
|
|
2747
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2748
|
+
errorCode,
|
|
2820
2749
|
});
|
|
2821
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2822
2750
|
}
|
|
2823
2751
|
};
|
|
2824
2752
|
const deserializeAws_restJson1DeleteTypedLinkFacetCommand = async (output, context) => {
|
|
2825
2753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2826
2754
|
return deserializeAws_restJson1DeleteTypedLinkFacetCommandError(output, context);
|
|
2827
2755
|
}
|
|
2828
|
-
const contents = {
|
|
2756
|
+
const contents = map({
|
|
2829
2757
|
$metadata: deserializeMetadata(output),
|
|
2830
|
-
};
|
|
2758
|
+
});
|
|
2831
2759
|
await collectBody(output.body, context);
|
|
2832
|
-
return
|
|
2760
|
+
return contents;
|
|
2833
2761
|
};
|
|
2834
2762
|
exports.deserializeAws_restJson1DeleteTypedLinkFacetCommand = deserializeAws_restJson1DeleteTypedLinkFacetCommand;
|
|
2835
2763
|
const deserializeAws_restJson1DeleteTypedLinkFacetCommandError = async (output, context) => {
|
|
@@ -2837,7 +2765,6 @@ const deserializeAws_restJson1DeleteTypedLinkFacetCommandError = async (output,
|
|
|
2837
2765
|
...output,
|
|
2838
2766
|
body: await parseBody(output.body, context),
|
|
2839
2767
|
};
|
|
2840
|
-
let response;
|
|
2841
2768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2842
2769
|
switch (errorCode) {
|
|
2843
2770
|
case "AccessDeniedException":
|
|
@@ -2866,29 +2793,26 @@ const deserializeAws_restJson1DeleteTypedLinkFacetCommandError = async (output,
|
|
|
2866
2793
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2867
2794
|
default:
|
|
2868
2795
|
const parsedBody = parsedOutput.body;
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
$metadata,
|
|
2796
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2797
|
+
output,
|
|
2798
|
+
parsedBody,
|
|
2799
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2800
|
+
errorCode,
|
|
2875
2801
|
});
|
|
2876
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2877
2802
|
}
|
|
2878
2803
|
};
|
|
2879
2804
|
const deserializeAws_restJson1DetachFromIndexCommand = async (output, context) => {
|
|
2880
2805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2881
2806
|
return deserializeAws_restJson1DetachFromIndexCommandError(output, context);
|
|
2882
2807
|
}
|
|
2883
|
-
const contents = {
|
|
2808
|
+
const contents = map({
|
|
2884
2809
|
$metadata: deserializeMetadata(output),
|
|
2885
|
-
|
|
2886
|
-
};
|
|
2810
|
+
});
|
|
2887
2811
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2888
|
-
if (data.DetachedObjectIdentifier
|
|
2812
|
+
if (data.DetachedObjectIdentifier != null) {
|
|
2889
2813
|
contents.DetachedObjectIdentifier = (0, smithy_client_1.expectString)(data.DetachedObjectIdentifier);
|
|
2890
2814
|
}
|
|
2891
|
-
return
|
|
2815
|
+
return contents;
|
|
2892
2816
|
};
|
|
2893
2817
|
exports.deserializeAws_restJson1DetachFromIndexCommand = deserializeAws_restJson1DetachFromIndexCommand;
|
|
2894
2818
|
const deserializeAws_restJson1DetachFromIndexCommandError = async (output, context) => {
|
|
@@ -2896,7 +2820,6 @@ const deserializeAws_restJson1DetachFromIndexCommandError = async (output, conte
|
|
|
2896
2820
|
...output,
|
|
2897
2821
|
body: await parseBody(output.body, context),
|
|
2898
2822
|
};
|
|
2899
|
-
let response;
|
|
2900
2823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2901
2824
|
switch (errorCode) {
|
|
2902
2825
|
case "AccessDeniedException":
|
|
@@ -2931,29 +2854,26 @@ const deserializeAws_restJson1DetachFromIndexCommandError = async (output, conte
|
|
|
2931
2854
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2932
2855
|
default:
|
|
2933
2856
|
const parsedBody = parsedOutput.body;
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
$metadata,
|
|
2857
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2858
|
+
output,
|
|
2859
|
+
parsedBody,
|
|
2860
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2861
|
+
errorCode,
|
|
2940
2862
|
});
|
|
2941
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2942
2863
|
}
|
|
2943
2864
|
};
|
|
2944
2865
|
const deserializeAws_restJson1DetachObjectCommand = async (output, context) => {
|
|
2945
2866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2946
2867
|
return deserializeAws_restJson1DetachObjectCommandError(output, context);
|
|
2947
2868
|
}
|
|
2948
|
-
const contents = {
|
|
2869
|
+
const contents = map({
|
|
2949
2870
|
$metadata: deserializeMetadata(output),
|
|
2950
|
-
|
|
2951
|
-
};
|
|
2871
|
+
});
|
|
2952
2872
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2953
|
-
if (data.DetachedObjectIdentifier
|
|
2873
|
+
if (data.DetachedObjectIdentifier != null) {
|
|
2954
2874
|
contents.DetachedObjectIdentifier = (0, smithy_client_1.expectString)(data.DetachedObjectIdentifier);
|
|
2955
2875
|
}
|
|
2956
|
-
return
|
|
2876
|
+
return contents;
|
|
2957
2877
|
};
|
|
2958
2878
|
exports.deserializeAws_restJson1DetachObjectCommand = deserializeAws_restJson1DetachObjectCommand;
|
|
2959
2879
|
const deserializeAws_restJson1DetachObjectCommandError = async (output, context) => {
|
|
@@ -2961,7 +2881,6 @@ const deserializeAws_restJson1DetachObjectCommandError = async (output, context)
|
|
|
2961
2881
|
...output,
|
|
2962
2882
|
body: await parseBody(output.body, context),
|
|
2963
2883
|
};
|
|
2964
|
-
let response;
|
|
2965
2884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2966
2885
|
switch (errorCode) {
|
|
2967
2886
|
case "AccessDeniedException":
|
|
@@ -2993,25 +2912,23 @@ const deserializeAws_restJson1DetachObjectCommandError = async (output, context)
|
|
|
2993
2912
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2994
2913
|
default:
|
|
2995
2914
|
const parsedBody = parsedOutput.body;
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
$metadata,
|
|
2915
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2916
|
+
output,
|
|
2917
|
+
parsedBody,
|
|
2918
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2919
|
+
errorCode,
|
|
3002
2920
|
});
|
|
3003
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3004
2921
|
}
|
|
3005
2922
|
};
|
|
3006
2923
|
const deserializeAws_restJson1DetachPolicyCommand = async (output, context) => {
|
|
3007
2924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3008
2925
|
return deserializeAws_restJson1DetachPolicyCommandError(output, context);
|
|
3009
2926
|
}
|
|
3010
|
-
const contents = {
|
|
2927
|
+
const contents = map({
|
|
3011
2928
|
$metadata: deserializeMetadata(output),
|
|
3012
|
-
};
|
|
2929
|
+
});
|
|
3013
2930
|
await collectBody(output.body, context);
|
|
3014
|
-
return
|
|
2931
|
+
return contents;
|
|
3015
2932
|
};
|
|
3016
2933
|
exports.deserializeAws_restJson1DetachPolicyCommand = deserializeAws_restJson1DetachPolicyCommand;
|
|
3017
2934
|
const deserializeAws_restJson1DetachPolicyCommandError = async (output, context) => {
|
|
@@ -3019,7 +2936,6 @@ const deserializeAws_restJson1DetachPolicyCommandError = async (output, context)
|
|
|
3019
2936
|
...output,
|
|
3020
2937
|
body: await parseBody(output.body, context),
|
|
3021
2938
|
};
|
|
3022
|
-
let response;
|
|
3023
2939
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3024
2940
|
switch (errorCode) {
|
|
3025
2941
|
case "AccessDeniedException":
|
|
@@ -3051,25 +2967,23 @@ const deserializeAws_restJson1DetachPolicyCommandError = async (output, context)
|
|
|
3051
2967
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3052
2968
|
default:
|
|
3053
2969
|
const parsedBody = parsedOutput.body;
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
$metadata,
|
|
2970
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2971
|
+
output,
|
|
2972
|
+
parsedBody,
|
|
2973
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
2974
|
+
errorCode,
|
|
3060
2975
|
});
|
|
3061
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3062
2976
|
}
|
|
3063
2977
|
};
|
|
3064
2978
|
const deserializeAws_restJson1DetachTypedLinkCommand = async (output, context) => {
|
|
3065
2979
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3066
2980
|
return deserializeAws_restJson1DetachTypedLinkCommandError(output, context);
|
|
3067
2981
|
}
|
|
3068
|
-
const contents = {
|
|
2982
|
+
const contents = map({
|
|
3069
2983
|
$metadata: deserializeMetadata(output),
|
|
3070
|
-
};
|
|
2984
|
+
});
|
|
3071
2985
|
await collectBody(output.body, context);
|
|
3072
|
-
return
|
|
2986
|
+
return contents;
|
|
3073
2987
|
};
|
|
3074
2988
|
exports.deserializeAws_restJson1DetachTypedLinkCommand = deserializeAws_restJson1DetachTypedLinkCommand;
|
|
3075
2989
|
const deserializeAws_restJson1DetachTypedLinkCommandError = async (output, context) => {
|
|
@@ -3077,7 +2991,6 @@ const deserializeAws_restJson1DetachTypedLinkCommandError = async (output, conte
|
|
|
3077
2991
|
...output,
|
|
3078
2992
|
body: await parseBody(output.body, context),
|
|
3079
2993
|
};
|
|
3080
|
-
let response;
|
|
3081
2994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3082
2995
|
switch (errorCode) {
|
|
3083
2996
|
case "AccessDeniedException":
|
|
@@ -3109,29 +3022,26 @@ const deserializeAws_restJson1DetachTypedLinkCommandError = async (output, conte
|
|
|
3109
3022
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3110
3023
|
default:
|
|
3111
3024
|
const parsedBody = parsedOutput.body;
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
$metadata,
|
|
3025
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3026
|
+
output,
|
|
3027
|
+
parsedBody,
|
|
3028
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3029
|
+
errorCode,
|
|
3118
3030
|
});
|
|
3119
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3120
3031
|
}
|
|
3121
3032
|
};
|
|
3122
3033
|
const deserializeAws_restJson1DisableDirectoryCommand = async (output, context) => {
|
|
3123
3034
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3124
3035
|
return deserializeAws_restJson1DisableDirectoryCommandError(output, context);
|
|
3125
3036
|
}
|
|
3126
|
-
const contents = {
|
|
3037
|
+
const contents = map({
|
|
3127
3038
|
$metadata: deserializeMetadata(output),
|
|
3128
|
-
|
|
3129
|
-
};
|
|
3039
|
+
});
|
|
3130
3040
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3131
|
-
if (data.DirectoryArn
|
|
3041
|
+
if (data.DirectoryArn != null) {
|
|
3132
3042
|
contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
|
|
3133
3043
|
}
|
|
3134
|
-
return
|
|
3044
|
+
return contents;
|
|
3135
3045
|
};
|
|
3136
3046
|
exports.deserializeAws_restJson1DisableDirectoryCommand = deserializeAws_restJson1DisableDirectoryCommand;
|
|
3137
3047
|
const deserializeAws_restJson1DisableDirectoryCommandError = async (output, context) => {
|
|
@@ -3139,7 +3049,6 @@ const deserializeAws_restJson1DisableDirectoryCommandError = async (output, cont
|
|
|
3139
3049
|
...output,
|
|
3140
3050
|
body: await parseBody(output.body, context),
|
|
3141
3051
|
};
|
|
3142
|
-
let response;
|
|
3143
3052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3144
3053
|
switch (errorCode) {
|
|
3145
3054
|
case "AccessDeniedException":
|
|
@@ -3168,29 +3077,26 @@ const deserializeAws_restJson1DisableDirectoryCommandError = async (output, cont
|
|
|
3168
3077
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3169
3078
|
default:
|
|
3170
3079
|
const parsedBody = parsedOutput.body;
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
$metadata,
|
|
3080
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3081
|
+
output,
|
|
3082
|
+
parsedBody,
|
|
3083
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3084
|
+
errorCode,
|
|
3177
3085
|
});
|
|
3178
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3179
3086
|
}
|
|
3180
3087
|
};
|
|
3181
3088
|
const deserializeAws_restJson1EnableDirectoryCommand = async (output, context) => {
|
|
3182
3089
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3183
3090
|
return deserializeAws_restJson1EnableDirectoryCommandError(output, context);
|
|
3184
3091
|
}
|
|
3185
|
-
const contents = {
|
|
3092
|
+
const contents = map({
|
|
3186
3093
|
$metadata: deserializeMetadata(output),
|
|
3187
|
-
|
|
3188
|
-
};
|
|
3094
|
+
});
|
|
3189
3095
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3190
|
-
if (data.DirectoryArn
|
|
3096
|
+
if (data.DirectoryArn != null) {
|
|
3191
3097
|
contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
|
|
3192
3098
|
}
|
|
3193
|
-
return
|
|
3099
|
+
return contents;
|
|
3194
3100
|
};
|
|
3195
3101
|
exports.deserializeAws_restJson1EnableDirectoryCommand = deserializeAws_restJson1EnableDirectoryCommand;
|
|
3196
3102
|
const deserializeAws_restJson1EnableDirectoryCommandError = async (output, context) => {
|
|
@@ -3198,7 +3104,6 @@ const deserializeAws_restJson1EnableDirectoryCommandError = async (output, conte
|
|
|
3198
3104
|
...output,
|
|
3199
3105
|
body: await parseBody(output.body, context),
|
|
3200
3106
|
};
|
|
3201
|
-
let response;
|
|
3202
3107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3203
3108
|
switch (errorCode) {
|
|
3204
3109
|
case "AccessDeniedException":
|
|
@@ -3227,29 +3132,26 @@ const deserializeAws_restJson1EnableDirectoryCommandError = async (output, conte
|
|
|
3227
3132
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3228
3133
|
default:
|
|
3229
3134
|
const parsedBody = parsedOutput.body;
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
$metadata,
|
|
3135
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3136
|
+
output,
|
|
3137
|
+
parsedBody,
|
|
3138
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3139
|
+
errorCode,
|
|
3236
3140
|
});
|
|
3237
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3238
3141
|
}
|
|
3239
3142
|
};
|
|
3240
3143
|
const deserializeAws_restJson1GetAppliedSchemaVersionCommand = async (output, context) => {
|
|
3241
3144
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3242
3145
|
return deserializeAws_restJson1GetAppliedSchemaVersionCommandError(output, context);
|
|
3243
3146
|
}
|
|
3244
|
-
const contents = {
|
|
3147
|
+
const contents = map({
|
|
3245
3148
|
$metadata: deserializeMetadata(output),
|
|
3246
|
-
|
|
3247
|
-
};
|
|
3149
|
+
});
|
|
3248
3150
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3249
|
-
if (data.AppliedSchemaArn
|
|
3151
|
+
if (data.AppliedSchemaArn != null) {
|
|
3250
3152
|
contents.AppliedSchemaArn = (0, smithy_client_1.expectString)(data.AppliedSchemaArn);
|
|
3251
3153
|
}
|
|
3252
|
-
return
|
|
3154
|
+
return contents;
|
|
3253
3155
|
};
|
|
3254
3156
|
exports.deserializeAws_restJson1GetAppliedSchemaVersionCommand = deserializeAws_restJson1GetAppliedSchemaVersionCommand;
|
|
3255
3157
|
const deserializeAws_restJson1GetAppliedSchemaVersionCommandError = async (output, context) => {
|
|
@@ -3257,7 +3159,6 @@ const deserializeAws_restJson1GetAppliedSchemaVersionCommandError = async (outpu
|
|
|
3257
3159
|
...output,
|
|
3258
3160
|
body: await parseBody(output.body, context),
|
|
3259
3161
|
};
|
|
3260
|
-
let response;
|
|
3261
3162
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3262
3163
|
switch (errorCode) {
|
|
3263
3164
|
case "AccessDeniedException":
|
|
@@ -3283,29 +3184,26 @@ const deserializeAws_restJson1GetAppliedSchemaVersionCommandError = async (outpu
|
|
|
3283
3184
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3284
3185
|
default:
|
|
3285
3186
|
const parsedBody = parsedOutput.body;
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
$metadata,
|
|
3187
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3188
|
+
output,
|
|
3189
|
+
parsedBody,
|
|
3190
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3191
|
+
errorCode,
|
|
3292
3192
|
});
|
|
3293
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3294
3193
|
}
|
|
3295
3194
|
};
|
|
3296
3195
|
const deserializeAws_restJson1GetDirectoryCommand = async (output, context) => {
|
|
3297
3196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3298
3197
|
return deserializeAws_restJson1GetDirectoryCommandError(output, context);
|
|
3299
3198
|
}
|
|
3300
|
-
const contents = {
|
|
3199
|
+
const contents = map({
|
|
3301
3200
|
$metadata: deserializeMetadata(output),
|
|
3302
|
-
|
|
3303
|
-
};
|
|
3201
|
+
});
|
|
3304
3202
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3305
|
-
if (data.Directory
|
|
3203
|
+
if (data.Directory != null) {
|
|
3306
3204
|
contents.Directory = deserializeAws_restJson1Directory(data.Directory, context);
|
|
3307
3205
|
}
|
|
3308
|
-
return
|
|
3206
|
+
return contents;
|
|
3309
3207
|
};
|
|
3310
3208
|
exports.deserializeAws_restJson1GetDirectoryCommand = deserializeAws_restJson1GetDirectoryCommand;
|
|
3311
3209
|
const deserializeAws_restJson1GetDirectoryCommandError = async (output, context) => {
|
|
@@ -3313,7 +3211,6 @@ const deserializeAws_restJson1GetDirectoryCommandError = async (output, context)
|
|
|
3313
3211
|
...output,
|
|
3314
3212
|
body: await parseBody(output.body, context),
|
|
3315
3213
|
};
|
|
3316
|
-
let response;
|
|
3317
3214
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3318
3215
|
switch (errorCode) {
|
|
3319
3216
|
case "AccessDeniedException":
|
|
@@ -3336,29 +3233,26 @@ const deserializeAws_restJson1GetDirectoryCommandError = async (output, context)
|
|
|
3336
3233
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3337
3234
|
default:
|
|
3338
3235
|
const parsedBody = parsedOutput.body;
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
$metadata,
|
|
3236
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3237
|
+
output,
|
|
3238
|
+
parsedBody,
|
|
3239
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3240
|
+
errorCode,
|
|
3345
3241
|
});
|
|
3346
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3347
3242
|
}
|
|
3348
3243
|
};
|
|
3349
3244
|
const deserializeAws_restJson1GetFacetCommand = async (output, context) => {
|
|
3350
3245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3351
3246
|
return deserializeAws_restJson1GetFacetCommandError(output, context);
|
|
3352
3247
|
}
|
|
3353
|
-
const contents = {
|
|
3248
|
+
const contents = map({
|
|
3354
3249
|
$metadata: deserializeMetadata(output),
|
|
3355
|
-
|
|
3356
|
-
};
|
|
3250
|
+
});
|
|
3357
3251
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3358
|
-
if (data.Facet
|
|
3252
|
+
if (data.Facet != null) {
|
|
3359
3253
|
contents.Facet = deserializeAws_restJson1Facet(data.Facet, context);
|
|
3360
3254
|
}
|
|
3361
|
-
return
|
|
3255
|
+
return contents;
|
|
3362
3256
|
};
|
|
3363
3257
|
exports.deserializeAws_restJson1GetFacetCommand = deserializeAws_restJson1GetFacetCommand;
|
|
3364
3258
|
const deserializeAws_restJson1GetFacetCommandError = async (output, context) => {
|
|
@@ -3366,7 +3260,6 @@ const deserializeAws_restJson1GetFacetCommandError = async (output, context) =>
|
|
|
3366
3260
|
...output,
|
|
3367
3261
|
body: await parseBody(output.body, context),
|
|
3368
3262
|
};
|
|
3369
|
-
let response;
|
|
3370
3263
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3371
3264
|
switch (errorCode) {
|
|
3372
3265
|
case "AccessDeniedException":
|
|
@@ -3395,29 +3288,26 @@ const deserializeAws_restJson1GetFacetCommandError = async (output, context) =>
|
|
|
3395
3288
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3396
3289
|
default:
|
|
3397
3290
|
const parsedBody = parsedOutput.body;
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
$metadata,
|
|
3291
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3292
|
+
output,
|
|
3293
|
+
parsedBody,
|
|
3294
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3295
|
+
errorCode,
|
|
3404
3296
|
});
|
|
3405
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3406
3297
|
}
|
|
3407
3298
|
};
|
|
3408
3299
|
const deserializeAws_restJson1GetLinkAttributesCommand = async (output, context) => {
|
|
3409
3300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3410
3301
|
return deserializeAws_restJson1GetLinkAttributesCommandError(output, context);
|
|
3411
3302
|
}
|
|
3412
|
-
const contents = {
|
|
3303
|
+
const contents = map({
|
|
3413
3304
|
$metadata: deserializeMetadata(output),
|
|
3414
|
-
|
|
3415
|
-
};
|
|
3305
|
+
});
|
|
3416
3306
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3417
|
-
if (data.Attributes
|
|
3307
|
+
if (data.Attributes != null) {
|
|
3418
3308
|
contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
|
|
3419
3309
|
}
|
|
3420
|
-
return
|
|
3310
|
+
return contents;
|
|
3421
3311
|
};
|
|
3422
3312
|
exports.deserializeAws_restJson1GetLinkAttributesCommand = deserializeAws_restJson1GetLinkAttributesCommand;
|
|
3423
3313
|
const deserializeAws_restJson1GetLinkAttributesCommandError = async (output, context) => {
|
|
@@ -3425,7 +3315,6 @@ const deserializeAws_restJson1GetLinkAttributesCommandError = async (output, con
|
|
|
3425
3315
|
...output,
|
|
3426
3316
|
body: await parseBody(output.body, context),
|
|
3427
3317
|
};
|
|
3428
|
-
let response;
|
|
3429
3318
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3430
3319
|
switch (errorCode) {
|
|
3431
3320
|
case "AccessDeniedException":
|
|
@@ -3457,29 +3346,26 @@ const deserializeAws_restJson1GetLinkAttributesCommandError = async (output, con
|
|
|
3457
3346
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3458
3347
|
default:
|
|
3459
3348
|
const parsedBody = parsedOutput.body;
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
$metadata,
|
|
3349
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3350
|
+
output,
|
|
3351
|
+
parsedBody,
|
|
3352
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3353
|
+
errorCode,
|
|
3466
3354
|
});
|
|
3467
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3468
3355
|
}
|
|
3469
3356
|
};
|
|
3470
3357
|
const deserializeAws_restJson1GetObjectAttributesCommand = async (output, context) => {
|
|
3471
3358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3472
3359
|
return deserializeAws_restJson1GetObjectAttributesCommandError(output, context);
|
|
3473
3360
|
}
|
|
3474
|
-
const contents = {
|
|
3361
|
+
const contents = map({
|
|
3475
3362
|
$metadata: deserializeMetadata(output),
|
|
3476
|
-
|
|
3477
|
-
};
|
|
3363
|
+
});
|
|
3478
3364
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3479
|
-
if (data.Attributes
|
|
3365
|
+
if (data.Attributes != null) {
|
|
3480
3366
|
contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
|
|
3481
3367
|
}
|
|
3482
|
-
return
|
|
3368
|
+
return contents;
|
|
3483
3369
|
};
|
|
3484
3370
|
exports.deserializeAws_restJson1GetObjectAttributesCommand = deserializeAws_restJson1GetObjectAttributesCommand;
|
|
3485
3371
|
const deserializeAws_restJson1GetObjectAttributesCommandError = async (output, context) => {
|
|
@@ -3487,7 +3373,6 @@ const deserializeAws_restJson1GetObjectAttributesCommandError = async (output, c
|
|
|
3487
3373
|
...output,
|
|
3488
3374
|
body: await parseBody(output.body, context),
|
|
3489
3375
|
};
|
|
3490
|
-
let response;
|
|
3491
3376
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3492
3377
|
switch (errorCode) {
|
|
3493
3378
|
case "AccessDeniedException":
|
|
@@ -3519,33 +3404,29 @@ const deserializeAws_restJson1GetObjectAttributesCommandError = async (output, c
|
|
|
3519
3404
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3520
3405
|
default:
|
|
3521
3406
|
const parsedBody = parsedOutput.body;
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
$metadata,
|
|
3407
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3408
|
+
output,
|
|
3409
|
+
parsedBody,
|
|
3410
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3411
|
+
errorCode,
|
|
3528
3412
|
});
|
|
3529
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3530
3413
|
}
|
|
3531
3414
|
};
|
|
3532
3415
|
const deserializeAws_restJson1GetObjectInformationCommand = async (output, context) => {
|
|
3533
3416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3534
3417
|
return deserializeAws_restJson1GetObjectInformationCommandError(output, context);
|
|
3535
3418
|
}
|
|
3536
|
-
const contents = {
|
|
3419
|
+
const contents = map({
|
|
3537
3420
|
$metadata: deserializeMetadata(output),
|
|
3538
|
-
|
|
3539
|
-
SchemaFacets: undefined,
|
|
3540
|
-
};
|
|
3421
|
+
});
|
|
3541
3422
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3542
|
-
if (data.ObjectIdentifier
|
|
3423
|
+
if (data.ObjectIdentifier != null) {
|
|
3543
3424
|
contents.ObjectIdentifier = (0, smithy_client_1.expectString)(data.ObjectIdentifier);
|
|
3544
3425
|
}
|
|
3545
|
-
if (data.SchemaFacets
|
|
3426
|
+
if (data.SchemaFacets != null) {
|
|
3546
3427
|
contents.SchemaFacets = deserializeAws_restJson1SchemaFacetList(data.SchemaFacets, context);
|
|
3547
3428
|
}
|
|
3548
|
-
return
|
|
3429
|
+
return contents;
|
|
3549
3430
|
};
|
|
3550
3431
|
exports.deserializeAws_restJson1GetObjectInformationCommand = deserializeAws_restJson1GetObjectInformationCommand;
|
|
3551
3432
|
const deserializeAws_restJson1GetObjectInformationCommandError = async (output, context) => {
|
|
@@ -3553,7 +3434,6 @@ const deserializeAws_restJson1GetObjectInformationCommandError = async (output,
|
|
|
3553
3434
|
...output,
|
|
3554
3435
|
body: await parseBody(output.body, context),
|
|
3555
3436
|
};
|
|
3556
|
-
let response;
|
|
3557
3437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3558
3438
|
switch (errorCode) {
|
|
3559
3439
|
case "AccessDeniedException":
|
|
@@ -3582,33 +3462,29 @@ const deserializeAws_restJson1GetObjectInformationCommandError = async (output,
|
|
|
3582
3462
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3583
3463
|
default:
|
|
3584
3464
|
const parsedBody = parsedOutput.body;
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
$metadata,
|
|
3465
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3466
|
+
output,
|
|
3467
|
+
parsedBody,
|
|
3468
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3469
|
+
errorCode,
|
|
3591
3470
|
});
|
|
3592
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3593
3471
|
}
|
|
3594
3472
|
};
|
|
3595
3473
|
const deserializeAws_restJson1GetSchemaAsJsonCommand = async (output, context) => {
|
|
3596
3474
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3597
3475
|
return deserializeAws_restJson1GetSchemaAsJsonCommandError(output, context);
|
|
3598
3476
|
}
|
|
3599
|
-
const contents = {
|
|
3477
|
+
const contents = map({
|
|
3600
3478
|
$metadata: deserializeMetadata(output),
|
|
3601
|
-
|
|
3602
|
-
Name: undefined,
|
|
3603
|
-
};
|
|
3479
|
+
});
|
|
3604
3480
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3605
|
-
if (data.Document
|
|
3481
|
+
if (data.Document != null) {
|
|
3606
3482
|
contents.Document = (0, smithy_client_1.expectString)(data.Document);
|
|
3607
3483
|
}
|
|
3608
|
-
if (data.Name
|
|
3484
|
+
if (data.Name != null) {
|
|
3609
3485
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
3610
3486
|
}
|
|
3611
|
-
return
|
|
3487
|
+
return contents;
|
|
3612
3488
|
};
|
|
3613
3489
|
exports.deserializeAws_restJson1GetSchemaAsJsonCommand = deserializeAws_restJson1GetSchemaAsJsonCommand;
|
|
3614
3490
|
const deserializeAws_restJson1GetSchemaAsJsonCommandError = async (output, context) => {
|
|
@@ -3616,7 +3492,6 @@ const deserializeAws_restJson1GetSchemaAsJsonCommandError = async (output, conte
|
|
|
3616
3492
|
...output,
|
|
3617
3493
|
body: await parseBody(output.body, context),
|
|
3618
3494
|
};
|
|
3619
|
-
let response;
|
|
3620
3495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3621
3496
|
switch (errorCode) {
|
|
3622
3497
|
case "AccessDeniedException":
|
|
@@ -3642,29 +3517,26 @@ const deserializeAws_restJson1GetSchemaAsJsonCommandError = async (output, conte
|
|
|
3642
3517
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3643
3518
|
default:
|
|
3644
3519
|
const parsedBody = parsedOutput.body;
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
$metadata,
|
|
3520
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3521
|
+
output,
|
|
3522
|
+
parsedBody,
|
|
3523
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3524
|
+
errorCode,
|
|
3651
3525
|
});
|
|
3652
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3653
3526
|
}
|
|
3654
3527
|
};
|
|
3655
3528
|
const deserializeAws_restJson1GetTypedLinkFacetInformationCommand = async (output, context) => {
|
|
3656
3529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3657
3530
|
return deserializeAws_restJson1GetTypedLinkFacetInformationCommandError(output, context);
|
|
3658
3531
|
}
|
|
3659
|
-
const contents = {
|
|
3532
|
+
const contents = map({
|
|
3660
3533
|
$metadata: deserializeMetadata(output),
|
|
3661
|
-
|
|
3662
|
-
};
|
|
3534
|
+
});
|
|
3663
3535
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3664
|
-
if (data.IdentityAttributeOrder
|
|
3536
|
+
if (data.IdentityAttributeOrder != null) {
|
|
3665
3537
|
contents.IdentityAttributeOrder = deserializeAws_restJson1AttributeNameList(data.IdentityAttributeOrder, context);
|
|
3666
3538
|
}
|
|
3667
|
-
return
|
|
3539
|
+
return contents;
|
|
3668
3540
|
};
|
|
3669
3541
|
exports.deserializeAws_restJson1GetTypedLinkFacetInformationCommand = deserializeAws_restJson1GetTypedLinkFacetInformationCommand;
|
|
3670
3542
|
const deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = async (output, context) => {
|
|
@@ -3672,7 +3544,6 @@ const deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = async (
|
|
|
3672
3544
|
...output,
|
|
3673
3545
|
body: await parseBody(output.body, context),
|
|
3674
3546
|
};
|
|
3675
|
-
let response;
|
|
3676
3547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3677
3548
|
switch (errorCode) {
|
|
3678
3549
|
case "AccessDeniedException":
|
|
@@ -3704,33 +3575,29 @@ const deserializeAws_restJson1GetTypedLinkFacetInformationCommandError = async (
|
|
|
3704
3575
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3705
3576
|
default:
|
|
3706
3577
|
const parsedBody = parsedOutput.body;
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
$metadata,
|
|
3578
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3579
|
+
output,
|
|
3580
|
+
parsedBody,
|
|
3581
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3582
|
+
errorCode,
|
|
3713
3583
|
});
|
|
3714
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3715
3584
|
}
|
|
3716
3585
|
};
|
|
3717
3586
|
const deserializeAws_restJson1ListAppliedSchemaArnsCommand = async (output, context) => {
|
|
3718
3587
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3719
3588
|
return deserializeAws_restJson1ListAppliedSchemaArnsCommandError(output, context);
|
|
3720
3589
|
}
|
|
3721
|
-
const contents = {
|
|
3590
|
+
const contents = map({
|
|
3722
3591
|
$metadata: deserializeMetadata(output),
|
|
3723
|
-
|
|
3724
|
-
SchemaArns: undefined,
|
|
3725
|
-
};
|
|
3592
|
+
});
|
|
3726
3593
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3727
|
-
if (data.NextToken
|
|
3594
|
+
if (data.NextToken != null) {
|
|
3728
3595
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3729
3596
|
}
|
|
3730
|
-
if (data.SchemaArns
|
|
3597
|
+
if (data.SchemaArns != null) {
|
|
3731
3598
|
contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
|
|
3732
3599
|
}
|
|
3733
|
-
return
|
|
3600
|
+
return contents;
|
|
3734
3601
|
};
|
|
3735
3602
|
exports.deserializeAws_restJson1ListAppliedSchemaArnsCommand = deserializeAws_restJson1ListAppliedSchemaArnsCommand;
|
|
3736
3603
|
const deserializeAws_restJson1ListAppliedSchemaArnsCommandError = async (output, context) => {
|
|
@@ -3738,7 +3605,6 @@ const deserializeAws_restJson1ListAppliedSchemaArnsCommandError = async (output,
|
|
|
3738
3605
|
...output,
|
|
3739
3606
|
body: await parseBody(output.body, context),
|
|
3740
3607
|
};
|
|
3741
|
-
let response;
|
|
3742
3608
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3743
3609
|
switch (errorCode) {
|
|
3744
3610
|
case "AccessDeniedException":
|
|
@@ -3767,33 +3633,29 @@ const deserializeAws_restJson1ListAppliedSchemaArnsCommandError = async (output,
|
|
|
3767
3633
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3768
3634
|
default:
|
|
3769
3635
|
const parsedBody = parsedOutput.body;
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
$metadata,
|
|
3636
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3637
|
+
output,
|
|
3638
|
+
parsedBody,
|
|
3639
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3640
|
+
errorCode,
|
|
3776
3641
|
});
|
|
3777
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3778
3642
|
}
|
|
3779
3643
|
};
|
|
3780
3644
|
const deserializeAws_restJson1ListAttachedIndicesCommand = async (output, context) => {
|
|
3781
3645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3782
3646
|
return deserializeAws_restJson1ListAttachedIndicesCommandError(output, context);
|
|
3783
3647
|
}
|
|
3784
|
-
const contents = {
|
|
3648
|
+
const contents = map({
|
|
3785
3649
|
$metadata: deserializeMetadata(output),
|
|
3786
|
-
|
|
3787
|
-
NextToken: undefined,
|
|
3788
|
-
};
|
|
3650
|
+
});
|
|
3789
3651
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3790
|
-
if (data.IndexAttachments
|
|
3652
|
+
if (data.IndexAttachments != null) {
|
|
3791
3653
|
contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
|
|
3792
3654
|
}
|
|
3793
|
-
if (data.NextToken
|
|
3655
|
+
if (data.NextToken != null) {
|
|
3794
3656
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3795
3657
|
}
|
|
3796
|
-
return
|
|
3658
|
+
return contents;
|
|
3797
3659
|
};
|
|
3798
3660
|
exports.deserializeAws_restJson1ListAttachedIndicesCommand = deserializeAws_restJson1ListAttachedIndicesCommand;
|
|
3799
3661
|
const deserializeAws_restJson1ListAttachedIndicesCommandError = async (output, context) => {
|
|
@@ -3801,7 +3663,6 @@ const deserializeAws_restJson1ListAttachedIndicesCommandError = async (output, c
|
|
|
3801
3663
|
...output,
|
|
3802
3664
|
body: await parseBody(output.body, context),
|
|
3803
3665
|
};
|
|
3804
|
-
let response;
|
|
3805
3666
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3806
3667
|
switch (errorCode) {
|
|
3807
3668
|
case "AccessDeniedException":
|
|
@@ -3830,33 +3691,29 @@ const deserializeAws_restJson1ListAttachedIndicesCommandError = async (output, c
|
|
|
3830
3691
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3831
3692
|
default:
|
|
3832
3693
|
const parsedBody = parsedOutput.body;
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
$metadata,
|
|
3694
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3695
|
+
output,
|
|
3696
|
+
parsedBody,
|
|
3697
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3698
|
+
errorCode,
|
|
3839
3699
|
});
|
|
3840
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3841
3700
|
}
|
|
3842
3701
|
};
|
|
3843
3702
|
const deserializeAws_restJson1ListDevelopmentSchemaArnsCommand = async (output, context) => {
|
|
3844
3703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3845
3704
|
return deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError(output, context);
|
|
3846
3705
|
}
|
|
3847
|
-
const contents = {
|
|
3706
|
+
const contents = map({
|
|
3848
3707
|
$metadata: deserializeMetadata(output),
|
|
3849
|
-
|
|
3850
|
-
SchemaArns: undefined,
|
|
3851
|
-
};
|
|
3708
|
+
});
|
|
3852
3709
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3853
|
-
if (data.NextToken
|
|
3710
|
+
if (data.NextToken != null) {
|
|
3854
3711
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3855
3712
|
}
|
|
3856
|
-
if (data.SchemaArns
|
|
3713
|
+
if (data.SchemaArns != null) {
|
|
3857
3714
|
contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
|
|
3858
3715
|
}
|
|
3859
|
-
return
|
|
3716
|
+
return contents;
|
|
3860
3717
|
};
|
|
3861
3718
|
exports.deserializeAws_restJson1ListDevelopmentSchemaArnsCommand = deserializeAws_restJson1ListDevelopmentSchemaArnsCommand;
|
|
3862
3719
|
const deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = async (output, context) => {
|
|
@@ -3864,7 +3721,6 @@ const deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = async (out
|
|
|
3864
3721
|
...output,
|
|
3865
3722
|
body: await parseBody(output.body, context),
|
|
3866
3723
|
};
|
|
3867
|
-
let response;
|
|
3868
3724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3869
3725
|
switch (errorCode) {
|
|
3870
3726
|
case "AccessDeniedException":
|
|
@@ -3893,33 +3749,29 @@ const deserializeAws_restJson1ListDevelopmentSchemaArnsCommandError = async (out
|
|
|
3893
3749
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3894
3750
|
default:
|
|
3895
3751
|
const parsedBody = parsedOutput.body;
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
$metadata,
|
|
3752
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3753
|
+
output,
|
|
3754
|
+
parsedBody,
|
|
3755
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3756
|
+
errorCode,
|
|
3902
3757
|
});
|
|
3903
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3904
3758
|
}
|
|
3905
3759
|
};
|
|
3906
3760
|
const deserializeAws_restJson1ListDirectoriesCommand = async (output, context) => {
|
|
3907
3761
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3908
3762
|
return deserializeAws_restJson1ListDirectoriesCommandError(output, context);
|
|
3909
3763
|
}
|
|
3910
|
-
const contents = {
|
|
3764
|
+
const contents = map({
|
|
3911
3765
|
$metadata: deserializeMetadata(output),
|
|
3912
|
-
|
|
3913
|
-
NextToken: undefined,
|
|
3914
|
-
};
|
|
3766
|
+
});
|
|
3915
3767
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3916
|
-
if (data.Directories
|
|
3768
|
+
if (data.Directories != null) {
|
|
3917
3769
|
contents.Directories = deserializeAws_restJson1DirectoryList(data.Directories, context);
|
|
3918
3770
|
}
|
|
3919
|
-
if (data.NextToken
|
|
3771
|
+
if (data.NextToken != null) {
|
|
3920
3772
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3921
3773
|
}
|
|
3922
|
-
return
|
|
3774
|
+
return contents;
|
|
3923
3775
|
};
|
|
3924
3776
|
exports.deserializeAws_restJson1ListDirectoriesCommand = deserializeAws_restJson1ListDirectoriesCommand;
|
|
3925
3777
|
const deserializeAws_restJson1ListDirectoriesCommandError = async (output, context) => {
|
|
@@ -3927,7 +3779,6 @@ const deserializeAws_restJson1ListDirectoriesCommandError = async (output, conte
|
|
|
3927
3779
|
...output,
|
|
3928
3780
|
body: await parseBody(output.body, context),
|
|
3929
3781
|
};
|
|
3930
|
-
let response;
|
|
3931
3782
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3932
3783
|
switch (errorCode) {
|
|
3933
3784
|
case "AccessDeniedException":
|
|
@@ -3953,33 +3804,29 @@ const deserializeAws_restJson1ListDirectoriesCommandError = async (output, conte
|
|
|
3953
3804
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3954
3805
|
default:
|
|
3955
3806
|
const parsedBody = parsedOutput.body;
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
$metadata,
|
|
3807
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3808
|
+
output,
|
|
3809
|
+
parsedBody,
|
|
3810
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3811
|
+
errorCode,
|
|
3962
3812
|
});
|
|
3963
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3964
3813
|
}
|
|
3965
3814
|
};
|
|
3966
3815
|
const deserializeAws_restJson1ListFacetAttributesCommand = async (output, context) => {
|
|
3967
3816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3968
3817
|
return deserializeAws_restJson1ListFacetAttributesCommandError(output, context);
|
|
3969
3818
|
}
|
|
3970
|
-
const contents = {
|
|
3819
|
+
const contents = map({
|
|
3971
3820
|
$metadata: deserializeMetadata(output),
|
|
3972
|
-
|
|
3973
|
-
NextToken: undefined,
|
|
3974
|
-
};
|
|
3821
|
+
});
|
|
3975
3822
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3976
|
-
if (data.Attributes
|
|
3823
|
+
if (data.Attributes != null) {
|
|
3977
3824
|
contents.Attributes = deserializeAws_restJson1FacetAttributeList(data.Attributes, context);
|
|
3978
3825
|
}
|
|
3979
|
-
if (data.NextToken
|
|
3826
|
+
if (data.NextToken != null) {
|
|
3980
3827
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
3981
3828
|
}
|
|
3982
|
-
return
|
|
3829
|
+
return contents;
|
|
3983
3830
|
};
|
|
3984
3831
|
exports.deserializeAws_restJson1ListFacetAttributesCommand = deserializeAws_restJson1ListFacetAttributesCommand;
|
|
3985
3832
|
const deserializeAws_restJson1ListFacetAttributesCommandError = async (output, context) => {
|
|
@@ -3987,7 +3834,6 @@ const deserializeAws_restJson1ListFacetAttributesCommandError = async (output, c
|
|
|
3987
3834
|
...output,
|
|
3988
3835
|
body: await parseBody(output.body, context),
|
|
3989
3836
|
};
|
|
3990
|
-
let response;
|
|
3991
3837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3992
3838
|
switch (errorCode) {
|
|
3993
3839
|
case "AccessDeniedException":
|
|
@@ -4019,33 +3865,29 @@ const deserializeAws_restJson1ListFacetAttributesCommandError = async (output, c
|
|
|
4019
3865
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4020
3866
|
default:
|
|
4021
3867
|
const parsedBody = parsedOutput.body;
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
$metadata,
|
|
3868
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3869
|
+
output,
|
|
3870
|
+
parsedBody,
|
|
3871
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3872
|
+
errorCode,
|
|
4028
3873
|
});
|
|
4029
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4030
3874
|
}
|
|
4031
3875
|
};
|
|
4032
3876
|
const deserializeAws_restJson1ListFacetNamesCommand = async (output, context) => {
|
|
4033
3877
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4034
3878
|
return deserializeAws_restJson1ListFacetNamesCommandError(output, context);
|
|
4035
3879
|
}
|
|
4036
|
-
const contents = {
|
|
3880
|
+
const contents = map({
|
|
4037
3881
|
$metadata: deserializeMetadata(output),
|
|
4038
|
-
|
|
4039
|
-
NextToken: undefined,
|
|
4040
|
-
};
|
|
3882
|
+
});
|
|
4041
3883
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4042
|
-
if (data.FacetNames
|
|
3884
|
+
if (data.FacetNames != null) {
|
|
4043
3885
|
contents.FacetNames = deserializeAws_restJson1FacetNameList(data.FacetNames, context);
|
|
4044
3886
|
}
|
|
4045
|
-
if (data.NextToken
|
|
3887
|
+
if (data.NextToken != null) {
|
|
4046
3888
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4047
3889
|
}
|
|
4048
|
-
return
|
|
3890
|
+
return contents;
|
|
4049
3891
|
};
|
|
4050
3892
|
exports.deserializeAws_restJson1ListFacetNamesCommand = deserializeAws_restJson1ListFacetNamesCommand;
|
|
4051
3893
|
const deserializeAws_restJson1ListFacetNamesCommandError = async (output, context) => {
|
|
@@ -4053,7 +3895,6 @@ const deserializeAws_restJson1ListFacetNamesCommandError = async (output, contex
|
|
|
4053
3895
|
...output,
|
|
4054
3896
|
body: await parseBody(output.body, context),
|
|
4055
3897
|
};
|
|
4056
|
-
let response;
|
|
4057
3898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4058
3899
|
switch (errorCode) {
|
|
4059
3900
|
case "AccessDeniedException":
|
|
@@ -4082,33 +3923,29 @@ const deserializeAws_restJson1ListFacetNamesCommandError = async (output, contex
|
|
|
4082
3923
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4083
3924
|
default:
|
|
4084
3925
|
const parsedBody = parsedOutput.body;
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
$metadata,
|
|
3926
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3927
|
+
output,
|
|
3928
|
+
parsedBody,
|
|
3929
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3930
|
+
errorCode,
|
|
4091
3931
|
});
|
|
4092
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4093
3932
|
}
|
|
4094
3933
|
};
|
|
4095
3934
|
const deserializeAws_restJson1ListIncomingTypedLinksCommand = async (output, context) => {
|
|
4096
3935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4097
3936
|
return deserializeAws_restJson1ListIncomingTypedLinksCommandError(output, context);
|
|
4098
3937
|
}
|
|
4099
|
-
const contents = {
|
|
3938
|
+
const contents = map({
|
|
4100
3939
|
$metadata: deserializeMetadata(output),
|
|
4101
|
-
|
|
4102
|
-
NextToken: undefined,
|
|
4103
|
-
};
|
|
3940
|
+
});
|
|
4104
3941
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4105
|
-
if (data.LinkSpecifiers
|
|
3942
|
+
if (data.LinkSpecifiers != null) {
|
|
4106
3943
|
contents.LinkSpecifiers = deserializeAws_restJson1TypedLinkSpecifierList(data.LinkSpecifiers, context);
|
|
4107
3944
|
}
|
|
4108
|
-
if (data.NextToken
|
|
3945
|
+
if (data.NextToken != null) {
|
|
4109
3946
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4110
3947
|
}
|
|
4111
|
-
return
|
|
3948
|
+
return contents;
|
|
4112
3949
|
};
|
|
4113
3950
|
exports.deserializeAws_restJson1ListIncomingTypedLinksCommand = deserializeAws_restJson1ListIncomingTypedLinksCommand;
|
|
4114
3951
|
const deserializeAws_restJson1ListIncomingTypedLinksCommandError = async (output, context) => {
|
|
@@ -4116,7 +3953,6 @@ const deserializeAws_restJson1ListIncomingTypedLinksCommandError = async (output
|
|
|
4116
3953
|
...output,
|
|
4117
3954
|
body: await parseBody(output.body, context),
|
|
4118
3955
|
};
|
|
4119
|
-
let response;
|
|
4120
3956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4121
3957
|
switch (errorCode) {
|
|
4122
3958
|
case "AccessDeniedException":
|
|
@@ -4151,33 +3987,29 @@ const deserializeAws_restJson1ListIncomingTypedLinksCommandError = async (output
|
|
|
4151
3987
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4152
3988
|
default:
|
|
4153
3989
|
const parsedBody = parsedOutput.body;
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
$metadata,
|
|
3990
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3991
|
+
output,
|
|
3992
|
+
parsedBody,
|
|
3993
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
3994
|
+
errorCode,
|
|
4160
3995
|
});
|
|
4161
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4162
3996
|
}
|
|
4163
3997
|
};
|
|
4164
3998
|
const deserializeAws_restJson1ListIndexCommand = async (output, context) => {
|
|
4165
3999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4166
4000
|
return deserializeAws_restJson1ListIndexCommandError(output, context);
|
|
4167
4001
|
}
|
|
4168
|
-
const contents = {
|
|
4002
|
+
const contents = map({
|
|
4169
4003
|
$metadata: deserializeMetadata(output),
|
|
4170
|
-
|
|
4171
|
-
NextToken: undefined,
|
|
4172
|
-
};
|
|
4004
|
+
});
|
|
4173
4005
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4174
|
-
if (data.IndexAttachments
|
|
4006
|
+
if (data.IndexAttachments != null) {
|
|
4175
4007
|
contents.IndexAttachments = deserializeAws_restJson1IndexAttachmentList(data.IndexAttachments, context);
|
|
4176
4008
|
}
|
|
4177
|
-
if (data.NextToken
|
|
4009
|
+
if (data.NextToken != null) {
|
|
4178
4010
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4179
4011
|
}
|
|
4180
|
-
return
|
|
4012
|
+
return contents;
|
|
4181
4013
|
};
|
|
4182
4014
|
exports.deserializeAws_restJson1ListIndexCommand = deserializeAws_restJson1ListIndexCommand;
|
|
4183
4015
|
const deserializeAws_restJson1ListIndexCommandError = async (output, context) => {
|
|
@@ -4185,7 +4017,6 @@ const deserializeAws_restJson1ListIndexCommandError = async (output, context) =>
|
|
|
4185
4017
|
...output,
|
|
4186
4018
|
body: await parseBody(output.body, context),
|
|
4187
4019
|
};
|
|
4188
|
-
let response;
|
|
4189
4020
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4190
4021
|
switch (errorCode) {
|
|
4191
4022
|
case "AccessDeniedException":
|
|
@@ -4223,33 +4054,29 @@ const deserializeAws_restJson1ListIndexCommandError = async (output, context) =>
|
|
|
4223
4054
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4224
4055
|
default:
|
|
4225
4056
|
const parsedBody = parsedOutput.body;
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
$metadata,
|
|
4057
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4058
|
+
output,
|
|
4059
|
+
parsedBody,
|
|
4060
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4061
|
+
errorCode,
|
|
4232
4062
|
});
|
|
4233
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4234
4063
|
}
|
|
4235
4064
|
};
|
|
4236
4065
|
const deserializeAws_restJson1ListManagedSchemaArnsCommand = async (output, context) => {
|
|
4237
4066
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4238
4067
|
return deserializeAws_restJson1ListManagedSchemaArnsCommandError(output, context);
|
|
4239
4068
|
}
|
|
4240
|
-
const contents = {
|
|
4069
|
+
const contents = map({
|
|
4241
4070
|
$metadata: deserializeMetadata(output),
|
|
4242
|
-
|
|
4243
|
-
SchemaArns: undefined,
|
|
4244
|
-
};
|
|
4071
|
+
});
|
|
4245
4072
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4246
|
-
if (data.NextToken
|
|
4073
|
+
if (data.NextToken != null) {
|
|
4247
4074
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4248
4075
|
}
|
|
4249
|
-
if (data.SchemaArns
|
|
4076
|
+
if (data.SchemaArns != null) {
|
|
4250
4077
|
contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
|
|
4251
4078
|
}
|
|
4252
|
-
return
|
|
4079
|
+
return contents;
|
|
4253
4080
|
};
|
|
4254
4081
|
exports.deserializeAws_restJson1ListManagedSchemaArnsCommand = deserializeAws_restJson1ListManagedSchemaArnsCommand;
|
|
4255
4082
|
const deserializeAws_restJson1ListManagedSchemaArnsCommandError = async (output, context) => {
|
|
@@ -4257,7 +4084,6 @@ const deserializeAws_restJson1ListManagedSchemaArnsCommandError = async (output,
|
|
|
4257
4084
|
...output,
|
|
4258
4085
|
body: await parseBody(output.body, context),
|
|
4259
4086
|
};
|
|
4260
|
-
let response;
|
|
4261
4087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4262
4088
|
switch (errorCode) {
|
|
4263
4089
|
case "AccessDeniedException":
|
|
@@ -4280,33 +4106,29 @@ const deserializeAws_restJson1ListManagedSchemaArnsCommandError = async (output,
|
|
|
4280
4106
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4281
4107
|
default:
|
|
4282
4108
|
const parsedBody = parsedOutput.body;
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
$metadata,
|
|
4109
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4110
|
+
output,
|
|
4111
|
+
parsedBody,
|
|
4112
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4113
|
+
errorCode,
|
|
4289
4114
|
});
|
|
4290
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4291
4115
|
}
|
|
4292
4116
|
};
|
|
4293
4117
|
const deserializeAws_restJson1ListObjectAttributesCommand = async (output, context) => {
|
|
4294
4118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4295
4119
|
return deserializeAws_restJson1ListObjectAttributesCommandError(output, context);
|
|
4296
4120
|
}
|
|
4297
|
-
const contents = {
|
|
4121
|
+
const contents = map({
|
|
4298
4122
|
$metadata: deserializeMetadata(output),
|
|
4299
|
-
|
|
4300
|
-
NextToken: undefined,
|
|
4301
|
-
};
|
|
4123
|
+
});
|
|
4302
4124
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4303
|
-
if (data.Attributes
|
|
4125
|
+
if (data.Attributes != null) {
|
|
4304
4126
|
contents.Attributes = deserializeAws_restJson1AttributeKeyAndValueList(data.Attributes, context);
|
|
4305
4127
|
}
|
|
4306
|
-
if (data.NextToken
|
|
4128
|
+
if (data.NextToken != null) {
|
|
4307
4129
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4308
4130
|
}
|
|
4309
|
-
return
|
|
4131
|
+
return contents;
|
|
4310
4132
|
};
|
|
4311
4133
|
exports.deserializeAws_restJson1ListObjectAttributesCommand = deserializeAws_restJson1ListObjectAttributesCommand;
|
|
4312
4134
|
const deserializeAws_restJson1ListObjectAttributesCommandError = async (output, context) => {
|
|
@@ -4314,7 +4136,6 @@ const deserializeAws_restJson1ListObjectAttributesCommandError = async (output,
|
|
|
4314
4136
|
...output,
|
|
4315
4137
|
body: await parseBody(output.body, context),
|
|
4316
4138
|
};
|
|
4317
|
-
let response;
|
|
4318
4139
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4319
4140
|
switch (errorCode) {
|
|
4320
4141
|
case "AccessDeniedException":
|
|
@@ -4349,33 +4170,29 @@ const deserializeAws_restJson1ListObjectAttributesCommandError = async (output,
|
|
|
4349
4170
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4350
4171
|
default:
|
|
4351
4172
|
const parsedBody = parsedOutput.body;
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
$metadata,
|
|
4173
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4174
|
+
output,
|
|
4175
|
+
parsedBody,
|
|
4176
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4177
|
+
errorCode,
|
|
4358
4178
|
});
|
|
4359
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4360
4179
|
}
|
|
4361
4180
|
};
|
|
4362
4181
|
const deserializeAws_restJson1ListObjectChildrenCommand = async (output, context) => {
|
|
4363
4182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4364
4183
|
return deserializeAws_restJson1ListObjectChildrenCommandError(output, context);
|
|
4365
4184
|
}
|
|
4366
|
-
const contents = {
|
|
4185
|
+
const contents = map({
|
|
4367
4186
|
$metadata: deserializeMetadata(output),
|
|
4368
|
-
|
|
4369
|
-
NextToken: undefined,
|
|
4370
|
-
};
|
|
4187
|
+
});
|
|
4371
4188
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4372
|
-
if (data.Children
|
|
4189
|
+
if (data.Children != null) {
|
|
4373
4190
|
contents.Children = deserializeAws_restJson1LinkNameToObjectIdentifierMap(data.Children, context);
|
|
4374
4191
|
}
|
|
4375
|
-
if (data.NextToken
|
|
4192
|
+
if (data.NextToken != null) {
|
|
4376
4193
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4377
4194
|
}
|
|
4378
|
-
return
|
|
4195
|
+
return contents;
|
|
4379
4196
|
};
|
|
4380
4197
|
exports.deserializeAws_restJson1ListObjectChildrenCommand = deserializeAws_restJson1ListObjectChildrenCommand;
|
|
4381
4198
|
const deserializeAws_restJson1ListObjectChildrenCommandError = async (output, context) => {
|
|
@@ -4383,7 +4200,6 @@ const deserializeAws_restJson1ListObjectChildrenCommandError = async (output, co
|
|
|
4383
4200
|
...output,
|
|
4384
4201
|
body: await parseBody(output.body, context),
|
|
4385
4202
|
};
|
|
4386
|
-
let response;
|
|
4387
4203
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4388
4204
|
switch (errorCode) {
|
|
4389
4205
|
case "AccessDeniedException":
|
|
@@ -4418,33 +4234,29 @@ const deserializeAws_restJson1ListObjectChildrenCommandError = async (output, co
|
|
|
4418
4234
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4419
4235
|
default:
|
|
4420
4236
|
const parsedBody = parsedOutput.body;
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
$metadata,
|
|
4237
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4238
|
+
output,
|
|
4239
|
+
parsedBody,
|
|
4240
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4241
|
+
errorCode,
|
|
4427
4242
|
});
|
|
4428
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4429
4243
|
}
|
|
4430
4244
|
};
|
|
4431
4245
|
const deserializeAws_restJson1ListObjectParentPathsCommand = async (output, context) => {
|
|
4432
4246
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4433
4247
|
return deserializeAws_restJson1ListObjectParentPathsCommandError(output, context);
|
|
4434
4248
|
}
|
|
4435
|
-
const contents = {
|
|
4249
|
+
const contents = map({
|
|
4436
4250
|
$metadata: deserializeMetadata(output),
|
|
4437
|
-
|
|
4438
|
-
PathToObjectIdentifiersList: undefined,
|
|
4439
|
-
};
|
|
4251
|
+
});
|
|
4440
4252
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4441
|
-
if (data.NextToken
|
|
4253
|
+
if (data.NextToken != null) {
|
|
4442
4254
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4443
4255
|
}
|
|
4444
|
-
if (data.PathToObjectIdentifiersList
|
|
4256
|
+
if (data.PathToObjectIdentifiersList != null) {
|
|
4445
4257
|
contents.PathToObjectIdentifiersList = deserializeAws_restJson1PathToObjectIdentifiersList(data.PathToObjectIdentifiersList, context);
|
|
4446
4258
|
}
|
|
4447
|
-
return
|
|
4259
|
+
return contents;
|
|
4448
4260
|
};
|
|
4449
4261
|
exports.deserializeAws_restJson1ListObjectParentPathsCommand = deserializeAws_restJson1ListObjectParentPathsCommand;
|
|
4450
4262
|
const deserializeAws_restJson1ListObjectParentPathsCommandError = async (output, context) => {
|
|
@@ -4452,7 +4264,6 @@ const deserializeAws_restJson1ListObjectParentPathsCommandError = async (output,
|
|
|
4452
4264
|
...output,
|
|
4453
4265
|
body: await parseBody(output.body, context),
|
|
4454
4266
|
};
|
|
4455
|
-
let response;
|
|
4456
4267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4457
4268
|
switch (errorCode) {
|
|
4458
4269
|
case "AccessDeniedException":
|
|
@@ -4484,37 +4295,32 @@ const deserializeAws_restJson1ListObjectParentPathsCommandError = async (output,
|
|
|
4484
4295
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4485
4296
|
default:
|
|
4486
4297
|
const parsedBody = parsedOutput.body;
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
$metadata,
|
|
4298
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4299
|
+
output,
|
|
4300
|
+
parsedBody,
|
|
4301
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4302
|
+
errorCode,
|
|
4493
4303
|
});
|
|
4494
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4495
4304
|
}
|
|
4496
4305
|
};
|
|
4497
4306
|
const deserializeAws_restJson1ListObjectParentsCommand = async (output, context) => {
|
|
4498
4307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4499
4308
|
return deserializeAws_restJson1ListObjectParentsCommandError(output, context);
|
|
4500
4309
|
}
|
|
4501
|
-
const contents = {
|
|
4310
|
+
const contents = map({
|
|
4502
4311
|
$metadata: deserializeMetadata(output),
|
|
4503
|
-
|
|
4504
|
-
ParentLinks: undefined,
|
|
4505
|
-
Parents: undefined,
|
|
4506
|
-
};
|
|
4312
|
+
});
|
|
4507
4313
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4508
|
-
if (data.NextToken
|
|
4314
|
+
if (data.NextToken != null) {
|
|
4509
4315
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4510
4316
|
}
|
|
4511
|
-
if (data.ParentLinks
|
|
4317
|
+
if (data.ParentLinks != null) {
|
|
4512
4318
|
contents.ParentLinks = deserializeAws_restJson1ObjectIdentifierAndLinkNameList(data.ParentLinks, context);
|
|
4513
4319
|
}
|
|
4514
|
-
if (data.Parents
|
|
4320
|
+
if (data.Parents != null) {
|
|
4515
4321
|
contents.Parents = deserializeAws_restJson1ObjectIdentifierToLinkNameMap(data.Parents, context);
|
|
4516
4322
|
}
|
|
4517
|
-
return
|
|
4323
|
+
return contents;
|
|
4518
4324
|
};
|
|
4519
4325
|
exports.deserializeAws_restJson1ListObjectParentsCommand = deserializeAws_restJson1ListObjectParentsCommand;
|
|
4520
4326
|
const deserializeAws_restJson1ListObjectParentsCommandError = async (output, context) => {
|
|
@@ -4522,7 +4328,6 @@ const deserializeAws_restJson1ListObjectParentsCommandError = async (output, con
|
|
|
4522
4328
|
...output,
|
|
4523
4329
|
body: await parseBody(output.body, context),
|
|
4524
4330
|
};
|
|
4525
|
-
let response;
|
|
4526
4331
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4527
4332
|
switch (errorCode) {
|
|
4528
4333
|
case "AccessDeniedException":
|
|
@@ -4557,33 +4362,29 @@ const deserializeAws_restJson1ListObjectParentsCommandError = async (output, con
|
|
|
4557
4362
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4558
4363
|
default:
|
|
4559
4364
|
const parsedBody = parsedOutput.body;
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
$metadata,
|
|
4365
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4366
|
+
output,
|
|
4367
|
+
parsedBody,
|
|
4368
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4369
|
+
errorCode,
|
|
4566
4370
|
});
|
|
4567
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4568
4371
|
}
|
|
4569
4372
|
};
|
|
4570
4373
|
const deserializeAws_restJson1ListObjectPoliciesCommand = async (output, context) => {
|
|
4571
4374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4572
4375
|
return deserializeAws_restJson1ListObjectPoliciesCommandError(output, context);
|
|
4573
4376
|
}
|
|
4574
|
-
const contents = {
|
|
4377
|
+
const contents = map({
|
|
4575
4378
|
$metadata: deserializeMetadata(output),
|
|
4576
|
-
|
|
4577
|
-
NextToken: undefined,
|
|
4578
|
-
};
|
|
4379
|
+
});
|
|
4579
4380
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4580
|
-
if (data.AttachedPolicyIds
|
|
4381
|
+
if (data.AttachedPolicyIds != null) {
|
|
4581
4382
|
contents.AttachedPolicyIds = deserializeAws_restJson1ObjectIdentifierList(data.AttachedPolicyIds, context);
|
|
4582
4383
|
}
|
|
4583
|
-
if (data.NextToken
|
|
4384
|
+
if (data.NextToken != null) {
|
|
4584
4385
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4585
4386
|
}
|
|
4586
|
-
return
|
|
4387
|
+
return contents;
|
|
4587
4388
|
};
|
|
4588
4389
|
exports.deserializeAws_restJson1ListObjectPoliciesCommand = deserializeAws_restJson1ListObjectPoliciesCommand;
|
|
4589
4390
|
const deserializeAws_restJson1ListObjectPoliciesCommandError = async (output, context) => {
|
|
@@ -4591,7 +4392,6 @@ const deserializeAws_restJson1ListObjectPoliciesCommandError = async (output, co
|
|
|
4591
4392
|
...output,
|
|
4592
4393
|
body: await parseBody(output.body, context),
|
|
4593
4394
|
};
|
|
4594
|
-
let response;
|
|
4595
4395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4596
4396
|
switch (errorCode) {
|
|
4597
4397
|
case "AccessDeniedException":
|
|
@@ -4623,33 +4423,29 @@ const deserializeAws_restJson1ListObjectPoliciesCommandError = async (output, co
|
|
|
4623
4423
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4624
4424
|
default:
|
|
4625
4425
|
const parsedBody = parsedOutput.body;
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
$metadata,
|
|
4426
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4427
|
+
output,
|
|
4428
|
+
parsedBody,
|
|
4429
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4430
|
+
errorCode,
|
|
4632
4431
|
});
|
|
4633
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4634
4432
|
}
|
|
4635
4433
|
};
|
|
4636
4434
|
const deserializeAws_restJson1ListOutgoingTypedLinksCommand = async (output, context) => {
|
|
4637
4435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4638
4436
|
return deserializeAws_restJson1ListOutgoingTypedLinksCommandError(output, context);
|
|
4639
4437
|
}
|
|
4640
|
-
const contents = {
|
|
4438
|
+
const contents = map({
|
|
4641
4439
|
$metadata: deserializeMetadata(output),
|
|
4642
|
-
|
|
4643
|
-
TypedLinkSpecifiers: undefined,
|
|
4644
|
-
};
|
|
4440
|
+
});
|
|
4645
4441
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4646
|
-
if (data.NextToken
|
|
4442
|
+
if (data.NextToken != null) {
|
|
4647
4443
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4648
4444
|
}
|
|
4649
|
-
if (data.TypedLinkSpecifiers
|
|
4445
|
+
if (data.TypedLinkSpecifiers != null) {
|
|
4650
4446
|
contents.TypedLinkSpecifiers = deserializeAws_restJson1TypedLinkSpecifierList(data.TypedLinkSpecifiers, context);
|
|
4651
4447
|
}
|
|
4652
|
-
return
|
|
4448
|
+
return contents;
|
|
4653
4449
|
};
|
|
4654
4450
|
exports.deserializeAws_restJson1ListOutgoingTypedLinksCommand = deserializeAws_restJson1ListOutgoingTypedLinksCommand;
|
|
4655
4451
|
const deserializeAws_restJson1ListOutgoingTypedLinksCommandError = async (output, context) => {
|
|
@@ -4657,7 +4453,6 @@ const deserializeAws_restJson1ListOutgoingTypedLinksCommandError = async (output
|
|
|
4657
4453
|
...output,
|
|
4658
4454
|
body: await parseBody(output.body, context),
|
|
4659
4455
|
};
|
|
4660
|
-
let response;
|
|
4661
4456
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4662
4457
|
switch (errorCode) {
|
|
4663
4458
|
case "AccessDeniedException":
|
|
@@ -4692,33 +4487,29 @@ const deserializeAws_restJson1ListOutgoingTypedLinksCommandError = async (output
|
|
|
4692
4487
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4693
4488
|
default:
|
|
4694
4489
|
const parsedBody = parsedOutput.body;
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
$metadata,
|
|
4490
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4491
|
+
output,
|
|
4492
|
+
parsedBody,
|
|
4493
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4494
|
+
errorCode,
|
|
4701
4495
|
});
|
|
4702
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4703
4496
|
}
|
|
4704
4497
|
};
|
|
4705
4498
|
const deserializeAws_restJson1ListPolicyAttachmentsCommand = async (output, context) => {
|
|
4706
4499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4707
4500
|
return deserializeAws_restJson1ListPolicyAttachmentsCommandError(output, context);
|
|
4708
4501
|
}
|
|
4709
|
-
const contents = {
|
|
4502
|
+
const contents = map({
|
|
4710
4503
|
$metadata: deserializeMetadata(output),
|
|
4711
|
-
|
|
4712
|
-
ObjectIdentifiers: undefined,
|
|
4713
|
-
};
|
|
4504
|
+
});
|
|
4714
4505
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4715
|
-
if (data.NextToken
|
|
4506
|
+
if (data.NextToken != null) {
|
|
4716
4507
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4717
4508
|
}
|
|
4718
|
-
if (data.ObjectIdentifiers
|
|
4509
|
+
if (data.ObjectIdentifiers != null) {
|
|
4719
4510
|
contents.ObjectIdentifiers = deserializeAws_restJson1ObjectIdentifierList(data.ObjectIdentifiers, context);
|
|
4720
4511
|
}
|
|
4721
|
-
return
|
|
4512
|
+
return contents;
|
|
4722
4513
|
};
|
|
4723
4514
|
exports.deserializeAws_restJson1ListPolicyAttachmentsCommand = deserializeAws_restJson1ListPolicyAttachmentsCommand;
|
|
4724
4515
|
const deserializeAws_restJson1ListPolicyAttachmentsCommandError = async (output, context) => {
|
|
@@ -4726,7 +4517,6 @@ const deserializeAws_restJson1ListPolicyAttachmentsCommandError = async (output,
|
|
|
4726
4517
|
...output,
|
|
4727
4518
|
body: await parseBody(output.body, context),
|
|
4728
4519
|
};
|
|
4729
|
-
let response;
|
|
4730
4520
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4731
4521
|
switch (errorCode) {
|
|
4732
4522
|
case "AccessDeniedException":
|
|
@@ -4761,33 +4551,29 @@ const deserializeAws_restJson1ListPolicyAttachmentsCommandError = async (output,
|
|
|
4761
4551
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4762
4552
|
default:
|
|
4763
4553
|
const parsedBody = parsedOutput.body;
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
$metadata,
|
|
4554
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4555
|
+
output,
|
|
4556
|
+
parsedBody,
|
|
4557
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4558
|
+
errorCode,
|
|
4770
4559
|
});
|
|
4771
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4772
4560
|
}
|
|
4773
4561
|
};
|
|
4774
4562
|
const deserializeAws_restJson1ListPublishedSchemaArnsCommand = async (output, context) => {
|
|
4775
4563
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4776
4564
|
return deserializeAws_restJson1ListPublishedSchemaArnsCommandError(output, context);
|
|
4777
4565
|
}
|
|
4778
|
-
const contents = {
|
|
4566
|
+
const contents = map({
|
|
4779
4567
|
$metadata: deserializeMetadata(output),
|
|
4780
|
-
|
|
4781
|
-
SchemaArns: undefined,
|
|
4782
|
-
};
|
|
4568
|
+
});
|
|
4783
4569
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4784
|
-
if (data.NextToken
|
|
4570
|
+
if (data.NextToken != null) {
|
|
4785
4571
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4786
4572
|
}
|
|
4787
|
-
if (data.SchemaArns
|
|
4573
|
+
if (data.SchemaArns != null) {
|
|
4788
4574
|
contents.SchemaArns = deserializeAws_restJson1Arns(data.SchemaArns, context);
|
|
4789
4575
|
}
|
|
4790
|
-
return
|
|
4576
|
+
return contents;
|
|
4791
4577
|
};
|
|
4792
4578
|
exports.deserializeAws_restJson1ListPublishedSchemaArnsCommand = deserializeAws_restJson1ListPublishedSchemaArnsCommand;
|
|
4793
4579
|
const deserializeAws_restJson1ListPublishedSchemaArnsCommandError = async (output, context) => {
|
|
@@ -4795,7 +4581,6 @@ const deserializeAws_restJson1ListPublishedSchemaArnsCommandError = async (outpu
|
|
|
4795
4581
|
...output,
|
|
4796
4582
|
body: await parseBody(output.body, context),
|
|
4797
4583
|
};
|
|
4798
|
-
let response;
|
|
4799
4584
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4800
4585
|
switch (errorCode) {
|
|
4801
4586
|
case "AccessDeniedException":
|
|
@@ -4824,33 +4609,29 @@ const deserializeAws_restJson1ListPublishedSchemaArnsCommandError = async (outpu
|
|
|
4824
4609
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4825
4610
|
default:
|
|
4826
4611
|
const parsedBody = parsedOutput.body;
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
$metadata,
|
|
4612
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4613
|
+
output,
|
|
4614
|
+
parsedBody,
|
|
4615
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4616
|
+
errorCode,
|
|
4833
4617
|
});
|
|
4834
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4835
4618
|
}
|
|
4836
4619
|
};
|
|
4837
4620
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
4838
4621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4839
4622
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
4840
4623
|
}
|
|
4841
|
-
const contents = {
|
|
4624
|
+
const contents = map({
|
|
4842
4625
|
$metadata: deserializeMetadata(output),
|
|
4843
|
-
|
|
4844
|
-
Tags: undefined,
|
|
4845
|
-
};
|
|
4626
|
+
});
|
|
4846
4627
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4847
|
-
if (data.NextToken
|
|
4628
|
+
if (data.NextToken != null) {
|
|
4848
4629
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4849
4630
|
}
|
|
4850
|
-
if (data.Tags
|
|
4631
|
+
if (data.Tags != null) {
|
|
4851
4632
|
contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
|
|
4852
4633
|
}
|
|
4853
|
-
return
|
|
4634
|
+
return contents;
|
|
4854
4635
|
};
|
|
4855
4636
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
4856
4637
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -4858,7 +4639,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4858
4639
|
...output,
|
|
4859
4640
|
body: await parseBody(output.body, context),
|
|
4860
4641
|
};
|
|
4861
|
-
let response;
|
|
4862
4642
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4863
4643
|
switch (errorCode) {
|
|
4864
4644
|
case "AccessDeniedException":
|
|
@@ -4887,33 +4667,29 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4887
4667
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4888
4668
|
default:
|
|
4889
4669
|
const parsedBody = parsedOutput.body;
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
$metadata,
|
|
4670
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4671
|
+
output,
|
|
4672
|
+
parsedBody,
|
|
4673
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4674
|
+
errorCode,
|
|
4896
4675
|
});
|
|
4897
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4898
4676
|
}
|
|
4899
4677
|
};
|
|
4900
4678
|
const deserializeAws_restJson1ListTypedLinkFacetAttributesCommand = async (output, context) => {
|
|
4901
4679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4902
4680
|
return deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError(output, context);
|
|
4903
4681
|
}
|
|
4904
|
-
const contents = {
|
|
4682
|
+
const contents = map({
|
|
4905
4683
|
$metadata: deserializeMetadata(output),
|
|
4906
|
-
|
|
4907
|
-
NextToken: undefined,
|
|
4908
|
-
};
|
|
4684
|
+
});
|
|
4909
4685
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4910
|
-
if (data.Attributes
|
|
4686
|
+
if (data.Attributes != null) {
|
|
4911
4687
|
contents.Attributes = deserializeAws_restJson1TypedLinkAttributeDefinitionList(data.Attributes, context);
|
|
4912
4688
|
}
|
|
4913
|
-
if (data.NextToken
|
|
4689
|
+
if (data.NextToken != null) {
|
|
4914
4690
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4915
4691
|
}
|
|
4916
|
-
return
|
|
4692
|
+
return contents;
|
|
4917
4693
|
};
|
|
4918
4694
|
exports.deserializeAws_restJson1ListTypedLinkFacetAttributesCommand = deserializeAws_restJson1ListTypedLinkFacetAttributesCommand;
|
|
4919
4695
|
const deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = async (output, context) => {
|
|
@@ -4921,7 +4697,6 @@ const deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = async (
|
|
|
4921
4697
|
...output,
|
|
4922
4698
|
body: await parseBody(output.body, context),
|
|
4923
4699
|
};
|
|
4924
|
-
let response;
|
|
4925
4700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4926
4701
|
switch (errorCode) {
|
|
4927
4702
|
case "AccessDeniedException":
|
|
@@ -4953,33 +4728,29 @@ const deserializeAws_restJson1ListTypedLinkFacetAttributesCommandError = async (
|
|
|
4953
4728
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4954
4729
|
default:
|
|
4955
4730
|
const parsedBody = parsedOutput.body;
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
$metadata,
|
|
4731
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4732
|
+
output,
|
|
4733
|
+
parsedBody,
|
|
4734
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4735
|
+
errorCode,
|
|
4962
4736
|
});
|
|
4963
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4964
4737
|
}
|
|
4965
4738
|
};
|
|
4966
4739
|
const deserializeAws_restJson1ListTypedLinkFacetNamesCommand = async (output, context) => {
|
|
4967
4740
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4968
4741
|
return deserializeAws_restJson1ListTypedLinkFacetNamesCommandError(output, context);
|
|
4969
4742
|
}
|
|
4970
|
-
const contents = {
|
|
4743
|
+
const contents = map({
|
|
4971
4744
|
$metadata: deserializeMetadata(output),
|
|
4972
|
-
|
|
4973
|
-
NextToken: undefined,
|
|
4974
|
-
};
|
|
4745
|
+
});
|
|
4975
4746
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4976
|
-
if (data.FacetNames
|
|
4747
|
+
if (data.FacetNames != null) {
|
|
4977
4748
|
contents.FacetNames = deserializeAws_restJson1TypedLinkNameList(data.FacetNames, context);
|
|
4978
4749
|
}
|
|
4979
|
-
if (data.NextToken
|
|
4750
|
+
if (data.NextToken != null) {
|
|
4980
4751
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
4981
4752
|
}
|
|
4982
|
-
return
|
|
4753
|
+
return contents;
|
|
4983
4754
|
};
|
|
4984
4755
|
exports.deserializeAws_restJson1ListTypedLinkFacetNamesCommand = deserializeAws_restJson1ListTypedLinkFacetNamesCommand;
|
|
4985
4756
|
const deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = async (output, context) => {
|
|
@@ -4987,7 +4758,6 @@ const deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = async (outpu
|
|
|
4987
4758
|
...output,
|
|
4988
4759
|
body: await parseBody(output.body, context),
|
|
4989
4760
|
};
|
|
4990
|
-
let response;
|
|
4991
4761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4992
4762
|
switch (errorCode) {
|
|
4993
4763
|
case "AccessDeniedException":
|
|
@@ -5016,33 +4786,29 @@ const deserializeAws_restJson1ListTypedLinkFacetNamesCommandError = async (outpu
|
|
|
5016
4786
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5017
4787
|
default:
|
|
5018
4788
|
const parsedBody = parsedOutput.body;
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
$metadata,
|
|
4789
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4790
|
+
output,
|
|
4791
|
+
parsedBody,
|
|
4792
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4793
|
+
errorCode,
|
|
5025
4794
|
});
|
|
5026
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5027
4795
|
}
|
|
5028
4796
|
};
|
|
5029
4797
|
const deserializeAws_restJson1LookupPolicyCommand = async (output, context) => {
|
|
5030
4798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5031
4799
|
return deserializeAws_restJson1LookupPolicyCommandError(output, context);
|
|
5032
4800
|
}
|
|
5033
|
-
const contents = {
|
|
4801
|
+
const contents = map({
|
|
5034
4802
|
$metadata: deserializeMetadata(output),
|
|
5035
|
-
|
|
5036
|
-
PolicyToPathList: undefined,
|
|
5037
|
-
};
|
|
4803
|
+
});
|
|
5038
4804
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5039
|
-
if (data.NextToken
|
|
4805
|
+
if (data.NextToken != null) {
|
|
5040
4806
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
5041
4807
|
}
|
|
5042
|
-
if (data.PolicyToPathList
|
|
4808
|
+
if (data.PolicyToPathList != null) {
|
|
5043
4809
|
contents.PolicyToPathList = deserializeAws_restJson1PolicyToPathList(data.PolicyToPathList, context);
|
|
5044
4810
|
}
|
|
5045
|
-
return
|
|
4811
|
+
return contents;
|
|
5046
4812
|
};
|
|
5047
4813
|
exports.deserializeAws_restJson1LookupPolicyCommand = deserializeAws_restJson1LookupPolicyCommand;
|
|
5048
4814
|
const deserializeAws_restJson1LookupPolicyCommandError = async (output, context) => {
|
|
@@ -5050,7 +4816,6 @@ const deserializeAws_restJson1LookupPolicyCommandError = async (output, context)
|
|
|
5050
4816
|
...output,
|
|
5051
4817
|
body: await parseBody(output.body, context),
|
|
5052
4818
|
};
|
|
5053
|
-
let response;
|
|
5054
4819
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5055
4820
|
switch (errorCode) {
|
|
5056
4821
|
case "AccessDeniedException":
|
|
@@ -5082,29 +4847,26 @@ const deserializeAws_restJson1LookupPolicyCommandError = async (output, context)
|
|
|
5082
4847
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5083
4848
|
default:
|
|
5084
4849
|
const parsedBody = parsedOutput.body;
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
$metadata,
|
|
4850
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4851
|
+
output,
|
|
4852
|
+
parsedBody,
|
|
4853
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4854
|
+
errorCode,
|
|
5091
4855
|
});
|
|
5092
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5093
4856
|
}
|
|
5094
4857
|
};
|
|
5095
4858
|
const deserializeAws_restJson1PublishSchemaCommand = async (output, context) => {
|
|
5096
4859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5097
4860
|
return deserializeAws_restJson1PublishSchemaCommandError(output, context);
|
|
5098
4861
|
}
|
|
5099
|
-
const contents = {
|
|
4862
|
+
const contents = map({
|
|
5100
4863
|
$metadata: deserializeMetadata(output),
|
|
5101
|
-
|
|
5102
|
-
};
|
|
4864
|
+
});
|
|
5103
4865
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5104
|
-
if (data.PublishedSchemaArn
|
|
4866
|
+
if (data.PublishedSchemaArn != null) {
|
|
5105
4867
|
contents.PublishedSchemaArn = (0, smithy_client_1.expectString)(data.PublishedSchemaArn);
|
|
5106
4868
|
}
|
|
5107
|
-
return
|
|
4869
|
+
return contents;
|
|
5108
4870
|
};
|
|
5109
4871
|
exports.deserializeAws_restJson1PublishSchemaCommand = deserializeAws_restJson1PublishSchemaCommand;
|
|
5110
4872
|
const deserializeAws_restJson1PublishSchemaCommandError = async (output, context) => {
|
|
@@ -5112,7 +4874,6 @@ const deserializeAws_restJson1PublishSchemaCommandError = async (output, context
|
|
|
5112
4874
|
...output,
|
|
5113
4875
|
body: await parseBody(output.body, context),
|
|
5114
4876
|
};
|
|
5115
|
-
let response;
|
|
5116
4877
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5117
4878
|
switch (errorCode) {
|
|
5118
4879
|
case "AccessDeniedException":
|
|
@@ -5141,29 +4902,26 @@ const deserializeAws_restJson1PublishSchemaCommandError = async (output, context
|
|
|
5141
4902
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5142
4903
|
default:
|
|
5143
4904
|
const parsedBody = parsedOutput.body;
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
$metadata,
|
|
4905
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4906
|
+
output,
|
|
4907
|
+
parsedBody,
|
|
4908
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4909
|
+
errorCode,
|
|
5150
4910
|
});
|
|
5151
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5152
4911
|
}
|
|
5153
4912
|
};
|
|
5154
4913
|
const deserializeAws_restJson1PutSchemaFromJsonCommand = async (output, context) => {
|
|
5155
4914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5156
4915
|
return deserializeAws_restJson1PutSchemaFromJsonCommandError(output, context);
|
|
5157
4916
|
}
|
|
5158
|
-
const contents = {
|
|
4917
|
+
const contents = map({
|
|
5159
4918
|
$metadata: deserializeMetadata(output),
|
|
5160
|
-
|
|
5161
|
-
};
|
|
4919
|
+
});
|
|
5162
4920
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5163
|
-
if (data.Arn
|
|
4921
|
+
if (data.Arn != null) {
|
|
5164
4922
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
5165
4923
|
}
|
|
5166
|
-
return
|
|
4924
|
+
return contents;
|
|
5167
4925
|
};
|
|
5168
4926
|
exports.deserializeAws_restJson1PutSchemaFromJsonCommand = deserializeAws_restJson1PutSchemaFromJsonCommand;
|
|
5169
4927
|
const deserializeAws_restJson1PutSchemaFromJsonCommandError = async (output, context) => {
|
|
@@ -5171,7 +4929,6 @@ const deserializeAws_restJson1PutSchemaFromJsonCommandError = async (output, con
|
|
|
5171
4929
|
...output,
|
|
5172
4930
|
body: await parseBody(output.body, context),
|
|
5173
4931
|
};
|
|
5174
|
-
let response;
|
|
5175
4932
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5176
4933
|
switch (errorCode) {
|
|
5177
4934
|
case "AccessDeniedException":
|
|
@@ -5200,25 +4957,23 @@ const deserializeAws_restJson1PutSchemaFromJsonCommandError = async (output, con
|
|
|
5200
4957
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5201
4958
|
default:
|
|
5202
4959
|
const parsedBody = parsedOutput.body;
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
$metadata,
|
|
4960
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4961
|
+
output,
|
|
4962
|
+
parsedBody,
|
|
4963
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
4964
|
+
errorCode,
|
|
5209
4965
|
});
|
|
5210
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5211
4966
|
}
|
|
5212
4967
|
};
|
|
5213
4968
|
const deserializeAws_restJson1RemoveFacetFromObjectCommand = async (output, context) => {
|
|
5214
4969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5215
4970
|
return deserializeAws_restJson1RemoveFacetFromObjectCommandError(output, context);
|
|
5216
4971
|
}
|
|
5217
|
-
const contents = {
|
|
4972
|
+
const contents = map({
|
|
5218
4973
|
$metadata: deserializeMetadata(output),
|
|
5219
|
-
};
|
|
4974
|
+
});
|
|
5220
4975
|
await collectBody(output.body, context);
|
|
5221
|
-
return
|
|
4976
|
+
return contents;
|
|
5222
4977
|
};
|
|
5223
4978
|
exports.deserializeAws_restJson1RemoveFacetFromObjectCommand = deserializeAws_restJson1RemoveFacetFromObjectCommand;
|
|
5224
4979
|
const deserializeAws_restJson1RemoveFacetFromObjectCommandError = async (output, context) => {
|
|
@@ -5226,7 +4981,6 @@ const deserializeAws_restJson1RemoveFacetFromObjectCommandError = async (output,
|
|
|
5226
4981
|
...output,
|
|
5227
4982
|
body: await parseBody(output.body, context),
|
|
5228
4983
|
};
|
|
5229
|
-
let response;
|
|
5230
4984
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5231
4985
|
switch (errorCode) {
|
|
5232
4986
|
case "AccessDeniedException":
|
|
@@ -5258,25 +5012,23 @@ const deserializeAws_restJson1RemoveFacetFromObjectCommandError = async (output,
|
|
|
5258
5012
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5259
5013
|
default:
|
|
5260
5014
|
const parsedBody = parsedOutput.body;
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
$metadata,
|
|
5015
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5016
|
+
output,
|
|
5017
|
+
parsedBody,
|
|
5018
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
5019
|
+
errorCode,
|
|
5267
5020
|
});
|
|
5268
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5269
5021
|
}
|
|
5270
5022
|
};
|
|
5271
5023
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
5272
5024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5273
5025
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
5274
5026
|
}
|
|
5275
|
-
const contents = {
|
|
5027
|
+
const contents = map({
|
|
5276
5028
|
$metadata: deserializeMetadata(output),
|
|
5277
|
-
};
|
|
5029
|
+
});
|
|
5278
5030
|
await collectBody(output.body, context);
|
|
5279
|
-
return
|
|
5031
|
+
return contents;
|
|
5280
5032
|
};
|
|
5281
5033
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
5282
5034
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -5284,7 +5036,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5284
5036
|
...output,
|
|
5285
5037
|
body: await parseBody(output.body, context),
|
|
5286
5038
|
};
|
|
5287
|
-
let response;
|
|
5288
5039
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5289
5040
|
switch (errorCode) {
|
|
5290
5041
|
case "AccessDeniedException":
|
|
@@ -5313,25 +5064,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5313
5064
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5314
5065
|
default:
|
|
5315
5066
|
const parsedBody = parsedOutput.body;
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
$metadata,
|
|
5067
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5068
|
+
output,
|
|
5069
|
+
parsedBody,
|
|
5070
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
5071
|
+
errorCode,
|
|
5322
5072
|
});
|
|
5323
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5324
5073
|
}
|
|
5325
5074
|
};
|
|
5326
5075
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
5327
5076
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5328
5077
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
5329
5078
|
}
|
|
5330
|
-
const contents = {
|
|
5079
|
+
const contents = map({
|
|
5331
5080
|
$metadata: deserializeMetadata(output),
|
|
5332
|
-
};
|
|
5081
|
+
});
|
|
5333
5082
|
await collectBody(output.body, context);
|
|
5334
|
-
return
|
|
5083
|
+
return contents;
|
|
5335
5084
|
};
|
|
5336
5085
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
5337
5086
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -5339,7 +5088,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5339
5088
|
...output,
|
|
5340
5089
|
body: await parseBody(output.body, context),
|
|
5341
5090
|
};
|
|
5342
|
-
let response;
|
|
5343
5091
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5344
5092
|
switch (errorCode) {
|
|
5345
5093
|
case "AccessDeniedException":
|
|
@@ -5368,25 +5116,23 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
5368
5116
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5369
5117
|
default:
|
|
5370
5118
|
const parsedBody = parsedOutput.body;
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
$metadata,
|
|
5119
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5120
|
+
output,
|
|
5121
|
+
parsedBody,
|
|
5122
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
5123
|
+
errorCode,
|
|
5377
5124
|
});
|
|
5378
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5379
5125
|
}
|
|
5380
5126
|
};
|
|
5381
5127
|
const deserializeAws_restJson1UpdateFacetCommand = async (output, context) => {
|
|
5382
5128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5383
5129
|
return deserializeAws_restJson1UpdateFacetCommandError(output, context);
|
|
5384
5130
|
}
|
|
5385
|
-
const contents = {
|
|
5131
|
+
const contents = map({
|
|
5386
5132
|
$metadata: deserializeMetadata(output),
|
|
5387
|
-
};
|
|
5133
|
+
});
|
|
5388
5134
|
await collectBody(output.body, context);
|
|
5389
|
-
return
|
|
5135
|
+
return contents;
|
|
5390
5136
|
};
|
|
5391
5137
|
exports.deserializeAws_restJson1UpdateFacetCommand = deserializeAws_restJson1UpdateFacetCommand;
|
|
5392
5138
|
const deserializeAws_restJson1UpdateFacetCommandError = async (output, context) => {
|
|
@@ -5394,7 +5140,6 @@ const deserializeAws_restJson1UpdateFacetCommandError = async (output, context)
|
|
|
5394
5140
|
...output,
|
|
5395
5141
|
body: await parseBody(output.body, context),
|
|
5396
5142
|
};
|
|
5397
|
-
let response;
|
|
5398
5143
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5399
5144
|
switch (errorCode) {
|
|
5400
5145
|
case "AccessDeniedException":
|
|
@@ -5432,25 +5177,23 @@ const deserializeAws_restJson1UpdateFacetCommandError = async (output, context)
|
|
|
5432
5177
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5433
5178
|
default:
|
|
5434
5179
|
const parsedBody = parsedOutput.body;
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
$metadata,
|
|
5180
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5181
|
+
output,
|
|
5182
|
+
parsedBody,
|
|
5183
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
5184
|
+
errorCode,
|
|
5441
5185
|
});
|
|
5442
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5443
5186
|
}
|
|
5444
5187
|
};
|
|
5445
5188
|
const deserializeAws_restJson1UpdateLinkAttributesCommand = async (output, context) => {
|
|
5446
5189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5447
5190
|
return deserializeAws_restJson1UpdateLinkAttributesCommandError(output, context);
|
|
5448
5191
|
}
|
|
5449
|
-
const contents = {
|
|
5192
|
+
const contents = map({
|
|
5450
5193
|
$metadata: deserializeMetadata(output),
|
|
5451
|
-
};
|
|
5194
|
+
});
|
|
5452
5195
|
await collectBody(output.body, context);
|
|
5453
|
-
return
|
|
5196
|
+
return contents;
|
|
5454
5197
|
};
|
|
5455
5198
|
exports.deserializeAws_restJson1UpdateLinkAttributesCommand = deserializeAws_restJson1UpdateLinkAttributesCommand;
|
|
5456
5199
|
const deserializeAws_restJson1UpdateLinkAttributesCommandError = async (output, context) => {
|
|
@@ -5458,7 +5201,6 @@ const deserializeAws_restJson1UpdateLinkAttributesCommandError = async (output,
|
|
|
5458
5201
|
...output,
|
|
5459
5202
|
body: await parseBody(output.body, context),
|
|
5460
5203
|
};
|
|
5461
|
-
let response;
|
|
5462
5204
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5463
5205
|
switch (errorCode) {
|
|
5464
5206
|
case "AccessDeniedException":
|
|
@@ -5490,29 +5232,26 @@ const deserializeAws_restJson1UpdateLinkAttributesCommandError = async (output,
|
|
|
5490
5232
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5491
5233
|
default:
|
|
5492
5234
|
const parsedBody = parsedOutput.body;
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
$metadata,
|
|
5235
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5236
|
+
output,
|
|
5237
|
+
parsedBody,
|
|
5238
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
5239
|
+
errorCode,
|
|
5499
5240
|
});
|
|
5500
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5501
5241
|
}
|
|
5502
5242
|
};
|
|
5503
5243
|
const deserializeAws_restJson1UpdateObjectAttributesCommand = async (output, context) => {
|
|
5504
5244
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5505
5245
|
return deserializeAws_restJson1UpdateObjectAttributesCommandError(output, context);
|
|
5506
5246
|
}
|
|
5507
|
-
const contents = {
|
|
5247
|
+
const contents = map({
|
|
5508
5248
|
$metadata: deserializeMetadata(output),
|
|
5509
|
-
|
|
5510
|
-
};
|
|
5249
|
+
});
|
|
5511
5250
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5512
|
-
if (data.ObjectIdentifier
|
|
5251
|
+
if (data.ObjectIdentifier != null) {
|
|
5513
5252
|
contents.ObjectIdentifier = (0, smithy_client_1.expectString)(data.ObjectIdentifier);
|
|
5514
5253
|
}
|
|
5515
|
-
return
|
|
5254
|
+
return contents;
|
|
5516
5255
|
};
|
|
5517
5256
|
exports.deserializeAws_restJson1UpdateObjectAttributesCommand = deserializeAws_restJson1UpdateObjectAttributesCommand;
|
|
5518
5257
|
const deserializeAws_restJson1UpdateObjectAttributesCommandError = async (output, context) => {
|
|
@@ -5520,7 +5259,6 @@ const deserializeAws_restJson1UpdateObjectAttributesCommandError = async (output
|
|
|
5520
5259
|
...output,
|
|
5521
5260
|
body: await parseBody(output.body, context),
|
|
5522
5261
|
};
|
|
5523
|
-
let response;
|
|
5524
5262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5525
5263
|
switch (errorCode) {
|
|
5526
5264
|
case "AccessDeniedException":
|
|
@@ -5555,29 +5293,26 @@ const deserializeAws_restJson1UpdateObjectAttributesCommandError = async (output
|
|
|
5555
5293
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5556
5294
|
default:
|
|
5557
5295
|
const parsedBody = parsedOutput.body;
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
$metadata,
|
|
5296
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5297
|
+
output,
|
|
5298
|
+
parsedBody,
|
|
5299
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
5300
|
+
errorCode,
|
|
5564
5301
|
});
|
|
5565
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5566
5302
|
}
|
|
5567
5303
|
};
|
|
5568
5304
|
const deserializeAws_restJson1UpdateSchemaCommand = async (output, context) => {
|
|
5569
5305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5570
5306
|
return deserializeAws_restJson1UpdateSchemaCommandError(output, context);
|
|
5571
5307
|
}
|
|
5572
|
-
const contents = {
|
|
5308
|
+
const contents = map({
|
|
5573
5309
|
$metadata: deserializeMetadata(output),
|
|
5574
|
-
|
|
5575
|
-
};
|
|
5310
|
+
});
|
|
5576
5311
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5577
|
-
if (data.SchemaArn
|
|
5312
|
+
if (data.SchemaArn != null) {
|
|
5578
5313
|
contents.SchemaArn = (0, smithy_client_1.expectString)(data.SchemaArn);
|
|
5579
5314
|
}
|
|
5580
|
-
return
|
|
5315
|
+
return contents;
|
|
5581
5316
|
};
|
|
5582
5317
|
exports.deserializeAws_restJson1UpdateSchemaCommand = deserializeAws_restJson1UpdateSchemaCommand;
|
|
5583
5318
|
const deserializeAws_restJson1UpdateSchemaCommandError = async (output, context) => {
|
|
@@ -5585,7 +5320,6 @@ const deserializeAws_restJson1UpdateSchemaCommandError = async (output, context)
|
|
|
5585
5320
|
...output,
|
|
5586
5321
|
body: await parseBody(output.body, context),
|
|
5587
5322
|
};
|
|
5588
|
-
let response;
|
|
5589
5323
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5590
5324
|
switch (errorCode) {
|
|
5591
5325
|
case "AccessDeniedException":
|
|
@@ -5611,25 +5345,23 @@ const deserializeAws_restJson1UpdateSchemaCommandError = async (output, context)
|
|
|
5611
5345
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5612
5346
|
default:
|
|
5613
5347
|
const parsedBody = parsedOutput.body;
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
$metadata,
|
|
5348
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5349
|
+
output,
|
|
5350
|
+
parsedBody,
|
|
5351
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
5352
|
+
errorCode,
|
|
5620
5353
|
});
|
|
5621
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5622
5354
|
}
|
|
5623
5355
|
};
|
|
5624
5356
|
const deserializeAws_restJson1UpdateTypedLinkFacetCommand = async (output, context) => {
|
|
5625
5357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5626
5358
|
return deserializeAws_restJson1UpdateTypedLinkFacetCommandError(output, context);
|
|
5627
5359
|
}
|
|
5628
|
-
const contents = {
|
|
5360
|
+
const contents = map({
|
|
5629
5361
|
$metadata: deserializeMetadata(output),
|
|
5630
|
-
};
|
|
5362
|
+
});
|
|
5631
5363
|
await collectBody(output.body, context);
|
|
5632
|
-
return
|
|
5364
|
+
return contents;
|
|
5633
5365
|
};
|
|
5634
5366
|
exports.deserializeAws_restJson1UpdateTypedLinkFacetCommand = deserializeAws_restJson1UpdateTypedLinkFacetCommand;
|
|
5635
5367
|
const deserializeAws_restJson1UpdateTypedLinkFacetCommandError = async (output, context) => {
|
|
@@ -5637,7 +5369,6 @@ const deserializeAws_restJson1UpdateTypedLinkFacetCommandError = async (output,
|
|
|
5637
5369
|
...output,
|
|
5638
5370
|
body: await parseBody(output.body, context),
|
|
5639
5371
|
};
|
|
5640
|
-
let response;
|
|
5641
5372
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5642
5373
|
switch (errorCode) {
|
|
5643
5374
|
case "AccessDeniedException":
|
|
@@ -5675,33 +5406,29 @@ const deserializeAws_restJson1UpdateTypedLinkFacetCommandError = async (output,
|
|
|
5675
5406
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5676
5407
|
default:
|
|
5677
5408
|
const parsedBody = parsedOutput.body;
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
$metadata,
|
|
5409
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5410
|
+
output,
|
|
5411
|
+
parsedBody,
|
|
5412
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
5413
|
+
errorCode,
|
|
5684
5414
|
});
|
|
5685
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5686
5415
|
}
|
|
5687
5416
|
};
|
|
5688
5417
|
const deserializeAws_restJson1UpgradeAppliedSchemaCommand = async (output, context) => {
|
|
5689
5418
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5690
5419
|
return deserializeAws_restJson1UpgradeAppliedSchemaCommandError(output, context);
|
|
5691
5420
|
}
|
|
5692
|
-
const contents = {
|
|
5421
|
+
const contents = map({
|
|
5693
5422
|
$metadata: deserializeMetadata(output),
|
|
5694
|
-
|
|
5695
|
-
UpgradedSchemaArn: undefined,
|
|
5696
|
-
};
|
|
5423
|
+
});
|
|
5697
5424
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5698
|
-
if (data.DirectoryArn
|
|
5425
|
+
if (data.DirectoryArn != null) {
|
|
5699
5426
|
contents.DirectoryArn = (0, smithy_client_1.expectString)(data.DirectoryArn);
|
|
5700
5427
|
}
|
|
5701
|
-
if (data.UpgradedSchemaArn
|
|
5428
|
+
if (data.UpgradedSchemaArn != null) {
|
|
5702
5429
|
contents.UpgradedSchemaArn = (0, smithy_client_1.expectString)(data.UpgradedSchemaArn);
|
|
5703
5430
|
}
|
|
5704
|
-
return
|
|
5431
|
+
return contents;
|
|
5705
5432
|
};
|
|
5706
5433
|
exports.deserializeAws_restJson1UpgradeAppliedSchemaCommand = deserializeAws_restJson1UpgradeAppliedSchemaCommand;
|
|
5707
5434
|
const deserializeAws_restJson1UpgradeAppliedSchemaCommandError = async (output, context) => {
|
|
@@ -5709,7 +5436,6 @@ const deserializeAws_restJson1UpgradeAppliedSchemaCommandError = async (output,
|
|
|
5709
5436
|
...output,
|
|
5710
5437
|
body: await parseBody(output.body, context),
|
|
5711
5438
|
};
|
|
5712
|
-
let response;
|
|
5713
5439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5714
5440
|
switch (errorCode) {
|
|
5715
5441
|
case "AccessDeniedException":
|
|
@@ -5741,29 +5467,26 @@ const deserializeAws_restJson1UpgradeAppliedSchemaCommandError = async (output,
|
|
|
5741
5467
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5742
5468
|
default:
|
|
5743
5469
|
const parsedBody = parsedOutput.body;
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
$metadata,
|
|
5470
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5471
|
+
output,
|
|
5472
|
+
parsedBody,
|
|
5473
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
5474
|
+
errorCode,
|
|
5750
5475
|
});
|
|
5751
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5752
5476
|
}
|
|
5753
5477
|
};
|
|
5754
5478
|
const deserializeAws_restJson1UpgradePublishedSchemaCommand = async (output, context) => {
|
|
5755
5479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5756
5480
|
return deserializeAws_restJson1UpgradePublishedSchemaCommandError(output, context);
|
|
5757
5481
|
}
|
|
5758
|
-
const contents = {
|
|
5482
|
+
const contents = map({
|
|
5759
5483
|
$metadata: deserializeMetadata(output),
|
|
5760
|
-
|
|
5761
|
-
};
|
|
5484
|
+
});
|
|
5762
5485
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
5763
|
-
if (data.UpgradedSchemaArn
|
|
5486
|
+
if (data.UpgradedSchemaArn != null) {
|
|
5764
5487
|
contents.UpgradedSchemaArn = (0, smithy_client_1.expectString)(data.UpgradedSchemaArn);
|
|
5765
5488
|
}
|
|
5766
|
-
return
|
|
5489
|
+
return contents;
|
|
5767
5490
|
};
|
|
5768
5491
|
exports.deserializeAws_restJson1UpgradePublishedSchemaCommand = deserializeAws_restJson1UpgradePublishedSchemaCommand;
|
|
5769
5492
|
const deserializeAws_restJson1UpgradePublishedSchemaCommandError = async (output, context) => {
|
|
@@ -5771,7 +5494,6 @@ const deserializeAws_restJson1UpgradePublishedSchemaCommandError = async (output
|
|
|
5771
5494
|
...output,
|
|
5772
5495
|
body: await parseBody(output.body, context),
|
|
5773
5496
|
};
|
|
5774
|
-
let response;
|
|
5775
5497
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5776
5498
|
switch (errorCode) {
|
|
5777
5499
|
case "AccessDeniedException":
|
|
@@ -5803,20 +5525,19 @@ const deserializeAws_restJson1UpgradePublishedSchemaCommandError = async (output
|
|
|
5803
5525
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5804
5526
|
default:
|
|
5805
5527
|
const parsedBody = parsedOutput.body;
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
$metadata,
|
|
5528
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
5529
|
+
output,
|
|
5530
|
+
parsedBody,
|
|
5531
|
+
exceptionCtor: CloudDirectoryServiceException_1.CloudDirectoryServiceException,
|
|
5532
|
+
errorCode,
|
|
5812
5533
|
});
|
|
5813
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5814
5534
|
}
|
|
5815
5535
|
};
|
|
5536
|
+
const map = smithy_client_1.map;
|
|
5816
5537
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
5817
|
-
const contents = {};
|
|
5538
|
+
const contents = map({});
|
|
5818
5539
|
const data = parsedOutput.body;
|
|
5819
|
-
if (data.Message
|
|
5540
|
+
if (data.Message != null) {
|
|
5820
5541
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5821
5542
|
}
|
|
5822
5543
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -5826,15 +5547,15 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
5826
5547
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5827
5548
|
};
|
|
5828
5549
|
const deserializeAws_restJson1BatchWriteExceptionResponse = async (parsedOutput, context) => {
|
|
5829
|
-
const contents = {};
|
|
5550
|
+
const contents = map({});
|
|
5830
5551
|
const data = parsedOutput.body;
|
|
5831
|
-
if (data.Index
|
|
5552
|
+
if (data.Index != null) {
|
|
5832
5553
|
contents.Index = (0, smithy_client_1.expectInt32)(data.Index);
|
|
5833
5554
|
}
|
|
5834
|
-
if (data.Message
|
|
5555
|
+
if (data.Message != null) {
|
|
5835
5556
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5836
5557
|
}
|
|
5837
|
-
if (data.Type
|
|
5558
|
+
if (data.Type != null) {
|
|
5838
5559
|
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
5839
5560
|
}
|
|
5840
5561
|
const exception = new models_0_1.BatchWriteException({
|
|
@@ -5844,9 +5565,9 @@ const deserializeAws_restJson1BatchWriteExceptionResponse = async (parsedOutput,
|
|
|
5844
5565
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5845
5566
|
};
|
|
5846
5567
|
const deserializeAws_restJson1CannotListParentOfRootExceptionResponse = async (parsedOutput, context) => {
|
|
5847
|
-
const contents = {};
|
|
5568
|
+
const contents = map({});
|
|
5848
5569
|
const data = parsedOutput.body;
|
|
5849
|
-
if (data.Message
|
|
5570
|
+
if (data.Message != null) {
|
|
5850
5571
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5851
5572
|
}
|
|
5852
5573
|
const exception = new models_0_1.CannotListParentOfRootException({
|
|
@@ -5856,9 +5577,9 @@ const deserializeAws_restJson1CannotListParentOfRootExceptionResponse = async (p
|
|
|
5856
5577
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5857
5578
|
};
|
|
5858
5579
|
const deserializeAws_restJson1DirectoryAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
5859
|
-
const contents = {};
|
|
5580
|
+
const contents = map({});
|
|
5860
5581
|
const data = parsedOutput.body;
|
|
5861
|
-
if (data.Message
|
|
5582
|
+
if (data.Message != null) {
|
|
5862
5583
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5863
5584
|
}
|
|
5864
5585
|
const exception = new models_0_1.DirectoryAlreadyExistsException({
|
|
@@ -5868,9 +5589,9 @@ const deserializeAws_restJson1DirectoryAlreadyExistsExceptionResponse = async (p
|
|
|
5868
5589
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5869
5590
|
};
|
|
5870
5591
|
const deserializeAws_restJson1DirectoryDeletedExceptionResponse = async (parsedOutput, context) => {
|
|
5871
|
-
const contents = {};
|
|
5592
|
+
const contents = map({});
|
|
5872
5593
|
const data = parsedOutput.body;
|
|
5873
|
-
if (data.Message
|
|
5594
|
+
if (data.Message != null) {
|
|
5874
5595
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5875
5596
|
}
|
|
5876
5597
|
const exception = new models_0_1.DirectoryDeletedException({
|
|
@@ -5880,9 +5601,9 @@ const deserializeAws_restJson1DirectoryDeletedExceptionResponse = async (parsedO
|
|
|
5880
5601
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5881
5602
|
};
|
|
5882
5603
|
const deserializeAws_restJson1DirectoryNotDisabledExceptionResponse = async (parsedOutput, context) => {
|
|
5883
|
-
const contents = {};
|
|
5604
|
+
const contents = map({});
|
|
5884
5605
|
const data = parsedOutput.body;
|
|
5885
|
-
if (data.Message
|
|
5606
|
+
if (data.Message != null) {
|
|
5886
5607
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5887
5608
|
}
|
|
5888
5609
|
const exception = new models_0_1.DirectoryNotDisabledException({
|
|
@@ -5892,9 +5613,9 @@ const deserializeAws_restJson1DirectoryNotDisabledExceptionResponse = async (par
|
|
|
5892
5613
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5893
5614
|
};
|
|
5894
5615
|
const deserializeAws_restJson1DirectoryNotEnabledExceptionResponse = async (parsedOutput, context) => {
|
|
5895
|
-
const contents = {};
|
|
5616
|
+
const contents = map({});
|
|
5896
5617
|
const data = parsedOutput.body;
|
|
5897
|
-
if (data.Message
|
|
5618
|
+
if (data.Message != null) {
|
|
5898
5619
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5899
5620
|
}
|
|
5900
5621
|
const exception = new models_0_1.DirectoryNotEnabledException({
|
|
@@ -5904,9 +5625,9 @@ const deserializeAws_restJson1DirectoryNotEnabledExceptionResponse = async (pars
|
|
|
5904
5625
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5905
5626
|
};
|
|
5906
5627
|
const deserializeAws_restJson1FacetAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
5907
|
-
const contents = {};
|
|
5628
|
+
const contents = map({});
|
|
5908
5629
|
const data = parsedOutput.body;
|
|
5909
|
-
if (data.Message
|
|
5630
|
+
if (data.Message != null) {
|
|
5910
5631
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5911
5632
|
}
|
|
5912
5633
|
const exception = new models_0_1.FacetAlreadyExistsException({
|
|
@@ -5916,9 +5637,9 @@ const deserializeAws_restJson1FacetAlreadyExistsExceptionResponse = async (parse
|
|
|
5916
5637
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5917
5638
|
};
|
|
5918
5639
|
const deserializeAws_restJson1FacetInUseExceptionResponse = async (parsedOutput, context) => {
|
|
5919
|
-
const contents = {};
|
|
5640
|
+
const contents = map({});
|
|
5920
5641
|
const data = parsedOutput.body;
|
|
5921
|
-
if (data.Message
|
|
5642
|
+
if (data.Message != null) {
|
|
5922
5643
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5923
5644
|
}
|
|
5924
5645
|
const exception = new models_0_1.FacetInUseException({
|
|
@@ -5928,9 +5649,9 @@ const deserializeAws_restJson1FacetInUseExceptionResponse = async (parsedOutput,
|
|
|
5928
5649
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5929
5650
|
};
|
|
5930
5651
|
const deserializeAws_restJson1FacetNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
5931
|
-
const contents = {};
|
|
5652
|
+
const contents = map({});
|
|
5932
5653
|
const data = parsedOutput.body;
|
|
5933
|
-
if (data.Message
|
|
5654
|
+
if (data.Message != null) {
|
|
5934
5655
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5935
5656
|
}
|
|
5936
5657
|
const exception = new models_0_1.FacetNotFoundException({
|
|
@@ -5940,9 +5661,9 @@ const deserializeAws_restJson1FacetNotFoundExceptionResponse = async (parsedOutp
|
|
|
5940
5661
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5941
5662
|
};
|
|
5942
5663
|
const deserializeAws_restJson1FacetValidationExceptionResponse = async (parsedOutput, context) => {
|
|
5943
|
-
const contents = {};
|
|
5664
|
+
const contents = map({});
|
|
5944
5665
|
const data = parsedOutput.body;
|
|
5945
|
-
if (data.Message
|
|
5666
|
+
if (data.Message != null) {
|
|
5946
5667
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5947
5668
|
}
|
|
5948
5669
|
const exception = new models_0_1.FacetValidationException({
|
|
@@ -5952,9 +5673,9 @@ const deserializeAws_restJson1FacetValidationExceptionResponse = async (parsedOu
|
|
|
5952
5673
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5953
5674
|
};
|
|
5954
5675
|
const deserializeAws_restJson1IncompatibleSchemaExceptionResponse = async (parsedOutput, context) => {
|
|
5955
|
-
const contents = {};
|
|
5676
|
+
const contents = map({});
|
|
5956
5677
|
const data = parsedOutput.body;
|
|
5957
|
-
if (data.Message
|
|
5678
|
+
if (data.Message != null) {
|
|
5958
5679
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5959
5680
|
}
|
|
5960
5681
|
const exception = new models_0_1.IncompatibleSchemaException({
|
|
@@ -5964,9 +5685,9 @@ const deserializeAws_restJson1IncompatibleSchemaExceptionResponse = async (parse
|
|
|
5964
5685
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5965
5686
|
};
|
|
5966
5687
|
const deserializeAws_restJson1IndexedAttributeMissingExceptionResponse = async (parsedOutput, context) => {
|
|
5967
|
-
const contents = {};
|
|
5688
|
+
const contents = map({});
|
|
5968
5689
|
const data = parsedOutput.body;
|
|
5969
|
-
if (data.Message
|
|
5690
|
+
if (data.Message != null) {
|
|
5970
5691
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5971
5692
|
}
|
|
5972
5693
|
const exception = new models_0_1.IndexedAttributeMissingException({
|
|
@@ -5976,9 +5697,9 @@ const deserializeAws_restJson1IndexedAttributeMissingExceptionResponse = async (
|
|
|
5976
5697
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5977
5698
|
};
|
|
5978
5699
|
const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
|
|
5979
|
-
const contents = {};
|
|
5700
|
+
const contents = map({});
|
|
5980
5701
|
const data = parsedOutput.body;
|
|
5981
|
-
if (data.Message
|
|
5702
|
+
if (data.Message != null) {
|
|
5982
5703
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5983
5704
|
}
|
|
5984
5705
|
const exception = new models_0_1.InternalServiceException({
|
|
@@ -5988,9 +5709,9 @@ const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOu
|
|
|
5988
5709
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
5989
5710
|
};
|
|
5990
5711
|
const deserializeAws_restJson1InvalidArnExceptionResponse = async (parsedOutput, context) => {
|
|
5991
|
-
const contents = {};
|
|
5712
|
+
const contents = map({});
|
|
5992
5713
|
const data = parsedOutput.body;
|
|
5993
|
-
if (data.Message
|
|
5714
|
+
if (data.Message != null) {
|
|
5994
5715
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
5995
5716
|
}
|
|
5996
5717
|
const exception = new models_0_1.InvalidArnException({
|
|
@@ -6000,9 +5721,9 @@ const deserializeAws_restJson1InvalidArnExceptionResponse = async (parsedOutput,
|
|
|
6000
5721
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6001
5722
|
};
|
|
6002
5723
|
const deserializeAws_restJson1InvalidAttachmentExceptionResponse = async (parsedOutput, context) => {
|
|
6003
|
-
const contents = {};
|
|
5724
|
+
const contents = map({});
|
|
6004
5725
|
const data = parsedOutput.body;
|
|
6005
|
-
if (data.Message
|
|
5726
|
+
if (data.Message != null) {
|
|
6006
5727
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6007
5728
|
}
|
|
6008
5729
|
const exception = new models_0_1.InvalidAttachmentException({
|
|
@@ -6012,9 +5733,9 @@ const deserializeAws_restJson1InvalidAttachmentExceptionResponse = async (parsed
|
|
|
6012
5733
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6013
5734
|
};
|
|
6014
5735
|
const deserializeAws_restJson1InvalidFacetUpdateExceptionResponse = async (parsedOutput, context) => {
|
|
6015
|
-
const contents = {};
|
|
5736
|
+
const contents = map({});
|
|
6016
5737
|
const data = parsedOutput.body;
|
|
6017
|
-
if (data.Message
|
|
5738
|
+
if (data.Message != null) {
|
|
6018
5739
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6019
5740
|
}
|
|
6020
5741
|
const exception = new models_0_1.InvalidFacetUpdateException({
|
|
@@ -6024,9 +5745,9 @@ const deserializeAws_restJson1InvalidFacetUpdateExceptionResponse = async (parse
|
|
|
6024
5745
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6025
5746
|
};
|
|
6026
5747
|
const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
6027
|
-
const contents = {};
|
|
5748
|
+
const contents = map({});
|
|
6028
5749
|
const data = parsedOutput.body;
|
|
6029
|
-
if (data.Message
|
|
5750
|
+
if (data.Message != null) {
|
|
6030
5751
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6031
5752
|
}
|
|
6032
5753
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
@@ -6036,9 +5757,9 @@ const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedO
|
|
|
6036
5757
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6037
5758
|
};
|
|
6038
5759
|
const deserializeAws_restJson1InvalidRuleExceptionResponse = async (parsedOutput, context) => {
|
|
6039
|
-
const contents = {};
|
|
5760
|
+
const contents = map({});
|
|
6040
5761
|
const data = parsedOutput.body;
|
|
6041
|
-
if (data.Message
|
|
5762
|
+
if (data.Message != null) {
|
|
6042
5763
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6043
5764
|
}
|
|
6044
5765
|
const exception = new models_0_1.InvalidRuleException({
|
|
@@ -6048,9 +5769,9 @@ const deserializeAws_restJson1InvalidRuleExceptionResponse = async (parsedOutput
|
|
|
6048
5769
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6049
5770
|
};
|
|
6050
5771
|
const deserializeAws_restJson1InvalidSchemaDocExceptionResponse = async (parsedOutput, context) => {
|
|
6051
|
-
const contents = {};
|
|
5772
|
+
const contents = map({});
|
|
6052
5773
|
const data = parsedOutput.body;
|
|
6053
|
-
if (data.Message
|
|
5774
|
+
if (data.Message != null) {
|
|
6054
5775
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6055
5776
|
}
|
|
6056
5777
|
const exception = new models_0_1.InvalidSchemaDocException({
|
|
@@ -6060,9 +5781,9 @@ const deserializeAws_restJson1InvalidSchemaDocExceptionResponse = async (parsedO
|
|
|
6060
5781
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6061
5782
|
};
|
|
6062
5783
|
const deserializeAws_restJson1InvalidTaggingRequestExceptionResponse = async (parsedOutput, context) => {
|
|
6063
|
-
const contents = {};
|
|
5784
|
+
const contents = map({});
|
|
6064
5785
|
const data = parsedOutput.body;
|
|
6065
|
-
if (data.Message
|
|
5786
|
+
if (data.Message != null) {
|
|
6066
5787
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6067
5788
|
}
|
|
6068
5789
|
const exception = new models_0_1.InvalidTaggingRequestException({
|
|
@@ -6072,9 +5793,9 @@ const deserializeAws_restJson1InvalidTaggingRequestExceptionResponse = async (pa
|
|
|
6072
5793
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6073
5794
|
};
|
|
6074
5795
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
6075
|
-
const contents = {};
|
|
5796
|
+
const contents = map({});
|
|
6076
5797
|
const data = parsedOutput.body;
|
|
6077
|
-
if (data.Message
|
|
5798
|
+
if (data.Message != null) {
|
|
6078
5799
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6079
5800
|
}
|
|
6080
5801
|
const exception = new models_0_1.LimitExceededException({
|
|
@@ -6084,9 +5805,9 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
6084
5805
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6085
5806
|
};
|
|
6086
5807
|
const deserializeAws_restJson1LinkNameAlreadyInUseExceptionResponse = async (parsedOutput, context) => {
|
|
6087
|
-
const contents = {};
|
|
5808
|
+
const contents = map({});
|
|
6088
5809
|
const data = parsedOutput.body;
|
|
6089
|
-
if (data.Message
|
|
5810
|
+
if (data.Message != null) {
|
|
6090
5811
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6091
5812
|
}
|
|
6092
5813
|
const exception = new models_0_1.LinkNameAlreadyInUseException({
|
|
@@ -6096,9 +5817,9 @@ const deserializeAws_restJson1LinkNameAlreadyInUseExceptionResponse = async (par
|
|
|
6096
5817
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6097
5818
|
};
|
|
6098
5819
|
const deserializeAws_restJson1NotIndexExceptionResponse = async (parsedOutput, context) => {
|
|
6099
|
-
const contents = {};
|
|
5820
|
+
const contents = map({});
|
|
6100
5821
|
const data = parsedOutput.body;
|
|
6101
|
-
if (data.Message
|
|
5822
|
+
if (data.Message != null) {
|
|
6102
5823
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6103
5824
|
}
|
|
6104
5825
|
const exception = new models_0_1.NotIndexException({
|
|
@@ -6108,9 +5829,9 @@ const deserializeAws_restJson1NotIndexExceptionResponse = async (parsedOutput, c
|
|
|
6108
5829
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6109
5830
|
};
|
|
6110
5831
|
const deserializeAws_restJson1NotNodeExceptionResponse = async (parsedOutput, context) => {
|
|
6111
|
-
const contents = {};
|
|
5832
|
+
const contents = map({});
|
|
6112
5833
|
const data = parsedOutput.body;
|
|
6113
|
-
if (data.Message
|
|
5834
|
+
if (data.Message != null) {
|
|
6114
5835
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6115
5836
|
}
|
|
6116
5837
|
const exception = new models_0_1.NotNodeException({
|
|
@@ -6120,9 +5841,9 @@ const deserializeAws_restJson1NotNodeExceptionResponse = async (parsedOutput, co
|
|
|
6120
5841
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6121
5842
|
};
|
|
6122
5843
|
const deserializeAws_restJson1NotPolicyExceptionResponse = async (parsedOutput, context) => {
|
|
6123
|
-
const contents = {};
|
|
5844
|
+
const contents = map({});
|
|
6124
5845
|
const data = parsedOutput.body;
|
|
6125
|
-
if (data.Message
|
|
5846
|
+
if (data.Message != null) {
|
|
6126
5847
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6127
5848
|
}
|
|
6128
5849
|
const exception = new models_0_1.NotPolicyException({
|
|
@@ -6132,9 +5853,9 @@ const deserializeAws_restJson1NotPolicyExceptionResponse = async (parsedOutput,
|
|
|
6132
5853
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6133
5854
|
};
|
|
6134
5855
|
const deserializeAws_restJson1ObjectAlreadyDetachedExceptionResponse = async (parsedOutput, context) => {
|
|
6135
|
-
const contents = {};
|
|
5856
|
+
const contents = map({});
|
|
6136
5857
|
const data = parsedOutput.body;
|
|
6137
|
-
if (data.Message
|
|
5858
|
+
if (data.Message != null) {
|
|
6138
5859
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6139
5860
|
}
|
|
6140
5861
|
const exception = new models_0_1.ObjectAlreadyDetachedException({
|
|
@@ -6144,9 +5865,9 @@ const deserializeAws_restJson1ObjectAlreadyDetachedExceptionResponse = async (pa
|
|
|
6144
5865
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6145
5866
|
};
|
|
6146
5867
|
const deserializeAws_restJson1ObjectNotDetachedExceptionResponse = async (parsedOutput, context) => {
|
|
6147
|
-
const contents = {};
|
|
5868
|
+
const contents = map({});
|
|
6148
5869
|
const data = parsedOutput.body;
|
|
6149
|
-
if (data.Message
|
|
5870
|
+
if (data.Message != null) {
|
|
6150
5871
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6151
5872
|
}
|
|
6152
5873
|
const exception = new models_0_1.ObjectNotDetachedException({
|
|
@@ -6156,9 +5877,9 @@ const deserializeAws_restJson1ObjectNotDetachedExceptionResponse = async (parsed
|
|
|
6156
5877
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6157
5878
|
};
|
|
6158
5879
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
6159
|
-
const contents = {};
|
|
5880
|
+
const contents = map({});
|
|
6160
5881
|
const data = parsedOutput.body;
|
|
6161
|
-
if (data.Message
|
|
5882
|
+
if (data.Message != null) {
|
|
6162
5883
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6163
5884
|
}
|
|
6164
5885
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -6168,9 +5889,9 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
6168
5889
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6169
5890
|
};
|
|
6170
5891
|
const deserializeAws_restJson1RetryableConflictExceptionResponse = async (parsedOutput, context) => {
|
|
6171
|
-
const contents = {};
|
|
5892
|
+
const contents = map({});
|
|
6172
5893
|
const data = parsedOutput.body;
|
|
6173
|
-
if (data.Message
|
|
5894
|
+
if (data.Message != null) {
|
|
6174
5895
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6175
5896
|
}
|
|
6176
5897
|
const exception = new models_0_1.RetryableConflictException({
|
|
@@ -6180,9 +5901,9 @@ const deserializeAws_restJson1RetryableConflictExceptionResponse = async (parsed
|
|
|
6180
5901
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6181
5902
|
};
|
|
6182
5903
|
const deserializeAws_restJson1SchemaAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
6183
|
-
const contents = {};
|
|
5904
|
+
const contents = map({});
|
|
6184
5905
|
const data = parsedOutput.body;
|
|
6185
|
-
if (data.Message
|
|
5906
|
+
if (data.Message != null) {
|
|
6186
5907
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6187
5908
|
}
|
|
6188
5909
|
const exception = new models_0_1.SchemaAlreadyExistsException({
|
|
@@ -6192,9 +5913,9 @@ const deserializeAws_restJson1SchemaAlreadyExistsExceptionResponse = async (pars
|
|
|
6192
5913
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6193
5914
|
};
|
|
6194
5915
|
const deserializeAws_restJson1SchemaAlreadyPublishedExceptionResponse = async (parsedOutput, context) => {
|
|
6195
|
-
const contents = {};
|
|
5916
|
+
const contents = map({});
|
|
6196
5917
|
const data = parsedOutput.body;
|
|
6197
|
-
if (data.Message
|
|
5918
|
+
if (data.Message != null) {
|
|
6198
5919
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6199
5920
|
}
|
|
6200
5921
|
const exception = new models_0_1.SchemaAlreadyPublishedException({
|
|
@@ -6204,9 +5925,9 @@ const deserializeAws_restJson1SchemaAlreadyPublishedExceptionResponse = async (p
|
|
|
6204
5925
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6205
5926
|
};
|
|
6206
5927
|
const deserializeAws_restJson1StillContainsLinksExceptionResponse = async (parsedOutput, context) => {
|
|
6207
|
-
const contents = {};
|
|
5928
|
+
const contents = map({});
|
|
6208
5929
|
const data = parsedOutput.body;
|
|
6209
|
-
if (data.Message
|
|
5930
|
+
if (data.Message != null) {
|
|
6210
5931
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6211
5932
|
}
|
|
6212
5933
|
const exception = new models_0_1.StillContainsLinksException({
|
|
@@ -6216,9 +5937,9 @@ const deserializeAws_restJson1StillContainsLinksExceptionResponse = async (parse
|
|
|
6216
5937
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6217
5938
|
};
|
|
6218
5939
|
const deserializeAws_restJson1UnsupportedIndexTypeExceptionResponse = async (parsedOutput, context) => {
|
|
6219
|
-
const contents = {};
|
|
5940
|
+
const contents = map({});
|
|
6220
5941
|
const data = parsedOutput.body;
|
|
6221
|
-
if (data.Message
|
|
5942
|
+
if (data.Message != null) {
|
|
6222
5943
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6223
5944
|
}
|
|
6224
5945
|
const exception = new models_0_1.UnsupportedIndexTypeException({
|
|
@@ -6228,9 +5949,9 @@ const deserializeAws_restJson1UnsupportedIndexTypeExceptionResponse = async (par
|
|
|
6228
5949
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
6229
5950
|
};
|
|
6230
5951
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
6231
|
-
const contents = {};
|
|
5952
|
+
const contents = map({});
|
|
6232
5953
|
const data = parsedOutput.body;
|
|
6233
|
-
if (data.Message
|
|
5954
|
+
if (data.Message != null) {
|
|
6234
5955
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
6235
5956
|
}
|
|
6236
5957
|
const exception = new models_0_1.ValidationException({
|
|
@@ -6256,9 +5977,6 @@ const serializeAws_restJson1AttributeKeyAndValueList = (input, context) => {
|
|
|
6256
5977
|
return input
|
|
6257
5978
|
.filter((e) => e != null)
|
|
6258
5979
|
.map((entry) => {
|
|
6259
|
-
if (entry === null) {
|
|
6260
|
-
return null;
|
|
6261
|
-
}
|
|
6262
5980
|
return serializeAws_restJson1AttributeKeyAndValue(entry, context);
|
|
6263
5981
|
});
|
|
6264
5982
|
};
|
|
@@ -6266,9 +5984,6 @@ const serializeAws_restJson1AttributeKeyList = (input, context) => {
|
|
|
6266
5984
|
return input
|
|
6267
5985
|
.filter((e) => e != null)
|
|
6268
5986
|
.map((entry) => {
|
|
6269
|
-
if (entry === null) {
|
|
6270
|
-
return null;
|
|
6271
|
-
}
|
|
6272
5987
|
return serializeAws_restJson1AttributeKey(entry, context);
|
|
6273
5988
|
});
|
|
6274
5989
|
};
|
|
@@ -6282,9 +5997,6 @@ const serializeAws_restJson1AttributeNameAndValueList = (input, context) => {
|
|
|
6282
5997
|
return input
|
|
6283
5998
|
.filter((e) => e != null)
|
|
6284
5999
|
.map((entry) => {
|
|
6285
|
-
if (entry === null) {
|
|
6286
|
-
return null;
|
|
6287
|
-
}
|
|
6288
6000
|
return serializeAws_restJson1AttributeNameAndValue(entry, context);
|
|
6289
6001
|
});
|
|
6290
6002
|
};
|
|
@@ -6292,9 +6004,6 @@ const serializeAws_restJson1AttributeNameList = (input, context) => {
|
|
|
6292
6004
|
return input
|
|
6293
6005
|
.filter((e) => e != null)
|
|
6294
6006
|
.map((entry) => {
|
|
6295
|
-
if (entry === null) {
|
|
6296
|
-
return null;
|
|
6297
|
-
}
|
|
6298
6007
|
return entry;
|
|
6299
6008
|
});
|
|
6300
6009
|
};
|
|
@@ -6618,9 +6327,6 @@ const serializeAws_restJson1BatchReadOperationList = (input, context) => {
|
|
|
6618
6327
|
return input
|
|
6619
6328
|
.filter((e) => e != null)
|
|
6620
6329
|
.map((entry) => {
|
|
6621
|
-
if (entry === null) {
|
|
6622
|
-
return null;
|
|
6623
|
-
}
|
|
6624
6330
|
return serializeAws_restJson1BatchReadOperation(entry, context);
|
|
6625
6331
|
});
|
|
6626
6332
|
};
|
|
@@ -6705,9 +6411,6 @@ const serializeAws_restJson1BatchWriteOperationList = (input, context) => {
|
|
|
6705
6411
|
return input
|
|
6706
6412
|
.filter((e) => e != null)
|
|
6707
6413
|
.map((entry) => {
|
|
6708
|
-
if (entry === null) {
|
|
6709
|
-
return null;
|
|
6710
|
-
}
|
|
6711
6414
|
return serializeAws_restJson1BatchWriteOperation(entry, context);
|
|
6712
6415
|
});
|
|
6713
6416
|
};
|
|
@@ -6737,9 +6440,6 @@ const serializeAws_restJson1FacetAttributeList = (input, context) => {
|
|
|
6737
6440
|
return input
|
|
6738
6441
|
.filter((e) => e != null)
|
|
6739
6442
|
.map((entry) => {
|
|
6740
|
-
if (entry === null) {
|
|
6741
|
-
return null;
|
|
6742
|
-
}
|
|
6743
6443
|
return serializeAws_restJson1FacetAttribute(entry, context);
|
|
6744
6444
|
});
|
|
6745
6445
|
};
|
|
@@ -6759,9 +6459,6 @@ const serializeAws_restJson1FacetAttributeUpdateList = (input, context) => {
|
|
|
6759
6459
|
return input
|
|
6760
6460
|
.filter((e) => e != null)
|
|
6761
6461
|
.map((entry) => {
|
|
6762
|
-
if (entry === null) {
|
|
6763
|
-
return null;
|
|
6764
|
-
}
|
|
6765
6462
|
return serializeAws_restJson1FacetAttributeUpdate(entry, context);
|
|
6766
6463
|
});
|
|
6767
6464
|
};
|
|
@@ -6787,9 +6484,6 @@ const serializeAws_restJson1LinkAttributeUpdateList = (input, context) => {
|
|
|
6787
6484
|
return input
|
|
6788
6485
|
.filter((e) => e != null)
|
|
6789
6486
|
.map((entry) => {
|
|
6790
|
-
if (entry === null) {
|
|
6791
|
-
return null;
|
|
6792
|
-
}
|
|
6793
6487
|
return serializeAws_restJson1LinkAttributeUpdate(entry, context);
|
|
6794
6488
|
});
|
|
6795
6489
|
};
|
|
@@ -6813,9 +6507,6 @@ const serializeAws_restJson1ObjectAttributeRangeList = (input, context) => {
|
|
|
6813
6507
|
return input
|
|
6814
6508
|
.filter((e) => e != null)
|
|
6815
6509
|
.map((entry) => {
|
|
6816
|
-
if (entry === null) {
|
|
6817
|
-
return null;
|
|
6818
|
-
}
|
|
6819
6510
|
return serializeAws_restJson1ObjectAttributeRange(entry, context);
|
|
6820
6511
|
});
|
|
6821
6512
|
};
|
|
@@ -6833,9 +6524,6 @@ const serializeAws_restJson1ObjectAttributeUpdateList = (input, context) => {
|
|
|
6833
6524
|
return input
|
|
6834
6525
|
.filter((e) => e != null)
|
|
6835
6526
|
.map((entry) => {
|
|
6836
|
-
if (entry === null) {
|
|
6837
|
-
return null;
|
|
6838
|
-
}
|
|
6839
6527
|
return serializeAws_restJson1ObjectAttributeUpdate(entry, context);
|
|
6840
6528
|
});
|
|
6841
6529
|
};
|
|
@@ -6882,9 +6570,6 @@ const serializeAws_restJson1SchemaFacetList = (input, context) => {
|
|
|
6882
6570
|
return input
|
|
6883
6571
|
.filter((e) => e != null)
|
|
6884
6572
|
.map((entry) => {
|
|
6885
|
-
if (entry === null) {
|
|
6886
|
-
return null;
|
|
6887
|
-
}
|
|
6888
6573
|
return serializeAws_restJson1SchemaFacet(entry, context);
|
|
6889
6574
|
});
|
|
6890
6575
|
};
|
|
@@ -6898,9 +6583,6 @@ const serializeAws_restJson1TagKeyList = (input, context) => {
|
|
|
6898
6583
|
return input
|
|
6899
6584
|
.filter((e) => e != null)
|
|
6900
6585
|
.map((entry) => {
|
|
6901
|
-
if (entry === null) {
|
|
6902
|
-
return null;
|
|
6903
|
-
}
|
|
6904
6586
|
return entry;
|
|
6905
6587
|
});
|
|
6906
6588
|
};
|
|
@@ -6908,9 +6590,6 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
6908
6590
|
return input
|
|
6909
6591
|
.filter((e) => e != null)
|
|
6910
6592
|
.map((entry) => {
|
|
6911
|
-
if (entry === null) {
|
|
6912
|
-
return null;
|
|
6913
|
-
}
|
|
6914
6593
|
return serializeAws_restJson1Tag(entry, context);
|
|
6915
6594
|
});
|
|
6916
6595
|
};
|
|
@@ -6950,9 +6629,6 @@ const serializeAws_restJson1TypedLinkAttributeDefinitionList = (input, context)
|
|
|
6950
6629
|
return input
|
|
6951
6630
|
.filter((e) => e != null)
|
|
6952
6631
|
.map((entry) => {
|
|
6953
|
-
if (entry === null) {
|
|
6954
|
-
return null;
|
|
6955
|
-
}
|
|
6956
6632
|
return serializeAws_restJson1TypedLinkAttributeDefinition(entry, context);
|
|
6957
6633
|
});
|
|
6958
6634
|
};
|
|
@@ -6966,9 +6642,6 @@ const serializeAws_restJson1TypedLinkAttributeRangeList = (input, context) => {
|
|
|
6966
6642
|
return input
|
|
6967
6643
|
.filter((e) => e != null)
|
|
6968
6644
|
.map((entry) => {
|
|
6969
|
-
if (entry === null) {
|
|
6970
|
-
return null;
|
|
6971
|
-
}
|
|
6972
6645
|
return serializeAws_restJson1TypedLinkAttributeRange(entry, context);
|
|
6973
6646
|
});
|
|
6974
6647
|
};
|
|
@@ -6995,9 +6668,6 @@ const serializeAws_restJson1TypedLinkFacetAttributeUpdateList = (input, context)
|
|
|
6995
6668
|
return input
|
|
6996
6669
|
.filter((e) => e != null)
|
|
6997
6670
|
.map((entry) => {
|
|
6998
|
-
if (entry === null) {
|
|
6999
|
-
return null;
|
|
7000
|
-
}
|
|
7001
6671
|
return serializeAws_restJson1TypedLinkFacetAttributeUpdate(entry, context);
|
|
7002
6672
|
});
|
|
7003
6673
|
};
|
|
@@ -7661,7 +7331,7 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
7661
7331
|
return retVal;
|
|
7662
7332
|
};
|
|
7663
7333
|
const deserializeAws_restJson1TypedAttributeValue = (output, context) => {
|
|
7664
|
-
if (output.BinaryValue
|
|
7334
|
+
if (output.BinaryValue != null) {
|
|
7665
7335
|
return {
|
|
7666
7336
|
BinaryValue: context.base64Decoder(output.BinaryValue),
|
|
7667
7337
|
};
|
|
@@ -7669,7 +7339,7 @@ const deserializeAws_restJson1TypedAttributeValue = (output, context) => {
|
|
|
7669
7339
|
if ((0, smithy_client_1.expectBoolean)(output.BooleanValue) !== undefined) {
|
|
7670
7340
|
return { BooleanValue: (0, smithy_client_1.expectBoolean)(output.BooleanValue) };
|
|
7671
7341
|
}
|
|
7672
|
-
if (output.DatetimeValue
|
|
7342
|
+
if (output.DatetimeValue != null) {
|
|
7673
7343
|
return {
|
|
7674
7344
|
DatetimeValue: (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DatetimeValue))),
|
|
7675
7345
|
};
|