@aws-sdk/client-clouddirectory 3.928.0 → 3.929.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.
Files changed (87) hide show
  1. package/dist-cjs/index.js +3516 -3593
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/CloudDirectoryClient.js +2 -0
  4. package/dist-es/commands/AddFacetToObjectCommand.js +3 -9
  5. package/dist-es/commands/ApplySchemaCommand.js +3 -9
  6. package/dist-es/commands/AttachObjectCommand.js +3 -9
  7. package/dist-es/commands/AttachPolicyCommand.js +3 -9
  8. package/dist-es/commands/AttachToIndexCommand.js +3 -9
  9. package/dist-es/commands/AttachTypedLinkCommand.js +3 -9
  10. package/dist-es/commands/BatchReadCommand.js +3 -9
  11. package/dist-es/commands/BatchWriteCommand.js +3 -9
  12. package/dist-es/commands/CreateDirectoryCommand.js +3 -9
  13. package/dist-es/commands/CreateFacetCommand.js +3 -9
  14. package/dist-es/commands/CreateIndexCommand.js +3 -9
  15. package/dist-es/commands/CreateObjectCommand.js +3 -9
  16. package/dist-es/commands/CreateSchemaCommand.js +3 -9
  17. package/dist-es/commands/CreateTypedLinkFacetCommand.js +3 -9
  18. package/dist-es/commands/DeleteDirectoryCommand.js +3 -9
  19. package/dist-es/commands/DeleteFacetCommand.js +3 -9
  20. package/dist-es/commands/DeleteObjectCommand.js +3 -9
  21. package/dist-es/commands/DeleteSchemaCommand.js +3 -9
  22. package/dist-es/commands/DeleteTypedLinkFacetCommand.js +3 -9
  23. package/dist-es/commands/DetachFromIndexCommand.js +3 -9
  24. package/dist-es/commands/DetachObjectCommand.js +3 -9
  25. package/dist-es/commands/DetachPolicyCommand.js +3 -9
  26. package/dist-es/commands/DetachTypedLinkCommand.js +3 -9
  27. package/dist-es/commands/DisableDirectoryCommand.js +3 -9
  28. package/dist-es/commands/EnableDirectoryCommand.js +3 -9
  29. package/dist-es/commands/GetAppliedSchemaVersionCommand.js +3 -9
  30. package/dist-es/commands/GetDirectoryCommand.js +3 -9
  31. package/dist-es/commands/GetFacetCommand.js +3 -9
  32. package/dist-es/commands/GetLinkAttributesCommand.js +3 -9
  33. package/dist-es/commands/GetObjectAttributesCommand.js +3 -9
  34. package/dist-es/commands/GetObjectInformationCommand.js +3 -9
  35. package/dist-es/commands/GetSchemaAsJsonCommand.js +3 -9
  36. package/dist-es/commands/GetTypedLinkFacetInformationCommand.js +3 -9
  37. package/dist-es/commands/ListAppliedSchemaArnsCommand.js +3 -9
  38. package/dist-es/commands/ListAttachedIndicesCommand.js +3 -9
  39. package/dist-es/commands/ListDevelopmentSchemaArnsCommand.js +3 -9
  40. package/dist-es/commands/ListDirectoriesCommand.js +3 -9
  41. package/dist-es/commands/ListFacetAttributesCommand.js +3 -9
  42. package/dist-es/commands/ListFacetNamesCommand.js +3 -9
  43. package/dist-es/commands/ListIncomingTypedLinksCommand.js +3 -9
  44. package/dist-es/commands/ListIndexCommand.js +3 -9
  45. package/dist-es/commands/ListManagedSchemaArnsCommand.js +3 -9
  46. package/dist-es/commands/ListObjectAttributesCommand.js +3 -9
  47. package/dist-es/commands/ListObjectChildrenCommand.js +3 -9
  48. package/dist-es/commands/ListObjectParentPathsCommand.js +3 -9
  49. package/dist-es/commands/ListObjectParentsCommand.js +3 -9
  50. package/dist-es/commands/ListObjectPoliciesCommand.js +3 -9
  51. package/dist-es/commands/ListOutgoingTypedLinksCommand.js +3 -9
  52. package/dist-es/commands/ListPolicyAttachmentsCommand.js +3 -9
  53. package/dist-es/commands/ListPublishedSchemaArnsCommand.js +3 -9
  54. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  55. package/dist-es/commands/ListTypedLinkFacetAttributesCommand.js +3 -9
  56. package/dist-es/commands/ListTypedLinkFacetNamesCommand.js +3 -9
  57. package/dist-es/commands/LookupPolicyCommand.js +3 -9
  58. package/dist-es/commands/PublishSchemaCommand.js +3 -9
  59. package/dist-es/commands/PutSchemaFromJsonCommand.js +3 -9
  60. package/dist-es/commands/RemoveFacetFromObjectCommand.js +3 -9
  61. package/dist-es/commands/TagResourceCommand.js +3 -9
  62. package/dist-es/commands/UntagResourceCommand.js +3 -9
  63. package/dist-es/commands/UpdateFacetCommand.js +3 -9
  64. package/dist-es/commands/UpdateLinkAttributesCommand.js +3 -9
  65. package/dist-es/commands/UpdateObjectAttributesCommand.js +3 -9
  66. package/dist-es/commands/UpdateSchemaCommand.js +3 -9
  67. package/dist-es/commands/UpdateTypedLinkFacetCommand.js +3 -9
  68. package/dist-es/commands/UpgradeAppliedSchemaCommand.js +3 -9
  69. package/dist-es/commands/UpgradePublishedSchemaCommand.js +3 -9
  70. package/dist-es/runtimeConfig.shared.js +2 -0
  71. package/dist-es/schemas/schemas_0.js +3292 -0
  72. package/dist-types/CloudDirectoryClient.d.ts +10 -1
  73. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  74. package/dist-types/runtimeConfig.d.ts +1 -0
  75. package/dist-types/runtimeConfig.native.d.ts +1 -0
  76. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  77. package/dist-types/schemas/schemas_0.d.ts +364 -0
  78. package/dist-types/ts3.4/CloudDirectoryClient.d.ts +4 -0
  79. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  80. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  81. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  82. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  83. package/dist-types/ts3.4/schemas/schemas_0.d.ts +370 -0
  84. package/package.json +2 -2
  85. package/dist-es/protocols/Aws_restJson1.js +0 -3033
  86. package/dist-types/protocols/Aws_restJson1.d.ts +0 -596
  87. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -797
@@ -1,3033 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { CloudDirectoryServiceException as __BaseException } from "../models/CloudDirectoryServiceException";
5
- import { AccessDeniedException, BatchWriteException, CannotListParentOfRootException, DirectoryAlreadyExistsException, DirectoryDeletedException, DirectoryNotDisabledException, DirectoryNotEnabledException, FacetAlreadyExistsException, FacetInUseException, FacetNotFoundException, FacetValidationException, IncompatibleSchemaException, IndexedAttributeMissingException, InternalServiceException, InvalidArnException, InvalidAttachmentException, InvalidFacetUpdateException, InvalidNextTokenException, InvalidRuleException, InvalidSchemaDocException, InvalidTaggingRequestException, LimitExceededException, LinkNameAlreadyInUseException, NotIndexException, NotNodeException, NotPolicyException, ObjectAlreadyDetachedException, ObjectNotDetachedException, ResourceNotFoundException, RetryableConflictException, SchemaAlreadyExistsException, SchemaAlreadyPublishedException, StillContainsLinksException, TypedAttributeValue, UnsupportedIndexTypeException, ValidationException, } from "../models/models_0";
6
- export const se_AddFacetToObjectCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = map({}, isSerializableHeaderValue, {
9
- "content-type": "application/json",
10
- [_xadp]: input[_DA],
11
- });
12
- b.bp("/amazonclouddirectory/2017-01-11/object/facets");
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- ObjectAttributeList: (_) => se_AttributeKeyAndValueList(_, context),
16
- ObjectReference: (_) => _json(_),
17
- SchemaFacet: (_) => _json(_),
18
- }));
19
- b.m("PUT").h(headers).b(body);
20
- return b.build();
21
- };
22
- export const se_ApplySchemaCommand = async (input, context) => {
23
- const b = rb(input, context);
24
- const headers = map({}, isSerializableHeaderValue, {
25
- "content-type": "application/json",
26
- [_xadp]: input[_DA],
27
- });
28
- b.bp("/amazonclouddirectory/2017-01-11/schema/apply");
29
- let body;
30
- body = JSON.stringify(take(input, {
31
- PublishedSchemaArn: [],
32
- }));
33
- b.m("PUT").h(headers).b(body);
34
- return b.build();
35
- };
36
- export const se_AttachObjectCommand = async (input, context) => {
37
- const b = rb(input, context);
38
- const headers = map({}, isSerializableHeaderValue, {
39
- "content-type": "application/json",
40
- [_xadp]: input[_DA],
41
- });
42
- b.bp("/amazonclouddirectory/2017-01-11/object/attach");
43
- let body;
44
- body = JSON.stringify(take(input, {
45
- ChildReference: (_) => _json(_),
46
- LinkName: [],
47
- ParentReference: (_) => _json(_),
48
- }));
49
- b.m("PUT").h(headers).b(body);
50
- return b.build();
51
- };
52
- export const se_AttachPolicyCommand = async (input, context) => {
53
- const b = rb(input, context);
54
- const headers = map({}, isSerializableHeaderValue, {
55
- "content-type": "application/json",
56
- [_xadp]: input[_DA],
57
- });
58
- b.bp("/amazonclouddirectory/2017-01-11/policy/attach");
59
- let body;
60
- body = JSON.stringify(take(input, {
61
- ObjectReference: (_) => _json(_),
62
- PolicyReference: (_) => _json(_),
63
- }));
64
- b.m("PUT").h(headers).b(body);
65
- return b.build();
66
- };
67
- export const se_AttachToIndexCommand = async (input, context) => {
68
- const b = rb(input, context);
69
- const headers = map({}, isSerializableHeaderValue, {
70
- "content-type": "application/json",
71
- [_xadp]: input[_DA],
72
- });
73
- b.bp("/amazonclouddirectory/2017-01-11/index/attach");
74
- let body;
75
- body = JSON.stringify(take(input, {
76
- IndexReference: (_) => _json(_),
77
- TargetReference: (_) => _json(_),
78
- }));
79
- b.m("PUT").h(headers).b(body);
80
- return b.build();
81
- };
82
- export const se_AttachTypedLinkCommand = async (input, context) => {
83
- const b = rb(input, context);
84
- const headers = map({}, isSerializableHeaderValue, {
85
- "content-type": "application/json",
86
- [_xadp]: input[_DA],
87
- });
88
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/attach");
89
- let body;
90
- body = JSON.stringify(take(input, {
91
- Attributes: (_) => se_AttributeNameAndValueList(_, context),
92
- SourceObjectReference: (_) => _json(_),
93
- TargetObjectReference: (_) => _json(_),
94
- TypedLinkFacet: (_) => _json(_),
95
- }));
96
- b.m("PUT").h(headers).b(body);
97
- return b.build();
98
- };
99
- export const se_BatchReadCommand = async (input, context) => {
100
- const b = rb(input, context);
101
- const headers = map({}, isSerializableHeaderValue, {
102
- "content-type": "application/json",
103
- [_xadp]: input[_DA],
104
- [_xacl]: input[_CL],
105
- });
106
- b.bp("/amazonclouddirectory/2017-01-11/batchread");
107
- let body;
108
- body = JSON.stringify(take(input, {
109
- Operations: (_) => se_BatchReadOperationList(_, context),
110
- }));
111
- b.m("POST").h(headers).b(body);
112
- return b.build();
113
- };
114
- export const se_BatchWriteCommand = async (input, context) => {
115
- const b = rb(input, context);
116
- const headers = map({}, isSerializableHeaderValue, {
117
- "content-type": "application/json",
118
- [_xadp]: input[_DA],
119
- });
120
- b.bp("/amazonclouddirectory/2017-01-11/batchwrite");
121
- let body;
122
- body = JSON.stringify(take(input, {
123
- Operations: (_) => se_BatchWriteOperationList(_, context),
124
- }));
125
- b.m("PUT").h(headers).b(body);
126
- return b.build();
127
- };
128
- export const se_CreateDirectoryCommand = async (input, context) => {
129
- const b = rb(input, context);
130
- const headers = map({}, isSerializableHeaderValue, {
131
- "content-type": "application/json",
132
- [_xadp]: input[_SA],
133
- });
134
- b.bp("/amazonclouddirectory/2017-01-11/directory/create");
135
- let body;
136
- body = JSON.stringify(take(input, {
137
- Name: [],
138
- }));
139
- b.m("PUT").h(headers).b(body);
140
- return b.build();
141
- };
142
- export const se_CreateFacetCommand = async (input, context) => {
143
- const b = rb(input, context);
144
- const headers = map({}, isSerializableHeaderValue, {
145
- "content-type": "application/json",
146
- [_xadp]: input[_SA],
147
- });
148
- b.bp("/amazonclouddirectory/2017-01-11/facet/create");
149
- let body;
150
- body = JSON.stringify(take(input, {
151
- Attributes: (_) => se_FacetAttributeList(_, context),
152
- FacetStyle: [],
153
- Name: [],
154
- ObjectType: [],
155
- }));
156
- b.m("PUT").h(headers).b(body);
157
- return b.build();
158
- };
159
- export const se_CreateIndexCommand = async (input, context) => {
160
- const b = rb(input, context);
161
- const headers = map({}, isSerializableHeaderValue, {
162
- "content-type": "application/json",
163
- [_xadp]: input[_DA],
164
- });
165
- b.bp("/amazonclouddirectory/2017-01-11/index");
166
- let body;
167
- body = JSON.stringify(take(input, {
168
- IsUnique: [],
169
- LinkName: [],
170
- OrderedIndexedAttributeList: (_) => _json(_),
171
- ParentReference: (_) => _json(_),
172
- }));
173
- b.m("PUT").h(headers).b(body);
174
- return b.build();
175
- };
176
- export const se_CreateObjectCommand = async (input, context) => {
177
- const b = rb(input, context);
178
- const headers = map({}, isSerializableHeaderValue, {
179
- "content-type": "application/json",
180
- [_xadp]: input[_DA],
181
- });
182
- b.bp("/amazonclouddirectory/2017-01-11/object");
183
- let body;
184
- body = JSON.stringify(take(input, {
185
- LinkName: [],
186
- ObjectAttributeList: (_) => se_AttributeKeyAndValueList(_, context),
187
- ParentReference: (_) => _json(_),
188
- SchemaFacets: (_) => _json(_),
189
- }));
190
- b.m("PUT").h(headers).b(body);
191
- return b.build();
192
- };
193
- export const se_CreateSchemaCommand = async (input, context) => {
194
- const b = rb(input, context);
195
- const headers = {
196
- "content-type": "application/json",
197
- };
198
- b.bp("/amazonclouddirectory/2017-01-11/schema/create");
199
- let body;
200
- body = JSON.stringify(take(input, {
201
- Name: [],
202
- }));
203
- b.m("PUT").h(headers).b(body);
204
- return b.build();
205
- };
206
- export const se_CreateTypedLinkFacetCommand = async (input, context) => {
207
- const b = rb(input, context);
208
- const headers = map({}, isSerializableHeaderValue, {
209
- "content-type": "application/json",
210
- [_xadp]: input[_SA],
211
- });
212
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/create");
213
- let body;
214
- body = JSON.stringify(take(input, {
215
- Facet: (_) => se_TypedLinkFacet(_, context),
216
- }));
217
- b.m("PUT").h(headers).b(body);
218
- return b.build();
219
- };
220
- export const se_DeleteDirectoryCommand = async (input, context) => {
221
- const b = rb(input, context);
222
- const headers = map({}, isSerializableHeaderValue, {
223
- [_xadp]: input[_DA],
224
- });
225
- b.bp("/amazonclouddirectory/2017-01-11/directory");
226
- let body;
227
- b.m("PUT").h(headers).b(body);
228
- return b.build();
229
- };
230
- export const se_DeleteFacetCommand = async (input, context) => {
231
- const b = rb(input, context);
232
- const headers = map({}, isSerializableHeaderValue, {
233
- "content-type": "application/json",
234
- [_xadp]: input[_SA],
235
- });
236
- b.bp("/amazonclouddirectory/2017-01-11/facet/delete");
237
- let body;
238
- body = JSON.stringify(take(input, {
239
- Name: [],
240
- }));
241
- b.m("PUT").h(headers).b(body);
242
- return b.build();
243
- };
244
- export const se_DeleteObjectCommand = async (input, context) => {
245
- const b = rb(input, context);
246
- const headers = map({}, isSerializableHeaderValue, {
247
- "content-type": "application/json",
248
- [_xadp]: input[_DA],
249
- });
250
- b.bp("/amazonclouddirectory/2017-01-11/object/delete");
251
- let body;
252
- body = JSON.stringify(take(input, {
253
- ObjectReference: (_) => _json(_),
254
- }));
255
- b.m("PUT").h(headers).b(body);
256
- return b.build();
257
- };
258
- export const se_DeleteSchemaCommand = async (input, context) => {
259
- const b = rb(input, context);
260
- const headers = map({}, isSerializableHeaderValue, {
261
- [_xadp]: input[_SA],
262
- });
263
- b.bp("/amazonclouddirectory/2017-01-11/schema");
264
- let body;
265
- b.m("PUT").h(headers).b(body);
266
- return b.build();
267
- };
268
- export const se_DeleteTypedLinkFacetCommand = async (input, context) => {
269
- const b = rb(input, context);
270
- const headers = map({}, isSerializableHeaderValue, {
271
- "content-type": "application/json",
272
- [_xadp]: input[_SA],
273
- });
274
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/delete");
275
- let body;
276
- body = JSON.stringify(take(input, {
277
- Name: [],
278
- }));
279
- b.m("PUT").h(headers).b(body);
280
- return b.build();
281
- };
282
- export const se_DetachFromIndexCommand = async (input, context) => {
283
- const b = rb(input, context);
284
- const headers = map({}, isSerializableHeaderValue, {
285
- "content-type": "application/json",
286
- [_xadp]: input[_DA],
287
- });
288
- b.bp("/amazonclouddirectory/2017-01-11/index/detach");
289
- let body;
290
- body = JSON.stringify(take(input, {
291
- IndexReference: (_) => _json(_),
292
- TargetReference: (_) => _json(_),
293
- }));
294
- b.m("PUT").h(headers).b(body);
295
- return b.build();
296
- };
297
- export const se_DetachObjectCommand = async (input, context) => {
298
- const b = rb(input, context);
299
- const headers = map({}, isSerializableHeaderValue, {
300
- "content-type": "application/json",
301
- [_xadp]: input[_DA],
302
- });
303
- b.bp("/amazonclouddirectory/2017-01-11/object/detach");
304
- let body;
305
- body = JSON.stringify(take(input, {
306
- LinkName: [],
307
- ParentReference: (_) => _json(_),
308
- }));
309
- b.m("PUT").h(headers).b(body);
310
- return b.build();
311
- };
312
- export const se_DetachPolicyCommand = async (input, context) => {
313
- const b = rb(input, context);
314
- const headers = map({}, isSerializableHeaderValue, {
315
- "content-type": "application/json",
316
- [_xadp]: input[_DA],
317
- });
318
- b.bp("/amazonclouddirectory/2017-01-11/policy/detach");
319
- let body;
320
- body = JSON.stringify(take(input, {
321
- ObjectReference: (_) => _json(_),
322
- PolicyReference: (_) => _json(_),
323
- }));
324
- b.m("PUT").h(headers).b(body);
325
- return b.build();
326
- };
327
- export const se_DetachTypedLinkCommand = async (input, context) => {
328
- const b = rb(input, context);
329
- const headers = map({}, isSerializableHeaderValue, {
330
- "content-type": "application/json",
331
- [_xadp]: input[_DA],
332
- });
333
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/detach");
334
- let body;
335
- body = JSON.stringify(take(input, {
336
- TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context),
337
- }));
338
- b.m("PUT").h(headers).b(body);
339
- return b.build();
340
- };
341
- export const se_DisableDirectoryCommand = async (input, context) => {
342
- const b = rb(input, context);
343
- const headers = map({}, isSerializableHeaderValue, {
344
- [_xadp]: input[_DA],
345
- });
346
- b.bp("/amazonclouddirectory/2017-01-11/directory/disable");
347
- let body;
348
- b.m("PUT").h(headers).b(body);
349
- return b.build();
350
- };
351
- export const se_EnableDirectoryCommand = async (input, context) => {
352
- const b = rb(input, context);
353
- const headers = map({}, isSerializableHeaderValue, {
354
- [_xadp]: input[_DA],
355
- });
356
- b.bp("/amazonclouddirectory/2017-01-11/directory/enable");
357
- let body;
358
- b.m("PUT").h(headers).b(body);
359
- return b.build();
360
- };
361
- export const se_GetAppliedSchemaVersionCommand = async (input, context) => {
362
- const b = rb(input, context);
363
- const headers = {
364
- "content-type": "application/json",
365
- };
366
- b.bp("/amazonclouddirectory/2017-01-11/schema/getappliedschema");
367
- let body;
368
- body = JSON.stringify(take(input, {
369
- SchemaArn: [],
370
- }));
371
- b.m("POST").h(headers).b(body);
372
- return b.build();
373
- };
374
- export const se_GetDirectoryCommand = async (input, context) => {
375
- const b = rb(input, context);
376
- const headers = map({}, isSerializableHeaderValue, {
377
- [_xadp]: input[_DA],
378
- });
379
- b.bp("/amazonclouddirectory/2017-01-11/directory/get");
380
- let body;
381
- b.m("POST").h(headers).b(body);
382
- return b.build();
383
- };
384
- export const se_GetFacetCommand = async (input, context) => {
385
- const b = rb(input, context);
386
- const headers = map({}, isSerializableHeaderValue, {
387
- "content-type": "application/json",
388
- [_xadp]: input[_SA],
389
- });
390
- b.bp("/amazonclouddirectory/2017-01-11/facet");
391
- let body;
392
- body = JSON.stringify(take(input, {
393
- Name: [],
394
- }));
395
- b.m("POST").h(headers).b(body);
396
- return b.build();
397
- };
398
- export const se_GetLinkAttributesCommand = async (input, context) => {
399
- const b = rb(input, context);
400
- const headers = map({}, isSerializableHeaderValue, {
401
- "content-type": "application/json",
402
- [_xadp]: input[_DA],
403
- });
404
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/attributes/get");
405
- let body;
406
- body = JSON.stringify(take(input, {
407
- AttributeNames: (_) => _json(_),
408
- ConsistencyLevel: [],
409
- TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context),
410
- }));
411
- b.m("POST").h(headers).b(body);
412
- return b.build();
413
- };
414
- export const se_GetObjectAttributesCommand = async (input, context) => {
415
- const b = rb(input, context);
416
- const headers = map({}, isSerializableHeaderValue, {
417
- "content-type": "application/json",
418
- [_xadp]: input[_DA],
419
- [_xacl]: input[_CL],
420
- });
421
- b.bp("/amazonclouddirectory/2017-01-11/object/attributes/get");
422
- let body;
423
- body = JSON.stringify(take(input, {
424
- AttributeNames: (_) => _json(_),
425
- ObjectReference: (_) => _json(_),
426
- SchemaFacet: (_) => _json(_),
427
- }));
428
- b.m("POST").h(headers).b(body);
429
- return b.build();
430
- };
431
- export const se_GetObjectInformationCommand = async (input, context) => {
432
- const b = rb(input, context);
433
- const headers = map({}, isSerializableHeaderValue, {
434
- "content-type": "application/json",
435
- [_xadp]: input[_DA],
436
- [_xacl]: input[_CL],
437
- });
438
- b.bp("/amazonclouddirectory/2017-01-11/object/information");
439
- let body;
440
- body = JSON.stringify(take(input, {
441
- ObjectReference: (_) => _json(_),
442
- }));
443
- b.m("POST").h(headers).b(body);
444
- return b.build();
445
- };
446
- export const se_GetSchemaAsJsonCommand = async (input, context) => {
447
- const b = rb(input, context);
448
- const headers = map({}, isSerializableHeaderValue, {
449
- [_xadp]: input[_SA],
450
- });
451
- b.bp("/amazonclouddirectory/2017-01-11/schema/json");
452
- let body;
453
- b.m("POST").h(headers).b(body);
454
- return b.build();
455
- };
456
- export const se_GetTypedLinkFacetInformationCommand = async (input, context) => {
457
- const b = rb(input, context);
458
- const headers = map({}, isSerializableHeaderValue, {
459
- "content-type": "application/json",
460
- [_xadp]: input[_SA],
461
- });
462
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/get");
463
- let body;
464
- body = JSON.stringify(take(input, {
465
- Name: [],
466
- }));
467
- b.m("POST").h(headers).b(body);
468
- return b.build();
469
- };
470
- export const se_ListAppliedSchemaArnsCommand = async (input, context) => {
471
- const b = rb(input, context);
472
- const headers = {
473
- "content-type": "application/json",
474
- };
475
- b.bp("/amazonclouddirectory/2017-01-11/schema/applied");
476
- let body;
477
- body = JSON.stringify(take(input, {
478
- DirectoryArn: [],
479
- MaxResults: [],
480
- NextToken: [],
481
- SchemaArn: [],
482
- }));
483
- b.m("POST").h(headers).b(body);
484
- return b.build();
485
- };
486
- export const se_ListAttachedIndicesCommand = async (input, context) => {
487
- const b = rb(input, context);
488
- const headers = map({}, isSerializableHeaderValue, {
489
- "content-type": "application/json",
490
- [_xadp]: input[_DA],
491
- [_xacl]: input[_CL],
492
- });
493
- b.bp("/amazonclouddirectory/2017-01-11/object/indices");
494
- let body;
495
- body = JSON.stringify(take(input, {
496
- MaxResults: [],
497
- NextToken: [],
498
- TargetReference: (_) => _json(_),
499
- }));
500
- b.m("POST").h(headers).b(body);
501
- return b.build();
502
- };
503
- export const se_ListDevelopmentSchemaArnsCommand = async (input, context) => {
504
- const b = rb(input, context);
505
- const headers = {
506
- "content-type": "application/json",
507
- };
508
- b.bp("/amazonclouddirectory/2017-01-11/schema/development");
509
- let body;
510
- body = JSON.stringify(take(input, {
511
- MaxResults: [],
512
- NextToken: [],
513
- }));
514
- b.m("POST").h(headers).b(body);
515
- return b.build();
516
- };
517
- export const se_ListDirectoriesCommand = async (input, context) => {
518
- const b = rb(input, context);
519
- const headers = {
520
- "content-type": "application/json",
521
- };
522
- b.bp("/amazonclouddirectory/2017-01-11/directory/list");
523
- let body;
524
- body = JSON.stringify(take(input, {
525
- MaxResults: [],
526
- NextToken: [],
527
- state: [],
528
- }));
529
- b.m("POST").h(headers).b(body);
530
- return b.build();
531
- };
532
- export const se_ListFacetAttributesCommand = async (input, context) => {
533
- const b = rb(input, context);
534
- const headers = map({}, isSerializableHeaderValue, {
535
- "content-type": "application/json",
536
- [_xadp]: input[_SA],
537
- });
538
- b.bp("/amazonclouddirectory/2017-01-11/facet/attributes");
539
- let body;
540
- body = JSON.stringify(take(input, {
541
- MaxResults: [],
542
- Name: [],
543
- NextToken: [],
544
- }));
545
- b.m("POST").h(headers).b(body);
546
- return b.build();
547
- };
548
- export const se_ListFacetNamesCommand = async (input, context) => {
549
- const b = rb(input, context);
550
- const headers = map({}, isSerializableHeaderValue, {
551
- "content-type": "application/json",
552
- [_xadp]: input[_SA],
553
- });
554
- b.bp("/amazonclouddirectory/2017-01-11/facet/list");
555
- let body;
556
- body = JSON.stringify(take(input, {
557
- MaxResults: [],
558
- NextToken: [],
559
- }));
560
- b.m("POST").h(headers).b(body);
561
- return b.build();
562
- };
563
- export const se_ListIncomingTypedLinksCommand = async (input, context) => {
564
- const b = rb(input, context);
565
- const headers = map({}, isSerializableHeaderValue, {
566
- "content-type": "application/json",
567
- [_xadp]: input[_DA],
568
- });
569
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/incoming");
570
- let body;
571
- body = JSON.stringify(take(input, {
572
- ConsistencyLevel: [],
573
- FilterAttributeRanges: (_) => se_TypedLinkAttributeRangeList(_, context),
574
- FilterTypedLink: (_) => _json(_),
575
- MaxResults: [],
576
- NextToken: [],
577
- ObjectReference: (_) => _json(_),
578
- }));
579
- b.m("POST").h(headers).b(body);
580
- return b.build();
581
- };
582
- export const se_ListIndexCommand = async (input, context) => {
583
- const b = rb(input, context);
584
- const headers = map({}, isSerializableHeaderValue, {
585
- "content-type": "application/json",
586
- [_xadp]: input[_DA],
587
- [_xacl]: input[_CL],
588
- });
589
- b.bp("/amazonclouddirectory/2017-01-11/index/targets");
590
- let body;
591
- body = JSON.stringify(take(input, {
592
- IndexReference: (_) => _json(_),
593
- MaxResults: [],
594
- NextToken: [],
595
- RangesOnIndexedValues: (_) => se_ObjectAttributeRangeList(_, context),
596
- }));
597
- b.m("POST").h(headers).b(body);
598
- return b.build();
599
- };
600
- export const se_ListManagedSchemaArnsCommand = async (input, context) => {
601
- const b = rb(input, context);
602
- const headers = {
603
- "content-type": "application/json",
604
- };
605
- b.bp("/amazonclouddirectory/2017-01-11/schema/managed");
606
- let body;
607
- body = JSON.stringify(take(input, {
608
- MaxResults: [],
609
- NextToken: [],
610
- SchemaArn: [],
611
- }));
612
- b.m("POST").h(headers).b(body);
613
- return b.build();
614
- };
615
- export const se_ListObjectAttributesCommand = async (input, context) => {
616
- const b = rb(input, context);
617
- const headers = map({}, isSerializableHeaderValue, {
618
- "content-type": "application/json",
619
- [_xadp]: input[_DA],
620
- [_xacl]: input[_CL],
621
- });
622
- b.bp("/amazonclouddirectory/2017-01-11/object/attributes");
623
- let body;
624
- body = JSON.stringify(take(input, {
625
- FacetFilter: (_) => _json(_),
626
- MaxResults: [],
627
- NextToken: [],
628
- ObjectReference: (_) => _json(_),
629
- }));
630
- b.m("POST").h(headers).b(body);
631
- return b.build();
632
- };
633
- export const se_ListObjectChildrenCommand = async (input, context) => {
634
- const b = rb(input, context);
635
- const headers = map({}, isSerializableHeaderValue, {
636
- "content-type": "application/json",
637
- [_xadp]: input[_DA],
638
- [_xacl]: input[_CL],
639
- });
640
- b.bp("/amazonclouddirectory/2017-01-11/object/children");
641
- let body;
642
- body = JSON.stringify(take(input, {
643
- MaxResults: [],
644
- NextToken: [],
645
- ObjectReference: (_) => _json(_),
646
- }));
647
- b.m("POST").h(headers).b(body);
648
- return b.build();
649
- };
650
- export const se_ListObjectParentPathsCommand = async (input, context) => {
651
- const b = rb(input, context);
652
- const headers = map({}, isSerializableHeaderValue, {
653
- "content-type": "application/json",
654
- [_xadp]: input[_DA],
655
- });
656
- b.bp("/amazonclouddirectory/2017-01-11/object/parentpaths");
657
- let body;
658
- body = JSON.stringify(take(input, {
659
- MaxResults: [],
660
- NextToken: [],
661
- ObjectReference: (_) => _json(_),
662
- }));
663
- b.m("POST").h(headers).b(body);
664
- return b.build();
665
- };
666
- export const se_ListObjectParentsCommand = async (input, context) => {
667
- const b = rb(input, context);
668
- const headers = map({}, isSerializableHeaderValue, {
669
- "content-type": "application/json",
670
- [_xadp]: input[_DA],
671
- [_xacl]: input[_CL],
672
- });
673
- b.bp("/amazonclouddirectory/2017-01-11/object/parent");
674
- let body;
675
- body = JSON.stringify(take(input, {
676
- IncludeAllLinksToEachParent: [],
677
- MaxResults: [],
678
- NextToken: [],
679
- ObjectReference: (_) => _json(_),
680
- }));
681
- b.m("POST").h(headers).b(body);
682
- return b.build();
683
- };
684
- export const se_ListObjectPoliciesCommand = async (input, context) => {
685
- const b = rb(input, context);
686
- const headers = map({}, isSerializableHeaderValue, {
687
- "content-type": "application/json",
688
- [_xadp]: input[_DA],
689
- [_xacl]: input[_CL],
690
- });
691
- b.bp("/amazonclouddirectory/2017-01-11/object/policy");
692
- let body;
693
- body = JSON.stringify(take(input, {
694
- MaxResults: [],
695
- NextToken: [],
696
- ObjectReference: (_) => _json(_),
697
- }));
698
- b.m("POST").h(headers).b(body);
699
- return b.build();
700
- };
701
- export const se_ListOutgoingTypedLinksCommand = async (input, context) => {
702
- const b = rb(input, context);
703
- const headers = map({}, isSerializableHeaderValue, {
704
- "content-type": "application/json",
705
- [_xadp]: input[_DA],
706
- });
707
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/outgoing");
708
- let body;
709
- body = JSON.stringify(take(input, {
710
- ConsistencyLevel: [],
711
- FilterAttributeRanges: (_) => se_TypedLinkAttributeRangeList(_, context),
712
- FilterTypedLink: (_) => _json(_),
713
- MaxResults: [],
714
- NextToken: [],
715
- ObjectReference: (_) => _json(_),
716
- }));
717
- b.m("POST").h(headers).b(body);
718
- return b.build();
719
- };
720
- export const se_ListPolicyAttachmentsCommand = async (input, context) => {
721
- const b = rb(input, context);
722
- const headers = map({}, isSerializableHeaderValue, {
723
- "content-type": "application/json",
724
- [_xadp]: input[_DA],
725
- [_xacl]: input[_CL],
726
- });
727
- b.bp("/amazonclouddirectory/2017-01-11/policy/attachment");
728
- let body;
729
- body = JSON.stringify(take(input, {
730
- MaxResults: [],
731
- NextToken: [],
732
- PolicyReference: (_) => _json(_),
733
- }));
734
- b.m("POST").h(headers).b(body);
735
- return b.build();
736
- };
737
- export const se_ListPublishedSchemaArnsCommand = async (input, context) => {
738
- const b = rb(input, context);
739
- const headers = {
740
- "content-type": "application/json",
741
- };
742
- b.bp("/amazonclouddirectory/2017-01-11/schema/published");
743
- let body;
744
- body = JSON.stringify(take(input, {
745
- MaxResults: [],
746
- NextToken: [],
747
- SchemaArn: [],
748
- }));
749
- b.m("POST").h(headers).b(body);
750
- return b.build();
751
- };
752
- export const se_ListTagsForResourceCommand = async (input, context) => {
753
- const b = rb(input, context);
754
- const headers = {
755
- "content-type": "application/json",
756
- };
757
- b.bp("/amazonclouddirectory/2017-01-11/tags");
758
- let body;
759
- body = JSON.stringify(take(input, {
760
- MaxResults: [],
761
- NextToken: [],
762
- ResourceArn: [],
763
- }));
764
- b.m("POST").h(headers).b(body);
765
- return b.build();
766
- };
767
- export const se_ListTypedLinkFacetAttributesCommand = async (input, context) => {
768
- const b = rb(input, context);
769
- const headers = map({}, isSerializableHeaderValue, {
770
- "content-type": "application/json",
771
- [_xadp]: input[_SA],
772
- });
773
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/attributes");
774
- let body;
775
- body = JSON.stringify(take(input, {
776
- MaxResults: [],
777
- Name: [],
778
- NextToken: [],
779
- }));
780
- b.m("POST").h(headers).b(body);
781
- return b.build();
782
- };
783
- export const se_ListTypedLinkFacetNamesCommand = async (input, context) => {
784
- const b = rb(input, context);
785
- const headers = map({}, isSerializableHeaderValue, {
786
- "content-type": "application/json",
787
- [_xadp]: input[_SA],
788
- });
789
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/list");
790
- let body;
791
- body = JSON.stringify(take(input, {
792
- MaxResults: [],
793
- NextToken: [],
794
- }));
795
- b.m("POST").h(headers).b(body);
796
- return b.build();
797
- };
798
- export const se_LookupPolicyCommand = async (input, context) => {
799
- const b = rb(input, context);
800
- const headers = map({}, isSerializableHeaderValue, {
801
- "content-type": "application/json",
802
- [_xadp]: input[_DA],
803
- });
804
- b.bp("/amazonclouddirectory/2017-01-11/policy/lookup");
805
- let body;
806
- body = JSON.stringify(take(input, {
807
- MaxResults: [],
808
- NextToken: [],
809
- ObjectReference: (_) => _json(_),
810
- }));
811
- b.m("POST").h(headers).b(body);
812
- return b.build();
813
- };
814
- export const se_PublishSchemaCommand = async (input, context) => {
815
- const b = rb(input, context);
816
- const headers = map({}, isSerializableHeaderValue, {
817
- "content-type": "application/json",
818
- [_xadp]: input[_DSA],
819
- });
820
- b.bp("/amazonclouddirectory/2017-01-11/schema/publish");
821
- let body;
822
- body = JSON.stringify(take(input, {
823
- MinorVersion: [],
824
- Name: [],
825
- Version: [],
826
- }));
827
- b.m("PUT").h(headers).b(body);
828
- return b.build();
829
- };
830
- export const se_PutSchemaFromJsonCommand = async (input, context) => {
831
- const b = rb(input, context);
832
- const headers = map({}, isSerializableHeaderValue, {
833
- "content-type": "application/json",
834
- [_xadp]: input[_SA],
835
- });
836
- b.bp("/amazonclouddirectory/2017-01-11/schema/json");
837
- let body;
838
- body = JSON.stringify(take(input, {
839
- Document: [],
840
- }));
841
- b.m("PUT").h(headers).b(body);
842
- return b.build();
843
- };
844
- export const se_RemoveFacetFromObjectCommand = async (input, context) => {
845
- const b = rb(input, context);
846
- const headers = map({}, isSerializableHeaderValue, {
847
- "content-type": "application/json",
848
- [_xadp]: input[_DA],
849
- });
850
- b.bp("/amazonclouddirectory/2017-01-11/object/facets/delete");
851
- let body;
852
- body = JSON.stringify(take(input, {
853
- ObjectReference: (_) => _json(_),
854
- SchemaFacet: (_) => _json(_),
855
- }));
856
- b.m("PUT").h(headers).b(body);
857
- return b.build();
858
- };
859
- export const se_TagResourceCommand = async (input, context) => {
860
- const b = rb(input, context);
861
- const headers = {
862
- "content-type": "application/json",
863
- };
864
- b.bp("/amazonclouddirectory/2017-01-11/tags/add");
865
- let body;
866
- body = JSON.stringify(take(input, {
867
- ResourceArn: [],
868
- Tags: (_) => _json(_),
869
- }));
870
- b.m("PUT").h(headers).b(body);
871
- return b.build();
872
- };
873
- export const se_UntagResourceCommand = async (input, context) => {
874
- const b = rb(input, context);
875
- const headers = {
876
- "content-type": "application/json",
877
- };
878
- b.bp("/amazonclouddirectory/2017-01-11/tags/remove");
879
- let body;
880
- body = JSON.stringify(take(input, {
881
- ResourceArn: [],
882
- TagKeys: (_) => _json(_),
883
- }));
884
- b.m("PUT").h(headers).b(body);
885
- return b.build();
886
- };
887
- export const se_UpdateFacetCommand = async (input, context) => {
888
- const b = rb(input, context);
889
- const headers = map({}, isSerializableHeaderValue, {
890
- "content-type": "application/json",
891
- [_xadp]: input[_SA],
892
- });
893
- b.bp("/amazonclouddirectory/2017-01-11/facet");
894
- let body;
895
- body = JSON.stringify(take(input, {
896
- AttributeUpdates: (_) => se_FacetAttributeUpdateList(_, context),
897
- Name: [],
898
- ObjectType: [],
899
- }));
900
- b.m("PUT").h(headers).b(body);
901
- return b.build();
902
- };
903
- export const se_UpdateLinkAttributesCommand = async (input, context) => {
904
- const b = rb(input, context);
905
- const headers = map({}, isSerializableHeaderValue, {
906
- "content-type": "application/json",
907
- [_xadp]: input[_DA],
908
- });
909
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/attributes/update");
910
- let body;
911
- body = JSON.stringify(take(input, {
912
- AttributeUpdates: (_) => se_LinkAttributeUpdateList(_, context),
913
- TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context),
914
- }));
915
- b.m("POST").h(headers).b(body);
916
- return b.build();
917
- };
918
- export const se_UpdateObjectAttributesCommand = async (input, context) => {
919
- const b = rb(input, context);
920
- const headers = map({}, isSerializableHeaderValue, {
921
- "content-type": "application/json",
922
- [_xadp]: input[_DA],
923
- });
924
- b.bp("/amazonclouddirectory/2017-01-11/object/update");
925
- let body;
926
- body = JSON.stringify(take(input, {
927
- AttributeUpdates: (_) => se_ObjectAttributeUpdateList(_, context),
928
- ObjectReference: (_) => _json(_),
929
- }));
930
- b.m("PUT").h(headers).b(body);
931
- return b.build();
932
- };
933
- export const se_UpdateSchemaCommand = async (input, context) => {
934
- const b = rb(input, context);
935
- const headers = map({}, isSerializableHeaderValue, {
936
- "content-type": "application/json",
937
- [_xadp]: input[_SA],
938
- });
939
- b.bp("/amazonclouddirectory/2017-01-11/schema/update");
940
- let body;
941
- body = JSON.stringify(take(input, {
942
- Name: [],
943
- }));
944
- b.m("PUT").h(headers).b(body);
945
- return b.build();
946
- };
947
- export const se_UpdateTypedLinkFacetCommand = async (input, context) => {
948
- const b = rb(input, context);
949
- const headers = map({}, isSerializableHeaderValue, {
950
- "content-type": "application/json",
951
- [_xadp]: input[_SA],
952
- });
953
- b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet");
954
- let body;
955
- body = JSON.stringify(take(input, {
956
- AttributeUpdates: (_) => se_TypedLinkFacetAttributeUpdateList(_, context),
957
- IdentityAttributeOrder: (_) => _json(_),
958
- Name: [],
959
- }));
960
- b.m("PUT").h(headers).b(body);
961
- return b.build();
962
- };
963
- export const se_UpgradeAppliedSchemaCommand = async (input, context) => {
964
- const b = rb(input, context);
965
- const headers = {
966
- "content-type": "application/json",
967
- };
968
- b.bp("/amazonclouddirectory/2017-01-11/schema/upgradeapplied");
969
- let body;
970
- body = JSON.stringify(take(input, {
971
- DirectoryArn: [],
972
- DryRun: [],
973
- PublishedSchemaArn: [],
974
- }));
975
- b.m("PUT").h(headers).b(body);
976
- return b.build();
977
- };
978
- export const se_UpgradePublishedSchemaCommand = async (input, context) => {
979
- const b = rb(input, context);
980
- const headers = {
981
- "content-type": "application/json",
982
- };
983
- b.bp("/amazonclouddirectory/2017-01-11/schema/upgradepublished");
984
- let body;
985
- body = JSON.stringify(take(input, {
986
- DevelopmentSchemaArn: [],
987
- DryRun: [],
988
- MinorVersion: [],
989
- PublishedSchemaArn: [],
990
- }));
991
- b.m("PUT").h(headers).b(body);
992
- return b.build();
993
- };
994
- export const de_AddFacetToObjectCommand = async (output, context) => {
995
- if (output.statusCode !== 200 && output.statusCode >= 300) {
996
- return de_CommandError(output, context);
997
- }
998
- const contents = map({
999
- $metadata: deserializeMetadata(output),
1000
- });
1001
- await collectBody(output.body, context);
1002
- return contents;
1003
- };
1004
- export const de_ApplySchemaCommand = async (output, context) => {
1005
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1006
- return de_CommandError(output, context);
1007
- }
1008
- const contents = map({
1009
- $metadata: deserializeMetadata(output),
1010
- });
1011
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1012
- const doc = take(data, {
1013
- AppliedSchemaArn: __expectString,
1014
- DirectoryArn: __expectString,
1015
- });
1016
- Object.assign(contents, doc);
1017
- return contents;
1018
- };
1019
- export const de_AttachObjectCommand = async (output, context) => {
1020
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1021
- return de_CommandError(output, context);
1022
- }
1023
- const contents = map({
1024
- $metadata: deserializeMetadata(output),
1025
- });
1026
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1027
- const doc = take(data, {
1028
- AttachedObjectIdentifier: __expectString,
1029
- });
1030
- Object.assign(contents, doc);
1031
- return contents;
1032
- };
1033
- export const de_AttachPolicyCommand = async (output, context) => {
1034
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1035
- return de_CommandError(output, context);
1036
- }
1037
- const contents = map({
1038
- $metadata: deserializeMetadata(output),
1039
- });
1040
- await collectBody(output.body, context);
1041
- return contents;
1042
- };
1043
- export const de_AttachToIndexCommand = async (output, context) => {
1044
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1045
- return de_CommandError(output, context);
1046
- }
1047
- const contents = map({
1048
- $metadata: deserializeMetadata(output),
1049
- });
1050
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1051
- const doc = take(data, {
1052
- AttachedObjectIdentifier: __expectString,
1053
- });
1054
- Object.assign(contents, doc);
1055
- return contents;
1056
- };
1057
- export const de_AttachTypedLinkCommand = async (output, context) => {
1058
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1059
- return de_CommandError(output, context);
1060
- }
1061
- const contents = map({
1062
- $metadata: deserializeMetadata(output),
1063
- });
1064
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1065
- const doc = take(data, {
1066
- TypedLinkSpecifier: (_) => de_TypedLinkSpecifier(_, context),
1067
- });
1068
- Object.assign(contents, doc);
1069
- return contents;
1070
- };
1071
- export const de_BatchReadCommand = async (output, context) => {
1072
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1073
- return de_CommandError(output, context);
1074
- }
1075
- const contents = map({
1076
- $metadata: deserializeMetadata(output),
1077
- });
1078
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1079
- const doc = take(data, {
1080
- Responses: (_) => de_BatchReadOperationResponseList(_, context),
1081
- });
1082
- Object.assign(contents, doc);
1083
- return contents;
1084
- };
1085
- export const de_BatchWriteCommand = async (output, context) => {
1086
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1087
- return de_CommandError(output, context);
1088
- }
1089
- const contents = map({
1090
- $metadata: deserializeMetadata(output),
1091
- });
1092
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1093
- const doc = take(data, {
1094
- Responses: (_) => de_BatchWriteOperationResponseList(_, context),
1095
- });
1096
- Object.assign(contents, doc);
1097
- return contents;
1098
- };
1099
- export const de_CreateDirectoryCommand = async (output, context) => {
1100
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1101
- return de_CommandError(output, context);
1102
- }
1103
- const contents = map({
1104
- $metadata: deserializeMetadata(output),
1105
- });
1106
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1107
- const doc = take(data, {
1108
- AppliedSchemaArn: __expectString,
1109
- DirectoryArn: __expectString,
1110
- Name: __expectString,
1111
- ObjectIdentifier: __expectString,
1112
- });
1113
- Object.assign(contents, doc);
1114
- return contents;
1115
- };
1116
- export const de_CreateFacetCommand = async (output, context) => {
1117
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1118
- return de_CommandError(output, context);
1119
- }
1120
- const contents = map({
1121
- $metadata: deserializeMetadata(output),
1122
- });
1123
- await collectBody(output.body, context);
1124
- return contents;
1125
- };
1126
- export const de_CreateIndexCommand = async (output, context) => {
1127
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1128
- return de_CommandError(output, context);
1129
- }
1130
- const contents = map({
1131
- $metadata: deserializeMetadata(output),
1132
- });
1133
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1134
- const doc = take(data, {
1135
- ObjectIdentifier: __expectString,
1136
- });
1137
- Object.assign(contents, doc);
1138
- return contents;
1139
- };
1140
- export const de_CreateObjectCommand = async (output, context) => {
1141
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1142
- return de_CommandError(output, context);
1143
- }
1144
- const contents = map({
1145
- $metadata: deserializeMetadata(output),
1146
- });
1147
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1148
- const doc = take(data, {
1149
- ObjectIdentifier: __expectString,
1150
- });
1151
- Object.assign(contents, doc);
1152
- return contents;
1153
- };
1154
- export const de_CreateSchemaCommand = async (output, context) => {
1155
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1156
- return de_CommandError(output, context);
1157
- }
1158
- const contents = map({
1159
- $metadata: deserializeMetadata(output),
1160
- });
1161
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1162
- const doc = take(data, {
1163
- SchemaArn: __expectString,
1164
- });
1165
- Object.assign(contents, doc);
1166
- return contents;
1167
- };
1168
- export const de_CreateTypedLinkFacetCommand = async (output, context) => {
1169
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1170
- return de_CommandError(output, context);
1171
- }
1172
- const contents = map({
1173
- $metadata: deserializeMetadata(output),
1174
- });
1175
- await collectBody(output.body, context);
1176
- return contents;
1177
- };
1178
- export const de_DeleteDirectoryCommand = async (output, context) => {
1179
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1180
- return de_CommandError(output, context);
1181
- }
1182
- const contents = map({
1183
- $metadata: deserializeMetadata(output),
1184
- });
1185
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1186
- const doc = take(data, {
1187
- DirectoryArn: __expectString,
1188
- });
1189
- Object.assign(contents, doc);
1190
- return contents;
1191
- };
1192
- export const de_DeleteFacetCommand = async (output, context) => {
1193
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1194
- return de_CommandError(output, context);
1195
- }
1196
- const contents = map({
1197
- $metadata: deserializeMetadata(output),
1198
- });
1199
- await collectBody(output.body, context);
1200
- return contents;
1201
- };
1202
- export const de_DeleteObjectCommand = async (output, context) => {
1203
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1204
- return de_CommandError(output, context);
1205
- }
1206
- const contents = map({
1207
- $metadata: deserializeMetadata(output),
1208
- });
1209
- await collectBody(output.body, context);
1210
- return contents;
1211
- };
1212
- export const de_DeleteSchemaCommand = async (output, context) => {
1213
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1214
- return de_CommandError(output, context);
1215
- }
1216
- const contents = map({
1217
- $metadata: deserializeMetadata(output),
1218
- });
1219
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1220
- const doc = take(data, {
1221
- SchemaArn: __expectString,
1222
- });
1223
- Object.assign(contents, doc);
1224
- return contents;
1225
- };
1226
- export const de_DeleteTypedLinkFacetCommand = async (output, context) => {
1227
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1228
- return de_CommandError(output, context);
1229
- }
1230
- const contents = map({
1231
- $metadata: deserializeMetadata(output),
1232
- });
1233
- await collectBody(output.body, context);
1234
- return contents;
1235
- };
1236
- export const de_DetachFromIndexCommand = async (output, context) => {
1237
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1238
- return de_CommandError(output, context);
1239
- }
1240
- const contents = map({
1241
- $metadata: deserializeMetadata(output),
1242
- });
1243
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1244
- const doc = take(data, {
1245
- DetachedObjectIdentifier: __expectString,
1246
- });
1247
- Object.assign(contents, doc);
1248
- return contents;
1249
- };
1250
- export const de_DetachObjectCommand = async (output, context) => {
1251
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1252
- return de_CommandError(output, context);
1253
- }
1254
- const contents = map({
1255
- $metadata: deserializeMetadata(output),
1256
- });
1257
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1258
- const doc = take(data, {
1259
- DetachedObjectIdentifier: __expectString,
1260
- });
1261
- Object.assign(contents, doc);
1262
- return contents;
1263
- };
1264
- export const de_DetachPolicyCommand = async (output, context) => {
1265
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1266
- return de_CommandError(output, context);
1267
- }
1268
- const contents = map({
1269
- $metadata: deserializeMetadata(output),
1270
- });
1271
- await collectBody(output.body, context);
1272
- return contents;
1273
- };
1274
- export const de_DetachTypedLinkCommand = async (output, context) => {
1275
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1276
- return de_CommandError(output, context);
1277
- }
1278
- const contents = map({
1279
- $metadata: deserializeMetadata(output),
1280
- });
1281
- await collectBody(output.body, context);
1282
- return contents;
1283
- };
1284
- export const de_DisableDirectoryCommand = async (output, context) => {
1285
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1286
- return de_CommandError(output, context);
1287
- }
1288
- const contents = map({
1289
- $metadata: deserializeMetadata(output),
1290
- });
1291
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1292
- const doc = take(data, {
1293
- DirectoryArn: __expectString,
1294
- });
1295
- Object.assign(contents, doc);
1296
- return contents;
1297
- };
1298
- export const de_EnableDirectoryCommand = async (output, context) => {
1299
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1300
- return de_CommandError(output, context);
1301
- }
1302
- const contents = map({
1303
- $metadata: deserializeMetadata(output),
1304
- });
1305
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1306
- const doc = take(data, {
1307
- DirectoryArn: __expectString,
1308
- });
1309
- Object.assign(contents, doc);
1310
- return contents;
1311
- };
1312
- export const de_GetAppliedSchemaVersionCommand = async (output, context) => {
1313
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1314
- return de_CommandError(output, context);
1315
- }
1316
- const contents = map({
1317
- $metadata: deserializeMetadata(output),
1318
- });
1319
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1320
- const doc = take(data, {
1321
- AppliedSchemaArn: __expectString,
1322
- });
1323
- Object.assign(contents, doc);
1324
- return contents;
1325
- };
1326
- export const de_GetDirectoryCommand = async (output, context) => {
1327
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1328
- return de_CommandError(output, context);
1329
- }
1330
- const contents = map({
1331
- $metadata: deserializeMetadata(output),
1332
- });
1333
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1334
- const doc = take(data, {
1335
- Directory: (_) => de_Directory(_, context),
1336
- });
1337
- Object.assign(contents, doc);
1338
- return contents;
1339
- };
1340
- export const de_GetFacetCommand = async (output, context) => {
1341
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1342
- return de_CommandError(output, context);
1343
- }
1344
- const contents = map({
1345
- $metadata: deserializeMetadata(output),
1346
- });
1347
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1348
- const doc = take(data, {
1349
- Facet: _json,
1350
- });
1351
- Object.assign(contents, doc);
1352
- return contents;
1353
- };
1354
- export const de_GetLinkAttributesCommand = async (output, context) => {
1355
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1356
- return de_CommandError(output, context);
1357
- }
1358
- const contents = map({
1359
- $metadata: deserializeMetadata(output),
1360
- });
1361
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1362
- const doc = take(data, {
1363
- Attributes: (_) => de_AttributeKeyAndValueList(_, context),
1364
- });
1365
- Object.assign(contents, doc);
1366
- return contents;
1367
- };
1368
- export const de_GetObjectAttributesCommand = async (output, context) => {
1369
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1370
- return de_CommandError(output, context);
1371
- }
1372
- const contents = map({
1373
- $metadata: deserializeMetadata(output),
1374
- });
1375
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1376
- const doc = take(data, {
1377
- Attributes: (_) => de_AttributeKeyAndValueList(_, context),
1378
- });
1379
- Object.assign(contents, doc);
1380
- return contents;
1381
- };
1382
- export const de_GetObjectInformationCommand = async (output, context) => {
1383
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1384
- return de_CommandError(output, context);
1385
- }
1386
- const contents = map({
1387
- $metadata: deserializeMetadata(output),
1388
- });
1389
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1390
- const doc = take(data, {
1391
- ObjectIdentifier: __expectString,
1392
- SchemaFacets: _json,
1393
- });
1394
- Object.assign(contents, doc);
1395
- return contents;
1396
- };
1397
- export const de_GetSchemaAsJsonCommand = async (output, context) => {
1398
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1399
- return de_CommandError(output, context);
1400
- }
1401
- const contents = map({
1402
- $metadata: deserializeMetadata(output),
1403
- });
1404
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1405
- const doc = take(data, {
1406
- Document: __expectString,
1407
- Name: __expectString,
1408
- });
1409
- Object.assign(contents, doc);
1410
- return contents;
1411
- };
1412
- export const de_GetTypedLinkFacetInformationCommand = async (output, context) => {
1413
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1414
- return de_CommandError(output, context);
1415
- }
1416
- const contents = map({
1417
- $metadata: deserializeMetadata(output),
1418
- });
1419
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1420
- const doc = take(data, {
1421
- IdentityAttributeOrder: _json,
1422
- });
1423
- Object.assign(contents, doc);
1424
- return contents;
1425
- };
1426
- export const de_ListAppliedSchemaArnsCommand = async (output, context) => {
1427
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1428
- return de_CommandError(output, context);
1429
- }
1430
- const contents = map({
1431
- $metadata: deserializeMetadata(output),
1432
- });
1433
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1434
- const doc = take(data, {
1435
- NextToken: __expectString,
1436
- SchemaArns: _json,
1437
- });
1438
- Object.assign(contents, doc);
1439
- return contents;
1440
- };
1441
- export const de_ListAttachedIndicesCommand = async (output, context) => {
1442
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1443
- return de_CommandError(output, context);
1444
- }
1445
- const contents = map({
1446
- $metadata: deserializeMetadata(output),
1447
- });
1448
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1449
- const doc = take(data, {
1450
- IndexAttachments: (_) => de_IndexAttachmentList(_, context),
1451
- NextToken: __expectString,
1452
- });
1453
- Object.assign(contents, doc);
1454
- return contents;
1455
- };
1456
- export const de_ListDevelopmentSchemaArnsCommand = async (output, context) => {
1457
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1458
- return de_CommandError(output, context);
1459
- }
1460
- const contents = map({
1461
- $metadata: deserializeMetadata(output),
1462
- });
1463
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1464
- const doc = take(data, {
1465
- NextToken: __expectString,
1466
- SchemaArns: _json,
1467
- });
1468
- Object.assign(contents, doc);
1469
- return contents;
1470
- };
1471
- export const de_ListDirectoriesCommand = async (output, context) => {
1472
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1473
- return de_CommandError(output, context);
1474
- }
1475
- const contents = map({
1476
- $metadata: deserializeMetadata(output),
1477
- });
1478
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1479
- const doc = take(data, {
1480
- Directories: (_) => de_DirectoryList(_, context),
1481
- NextToken: __expectString,
1482
- });
1483
- Object.assign(contents, doc);
1484
- return contents;
1485
- };
1486
- export const de_ListFacetAttributesCommand = async (output, context) => {
1487
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1488
- return de_CommandError(output, context);
1489
- }
1490
- const contents = map({
1491
- $metadata: deserializeMetadata(output),
1492
- });
1493
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1494
- const doc = take(data, {
1495
- Attributes: (_) => de_FacetAttributeList(_, context),
1496
- NextToken: __expectString,
1497
- });
1498
- Object.assign(contents, doc);
1499
- return contents;
1500
- };
1501
- export const de_ListFacetNamesCommand = async (output, context) => {
1502
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1503
- return de_CommandError(output, context);
1504
- }
1505
- const contents = map({
1506
- $metadata: deserializeMetadata(output),
1507
- });
1508
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1509
- const doc = take(data, {
1510
- FacetNames: _json,
1511
- NextToken: __expectString,
1512
- });
1513
- Object.assign(contents, doc);
1514
- return contents;
1515
- };
1516
- export const de_ListIncomingTypedLinksCommand = async (output, context) => {
1517
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1518
- return de_CommandError(output, context);
1519
- }
1520
- const contents = map({
1521
- $metadata: deserializeMetadata(output),
1522
- });
1523
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1524
- const doc = take(data, {
1525
- LinkSpecifiers: (_) => de_TypedLinkSpecifierList(_, context),
1526
- NextToken: __expectString,
1527
- });
1528
- Object.assign(contents, doc);
1529
- return contents;
1530
- };
1531
- export const de_ListIndexCommand = async (output, context) => {
1532
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1533
- return de_CommandError(output, context);
1534
- }
1535
- const contents = map({
1536
- $metadata: deserializeMetadata(output),
1537
- });
1538
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1539
- const doc = take(data, {
1540
- IndexAttachments: (_) => de_IndexAttachmentList(_, context),
1541
- NextToken: __expectString,
1542
- });
1543
- Object.assign(contents, doc);
1544
- return contents;
1545
- };
1546
- export const de_ListManagedSchemaArnsCommand = async (output, context) => {
1547
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1548
- return de_CommandError(output, context);
1549
- }
1550
- const contents = map({
1551
- $metadata: deserializeMetadata(output),
1552
- });
1553
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1554
- const doc = take(data, {
1555
- NextToken: __expectString,
1556
- SchemaArns: _json,
1557
- });
1558
- Object.assign(contents, doc);
1559
- return contents;
1560
- };
1561
- export const de_ListObjectAttributesCommand = async (output, context) => {
1562
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1563
- return de_CommandError(output, context);
1564
- }
1565
- const contents = map({
1566
- $metadata: deserializeMetadata(output),
1567
- });
1568
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1569
- const doc = take(data, {
1570
- Attributes: (_) => de_AttributeKeyAndValueList(_, context),
1571
- NextToken: __expectString,
1572
- });
1573
- Object.assign(contents, doc);
1574
- return contents;
1575
- };
1576
- export const de_ListObjectChildrenCommand = async (output, context) => {
1577
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1578
- return de_CommandError(output, context);
1579
- }
1580
- const contents = map({
1581
- $metadata: deserializeMetadata(output),
1582
- });
1583
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1584
- const doc = take(data, {
1585
- Children: _json,
1586
- NextToken: __expectString,
1587
- });
1588
- Object.assign(contents, doc);
1589
- return contents;
1590
- };
1591
- export const de_ListObjectParentPathsCommand = async (output, context) => {
1592
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1593
- return de_CommandError(output, context);
1594
- }
1595
- const contents = map({
1596
- $metadata: deserializeMetadata(output),
1597
- });
1598
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1599
- const doc = take(data, {
1600
- NextToken: __expectString,
1601
- PathToObjectIdentifiersList: _json,
1602
- });
1603
- Object.assign(contents, doc);
1604
- return contents;
1605
- };
1606
- export const de_ListObjectParentsCommand = async (output, context) => {
1607
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1608
- return de_CommandError(output, context);
1609
- }
1610
- const contents = map({
1611
- $metadata: deserializeMetadata(output),
1612
- });
1613
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1614
- const doc = take(data, {
1615
- NextToken: __expectString,
1616
- ParentLinks: _json,
1617
- Parents: _json,
1618
- });
1619
- Object.assign(contents, doc);
1620
- return contents;
1621
- };
1622
- export const de_ListObjectPoliciesCommand = async (output, context) => {
1623
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1624
- return de_CommandError(output, context);
1625
- }
1626
- const contents = map({
1627
- $metadata: deserializeMetadata(output),
1628
- });
1629
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1630
- const doc = take(data, {
1631
- AttachedPolicyIds: _json,
1632
- NextToken: __expectString,
1633
- });
1634
- Object.assign(contents, doc);
1635
- return contents;
1636
- };
1637
- export const de_ListOutgoingTypedLinksCommand = async (output, context) => {
1638
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1639
- return de_CommandError(output, context);
1640
- }
1641
- const contents = map({
1642
- $metadata: deserializeMetadata(output),
1643
- });
1644
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1645
- const doc = take(data, {
1646
- NextToken: __expectString,
1647
- TypedLinkSpecifiers: (_) => de_TypedLinkSpecifierList(_, context),
1648
- });
1649
- Object.assign(contents, doc);
1650
- return contents;
1651
- };
1652
- export const de_ListPolicyAttachmentsCommand = async (output, context) => {
1653
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1654
- return de_CommandError(output, context);
1655
- }
1656
- const contents = map({
1657
- $metadata: deserializeMetadata(output),
1658
- });
1659
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1660
- const doc = take(data, {
1661
- NextToken: __expectString,
1662
- ObjectIdentifiers: _json,
1663
- });
1664
- Object.assign(contents, doc);
1665
- return contents;
1666
- };
1667
- export const de_ListPublishedSchemaArnsCommand = async (output, context) => {
1668
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1669
- return de_CommandError(output, context);
1670
- }
1671
- const contents = map({
1672
- $metadata: deserializeMetadata(output),
1673
- });
1674
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1675
- const doc = take(data, {
1676
- NextToken: __expectString,
1677
- SchemaArns: _json,
1678
- });
1679
- Object.assign(contents, doc);
1680
- return contents;
1681
- };
1682
- export const de_ListTagsForResourceCommand = async (output, context) => {
1683
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1684
- return de_CommandError(output, context);
1685
- }
1686
- const contents = map({
1687
- $metadata: deserializeMetadata(output),
1688
- });
1689
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1690
- const doc = take(data, {
1691
- NextToken: __expectString,
1692
- Tags: _json,
1693
- });
1694
- Object.assign(contents, doc);
1695
- return contents;
1696
- };
1697
- export const de_ListTypedLinkFacetAttributesCommand = async (output, context) => {
1698
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1699
- return de_CommandError(output, context);
1700
- }
1701
- const contents = map({
1702
- $metadata: deserializeMetadata(output),
1703
- });
1704
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1705
- const doc = take(data, {
1706
- Attributes: (_) => de_TypedLinkAttributeDefinitionList(_, context),
1707
- NextToken: __expectString,
1708
- });
1709
- Object.assign(contents, doc);
1710
- return contents;
1711
- };
1712
- export const de_ListTypedLinkFacetNamesCommand = async (output, context) => {
1713
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1714
- return de_CommandError(output, context);
1715
- }
1716
- const contents = map({
1717
- $metadata: deserializeMetadata(output),
1718
- });
1719
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1720
- const doc = take(data, {
1721
- FacetNames: _json,
1722
- NextToken: __expectString,
1723
- });
1724
- Object.assign(contents, doc);
1725
- return contents;
1726
- };
1727
- export const de_LookupPolicyCommand = async (output, context) => {
1728
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1729
- return de_CommandError(output, context);
1730
- }
1731
- const contents = map({
1732
- $metadata: deserializeMetadata(output),
1733
- });
1734
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1735
- const doc = take(data, {
1736
- NextToken: __expectString,
1737
- PolicyToPathList: _json,
1738
- });
1739
- Object.assign(contents, doc);
1740
- return contents;
1741
- };
1742
- export const de_PublishSchemaCommand = async (output, context) => {
1743
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1744
- return de_CommandError(output, context);
1745
- }
1746
- const contents = map({
1747
- $metadata: deserializeMetadata(output),
1748
- });
1749
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1750
- const doc = take(data, {
1751
- PublishedSchemaArn: __expectString,
1752
- });
1753
- Object.assign(contents, doc);
1754
- return contents;
1755
- };
1756
- export const de_PutSchemaFromJsonCommand = async (output, context) => {
1757
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1758
- return de_CommandError(output, context);
1759
- }
1760
- const contents = map({
1761
- $metadata: deserializeMetadata(output),
1762
- });
1763
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1764
- const doc = take(data, {
1765
- Arn: __expectString,
1766
- });
1767
- Object.assign(contents, doc);
1768
- return contents;
1769
- };
1770
- export const de_RemoveFacetFromObjectCommand = async (output, context) => {
1771
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1772
- return de_CommandError(output, context);
1773
- }
1774
- const contents = map({
1775
- $metadata: deserializeMetadata(output),
1776
- });
1777
- await collectBody(output.body, context);
1778
- return contents;
1779
- };
1780
- export const de_TagResourceCommand = async (output, context) => {
1781
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1782
- return de_CommandError(output, context);
1783
- }
1784
- const contents = map({
1785
- $metadata: deserializeMetadata(output),
1786
- });
1787
- await collectBody(output.body, context);
1788
- return contents;
1789
- };
1790
- export const de_UntagResourceCommand = async (output, context) => {
1791
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1792
- return de_CommandError(output, context);
1793
- }
1794
- const contents = map({
1795
- $metadata: deserializeMetadata(output),
1796
- });
1797
- await collectBody(output.body, context);
1798
- return contents;
1799
- };
1800
- export const de_UpdateFacetCommand = async (output, context) => {
1801
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1802
- return de_CommandError(output, context);
1803
- }
1804
- const contents = map({
1805
- $metadata: deserializeMetadata(output),
1806
- });
1807
- await collectBody(output.body, context);
1808
- return contents;
1809
- };
1810
- export const de_UpdateLinkAttributesCommand = async (output, context) => {
1811
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1812
- return de_CommandError(output, context);
1813
- }
1814
- const contents = map({
1815
- $metadata: deserializeMetadata(output),
1816
- });
1817
- await collectBody(output.body, context);
1818
- return contents;
1819
- };
1820
- export const de_UpdateObjectAttributesCommand = async (output, context) => {
1821
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1822
- return de_CommandError(output, context);
1823
- }
1824
- const contents = map({
1825
- $metadata: deserializeMetadata(output),
1826
- });
1827
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1828
- const doc = take(data, {
1829
- ObjectIdentifier: __expectString,
1830
- });
1831
- Object.assign(contents, doc);
1832
- return contents;
1833
- };
1834
- export const de_UpdateSchemaCommand = async (output, context) => {
1835
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1836
- return de_CommandError(output, context);
1837
- }
1838
- const contents = map({
1839
- $metadata: deserializeMetadata(output),
1840
- });
1841
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1842
- const doc = take(data, {
1843
- SchemaArn: __expectString,
1844
- });
1845
- Object.assign(contents, doc);
1846
- return contents;
1847
- };
1848
- export const de_UpdateTypedLinkFacetCommand = async (output, context) => {
1849
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1850
- return de_CommandError(output, context);
1851
- }
1852
- const contents = map({
1853
- $metadata: deserializeMetadata(output),
1854
- });
1855
- await collectBody(output.body, context);
1856
- return contents;
1857
- };
1858
- export const de_UpgradeAppliedSchemaCommand = async (output, context) => {
1859
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1860
- return de_CommandError(output, context);
1861
- }
1862
- const contents = map({
1863
- $metadata: deserializeMetadata(output),
1864
- });
1865
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1866
- const doc = take(data, {
1867
- DirectoryArn: __expectString,
1868
- UpgradedSchemaArn: __expectString,
1869
- });
1870
- Object.assign(contents, doc);
1871
- return contents;
1872
- };
1873
- export const de_UpgradePublishedSchemaCommand = async (output, context) => {
1874
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1875
- return de_CommandError(output, context);
1876
- }
1877
- const contents = map({
1878
- $metadata: deserializeMetadata(output),
1879
- });
1880
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1881
- const doc = take(data, {
1882
- UpgradedSchemaArn: __expectString,
1883
- });
1884
- Object.assign(contents, doc);
1885
- return contents;
1886
- };
1887
- const de_CommandError = async (output, context) => {
1888
- const parsedOutput = {
1889
- ...output,
1890
- body: await parseErrorBody(output.body, context),
1891
- };
1892
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1893
- switch (errorCode) {
1894
- case "AccessDeniedException":
1895
- case "com.amazonaws.clouddirectory#AccessDeniedException":
1896
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1897
- case "DirectoryNotEnabledException":
1898
- case "com.amazonaws.clouddirectory#DirectoryNotEnabledException":
1899
- throw await de_DirectoryNotEnabledExceptionRes(parsedOutput, context);
1900
- case "FacetValidationException":
1901
- case "com.amazonaws.clouddirectory#FacetValidationException":
1902
- throw await de_FacetValidationExceptionRes(parsedOutput, context);
1903
- case "InternalServiceException":
1904
- case "com.amazonaws.clouddirectory#InternalServiceException":
1905
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1906
- case "InvalidArnException":
1907
- case "com.amazonaws.clouddirectory#InvalidArnException":
1908
- throw await de_InvalidArnExceptionRes(parsedOutput, context);
1909
- case "LimitExceededException":
1910
- case "com.amazonaws.clouddirectory#LimitExceededException":
1911
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1912
- case "ResourceNotFoundException":
1913
- case "com.amazonaws.clouddirectory#ResourceNotFoundException":
1914
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1915
- case "RetryableConflictException":
1916
- case "com.amazonaws.clouddirectory#RetryableConflictException":
1917
- throw await de_RetryableConflictExceptionRes(parsedOutput, context);
1918
- case "ValidationException":
1919
- case "com.amazonaws.clouddirectory#ValidationException":
1920
- throw await de_ValidationExceptionRes(parsedOutput, context);
1921
- case "InvalidAttachmentException":
1922
- case "com.amazonaws.clouddirectory#InvalidAttachmentException":
1923
- throw await de_InvalidAttachmentExceptionRes(parsedOutput, context);
1924
- case "SchemaAlreadyExistsException":
1925
- case "com.amazonaws.clouddirectory#SchemaAlreadyExistsException":
1926
- throw await de_SchemaAlreadyExistsExceptionRes(parsedOutput, context);
1927
- case "LinkNameAlreadyInUseException":
1928
- case "com.amazonaws.clouddirectory#LinkNameAlreadyInUseException":
1929
- throw await de_LinkNameAlreadyInUseExceptionRes(parsedOutput, context);
1930
- case "NotPolicyException":
1931
- case "com.amazonaws.clouddirectory#NotPolicyException":
1932
- throw await de_NotPolicyExceptionRes(parsedOutput, context);
1933
- case "IndexedAttributeMissingException":
1934
- case "com.amazonaws.clouddirectory#IndexedAttributeMissingException":
1935
- throw await de_IndexedAttributeMissingExceptionRes(parsedOutput, context);
1936
- case "NotIndexException":
1937
- case "com.amazonaws.clouddirectory#NotIndexException":
1938
- throw await de_NotIndexExceptionRes(parsedOutput, context);
1939
- case "BatchWriteException":
1940
- case "com.amazonaws.clouddirectory#BatchWriteException":
1941
- throw await de_BatchWriteExceptionRes(parsedOutput, context);
1942
- case "DirectoryAlreadyExistsException":
1943
- case "com.amazonaws.clouddirectory#DirectoryAlreadyExistsException":
1944
- throw await de_DirectoryAlreadyExistsExceptionRes(parsedOutput, context);
1945
- case "FacetAlreadyExistsException":
1946
- case "com.amazonaws.clouddirectory#FacetAlreadyExistsException":
1947
- throw await de_FacetAlreadyExistsExceptionRes(parsedOutput, context);
1948
- case "InvalidRuleException":
1949
- case "com.amazonaws.clouddirectory#InvalidRuleException":
1950
- throw await de_InvalidRuleExceptionRes(parsedOutput, context);
1951
- case "UnsupportedIndexTypeException":
1952
- case "com.amazonaws.clouddirectory#UnsupportedIndexTypeException":
1953
- throw await de_UnsupportedIndexTypeExceptionRes(parsedOutput, context);
1954
- case "DirectoryDeletedException":
1955
- case "com.amazonaws.clouddirectory#DirectoryDeletedException":
1956
- throw await de_DirectoryDeletedExceptionRes(parsedOutput, context);
1957
- case "DirectoryNotDisabledException":
1958
- case "com.amazonaws.clouddirectory#DirectoryNotDisabledException":
1959
- throw await de_DirectoryNotDisabledExceptionRes(parsedOutput, context);
1960
- case "FacetInUseException":
1961
- case "com.amazonaws.clouddirectory#FacetInUseException":
1962
- throw await de_FacetInUseExceptionRes(parsedOutput, context);
1963
- case "FacetNotFoundException":
1964
- case "com.amazonaws.clouddirectory#FacetNotFoundException":
1965
- throw await de_FacetNotFoundExceptionRes(parsedOutput, context);
1966
- case "ObjectNotDetachedException":
1967
- case "com.amazonaws.clouddirectory#ObjectNotDetachedException":
1968
- throw await de_ObjectNotDetachedExceptionRes(parsedOutput, context);
1969
- case "StillContainsLinksException":
1970
- case "com.amazonaws.clouddirectory#StillContainsLinksException":
1971
- throw await de_StillContainsLinksExceptionRes(parsedOutput, context);
1972
- case "ObjectAlreadyDetachedException":
1973
- case "com.amazonaws.clouddirectory#ObjectAlreadyDetachedException":
1974
- throw await de_ObjectAlreadyDetachedExceptionRes(parsedOutput, context);
1975
- case "NotNodeException":
1976
- case "com.amazonaws.clouddirectory#NotNodeException":
1977
- throw await de_NotNodeExceptionRes(parsedOutput, context);
1978
- case "InvalidNextTokenException":
1979
- case "com.amazonaws.clouddirectory#InvalidNextTokenException":
1980
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1981
- case "CannotListParentOfRootException":
1982
- case "com.amazonaws.clouddirectory#CannotListParentOfRootException":
1983
- throw await de_CannotListParentOfRootExceptionRes(parsedOutput, context);
1984
- case "InvalidTaggingRequestException":
1985
- case "com.amazonaws.clouddirectory#InvalidTaggingRequestException":
1986
- throw await de_InvalidTaggingRequestExceptionRes(parsedOutput, context);
1987
- case "SchemaAlreadyPublishedException":
1988
- case "com.amazonaws.clouddirectory#SchemaAlreadyPublishedException":
1989
- throw await de_SchemaAlreadyPublishedExceptionRes(parsedOutput, context);
1990
- case "InvalidSchemaDocException":
1991
- case "com.amazonaws.clouddirectory#InvalidSchemaDocException":
1992
- throw await de_InvalidSchemaDocExceptionRes(parsedOutput, context);
1993
- case "InvalidFacetUpdateException":
1994
- case "com.amazonaws.clouddirectory#InvalidFacetUpdateException":
1995
- throw await de_InvalidFacetUpdateExceptionRes(parsedOutput, context);
1996
- case "IncompatibleSchemaException":
1997
- case "com.amazonaws.clouddirectory#IncompatibleSchemaException":
1998
- throw await de_IncompatibleSchemaExceptionRes(parsedOutput, context);
1999
- default:
2000
- const parsedBody = parsedOutput.body;
2001
- return throwDefaultError({
2002
- output,
2003
- parsedBody,
2004
- errorCode,
2005
- });
2006
- }
2007
- };
2008
- const throwDefaultError = withBaseException(__BaseException);
2009
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2010
- const contents = map({});
2011
- const data = parsedOutput.body;
2012
- const doc = take(data, {
2013
- Message: __expectString,
2014
- });
2015
- Object.assign(contents, doc);
2016
- const exception = new AccessDeniedException({
2017
- $metadata: deserializeMetadata(parsedOutput),
2018
- ...contents,
2019
- });
2020
- return __decorateServiceException(exception, parsedOutput.body);
2021
- };
2022
- const de_BatchWriteExceptionRes = async (parsedOutput, context) => {
2023
- const contents = map({});
2024
- const data = parsedOutput.body;
2025
- const doc = take(data, {
2026
- Index: __expectInt32,
2027
- Message: __expectString,
2028
- Type: __expectString,
2029
- });
2030
- Object.assign(contents, doc);
2031
- const exception = new BatchWriteException({
2032
- $metadata: deserializeMetadata(parsedOutput),
2033
- ...contents,
2034
- });
2035
- return __decorateServiceException(exception, parsedOutput.body);
2036
- };
2037
- const de_CannotListParentOfRootExceptionRes = async (parsedOutput, context) => {
2038
- const contents = map({});
2039
- const data = parsedOutput.body;
2040
- const doc = take(data, {
2041
- Message: __expectString,
2042
- });
2043
- Object.assign(contents, doc);
2044
- const exception = new CannotListParentOfRootException({
2045
- $metadata: deserializeMetadata(parsedOutput),
2046
- ...contents,
2047
- });
2048
- return __decorateServiceException(exception, parsedOutput.body);
2049
- };
2050
- const de_DirectoryAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2051
- const contents = map({});
2052
- const data = parsedOutput.body;
2053
- const doc = take(data, {
2054
- Message: __expectString,
2055
- });
2056
- Object.assign(contents, doc);
2057
- const exception = new DirectoryAlreadyExistsException({
2058
- $metadata: deserializeMetadata(parsedOutput),
2059
- ...contents,
2060
- });
2061
- return __decorateServiceException(exception, parsedOutput.body);
2062
- };
2063
- const de_DirectoryDeletedExceptionRes = async (parsedOutput, context) => {
2064
- const contents = map({});
2065
- const data = parsedOutput.body;
2066
- const doc = take(data, {
2067
- Message: __expectString,
2068
- });
2069
- Object.assign(contents, doc);
2070
- const exception = new DirectoryDeletedException({
2071
- $metadata: deserializeMetadata(parsedOutput),
2072
- ...contents,
2073
- });
2074
- return __decorateServiceException(exception, parsedOutput.body);
2075
- };
2076
- const de_DirectoryNotDisabledExceptionRes = async (parsedOutput, context) => {
2077
- const contents = map({});
2078
- const data = parsedOutput.body;
2079
- const doc = take(data, {
2080
- Message: __expectString,
2081
- });
2082
- Object.assign(contents, doc);
2083
- const exception = new DirectoryNotDisabledException({
2084
- $metadata: deserializeMetadata(parsedOutput),
2085
- ...contents,
2086
- });
2087
- return __decorateServiceException(exception, parsedOutput.body);
2088
- };
2089
- const de_DirectoryNotEnabledExceptionRes = async (parsedOutput, context) => {
2090
- const contents = map({});
2091
- const data = parsedOutput.body;
2092
- const doc = take(data, {
2093
- Message: __expectString,
2094
- });
2095
- Object.assign(contents, doc);
2096
- const exception = new DirectoryNotEnabledException({
2097
- $metadata: deserializeMetadata(parsedOutput),
2098
- ...contents,
2099
- });
2100
- return __decorateServiceException(exception, parsedOutput.body);
2101
- };
2102
- const de_FacetAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2103
- const contents = map({});
2104
- const data = parsedOutput.body;
2105
- const doc = take(data, {
2106
- Message: __expectString,
2107
- });
2108
- Object.assign(contents, doc);
2109
- const exception = new FacetAlreadyExistsException({
2110
- $metadata: deserializeMetadata(parsedOutput),
2111
- ...contents,
2112
- });
2113
- return __decorateServiceException(exception, parsedOutput.body);
2114
- };
2115
- const de_FacetInUseExceptionRes = async (parsedOutput, context) => {
2116
- const contents = map({});
2117
- const data = parsedOutput.body;
2118
- const doc = take(data, {
2119
- Message: __expectString,
2120
- });
2121
- Object.assign(contents, doc);
2122
- const exception = new FacetInUseException({
2123
- $metadata: deserializeMetadata(parsedOutput),
2124
- ...contents,
2125
- });
2126
- return __decorateServiceException(exception, parsedOutput.body);
2127
- };
2128
- const de_FacetNotFoundExceptionRes = async (parsedOutput, context) => {
2129
- const contents = map({});
2130
- const data = parsedOutput.body;
2131
- const doc = take(data, {
2132
- Message: __expectString,
2133
- });
2134
- Object.assign(contents, doc);
2135
- const exception = new FacetNotFoundException({
2136
- $metadata: deserializeMetadata(parsedOutput),
2137
- ...contents,
2138
- });
2139
- return __decorateServiceException(exception, parsedOutput.body);
2140
- };
2141
- const de_FacetValidationExceptionRes = async (parsedOutput, context) => {
2142
- const contents = map({});
2143
- const data = parsedOutput.body;
2144
- const doc = take(data, {
2145
- Message: __expectString,
2146
- });
2147
- Object.assign(contents, doc);
2148
- const exception = new FacetValidationException({
2149
- $metadata: deserializeMetadata(parsedOutput),
2150
- ...contents,
2151
- });
2152
- return __decorateServiceException(exception, parsedOutput.body);
2153
- };
2154
- const de_IncompatibleSchemaExceptionRes = async (parsedOutput, context) => {
2155
- const contents = map({});
2156
- const data = parsedOutput.body;
2157
- const doc = take(data, {
2158
- Message: __expectString,
2159
- });
2160
- Object.assign(contents, doc);
2161
- const exception = new IncompatibleSchemaException({
2162
- $metadata: deserializeMetadata(parsedOutput),
2163
- ...contents,
2164
- });
2165
- return __decorateServiceException(exception, parsedOutput.body);
2166
- };
2167
- const de_IndexedAttributeMissingExceptionRes = async (parsedOutput, context) => {
2168
- const contents = map({});
2169
- const data = parsedOutput.body;
2170
- const doc = take(data, {
2171
- Message: __expectString,
2172
- });
2173
- Object.assign(contents, doc);
2174
- const exception = new IndexedAttributeMissingException({
2175
- $metadata: deserializeMetadata(parsedOutput),
2176
- ...contents,
2177
- });
2178
- return __decorateServiceException(exception, parsedOutput.body);
2179
- };
2180
- const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
2181
- const contents = map({});
2182
- const data = parsedOutput.body;
2183
- const doc = take(data, {
2184
- Message: __expectString,
2185
- });
2186
- Object.assign(contents, doc);
2187
- const exception = new InternalServiceException({
2188
- $metadata: deserializeMetadata(parsedOutput),
2189
- ...contents,
2190
- });
2191
- return __decorateServiceException(exception, parsedOutput.body);
2192
- };
2193
- const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
2194
- const contents = map({});
2195
- const data = parsedOutput.body;
2196
- const doc = take(data, {
2197
- Message: __expectString,
2198
- });
2199
- Object.assign(contents, doc);
2200
- const exception = new InvalidArnException({
2201
- $metadata: deserializeMetadata(parsedOutput),
2202
- ...contents,
2203
- });
2204
- return __decorateServiceException(exception, parsedOutput.body);
2205
- };
2206
- const de_InvalidAttachmentExceptionRes = async (parsedOutput, context) => {
2207
- const contents = map({});
2208
- const data = parsedOutput.body;
2209
- const doc = take(data, {
2210
- Message: __expectString,
2211
- });
2212
- Object.assign(contents, doc);
2213
- const exception = new InvalidAttachmentException({
2214
- $metadata: deserializeMetadata(parsedOutput),
2215
- ...contents,
2216
- });
2217
- return __decorateServiceException(exception, parsedOutput.body);
2218
- };
2219
- const de_InvalidFacetUpdateExceptionRes = async (parsedOutput, context) => {
2220
- const contents = map({});
2221
- const data = parsedOutput.body;
2222
- const doc = take(data, {
2223
- Message: __expectString,
2224
- });
2225
- Object.assign(contents, doc);
2226
- const exception = new InvalidFacetUpdateException({
2227
- $metadata: deserializeMetadata(parsedOutput),
2228
- ...contents,
2229
- });
2230
- return __decorateServiceException(exception, parsedOutput.body);
2231
- };
2232
- const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
2233
- const contents = map({});
2234
- const data = parsedOutput.body;
2235
- const doc = take(data, {
2236
- Message: __expectString,
2237
- });
2238
- Object.assign(contents, doc);
2239
- const exception = new InvalidNextTokenException({
2240
- $metadata: deserializeMetadata(parsedOutput),
2241
- ...contents,
2242
- });
2243
- return __decorateServiceException(exception, parsedOutput.body);
2244
- };
2245
- const de_InvalidRuleExceptionRes = async (parsedOutput, context) => {
2246
- const contents = map({});
2247
- const data = parsedOutput.body;
2248
- const doc = take(data, {
2249
- Message: __expectString,
2250
- });
2251
- Object.assign(contents, doc);
2252
- const exception = new InvalidRuleException({
2253
- $metadata: deserializeMetadata(parsedOutput),
2254
- ...contents,
2255
- });
2256
- return __decorateServiceException(exception, parsedOutput.body);
2257
- };
2258
- const de_InvalidSchemaDocExceptionRes = async (parsedOutput, context) => {
2259
- const contents = map({});
2260
- const data = parsedOutput.body;
2261
- const doc = take(data, {
2262
- Message: __expectString,
2263
- });
2264
- Object.assign(contents, doc);
2265
- const exception = new InvalidSchemaDocException({
2266
- $metadata: deserializeMetadata(parsedOutput),
2267
- ...contents,
2268
- });
2269
- return __decorateServiceException(exception, parsedOutput.body);
2270
- };
2271
- const de_InvalidTaggingRequestExceptionRes = async (parsedOutput, context) => {
2272
- const contents = map({});
2273
- const data = parsedOutput.body;
2274
- const doc = take(data, {
2275
- Message: __expectString,
2276
- });
2277
- Object.assign(contents, doc);
2278
- const exception = new InvalidTaggingRequestException({
2279
- $metadata: deserializeMetadata(parsedOutput),
2280
- ...contents,
2281
- });
2282
- return __decorateServiceException(exception, parsedOutput.body);
2283
- };
2284
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2285
- const contents = map({});
2286
- const data = parsedOutput.body;
2287
- const doc = take(data, {
2288
- Message: __expectString,
2289
- });
2290
- Object.assign(contents, doc);
2291
- const exception = new LimitExceededException({
2292
- $metadata: deserializeMetadata(parsedOutput),
2293
- ...contents,
2294
- });
2295
- return __decorateServiceException(exception, parsedOutput.body);
2296
- };
2297
- const de_LinkNameAlreadyInUseExceptionRes = async (parsedOutput, context) => {
2298
- const contents = map({});
2299
- const data = parsedOutput.body;
2300
- const doc = take(data, {
2301
- Message: __expectString,
2302
- });
2303
- Object.assign(contents, doc);
2304
- const exception = new LinkNameAlreadyInUseException({
2305
- $metadata: deserializeMetadata(parsedOutput),
2306
- ...contents,
2307
- });
2308
- return __decorateServiceException(exception, parsedOutput.body);
2309
- };
2310
- const de_NotIndexExceptionRes = async (parsedOutput, context) => {
2311
- const contents = map({});
2312
- const data = parsedOutput.body;
2313
- const doc = take(data, {
2314
- Message: __expectString,
2315
- });
2316
- Object.assign(contents, doc);
2317
- const exception = new NotIndexException({
2318
- $metadata: deserializeMetadata(parsedOutput),
2319
- ...contents,
2320
- });
2321
- return __decorateServiceException(exception, parsedOutput.body);
2322
- };
2323
- const de_NotNodeExceptionRes = async (parsedOutput, context) => {
2324
- const contents = map({});
2325
- const data = parsedOutput.body;
2326
- const doc = take(data, {
2327
- Message: __expectString,
2328
- });
2329
- Object.assign(contents, doc);
2330
- const exception = new NotNodeException({
2331
- $metadata: deserializeMetadata(parsedOutput),
2332
- ...contents,
2333
- });
2334
- return __decorateServiceException(exception, parsedOutput.body);
2335
- };
2336
- const de_NotPolicyExceptionRes = async (parsedOutput, context) => {
2337
- const contents = map({});
2338
- const data = parsedOutput.body;
2339
- const doc = take(data, {
2340
- Message: __expectString,
2341
- });
2342
- Object.assign(contents, doc);
2343
- const exception = new NotPolicyException({
2344
- $metadata: deserializeMetadata(parsedOutput),
2345
- ...contents,
2346
- });
2347
- return __decorateServiceException(exception, parsedOutput.body);
2348
- };
2349
- const de_ObjectAlreadyDetachedExceptionRes = async (parsedOutput, context) => {
2350
- const contents = map({});
2351
- const data = parsedOutput.body;
2352
- const doc = take(data, {
2353
- Message: __expectString,
2354
- });
2355
- Object.assign(contents, doc);
2356
- const exception = new ObjectAlreadyDetachedException({
2357
- $metadata: deserializeMetadata(parsedOutput),
2358
- ...contents,
2359
- });
2360
- return __decorateServiceException(exception, parsedOutput.body);
2361
- };
2362
- const de_ObjectNotDetachedExceptionRes = async (parsedOutput, context) => {
2363
- const contents = map({});
2364
- const data = parsedOutput.body;
2365
- const doc = take(data, {
2366
- Message: __expectString,
2367
- });
2368
- Object.assign(contents, doc);
2369
- const exception = new ObjectNotDetachedException({
2370
- $metadata: deserializeMetadata(parsedOutput),
2371
- ...contents,
2372
- });
2373
- return __decorateServiceException(exception, parsedOutput.body);
2374
- };
2375
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2376
- const contents = map({});
2377
- const data = parsedOutput.body;
2378
- const doc = take(data, {
2379
- Message: __expectString,
2380
- });
2381
- Object.assign(contents, doc);
2382
- const exception = new ResourceNotFoundException({
2383
- $metadata: deserializeMetadata(parsedOutput),
2384
- ...contents,
2385
- });
2386
- return __decorateServiceException(exception, parsedOutput.body);
2387
- };
2388
- const de_RetryableConflictExceptionRes = async (parsedOutput, context) => {
2389
- const contents = map({});
2390
- const data = parsedOutput.body;
2391
- const doc = take(data, {
2392
- Message: __expectString,
2393
- });
2394
- Object.assign(contents, doc);
2395
- const exception = new RetryableConflictException({
2396
- $metadata: deserializeMetadata(parsedOutput),
2397
- ...contents,
2398
- });
2399
- return __decorateServiceException(exception, parsedOutput.body);
2400
- };
2401
- const de_SchemaAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2402
- const contents = map({});
2403
- const data = parsedOutput.body;
2404
- const doc = take(data, {
2405
- Message: __expectString,
2406
- });
2407
- Object.assign(contents, doc);
2408
- const exception = new SchemaAlreadyExistsException({
2409
- $metadata: deserializeMetadata(parsedOutput),
2410
- ...contents,
2411
- });
2412
- return __decorateServiceException(exception, parsedOutput.body);
2413
- };
2414
- const de_SchemaAlreadyPublishedExceptionRes = async (parsedOutput, context) => {
2415
- const contents = map({});
2416
- const data = parsedOutput.body;
2417
- const doc = take(data, {
2418
- Message: __expectString,
2419
- });
2420
- Object.assign(contents, doc);
2421
- const exception = new SchemaAlreadyPublishedException({
2422
- $metadata: deserializeMetadata(parsedOutput),
2423
- ...contents,
2424
- });
2425
- return __decorateServiceException(exception, parsedOutput.body);
2426
- };
2427
- const de_StillContainsLinksExceptionRes = async (parsedOutput, context) => {
2428
- const contents = map({});
2429
- const data = parsedOutput.body;
2430
- const doc = take(data, {
2431
- Message: __expectString,
2432
- });
2433
- Object.assign(contents, doc);
2434
- const exception = new StillContainsLinksException({
2435
- $metadata: deserializeMetadata(parsedOutput),
2436
- ...contents,
2437
- });
2438
- return __decorateServiceException(exception, parsedOutput.body);
2439
- };
2440
- const de_UnsupportedIndexTypeExceptionRes = async (parsedOutput, context) => {
2441
- const contents = map({});
2442
- const data = parsedOutput.body;
2443
- const doc = take(data, {
2444
- Message: __expectString,
2445
- });
2446
- Object.assign(contents, doc);
2447
- const exception = new UnsupportedIndexTypeException({
2448
- $metadata: deserializeMetadata(parsedOutput),
2449
- ...contents,
2450
- });
2451
- return __decorateServiceException(exception, parsedOutput.body);
2452
- };
2453
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
2454
- const contents = map({});
2455
- const data = parsedOutput.body;
2456
- const doc = take(data, {
2457
- Message: __expectString,
2458
- });
2459
- Object.assign(contents, doc);
2460
- const exception = new ValidationException({
2461
- $metadata: deserializeMetadata(parsedOutput),
2462
- ...contents,
2463
- });
2464
- return __decorateServiceException(exception, parsedOutput.body);
2465
- };
2466
- const se_AttributeKeyAndValue = (input, context) => {
2467
- return take(input, {
2468
- Key: _json,
2469
- Value: (_) => se_TypedAttributeValue(_, context),
2470
- });
2471
- };
2472
- const se_AttributeKeyAndValueList = (input, context) => {
2473
- return input
2474
- .filter((e) => e != null)
2475
- .map((entry) => {
2476
- return se_AttributeKeyAndValue(entry, context);
2477
- });
2478
- };
2479
- const se_AttributeNameAndValue = (input, context) => {
2480
- return take(input, {
2481
- AttributeName: [],
2482
- Value: (_) => se_TypedAttributeValue(_, context),
2483
- });
2484
- };
2485
- const se_AttributeNameAndValueList = (input, context) => {
2486
- return input
2487
- .filter((e) => e != null)
2488
- .map((entry) => {
2489
- return se_AttributeNameAndValue(entry, context);
2490
- });
2491
- };
2492
- const se_BatchAddFacetToObject = (input, context) => {
2493
- return take(input, {
2494
- ObjectAttributeList: (_) => se_AttributeKeyAndValueList(_, context),
2495
- ObjectReference: _json,
2496
- SchemaFacet: _json,
2497
- });
2498
- };
2499
- const se_BatchAttachTypedLink = (input, context) => {
2500
- return take(input, {
2501
- Attributes: (_) => se_AttributeNameAndValueList(_, context),
2502
- SourceObjectReference: _json,
2503
- TargetObjectReference: _json,
2504
- TypedLinkFacet: _json,
2505
- });
2506
- };
2507
- const se_BatchCreateObject = (input, context) => {
2508
- return take(input, {
2509
- BatchReferenceName: [],
2510
- LinkName: [],
2511
- ObjectAttributeList: (_) => se_AttributeKeyAndValueList(_, context),
2512
- ParentReference: _json,
2513
- SchemaFacet: _json,
2514
- });
2515
- };
2516
- const se_BatchDetachTypedLink = (input, context) => {
2517
- return take(input, {
2518
- TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context),
2519
- });
2520
- };
2521
- const se_BatchGetLinkAttributes = (input, context) => {
2522
- return take(input, {
2523
- AttributeNames: _json,
2524
- TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context),
2525
- });
2526
- };
2527
- const se_BatchListIncomingTypedLinks = (input, context) => {
2528
- return take(input, {
2529
- FilterAttributeRanges: (_) => se_TypedLinkAttributeRangeList(_, context),
2530
- FilterTypedLink: _json,
2531
- MaxResults: [],
2532
- NextToken: [],
2533
- ObjectReference: _json,
2534
- });
2535
- };
2536
- const se_BatchListIndex = (input, context) => {
2537
- return take(input, {
2538
- IndexReference: _json,
2539
- MaxResults: [],
2540
- NextToken: [],
2541
- RangesOnIndexedValues: (_) => se_ObjectAttributeRangeList(_, context),
2542
- });
2543
- };
2544
- const se_BatchListOutgoingTypedLinks = (input, context) => {
2545
- return take(input, {
2546
- FilterAttributeRanges: (_) => se_TypedLinkAttributeRangeList(_, context),
2547
- FilterTypedLink: _json,
2548
- MaxResults: [],
2549
- NextToken: [],
2550
- ObjectReference: _json,
2551
- });
2552
- };
2553
- const se_BatchReadOperation = (input, context) => {
2554
- return take(input, {
2555
- GetLinkAttributes: (_) => se_BatchGetLinkAttributes(_, context),
2556
- GetObjectAttributes: _json,
2557
- GetObjectInformation: _json,
2558
- ListAttachedIndices: _json,
2559
- ListIncomingTypedLinks: (_) => se_BatchListIncomingTypedLinks(_, context),
2560
- ListIndex: (_) => se_BatchListIndex(_, context),
2561
- ListObjectAttributes: _json,
2562
- ListObjectChildren: _json,
2563
- ListObjectParentPaths: _json,
2564
- ListObjectParents: _json,
2565
- ListObjectPolicies: _json,
2566
- ListOutgoingTypedLinks: (_) => se_BatchListOutgoingTypedLinks(_, context),
2567
- ListPolicyAttachments: _json,
2568
- LookupPolicy: _json,
2569
- });
2570
- };
2571
- const se_BatchReadOperationList = (input, context) => {
2572
- return input
2573
- .filter((e) => e != null)
2574
- .map((entry) => {
2575
- return se_BatchReadOperation(entry, context);
2576
- });
2577
- };
2578
- const se_BatchUpdateLinkAttributes = (input, context) => {
2579
- return take(input, {
2580
- AttributeUpdates: (_) => se_LinkAttributeUpdateList(_, context),
2581
- TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context),
2582
- });
2583
- };
2584
- const se_BatchUpdateObjectAttributes = (input, context) => {
2585
- return take(input, {
2586
- AttributeUpdates: (_) => se_ObjectAttributeUpdateList(_, context),
2587
- ObjectReference: _json,
2588
- });
2589
- };
2590
- const se_BatchWriteOperation = (input, context) => {
2591
- return take(input, {
2592
- AddFacetToObject: (_) => se_BatchAddFacetToObject(_, context),
2593
- AttachObject: _json,
2594
- AttachPolicy: _json,
2595
- AttachToIndex: _json,
2596
- AttachTypedLink: (_) => se_BatchAttachTypedLink(_, context),
2597
- CreateIndex: _json,
2598
- CreateObject: (_) => se_BatchCreateObject(_, context),
2599
- DeleteObject: _json,
2600
- DetachFromIndex: _json,
2601
- DetachObject: _json,
2602
- DetachPolicy: _json,
2603
- DetachTypedLink: (_) => se_BatchDetachTypedLink(_, context),
2604
- RemoveFacetFromObject: _json,
2605
- UpdateLinkAttributes: (_) => se_BatchUpdateLinkAttributes(_, context),
2606
- UpdateObjectAttributes: (_) => se_BatchUpdateObjectAttributes(_, context),
2607
- });
2608
- };
2609
- const se_BatchWriteOperationList = (input, context) => {
2610
- return input
2611
- .filter((e) => e != null)
2612
- .map((entry) => {
2613
- return se_BatchWriteOperation(entry, context);
2614
- });
2615
- };
2616
- const se_FacetAttribute = (input, context) => {
2617
- return take(input, {
2618
- AttributeDefinition: (_) => se_FacetAttributeDefinition(_, context),
2619
- AttributeReference: _json,
2620
- Name: [],
2621
- RequiredBehavior: [],
2622
- });
2623
- };
2624
- const se_FacetAttributeDefinition = (input, context) => {
2625
- return take(input, {
2626
- DefaultValue: (_) => se_TypedAttributeValue(_, context),
2627
- IsImmutable: [],
2628
- Rules: _json,
2629
- Type: [],
2630
- });
2631
- };
2632
- const se_FacetAttributeList = (input, context) => {
2633
- return input
2634
- .filter((e) => e != null)
2635
- .map((entry) => {
2636
- return se_FacetAttribute(entry, context);
2637
- });
2638
- };
2639
- const se_FacetAttributeUpdate = (input, context) => {
2640
- return take(input, {
2641
- Action: [],
2642
- Attribute: (_) => se_FacetAttribute(_, context),
2643
- });
2644
- };
2645
- const se_FacetAttributeUpdateList = (input, context) => {
2646
- return input
2647
- .filter((e) => e != null)
2648
- .map((entry) => {
2649
- return se_FacetAttributeUpdate(entry, context);
2650
- });
2651
- };
2652
- const se_LinkAttributeAction = (input, context) => {
2653
- return take(input, {
2654
- AttributeActionType: [],
2655
- AttributeUpdateValue: (_) => se_TypedAttributeValue(_, context),
2656
- });
2657
- };
2658
- const se_LinkAttributeUpdate = (input, context) => {
2659
- return take(input, {
2660
- AttributeAction: (_) => se_LinkAttributeAction(_, context),
2661
- AttributeKey: _json,
2662
- });
2663
- };
2664
- const se_LinkAttributeUpdateList = (input, context) => {
2665
- return input
2666
- .filter((e) => e != null)
2667
- .map((entry) => {
2668
- return se_LinkAttributeUpdate(entry, context);
2669
- });
2670
- };
2671
- const se_ObjectAttributeAction = (input, context) => {
2672
- return take(input, {
2673
- ObjectAttributeActionType: [],
2674
- ObjectAttributeUpdateValue: (_) => se_TypedAttributeValue(_, context),
2675
- });
2676
- };
2677
- const se_ObjectAttributeRange = (input, context) => {
2678
- return take(input, {
2679
- AttributeKey: _json,
2680
- Range: (_) => se_TypedAttributeValueRange(_, context),
2681
- });
2682
- };
2683
- const se_ObjectAttributeRangeList = (input, context) => {
2684
- return input
2685
- .filter((e) => e != null)
2686
- .map((entry) => {
2687
- return se_ObjectAttributeRange(entry, context);
2688
- });
2689
- };
2690
- const se_ObjectAttributeUpdate = (input, context) => {
2691
- return take(input, {
2692
- ObjectAttributeAction: (_) => se_ObjectAttributeAction(_, context),
2693
- ObjectAttributeKey: _json,
2694
- });
2695
- };
2696
- const se_ObjectAttributeUpdateList = (input, context) => {
2697
- return input
2698
- .filter((e) => e != null)
2699
- .map((entry) => {
2700
- return se_ObjectAttributeUpdate(entry, context);
2701
- });
2702
- };
2703
- const se_TypedAttributeValue = (input, context) => {
2704
- return TypedAttributeValue.visit(input, {
2705
- BinaryValue: (value) => ({ BinaryValue: context.base64Encoder(value) }),
2706
- BooleanValue: (value) => ({ BooleanValue: value }),
2707
- DatetimeValue: (value) => ({ DatetimeValue: value.getTime() / 1_000 }),
2708
- NumberValue: (value) => ({ NumberValue: value }),
2709
- StringValue: (value) => ({ StringValue: value }),
2710
- _: (name, value) => ({ [name]: value }),
2711
- });
2712
- };
2713
- const se_TypedAttributeValueRange = (input, context) => {
2714
- return take(input, {
2715
- EndMode: [],
2716
- EndValue: (_) => se_TypedAttributeValue(_, context),
2717
- StartMode: [],
2718
- StartValue: (_) => se_TypedAttributeValue(_, context),
2719
- });
2720
- };
2721
- const se_TypedLinkAttributeDefinition = (input, context) => {
2722
- return take(input, {
2723
- DefaultValue: (_) => se_TypedAttributeValue(_, context),
2724
- IsImmutable: [],
2725
- Name: [],
2726
- RequiredBehavior: [],
2727
- Rules: _json,
2728
- Type: [],
2729
- });
2730
- };
2731
- const se_TypedLinkAttributeDefinitionList = (input, context) => {
2732
- return input
2733
- .filter((e) => e != null)
2734
- .map((entry) => {
2735
- return se_TypedLinkAttributeDefinition(entry, context);
2736
- });
2737
- };
2738
- const se_TypedLinkAttributeRange = (input, context) => {
2739
- return take(input, {
2740
- AttributeName: [],
2741
- Range: (_) => se_TypedAttributeValueRange(_, context),
2742
- });
2743
- };
2744
- const se_TypedLinkAttributeRangeList = (input, context) => {
2745
- return input
2746
- .filter((e) => e != null)
2747
- .map((entry) => {
2748
- return se_TypedLinkAttributeRange(entry, context);
2749
- });
2750
- };
2751
- const se_TypedLinkFacet = (input, context) => {
2752
- return take(input, {
2753
- Attributes: (_) => se_TypedLinkAttributeDefinitionList(_, context),
2754
- IdentityAttributeOrder: _json,
2755
- Name: [],
2756
- });
2757
- };
2758
- const se_TypedLinkFacetAttributeUpdate = (input, context) => {
2759
- return take(input, {
2760
- Action: [],
2761
- Attribute: (_) => se_TypedLinkAttributeDefinition(_, context),
2762
- });
2763
- };
2764
- const se_TypedLinkFacetAttributeUpdateList = (input, context) => {
2765
- return input
2766
- .filter((e) => e != null)
2767
- .map((entry) => {
2768
- return se_TypedLinkFacetAttributeUpdate(entry, context);
2769
- });
2770
- };
2771
- const se_TypedLinkSpecifier = (input, context) => {
2772
- return take(input, {
2773
- IdentityAttributeValues: (_) => se_AttributeNameAndValueList(_, context),
2774
- SourceObjectReference: _json,
2775
- TargetObjectReference: _json,
2776
- TypedLinkFacet: _json,
2777
- });
2778
- };
2779
- const de_AttributeKeyAndValue = (output, context) => {
2780
- return take(output, {
2781
- Key: _json,
2782
- Value: (_) => de_TypedAttributeValue(__expectUnion(_), context),
2783
- });
2784
- };
2785
- const de_AttributeKeyAndValueList = (output, context) => {
2786
- const retVal = (output || [])
2787
- .filter((e) => e != null)
2788
- .map((entry) => {
2789
- return de_AttributeKeyAndValue(entry, context);
2790
- });
2791
- return retVal;
2792
- };
2793
- const de_AttributeNameAndValue = (output, context) => {
2794
- return take(output, {
2795
- AttributeName: __expectString,
2796
- Value: (_) => de_TypedAttributeValue(__expectUnion(_), context),
2797
- });
2798
- };
2799
- const de_AttributeNameAndValueList = (output, context) => {
2800
- const retVal = (output || [])
2801
- .filter((e) => e != null)
2802
- .map((entry) => {
2803
- return de_AttributeNameAndValue(entry, context);
2804
- });
2805
- return retVal;
2806
- };
2807
- const de_BatchAttachTypedLinkResponse = (output, context) => {
2808
- return take(output, {
2809
- TypedLinkSpecifier: (_) => de_TypedLinkSpecifier(_, context),
2810
- });
2811
- };
2812
- const de_BatchGetLinkAttributesResponse = (output, context) => {
2813
- return take(output, {
2814
- Attributes: (_) => de_AttributeKeyAndValueList(_, context),
2815
- });
2816
- };
2817
- const de_BatchGetObjectAttributesResponse = (output, context) => {
2818
- return take(output, {
2819
- Attributes: (_) => de_AttributeKeyAndValueList(_, context),
2820
- });
2821
- };
2822
- const de_BatchListAttachedIndicesResponse = (output, context) => {
2823
- return take(output, {
2824
- IndexAttachments: (_) => de_IndexAttachmentList(_, context),
2825
- NextToken: __expectString,
2826
- });
2827
- };
2828
- const de_BatchListIncomingTypedLinksResponse = (output, context) => {
2829
- return take(output, {
2830
- LinkSpecifiers: (_) => de_TypedLinkSpecifierList(_, context),
2831
- NextToken: __expectString,
2832
- });
2833
- };
2834
- const de_BatchListIndexResponse = (output, context) => {
2835
- return take(output, {
2836
- IndexAttachments: (_) => de_IndexAttachmentList(_, context),
2837
- NextToken: __expectString,
2838
- });
2839
- };
2840
- const de_BatchListObjectAttributesResponse = (output, context) => {
2841
- return take(output, {
2842
- Attributes: (_) => de_AttributeKeyAndValueList(_, context),
2843
- NextToken: __expectString,
2844
- });
2845
- };
2846
- const de_BatchListOutgoingTypedLinksResponse = (output, context) => {
2847
- return take(output, {
2848
- NextToken: __expectString,
2849
- TypedLinkSpecifiers: (_) => de_TypedLinkSpecifierList(_, context),
2850
- });
2851
- };
2852
- const de_BatchReadOperationResponse = (output, context) => {
2853
- return take(output, {
2854
- ExceptionResponse: _json,
2855
- SuccessfulResponse: (_) => de_BatchReadSuccessfulResponse(_, context),
2856
- });
2857
- };
2858
- const de_BatchReadOperationResponseList = (output, context) => {
2859
- const retVal = (output || [])
2860
- .filter((e) => e != null)
2861
- .map((entry) => {
2862
- return de_BatchReadOperationResponse(entry, context);
2863
- });
2864
- return retVal;
2865
- };
2866
- const de_BatchReadSuccessfulResponse = (output, context) => {
2867
- return take(output, {
2868
- GetLinkAttributes: (_) => de_BatchGetLinkAttributesResponse(_, context),
2869
- GetObjectAttributes: (_) => de_BatchGetObjectAttributesResponse(_, context),
2870
- GetObjectInformation: _json,
2871
- ListAttachedIndices: (_) => de_BatchListAttachedIndicesResponse(_, context),
2872
- ListIncomingTypedLinks: (_) => de_BatchListIncomingTypedLinksResponse(_, context),
2873
- ListIndex: (_) => de_BatchListIndexResponse(_, context),
2874
- ListObjectAttributes: (_) => de_BatchListObjectAttributesResponse(_, context),
2875
- ListObjectChildren: _json,
2876
- ListObjectParentPaths: _json,
2877
- ListObjectParents: _json,
2878
- ListObjectPolicies: _json,
2879
- ListOutgoingTypedLinks: (_) => de_BatchListOutgoingTypedLinksResponse(_, context),
2880
- ListPolicyAttachments: _json,
2881
- LookupPolicy: _json,
2882
- });
2883
- };
2884
- const de_BatchWriteOperationResponse = (output, context) => {
2885
- return take(output, {
2886
- AddFacetToObject: _json,
2887
- AttachObject: _json,
2888
- AttachPolicy: _json,
2889
- AttachToIndex: _json,
2890
- AttachTypedLink: (_) => de_BatchAttachTypedLinkResponse(_, context),
2891
- CreateIndex: _json,
2892
- CreateObject: _json,
2893
- DeleteObject: _json,
2894
- DetachFromIndex: _json,
2895
- DetachObject: _json,
2896
- DetachPolicy: _json,
2897
- DetachTypedLink: _json,
2898
- RemoveFacetFromObject: _json,
2899
- UpdateLinkAttributes: _json,
2900
- UpdateObjectAttributes: _json,
2901
- });
2902
- };
2903
- const de_BatchWriteOperationResponseList = (output, context) => {
2904
- const retVal = (output || [])
2905
- .filter((e) => e != null)
2906
- .map((entry) => {
2907
- return de_BatchWriteOperationResponse(entry, context);
2908
- });
2909
- return retVal;
2910
- };
2911
- const de_Directory = (output, context) => {
2912
- return take(output, {
2913
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2914
- DirectoryArn: __expectString,
2915
- Name: __expectString,
2916
- State: __expectString,
2917
- });
2918
- };
2919
- const de_DirectoryList = (output, context) => {
2920
- const retVal = (output || [])
2921
- .filter((e) => e != null)
2922
- .map((entry) => {
2923
- return de_Directory(entry, context);
2924
- });
2925
- return retVal;
2926
- };
2927
- const de_FacetAttribute = (output, context) => {
2928
- return take(output, {
2929
- AttributeDefinition: (_) => de_FacetAttributeDefinition(_, context),
2930
- AttributeReference: _json,
2931
- Name: __expectString,
2932
- RequiredBehavior: __expectString,
2933
- });
2934
- };
2935
- const de_FacetAttributeDefinition = (output, context) => {
2936
- return take(output, {
2937
- DefaultValue: (_) => de_TypedAttributeValue(__expectUnion(_), context),
2938
- IsImmutable: __expectBoolean,
2939
- Rules: _json,
2940
- Type: __expectString,
2941
- });
2942
- };
2943
- const de_FacetAttributeList = (output, context) => {
2944
- const retVal = (output || [])
2945
- .filter((e) => e != null)
2946
- .map((entry) => {
2947
- return de_FacetAttribute(entry, context);
2948
- });
2949
- return retVal;
2950
- };
2951
- const de_IndexAttachment = (output, context) => {
2952
- return take(output, {
2953
- IndexedAttributes: (_) => de_AttributeKeyAndValueList(_, context),
2954
- ObjectIdentifier: __expectString,
2955
- });
2956
- };
2957
- const de_IndexAttachmentList = (output, context) => {
2958
- const retVal = (output || [])
2959
- .filter((e) => e != null)
2960
- .map((entry) => {
2961
- return de_IndexAttachment(entry, context);
2962
- });
2963
- return retVal;
2964
- };
2965
- const de_TypedAttributeValue = (output, context) => {
2966
- if (output.BinaryValue != null) {
2967
- return {
2968
- BinaryValue: context.base64Decoder(output.BinaryValue),
2969
- };
2970
- }
2971
- if (__expectBoolean(output.BooleanValue) !== undefined) {
2972
- return { BooleanValue: __expectBoolean(output.BooleanValue) };
2973
- }
2974
- if (output.DatetimeValue != null) {
2975
- return {
2976
- DatetimeValue: __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DatetimeValue))),
2977
- };
2978
- }
2979
- if (__expectString(output.NumberValue) !== undefined) {
2980
- return { NumberValue: __expectString(output.NumberValue) };
2981
- }
2982
- if (__expectString(output.StringValue) !== undefined) {
2983
- return { StringValue: __expectString(output.StringValue) };
2984
- }
2985
- return { $unknown: Object.entries(output)[0] };
2986
- };
2987
- const de_TypedLinkAttributeDefinition = (output, context) => {
2988
- return take(output, {
2989
- DefaultValue: (_) => de_TypedAttributeValue(__expectUnion(_), context),
2990
- IsImmutable: __expectBoolean,
2991
- Name: __expectString,
2992
- RequiredBehavior: __expectString,
2993
- Rules: _json,
2994
- Type: __expectString,
2995
- });
2996
- };
2997
- const de_TypedLinkAttributeDefinitionList = (output, context) => {
2998
- const retVal = (output || [])
2999
- .filter((e) => e != null)
3000
- .map((entry) => {
3001
- return de_TypedLinkAttributeDefinition(entry, context);
3002
- });
3003
- return retVal;
3004
- };
3005
- const de_TypedLinkSpecifier = (output, context) => {
3006
- return take(output, {
3007
- IdentityAttributeValues: (_) => de_AttributeNameAndValueList(_, context),
3008
- SourceObjectReference: _json,
3009
- TargetObjectReference: _json,
3010
- TypedLinkFacet: _json,
3011
- });
3012
- };
3013
- const de_TypedLinkSpecifierList = (output, context) => {
3014
- const retVal = (output || [])
3015
- .filter((e) => e != null)
3016
- .map((entry) => {
3017
- return de_TypedLinkSpecifier(entry, context);
3018
- });
3019
- return retVal;
3020
- };
3021
- const deserializeMetadata = (output) => ({
3022
- httpStatusCode: output.statusCode,
3023
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3024
- extendedRequestId: output.headers["x-amz-id-2"],
3025
- cfId: output.headers["x-amz-cf-id"],
3026
- });
3027
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3028
- const _CL = "ConsistencyLevel";
3029
- const _DA = "DirectoryArn";
3030
- const _DSA = "DevelopmentSchemaArn";
3031
- const _SA = "SchemaArn";
3032
- const _xacl = "x-amz-consistency-level";
3033
- const _xadp = "x-amz-data-partition";