@aws-sdk/client-clouddirectory 3.474.0 → 3.477.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.
@@ -4,139 +4,98 @@ exports.se_ListPublishedSchemaArnsCommand = exports.se_ListPolicyAttachmentsComm
4
4
  exports.de_ListAppliedSchemaArnsCommand = exports.de_GetTypedLinkFacetInformationCommand = exports.de_GetSchemaAsJsonCommand = exports.de_GetObjectInformationCommand = exports.de_GetObjectAttributesCommand = exports.de_GetLinkAttributesCommand = exports.de_GetFacetCommand = exports.de_GetDirectoryCommand = exports.de_GetAppliedSchemaVersionCommand = exports.de_EnableDirectoryCommand = exports.de_DisableDirectoryCommand = exports.de_DetachTypedLinkCommand = exports.de_DetachPolicyCommand = exports.de_DetachObjectCommand = exports.de_DetachFromIndexCommand = exports.de_DeleteTypedLinkFacetCommand = exports.de_DeleteSchemaCommand = exports.de_DeleteObjectCommand = exports.de_DeleteFacetCommand = exports.de_DeleteDirectoryCommand = exports.de_CreateTypedLinkFacetCommand = exports.de_CreateSchemaCommand = exports.de_CreateObjectCommand = exports.de_CreateIndexCommand = exports.de_CreateFacetCommand = exports.de_CreateDirectoryCommand = exports.de_BatchWriteCommand = exports.de_BatchReadCommand = exports.de_AttachTypedLinkCommand = exports.de_AttachToIndexCommand = exports.de_AttachPolicyCommand = exports.de_AttachObjectCommand = exports.de_ApplySchemaCommand = exports.de_AddFacetToObjectCommand = exports.se_UpgradePublishedSchemaCommand = exports.se_UpgradeAppliedSchemaCommand = exports.se_UpdateTypedLinkFacetCommand = exports.se_UpdateSchemaCommand = exports.se_UpdateObjectAttributesCommand = exports.se_UpdateLinkAttributesCommand = exports.se_UpdateFacetCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RemoveFacetFromObjectCommand = exports.se_PutSchemaFromJsonCommand = exports.se_PublishSchemaCommand = exports.se_LookupPolicyCommand = exports.se_ListTypedLinkFacetNamesCommand = exports.se_ListTypedLinkFacetAttributesCommand = exports.se_ListTagsForResourceCommand = void 0;
5
5
  exports.de_UpgradePublishedSchemaCommand = exports.de_UpgradeAppliedSchemaCommand = exports.de_UpdateTypedLinkFacetCommand = exports.de_UpdateSchemaCommand = exports.de_UpdateObjectAttributesCommand = exports.de_UpdateLinkAttributesCommand = exports.de_UpdateFacetCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RemoveFacetFromObjectCommand = exports.de_PutSchemaFromJsonCommand = exports.de_PublishSchemaCommand = exports.de_LookupPolicyCommand = exports.de_ListTypedLinkFacetNamesCommand = exports.de_ListTypedLinkFacetAttributesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPublishedSchemaArnsCommand = exports.de_ListPolicyAttachmentsCommand = exports.de_ListOutgoingTypedLinksCommand = exports.de_ListObjectPoliciesCommand = exports.de_ListObjectParentsCommand = exports.de_ListObjectParentPathsCommand = exports.de_ListObjectChildrenCommand = exports.de_ListObjectAttributesCommand = exports.de_ListManagedSchemaArnsCommand = exports.de_ListIndexCommand = exports.de_ListIncomingTypedLinksCommand = exports.de_ListFacetNamesCommand = exports.de_ListFacetAttributesCommand = exports.de_ListDirectoriesCommand = exports.de_ListDevelopmentSchemaArnsCommand = exports.de_ListAttachedIndicesCommand = void 0;
6
6
  const core_1 = require("@aws-sdk/core");
7
- const protocol_http_1 = require("@smithy/protocol-http");
7
+ const core_2 = require("@smithy/core");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  const CloudDirectoryServiceException_1 = require("../models/CloudDirectoryServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_AddFacetToObjectCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_2.requestBuilder)(input, context);
13
13
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
14
14
  "content-type": "application/json",
15
- "x-amz-data-partition": input.DirectoryArn,
15
+ [_xadp]: input[_DA],
16
16
  });
17
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
18
- "/amazonclouddirectory/2017-01-11/object/facets";
17
+ b.bp("/amazonclouddirectory/2017-01-11/object/facets");
19
18
  let body;
20
19
  body = JSON.stringify((0, smithy_client_1.take)(input, {
21
20
  ObjectAttributeList: (_) => se_AttributeKeyAndValueList(_, context),
22
21
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
23
22
  SchemaFacet: (_) => (0, smithy_client_1._json)(_),
24
23
  }));
25
- return new protocol_http_1.HttpRequest({
26
- protocol,
27
- hostname,
28
- port,
29
- method: "PUT",
30
- headers,
31
- path: resolvedPath,
32
- body,
33
- });
24
+ b.m("PUT").h(headers).b(body);
25
+ return b.build();
34
26
  };
35
27
  exports.se_AddFacetToObjectCommand = se_AddFacetToObjectCommand;
36
28
  const se_ApplySchemaCommand = async (input, context) => {
37
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
29
+ const b = (0, core_2.requestBuilder)(input, context);
38
30
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
39
31
  "content-type": "application/json",
40
- "x-amz-data-partition": input.DirectoryArn,
32
+ [_xadp]: input[_DA],
41
33
  });
42
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
43
- "/amazonclouddirectory/2017-01-11/schema/apply";
34
+ b.bp("/amazonclouddirectory/2017-01-11/schema/apply");
44
35
  let body;
45
36
  body = JSON.stringify((0, smithy_client_1.take)(input, {
46
37
  PublishedSchemaArn: [],
47
38
  }));
48
- return new protocol_http_1.HttpRequest({
49
- protocol,
50
- hostname,
51
- port,
52
- method: "PUT",
53
- headers,
54
- path: resolvedPath,
55
- body,
56
- });
39
+ b.m("PUT").h(headers).b(body);
40
+ return b.build();
57
41
  };
58
42
  exports.se_ApplySchemaCommand = se_ApplySchemaCommand;
59
43
  const se_AttachObjectCommand = async (input, context) => {
60
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
44
+ const b = (0, core_2.requestBuilder)(input, context);
61
45
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
62
46
  "content-type": "application/json",
63
- "x-amz-data-partition": input.DirectoryArn,
47
+ [_xadp]: input[_DA],
64
48
  });
65
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
66
- "/amazonclouddirectory/2017-01-11/object/attach";
49
+ b.bp("/amazonclouddirectory/2017-01-11/object/attach");
67
50
  let body;
68
51
  body = JSON.stringify((0, smithy_client_1.take)(input, {
69
52
  ChildReference: (_) => (0, smithy_client_1._json)(_),
70
53
  LinkName: [],
71
54
  ParentReference: (_) => (0, smithy_client_1._json)(_),
72
55
  }));
73
- return new protocol_http_1.HttpRequest({
74
- protocol,
75
- hostname,
76
- port,
77
- method: "PUT",
78
- headers,
79
- path: resolvedPath,
80
- body,
81
- });
56
+ b.m("PUT").h(headers).b(body);
57
+ return b.build();
82
58
  };
83
59
  exports.se_AttachObjectCommand = se_AttachObjectCommand;
84
60
  const se_AttachPolicyCommand = async (input, context) => {
85
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
61
+ const b = (0, core_2.requestBuilder)(input, context);
86
62
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
87
63
  "content-type": "application/json",
88
- "x-amz-data-partition": input.DirectoryArn,
64
+ [_xadp]: input[_DA],
89
65
  });
90
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
91
- "/amazonclouddirectory/2017-01-11/policy/attach";
66
+ b.bp("/amazonclouddirectory/2017-01-11/policy/attach");
92
67
  let body;
93
68
  body = JSON.stringify((0, smithy_client_1.take)(input, {
94
69
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
95
70
  PolicyReference: (_) => (0, smithy_client_1._json)(_),
96
71
  }));
97
- return new protocol_http_1.HttpRequest({
98
- protocol,
99
- hostname,
100
- port,
101
- method: "PUT",
102
- headers,
103
- path: resolvedPath,
104
- body,
105
- });
72
+ b.m("PUT").h(headers).b(body);
73
+ return b.build();
106
74
  };
107
75
  exports.se_AttachPolicyCommand = se_AttachPolicyCommand;
108
76
  const se_AttachToIndexCommand = async (input, context) => {
109
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
77
+ const b = (0, core_2.requestBuilder)(input, context);
110
78
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
111
79
  "content-type": "application/json",
112
- "x-amz-data-partition": input.DirectoryArn,
80
+ [_xadp]: input[_DA],
113
81
  });
114
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
115
- "/amazonclouddirectory/2017-01-11/index/attach";
82
+ b.bp("/amazonclouddirectory/2017-01-11/index/attach");
116
83
  let body;
117
84
  body = JSON.stringify((0, smithy_client_1.take)(input, {
118
85
  IndexReference: (_) => (0, smithy_client_1._json)(_),
119
86
  TargetReference: (_) => (0, smithy_client_1._json)(_),
120
87
  }));
121
- return new protocol_http_1.HttpRequest({
122
- protocol,
123
- hostname,
124
- port,
125
- method: "PUT",
126
- headers,
127
- path: resolvedPath,
128
- body,
129
- });
88
+ b.m("PUT").h(headers).b(body);
89
+ return b.build();
130
90
  };
131
91
  exports.se_AttachToIndexCommand = se_AttachToIndexCommand;
132
92
  const se_AttachTypedLinkCommand = async (input, context) => {
133
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
93
+ const b = (0, core_2.requestBuilder)(input, context);
134
94
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
135
95
  "content-type": "application/json",
136
- "x-amz-data-partition": input.DirectoryArn,
96
+ [_xadp]: input[_DA],
137
97
  });
138
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
139
- "/amazonclouddirectory/2017-01-11/typedlink/attach";
98
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/attach");
140
99
  let body;
141
100
  body = JSON.stringify((0, smithy_client_1.take)(input, {
142
101
  Attributes: (_) => se_AttributeNameAndValueList(_, context),
@@ -144,95 +103,63 @@ const se_AttachTypedLinkCommand = async (input, context) => {
144
103
  TargetObjectReference: (_) => (0, smithy_client_1._json)(_),
145
104
  TypedLinkFacet: (_) => (0, smithy_client_1._json)(_),
146
105
  }));
147
- return new protocol_http_1.HttpRequest({
148
- protocol,
149
- hostname,
150
- port,
151
- method: "PUT",
152
- headers,
153
- path: resolvedPath,
154
- body,
155
- });
106
+ b.m("PUT").h(headers).b(body);
107
+ return b.build();
156
108
  };
157
109
  exports.se_AttachTypedLinkCommand = se_AttachTypedLinkCommand;
158
110
  const se_BatchReadCommand = async (input, context) => {
159
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
111
+ const b = (0, core_2.requestBuilder)(input, context);
160
112
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
161
113
  "content-type": "application/json",
162
- "x-amz-data-partition": input.DirectoryArn,
163
- "x-amz-consistency-level": input.ConsistencyLevel,
114
+ [_xadp]: input[_DA],
115
+ [_xacl]: input[_CL],
164
116
  });
165
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
166
- "/amazonclouddirectory/2017-01-11/batchread";
117
+ b.bp("/amazonclouddirectory/2017-01-11/batchread");
167
118
  let body;
168
119
  body = JSON.stringify((0, smithy_client_1.take)(input, {
169
120
  Operations: (_) => se_BatchReadOperationList(_, context),
170
121
  }));
171
- return new protocol_http_1.HttpRequest({
172
- protocol,
173
- hostname,
174
- port,
175
- method: "POST",
176
- headers,
177
- path: resolvedPath,
178
- body,
179
- });
122
+ b.m("POST").h(headers).b(body);
123
+ return b.build();
180
124
  };
181
125
  exports.se_BatchReadCommand = se_BatchReadCommand;
182
126
  const se_BatchWriteCommand = async (input, context) => {
183
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const b = (0, core_2.requestBuilder)(input, context);
184
128
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
185
129
  "content-type": "application/json",
186
- "x-amz-data-partition": input.DirectoryArn,
130
+ [_xadp]: input[_DA],
187
131
  });
188
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
189
- "/amazonclouddirectory/2017-01-11/batchwrite";
132
+ b.bp("/amazonclouddirectory/2017-01-11/batchwrite");
190
133
  let body;
191
134
  body = JSON.stringify((0, smithy_client_1.take)(input, {
192
135
  Operations: (_) => se_BatchWriteOperationList(_, context),
193
136
  }));
194
- return new protocol_http_1.HttpRequest({
195
- protocol,
196
- hostname,
197
- port,
198
- method: "PUT",
199
- headers,
200
- path: resolvedPath,
201
- body,
202
- });
137
+ b.m("PUT").h(headers).b(body);
138
+ return b.build();
203
139
  };
204
140
  exports.se_BatchWriteCommand = se_BatchWriteCommand;
205
141
  const se_CreateDirectoryCommand = async (input, context) => {
206
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
142
+ const b = (0, core_2.requestBuilder)(input, context);
207
143
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
208
144
  "content-type": "application/json",
209
- "x-amz-data-partition": input.SchemaArn,
145
+ [_xadp]: input[_SA],
210
146
  });
211
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
212
- "/amazonclouddirectory/2017-01-11/directory/create";
147
+ b.bp("/amazonclouddirectory/2017-01-11/directory/create");
213
148
  let body;
214
149
  body = JSON.stringify((0, smithy_client_1.take)(input, {
215
150
  Name: [],
216
151
  }));
217
- return new protocol_http_1.HttpRequest({
218
- protocol,
219
- hostname,
220
- port,
221
- method: "PUT",
222
- headers,
223
- path: resolvedPath,
224
- body,
225
- });
152
+ b.m("PUT").h(headers).b(body);
153
+ return b.build();
226
154
  };
227
155
  exports.se_CreateDirectoryCommand = se_CreateDirectoryCommand;
228
156
  const se_CreateFacetCommand = async (input, context) => {
229
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
157
+ const b = (0, core_2.requestBuilder)(input, context);
230
158
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
231
159
  "content-type": "application/json",
232
- "x-amz-data-partition": input.SchemaArn,
160
+ [_xadp]: input[_SA],
233
161
  });
234
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
235
- "/amazonclouddirectory/2017-01-11/facet/create";
162
+ b.bp("/amazonclouddirectory/2017-01-11/facet/create");
236
163
  let body;
237
164
  body = JSON.stringify((0, smithy_client_1.take)(input, {
238
165
  Attributes: (_) => se_FacetAttributeList(_, context),
@@ -240,24 +167,17 @@ const se_CreateFacetCommand = async (input, context) => {
240
167
  Name: [],
241
168
  ObjectType: [],
242
169
  }));
243
- return new protocol_http_1.HttpRequest({
244
- protocol,
245
- hostname,
246
- port,
247
- method: "PUT",
248
- headers,
249
- path: resolvedPath,
250
- body,
251
- });
170
+ b.m("PUT").h(headers).b(body);
171
+ return b.build();
252
172
  };
253
173
  exports.se_CreateFacetCommand = se_CreateFacetCommand;
254
174
  const se_CreateIndexCommand = async (input, context) => {
255
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
+ const b = (0, core_2.requestBuilder)(input, context);
256
176
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
257
177
  "content-type": "application/json",
258
- "x-amz-data-partition": input.DirectoryArn,
178
+ [_xadp]: input[_DA],
259
179
  });
260
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/index";
180
+ b.bp("/amazonclouddirectory/2017-01-11/index");
261
181
  let body;
262
182
  body = JSON.stringify((0, smithy_client_1.take)(input, {
263
183
  IsUnique: [],
@@ -265,24 +185,17 @@ const se_CreateIndexCommand = async (input, context) => {
265
185
  OrderedIndexedAttributeList: (_) => (0, smithy_client_1._json)(_),
266
186
  ParentReference: (_) => (0, smithy_client_1._json)(_),
267
187
  }));
268
- return new protocol_http_1.HttpRequest({
269
- protocol,
270
- hostname,
271
- port,
272
- method: "PUT",
273
- headers,
274
- path: resolvedPath,
275
- body,
276
- });
188
+ b.m("PUT").h(headers).b(body);
189
+ return b.build();
277
190
  };
278
191
  exports.se_CreateIndexCommand = se_CreateIndexCommand;
279
192
  const se_CreateObjectCommand = async (input, context) => {
280
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const b = (0, core_2.requestBuilder)(input, context);
281
194
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
282
195
  "content-type": "application/json",
283
- "x-amz-data-partition": input.DirectoryArn,
196
+ [_xadp]: input[_DA],
284
197
  });
285
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/object";
198
+ b.bp("/amazonclouddirectory/2017-01-11/object");
286
199
  let body;
287
200
  body = JSON.stringify((0, smithy_client_1.take)(input, {
288
201
  LinkName: [],
@@ -290,488 +203,314 @@ const se_CreateObjectCommand = async (input, context) => {
290
203
  ParentReference: (_) => (0, smithy_client_1._json)(_),
291
204
  SchemaFacets: (_) => (0, smithy_client_1._json)(_),
292
205
  }));
293
- return new protocol_http_1.HttpRequest({
294
- protocol,
295
- hostname,
296
- port,
297
- method: "PUT",
298
- headers,
299
- path: resolvedPath,
300
- body,
301
- });
206
+ b.m("PUT").h(headers).b(body);
207
+ return b.build();
302
208
  };
303
209
  exports.se_CreateObjectCommand = se_CreateObjectCommand;
304
210
  const se_CreateSchemaCommand = async (input, context) => {
305
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
211
+ const b = (0, core_2.requestBuilder)(input, context);
306
212
  const headers = {
307
213
  "content-type": "application/json",
308
214
  };
309
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
310
- "/amazonclouddirectory/2017-01-11/schema/create";
215
+ b.bp("/amazonclouddirectory/2017-01-11/schema/create");
311
216
  let body;
312
217
  body = JSON.stringify((0, smithy_client_1.take)(input, {
313
218
  Name: [],
314
219
  }));
315
- return new protocol_http_1.HttpRequest({
316
- protocol,
317
- hostname,
318
- port,
319
- method: "PUT",
320
- headers,
321
- path: resolvedPath,
322
- body,
323
- });
220
+ b.m("PUT").h(headers).b(body);
221
+ return b.build();
324
222
  };
325
223
  exports.se_CreateSchemaCommand = se_CreateSchemaCommand;
326
224
  const se_CreateTypedLinkFacetCommand = async (input, context) => {
327
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
225
+ const b = (0, core_2.requestBuilder)(input, context);
328
226
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
329
227
  "content-type": "application/json",
330
- "x-amz-data-partition": input.SchemaArn,
228
+ [_xadp]: input[_SA],
331
229
  });
332
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
333
- "/amazonclouddirectory/2017-01-11/typedlink/facet/create";
230
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/create");
334
231
  let body;
335
232
  body = JSON.stringify((0, smithy_client_1.take)(input, {
336
233
  Facet: (_) => se_TypedLinkFacet(_, context),
337
234
  }));
338
- return new protocol_http_1.HttpRequest({
339
- protocol,
340
- hostname,
341
- port,
342
- method: "PUT",
343
- headers,
344
- path: resolvedPath,
345
- body,
346
- });
235
+ b.m("PUT").h(headers).b(body);
236
+ return b.build();
347
237
  };
348
238
  exports.se_CreateTypedLinkFacetCommand = se_CreateTypedLinkFacetCommand;
349
239
  const se_DeleteDirectoryCommand = async (input, context) => {
350
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
240
+ const b = (0, core_2.requestBuilder)(input, context);
351
241
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
352
- "x-amz-data-partition": input.DirectoryArn,
242
+ [_xadp]: input[_DA],
353
243
  });
354
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
355
- "/amazonclouddirectory/2017-01-11/directory";
244
+ b.bp("/amazonclouddirectory/2017-01-11/directory");
356
245
  let body;
357
- return new protocol_http_1.HttpRequest({
358
- protocol,
359
- hostname,
360
- port,
361
- method: "PUT",
362
- headers,
363
- path: resolvedPath,
364
- body,
365
- });
246
+ b.m("PUT").h(headers).b(body);
247
+ return b.build();
366
248
  };
367
249
  exports.se_DeleteDirectoryCommand = se_DeleteDirectoryCommand;
368
250
  const se_DeleteFacetCommand = async (input, context) => {
369
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
251
+ const b = (0, core_2.requestBuilder)(input, context);
370
252
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
371
253
  "content-type": "application/json",
372
- "x-amz-data-partition": input.SchemaArn,
254
+ [_xadp]: input[_SA],
373
255
  });
374
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
375
- "/amazonclouddirectory/2017-01-11/facet/delete";
256
+ b.bp("/amazonclouddirectory/2017-01-11/facet/delete");
376
257
  let body;
377
258
  body = JSON.stringify((0, smithy_client_1.take)(input, {
378
259
  Name: [],
379
260
  }));
380
- return new protocol_http_1.HttpRequest({
381
- protocol,
382
- hostname,
383
- port,
384
- method: "PUT",
385
- headers,
386
- path: resolvedPath,
387
- body,
388
- });
261
+ b.m("PUT").h(headers).b(body);
262
+ return b.build();
389
263
  };
390
264
  exports.se_DeleteFacetCommand = se_DeleteFacetCommand;
391
265
  const se_DeleteObjectCommand = async (input, context) => {
392
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
266
+ const b = (0, core_2.requestBuilder)(input, context);
393
267
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
394
268
  "content-type": "application/json",
395
- "x-amz-data-partition": input.DirectoryArn,
269
+ [_xadp]: input[_DA],
396
270
  });
397
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
398
- "/amazonclouddirectory/2017-01-11/object/delete";
271
+ b.bp("/amazonclouddirectory/2017-01-11/object/delete");
399
272
  let body;
400
273
  body = JSON.stringify((0, smithy_client_1.take)(input, {
401
274
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
402
275
  }));
403
- return new protocol_http_1.HttpRequest({
404
- protocol,
405
- hostname,
406
- port,
407
- method: "PUT",
408
- headers,
409
- path: resolvedPath,
410
- body,
411
- });
276
+ b.m("PUT").h(headers).b(body);
277
+ return b.build();
412
278
  };
413
279
  exports.se_DeleteObjectCommand = se_DeleteObjectCommand;
414
280
  const se_DeleteSchemaCommand = async (input, context) => {
415
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
281
+ const b = (0, core_2.requestBuilder)(input, context);
416
282
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
417
- "x-amz-data-partition": input.SchemaArn,
283
+ [_xadp]: input[_SA],
418
284
  });
419
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/schema";
285
+ b.bp("/amazonclouddirectory/2017-01-11/schema");
420
286
  let body;
421
- return new protocol_http_1.HttpRequest({
422
- protocol,
423
- hostname,
424
- port,
425
- method: "PUT",
426
- headers,
427
- path: resolvedPath,
428
- body,
429
- });
287
+ b.m("PUT").h(headers).b(body);
288
+ return b.build();
430
289
  };
431
290
  exports.se_DeleteSchemaCommand = se_DeleteSchemaCommand;
432
291
  const se_DeleteTypedLinkFacetCommand = async (input, context) => {
433
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
292
+ const b = (0, core_2.requestBuilder)(input, context);
434
293
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
435
294
  "content-type": "application/json",
436
- "x-amz-data-partition": input.SchemaArn,
295
+ [_xadp]: input[_SA],
437
296
  });
438
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
439
- "/amazonclouddirectory/2017-01-11/typedlink/facet/delete";
297
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/delete");
440
298
  let body;
441
299
  body = JSON.stringify((0, smithy_client_1.take)(input, {
442
300
  Name: [],
443
301
  }));
444
- return new protocol_http_1.HttpRequest({
445
- protocol,
446
- hostname,
447
- port,
448
- method: "PUT",
449
- headers,
450
- path: resolvedPath,
451
- body,
452
- });
302
+ b.m("PUT").h(headers).b(body);
303
+ return b.build();
453
304
  };
454
305
  exports.se_DeleteTypedLinkFacetCommand = se_DeleteTypedLinkFacetCommand;
455
306
  const se_DetachFromIndexCommand = async (input, context) => {
456
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
307
+ const b = (0, core_2.requestBuilder)(input, context);
457
308
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
458
309
  "content-type": "application/json",
459
- "x-amz-data-partition": input.DirectoryArn,
310
+ [_xadp]: input[_DA],
460
311
  });
461
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
462
- "/amazonclouddirectory/2017-01-11/index/detach";
312
+ b.bp("/amazonclouddirectory/2017-01-11/index/detach");
463
313
  let body;
464
314
  body = JSON.stringify((0, smithy_client_1.take)(input, {
465
315
  IndexReference: (_) => (0, smithy_client_1._json)(_),
466
316
  TargetReference: (_) => (0, smithy_client_1._json)(_),
467
317
  }));
468
- return new protocol_http_1.HttpRequest({
469
- protocol,
470
- hostname,
471
- port,
472
- method: "PUT",
473
- headers,
474
- path: resolvedPath,
475
- body,
476
- });
318
+ b.m("PUT").h(headers).b(body);
319
+ return b.build();
477
320
  };
478
321
  exports.se_DetachFromIndexCommand = se_DetachFromIndexCommand;
479
322
  const se_DetachObjectCommand = async (input, context) => {
480
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
323
+ const b = (0, core_2.requestBuilder)(input, context);
481
324
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
482
325
  "content-type": "application/json",
483
- "x-amz-data-partition": input.DirectoryArn,
326
+ [_xadp]: input[_DA],
484
327
  });
485
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
486
- "/amazonclouddirectory/2017-01-11/object/detach";
328
+ b.bp("/amazonclouddirectory/2017-01-11/object/detach");
487
329
  let body;
488
330
  body = JSON.stringify((0, smithy_client_1.take)(input, {
489
331
  LinkName: [],
490
332
  ParentReference: (_) => (0, smithy_client_1._json)(_),
491
333
  }));
492
- return new protocol_http_1.HttpRequest({
493
- protocol,
494
- hostname,
495
- port,
496
- method: "PUT",
497
- headers,
498
- path: resolvedPath,
499
- body,
500
- });
334
+ b.m("PUT").h(headers).b(body);
335
+ return b.build();
501
336
  };
502
337
  exports.se_DetachObjectCommand = se_DetachObjectCommand;
503
338
  const se_DetachPolicyCommand = async (input, context) => {
504
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
+ const b = (0, core_2.requestBuilder)(input, context);
505
340
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
506
341
  "content-type": "application/json",
507
- "x-amz-data-partition": input.DirectoryArn,
342
+ [_xadp]: input[_DA],
508
343
  });
509
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
510
- "/amazonclouddirectory/2017-01-11/policy/detach";
344
+ b.bp("/amazonclouddirectory/2017-01-11/policy/detach");
511
345
  let body;
512
346
  body = JSON.stringify((0, smithy_client_1.take)(input, {
513
347
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
514
348
  PolicyReference: (_) => (0, smithy_client_1._json)(_),
515
349
  }));
516
- return new protocol_http_1.HttpRequest({
517
- protocol,
518
- hostname,
519
- port,
520
- method: "PUT",
521
- headers,
522
- path: resolvedPath,
523
- body,
524
- });
350
+ b.m("PUT").h(headers).b(body);
351
+ return b.build();
525
352
  };
526
353
  exports.se_DetachPolicyCommand = se_DetachPolicyCommand;
527
354
  const se_DetachTypedLinkCommand = async (input, context) => {
528
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
355
+ const b = (0, core_2.requestBuilder)(input, context);
529
356
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
530
357
  "content-type": "application/json",
531
- "x-amz-data-partition": input.DirectoryArn,
358
+ [_xadp]: input[_DA],
532
359
  });
533
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
534
- "/amazonclouddirectory/2017-01-11/typedlink/detach";
360
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/detach");
535
361
  let body;
536
362
  body = JSON.stringify((0, smithy_client_1.take)(input, {
537
363
  TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context),
538
364
  }));
539
- return new protocol_http_1.HttpRequest({
540
- protocol,
541
- hostname,
542
- port,
543
- method: "PUT",
544
- headers,
545
- path: resolvedPath,
546
- body,
547
- });
365
+ b.m("PUT").h(headers).b(body);
366
+ return b.build();
548
367
  };
549
368
  exports.se_DetachTypedLinkCommand = se_DetachTypedLinkCommand;
550
369
  const se_DisableDirectoryCommand = async (input, context) => {
551
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
370
+ const b = (0, core_2.requestBuilder)(input, context);
552
371
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
553
- "x-amz-data-partition": input.DirectoryArn,
372
+ [_xadp]: input[_DA],
554
373
  });
555
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
556
- "/amazonclouddirectory/2017-01-11/directory/disable";
374
+ b.bp("/amazonclouddirectory/2017-01-11/directory/disable");
557
375
  let body;
558
- return new protocol_http_1.HttpRequest({
559
- protocol,
560
- hostname,
561
- port,
562
- method: "PUT",
563
- headers,
564
- path: resolvedPath,
565
- body,
566
- });
376
+ b.m("PUT").h(headers).b(body);
377
+ return b.build();
567
378
  };
568
379
  exports.se_DisableDirectoryCommand = se_DisableDirectoryCommand;
569
380
  const se_EnableDirectoryCommand = async (input, context) => {
570
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
381
+ const b = (0, core_2.requestBuilder)(input, context);
571
382
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
572
- "x-amz-data-partition": input.DirectoryArn,
383
+ [_xadp]: input[_DA],
573
384
  });
574
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
575
- "/amazonclouddirectory/2017-01-11/directory/enable";
385
+ b.bp("/amazonclouddirectory/2017-01-11/directory/enable");
576
386
  let body;
577
- return new protocol_http_1.HttpRequest({
578
- protocol,
579
- hostname,
580
- port,
581
- method: "PUT",
582
- headers,
583
- path: resolvedPath,
584
- body,
585
- });
387
+ b.m("PUT").h(headers).b(body);
388
+ return b.build();
586
389
  };
587
390
  exports.se_EnableDirectoryCommand = se_EnableDirectoryCommand;
588
391
  const se_GetAppliedSchemaVersionCommand = async (input, context) => {
589
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
392
+ const b = (0, core_2.requestBuilder)(input, context);
590
393
  const headers = {
591
394
  "content-type": "application/json",
592
395
  };
593
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
594
- "/amazonclouddirectory/2017-01-11/schema/getappliedschema";
396
+ b.bp("/amazonclouddirectory/2017-01-11/schema/getappliedschema");
595
397
  let body;
596
398
  body = JSON.stringify((0, smithy_client_1.take)(input, {
597
399
  SchemaArn: [],
598
400
  }));
599
- return new protocol_http_1.HttpRequest({
600
- protocol,
601
- hostname,
602
- port,
603
- method: "POST",
604
- headers,
605
- path: resolvedPath,
606
- body,
607
- });
401
+ b.m("POST").h(headers).b(body);
402
+ return b.build();
608
403
  };
609
404
  exports.se_GetAppliedSchemaVersionCommand = se_GetAppliedSchemaVersionCommand;
610
405
  const se_GetDirectoryCommand = async (input, context) => {
611
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
406
+ const b = (0, core_2.requestBuilder)(input, context);
612
407
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
613
- "x-amz-data-partition": input.DirectoryArn,
408
+ [_xadp]: input[_DA],
614
409
  });
615
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
616
- "/amazonclouddirectory/2017-01-11/directory/get";
410
+ b.bp("/amazonclouddirectory/2017-01-11/directory/get");
617
411
  let body;
618
- return new protocol_http_1.HttpRequest({
619
- protocol,
620
- hostname,
621
- port,
622
- method: "POST",
623
- headers,
624
- path: resolvedPath,
625
- body,
626
- });
412
+ b.m("POST").h(headers).b(body);
413
+ return b.build();
627
414
  };
628
415
  exports.se_GetDirectoryCommand = se_GetDirectoryCommand;
629
416
  const se_GetFacetCommand = async (input, context) => {
630
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
417
+ const b = (0, core_2.requestBuilder)(input, context);
631
418
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
632
419
  "content-type": "application/json",
633
- "x-amz-data-partition": input.SchemaArn,
420
+ [_xadp]: input[_SA],
634
421
  });
635
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/facet";
422
+ b.bp("/amazonclouddirectory/2017-01-11/facet");
636
423
  let body;
637
424
  body = JSON.stringify((0, smithy_client_1.take)(input, {
638
425
  Name: [],
639
426
  }));
640
- return new protocol_http_1.HttpRequest({
641
- protocol,
642
- hostname,
643
- port,
644
- method: "POST",
645
- headers,
646
- path: resolvedPath,
647
- body,
648
- });
427
+ b.m("POST").h(headers).b(body);
428
+ return b.build();
649
429
  };
650
430
  exports.se_GetFacetCommand = se_GetFacetCommand;
651
431
  const se_GetLinkAttributesCommand = async (input, context) => {
652
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
432
+ const b = (0, core_2.requestBuilder)(input, context);
653
433
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
654
434
  "content-type": "application/json",
655
- "x-amz-data-partition": input.DirectoryArn,
435
+ [_xadp]: input[_DA],
656
436
  });
657
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
658
- "/amazonclouddirectory/2017-01-11/typedlink/attributes/get";
437
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/attributes/get");
659
438
  let body;
660
439
  body = JSON.stringify((0, smithy_client_1.take)(input, {
661
440
  AttributeNames: (_) => (0, smithy_client_1._json)(_),
662
441
  ConsistencyLevel: [],
663
442
  TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context),
664
443
  }));
665
- return new protocol_http_1.HttpRequest({
666
- protocol,
667
- hostname,
668
- port,
669
- method: "POST",
670
- headers,
671
- path: resolvedPath,
672
- body,
673
- });
444
+ b.m("POST").h(headers).b(body);
445
+ return b.build();
674
446
  };
675
447
  exports.se_GetLinkAttributesCommand = se_GetLinkAttributesCommand;
676
448
  const se_GetObjectAttributesCommand = async (input, context) => {
677
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
449
+ const b = (0, core_2.requestBuilder)(input, context);
678
450
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
679
451
  "content-type": "application/json",
680
- "x-amz-data-partition": input.DirectoryArn,
681
- "x-amz-consistency-level": input.ConsistencyLevel,
452
+ [_xadp]: input[_DA],
453
+ [_xacl]: input[_CL],
682
454
  });
683
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
684
- "/amazonclouddirectory/2017-01-11/object/attributes/get";
455
+ b.bp("/amazonclouddirectory/2017-01-11/object/attributes/get");
685
456
  let body;
686
457
  body = JSON.stringify((0, smithy_client_1.take)(input, {
687
458
  AttributeNames: (_) => (0, smithy_client_1._json)(_),
688
459
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
689
460
  SchemaFacet: (_) => (0, smithy_client_1._json)(_),
690
461
  }));
691
- return new protocol_http_1.HttpRequest({
692
- protocol,
693
- hostname,
694
- port,
695
- method: "POST",
696
- headers,
697
- path: resolvedPath,
698
- body,
699
- });
462
+ b.m("POST").h(headers).b(body);
463
+ return b.build();
700
464
  };
701
465
  exports.se_GetObjectAttributesCommand = se_GetObjectAttributesCommand;
702
466
  const se_GetObjectInformationCommand = async (input, context) => {
703
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
467
+ const b = (0, core_2.requestBuilder)(input, context);
704
468
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
705
469
  "content-type": "application/json",
706
- "x-amz-data-partition": input.DirectoryArn,
707
- "x-amz-consistency-level": input.ConsistencyLevel,
470
+ [_xadp]: input[_DA],
471
+ [_xacl]: input[_CL],
708
472
  });
709
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
710
- "/amazonclouddirectory/2017-01-11/object/information";
473
+ b.bp("/amazonclouddirectory/2017-01-11/object/information");
711
474
  let body;
712
475
  body = JSON.stringify((0, smithy_client_1.take)(input, {
713
476
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
714
477
  }));
715
- return new protocol_http_1.HttpRequest({
716
- protocol,
717
- hostname,
718
- port,
719
- method: "POST",
720
- headers,
721
- path: resolvedPath,
722
- body,
723
- });
478
+ b.m("POST").h(headers).b(body);
479
+ return b.build();
724
480
  };
725
481
  exports.se_GetObjectInformationCommand = se_GetObjectInformationCommand;
726
482
  const se_GetSchemaAsJsonCommand = async (input, context) => {
727
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
483
+ const b = (0, core_2.requestBuilder)(input, context);
728
484
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
729
- "x-amz-data-partition": input.SchemaArn,
485
+ [_xadp]: input[_SA],
730
486
  });
731
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
732
- "/amazonclouddirectory/2017-01-11/schema/json";
487
+ b.bp("/amazonclouddirectory/2017-01-11/schema/json");
733
488
  let body;
734
- return new protocol_http_1.HttpRequest({
735
- protocol,
736
- hostname,
737
- port,
738
- method: "POST",
739
- headers,
740
- path: resolvedPath,
741
- body,
742
- });
489
+ b.m("POST").h(headers).b(body);
490
+ return b.build();
743
491
  };
744
492
  exports.se_GetSchemaAsJsonCommand = se_GetSchemaAsJsonCommand;
745
493
  const se_GetTypedLinkFacetInformationCommand = async (input, context) => {
746
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
494
+ const b = (0, core_2.requestBuilder)(input, context);
747
495
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
748
496
  "content-type": "application/json",
749
- "x-amz-data-partition": input.SchemaArn,
497
+ [_xadp]: input[_SA],
750
498
  });
751
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
752
- "/amazonclouddirectory/2017-01-11/typedlink/facet/get";
499
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/get");
753
500
  let body;
754
501
  body = JSON.stringify((0, smithy_client_1.take)(input, {
755
502
  Name: [],
756
503
  }));
757
- return new protocol_http_1.HttpRequest({
758
- protocol,
759
- hostname,
760
- port,
761
- method: "POST",
762
- headers,
763
- path: resolvedPath,
764
- body,
765
- });
504
+ b.m("POST").h(headers).b(body);
505
+ return b.build();
766
506
  };
767
507
  exports.se_GetTypedLinkFacetInformationCommand = se_GetTypedLinkFacetInformationCommand;
768
508
  const se_ListAppliedSchemaArnsCommand = async (input, context) => {
769
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
509
+ const b = (0, core_2.requestBuilder)(input, context);
770
510
  const headers = {
771
511
  "content-type": "application/json",
772
512
  };
773
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
774
- "/amazonclouddirectory/2017-01-11/schema/applied";
513
+ b.bp("/amazonclouddirectory/2017-01-11/schema/applied");
775
514
  let body;
776
515
  body = JSON.stringify((0, smithy_client_1.take)(input, {
777
516
  DirectoryArn: [],
@@ -779,147 +518,99 @@ const se_ListAppliedSchemaArnsCommand = async (input, context) => {
779
518
  NextToken: [],
780
519
  SchemaArn: [],
781
520
  }));
782
- return new protocol_http_1.HttpRequest({
783
- protocol,
784
- hostname,
785
- port,
786
- method: "POST",
787
- headers,
788
- path: resolvedPath,
789
- body,
790
- });
521
+ b.m("POST").h(headers).b(body);
522
+ return b.build();
791
523
  };
792
524
  exports.se_ListAppliedSchemaArnsCommand = se_ListAppliedSchemaArnsCommand;
793
525
  const se_ListAttachedIndicesCommand = async (input, context) => {
794
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
526
+ const b = (0, core_2.requestBuilder)(input, context);
795
527
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
796
528
  "content-type": "application/json",
797
- "x-amz-data-partition": input.DirectoryArn,
798
- "x-amz-consistency-level": input.ConsistencyLevel,
529
+ [_xadp]: input[_DA],
530
+ [_xacl]: input[_CL],
799
531
  });
800
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
801
- "/amazonclouddirectory/2017-01-11/object/indices";
532
+ b.bp("/amazonclouddirectory/2017-01-11/object/indices");
802
533
  let body;
803
534
  body = JSON.stringify((0, smithy_client_1.take)(input, {
804
535
  MaxResults: [],
805
536
  NextToken: [],
806
537
  TargetReference: (_) => (0, smithy_client_1._json)(_),
807
538
  }));
808
- return new protocol_http_1.HttpRequest({
809
- protocol,
810
- hostname,
811
- port,
812
- method: "POST",
813
- headers,
814
- path: resolvedPath,
815
- body,
816
- });
539
+ b.m("POST").h(headers).b(body);
540
+ return b.build();
817
541
  };
818
542
  exports.se_ListAttachedIndicesCommand = se_ListAttachedIndicesCommand;
819
543
  const se_ListDevelopmentSchemaArnsCommand = async (input, context) => {
820
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
544
+ const b = (0, core_2.requestBuilder)(input, context);
821
545
  const headers = {
822
546
  "content-type": "application/json",
823
547
  };
824
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
825
- "/amazonclouddirectory/2017-01-11/schema/development";
548
+ b.bp("/amazonclouddirectory/2017-01-11/schema/development");
826
549
  let body;
827
550
  body = JSON.stringify((0, smithy_client_1.take)(input, {
828
551
  MaxResults: [],
829
552
  NextToken: [],
830
553
  }));
831
- return new protocol_http_1.HttpRequest({
832
- protocol,
833
- hostname,
834
- port,
835
- method: "POST",
836
- headers,
837
- path: resolvedPath,
838
- body,
839
- });
554
+ b.m("POST").h(headers).b(body);
555
+ return b.build();
840
556
  };
841
557
  exports.se_ListDevelopmentSchemaArnsCommand = se_ListDevelopmentSchemaArnsCommand;
842
558
  const se_ListDirectoriesCommand = async (input, context) => {
843
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
559
+ const b = (0, core_2.requestBuilder)(input, context);
844
560
  const headers = {
845
561
  "content-type": "application/json",
846
562
  };
847
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
848
- "/amazonclouddirectory/2017-01-11/directory/list";
563
+ b.bp("/amazonclouddirectory/2017-01-11/directory/list");
849
564
  let body;
850
565
  body = JSON.stringify((0, smithy_client_1.take)(input, {
851
566
  MaxResults: [],
852
567
  NextToken: [],
853
568
  state: [],
854
569
  }));
855
- return new protocol_http_1.HttpRequest({
856
- protocol,
857
- hostname,
858
- port,
859
- method: "POST",
860
- headers,
861
- path: resolvedPath,
862
- body,
863
- });
570
+ b.m("POST").h(headers).b(body);
571
+ return b.build();
864
572
  };
865
573
  exports.se_ListDirectoriesCommand = se_ListDirectoriesCommand;
866
574
  const se_ListFacetAttributesCommand = async (input, context) => {
867
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
575
+ const b = (0, core_2.requestBuilder)(input, context);
868
576
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
869
577
  "content-type": "application/json",
870
- "x-amz-data-partition": input.SchemaArn,
578
+ [_xadp]: input[_SA],
871
579
  });
872
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
873
- "/amazonclouddirectory/2017-01-11/facet/attributes";
580
+ b.bp("/amazonclouddirectory/2017-01-11/facet/attributes");
874
581
  let body;
875
582
  body = JSON.stringify((0, smithy_client_1.take)(input, {
876
583
  MaxResults: [],
877
584
  Name: [],
878
585
  NextToken: [],
879
586
  }));
880
- return new protocol_http_1.HttpRequest({
881
- protocol,
882
- hostname,
883
- port,
884
- method: "POST",
885
- headers,
886
- path: resolvedPath,
887
- body,
888
- });
587
+ b.m("POST").h(headers).b(body);
588
+ return b.build();
889
589
  };
890
590
  exports.se_ListFacetAttributesCommand = se_ListFacetAttributesCommand;
891
591
  const se_ListFacetNamesCommand = async (input, context) => {
892
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
592
+ const b = (0, core_2.requestBuilder)(input, context);
893
593
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
894
594
  "content-type": "application/json",
895
- "x-amz-data-partition": input.SchemaArn,
595
+ [_xadp]: input[_SA],
896
596
  });
897
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
898
- "/amazonclouddirectory/2017-01-11/facet/list";
597
+ b.bp("/amazonclouddirectory/2017-01-11/facet/list");
899
598
  let body;
900
599
  body = JSON.stringify((0, smithy_client_1.take)(input, {
901
600
  MaxResults: [],
902
601
  NextToken: [],
903
602
  }));
904
- return new protocol_http_1.HttpRequest({
905
- protocol,
906
- hostname,
907
- port,
908
- method: "POST",
909
- headers,
910
- path: resolvedPath,
911
- body,
912
- });
603
+ b.m("POST").h(headers).b(body);
604
+ return b.build();
913
605
  };
914
606
  exports.se_ListFacetNamesCommand = se_ListFacetNamesCommand;
915
607
  const se_ListIncomingTypedLinksCommand = async (input, context) => {
916
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
608
+ const b = (0, core_2.requestBuilder)(input, context);
917
609
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
918
610
  "content-type": "application/json",
919
- "x-amz-data-partition": input.DirectoryArn,
611
+ [_xadp]: input[_DA],
920
612
  });
921
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
922
- "/amazonclouddirectory/2017-01-11/typedlink/incoming";
613
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/incoming");
923
614
  let body;
924
615
  body = JSON.stringify((0, smithy_client_1.take)(input, {
925
616
  ConsistencyLevel: [],
@@ -929,26 +620,18 @@ const se_ListIncomingTypedLinksCommand = async (input, context) => {
929
620
  NextToken: [],
930
621
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
931
622
  }));
932
- return new protocol_http_1.HttpRequest({
933
- protocol,
934
- hostname,
935
- port,
936
- method: "POST",
937
- headers,
938
- path: resolvedPath,
939
- body,
940
- });
623
+ b.m("POST").h(headers).b(body);
624
+ return b.build();
941
625
  };
942
626
  exports.se_ListIncomingTypedLinksCommand = se_ListIncomingTypedLinksCommand;
943
627
  const se_ListIndexCommand = async (input, context) => {
944
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
628
+ const b = (0, core_2.requestBuilder)(input, context);
945
629
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
946
630
  "content-type": "application/json",
947
- "x-amz-data-partition": input.DirectoryArn,
948
- "x-amz-consistency-level": input.ConsistencyLevel,
631
+ [_xadp]: input[_DA],
632
+ [_xacl]: input[_CL],
949
633
  });
950
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
951
- "/amazonclouddirectory/2017-01-11/index/targets";
634
+ b.bp("/amazonclouddirectory/2017-01-11/index/targets");
952
635
  let body;
953
636
  body = JSON.stringify((0, smithy_client_1.take)(input, {
954
637
  IndexReference: (_) => (0, smithy_client_1._json)(_),
@@ -956,50 +639,34 @@ const se_ListIndexCommand = async (input, context) => {
956
639
  NextToken: [],
957
640
  RangesOnIndexedValues: (_) => se_ObjectAttributeRangeList(_, context),
958
641
  }));
959
- return new protocol_http_1.HttpRequest({
960
- protocol,
961
- hostname,
962
- port,
963
- method: "POST",
964
- headers,
965
- path: resolvedPath,
966
- body,
967
- });
642
+ b.m("POST").h(headers).b(body);
643
+ return b.build();
968
644
  };
969
645
  exports.se_ListIndexCommand = se_ListIndexCommand;
970
646
  const se_ListManagedSchemaArnsCommand = async (input, context) => {
971
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
647
+ const b = (0, core_2.requestBuilder)(input, context);
972
648
  const headers = {
973
649
  "content-type": "application/json",
974
650
  };
975
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
976
- "/amazonclouddirectory/2017-01-11/schema/managed";
651
+ b.bp("/amazonclouddirectory/2017-01-11/schema/managed");
977
652
  let body;
978
653
  body = JSON.stringify((0, smithy_client_1.take)(input, {
979
654
  MaxResults: [],
980
655
  NextToken: [],
981
656
  SchemaArn: [],
982
657
  }));
983
- return new protocol_http_1.HttpRequest({
984
- protocol,
985
- hostname,
986
- port,
987
- method: "POST",
988
- headers,
989
- path: resolvedPath,
990
- body,
991
- });
658
+ b.m("POST").h(headers).b(body);
659
+ return b.build();
992
660
  };
993
661
  exports.se_ListManagedSchemaArnsCommand = se_ListManagedSchemaArnsCommand;
994
662
  const se_ListObjectAttributesCommand = async (input, context) => {
995
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
663
+ const b = (0, core_2.requestBuilder)(input, context);
996
664
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
997
665
  "content-type": "application/json",
998
- "x-amz-data-partition": input.DirectoryArn,
999
- "x-amz-consistency-level": input.ConsistencyLevel,
666
+ [_xadp]: input[_DA],
667
+ [_xacl]: input[_CL],
1000
668
  });
1001
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1002
- "/amazonclouddirectory/2017-01-11/object/attributes";
669
+ b.bp("/amazonclouddirectory/2017-01-11/object/attributes");
1003
670
  let body;
1004
671
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1005
672
  FacetFilter: (_) => (0, smithy_client_1._json)(_),
@@ -1007,77 +674,53 @@ const se_ListObjectAttributesCommand = async (input, context) => {
1007
674
  NextToken: [],
1008
675
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
1009
676
  }));
1010
- return new protocol_http_1.HttpRequest({
1011
- protocol,
1012
- hostname,
1013
- port,
1014
- method: "POST",
1015
- headers,
1016
- path: resolvedPath,
1017
- body,
1018
- });
677
+ b.m("POST").h(headers).b(body);
678
+ return b.build();
1019
679
  };
1020
680
  exports.se_ListObjectAttributesCommand = se_ListObjectAttributesCommand;
1021
681
  const se_ListObjectChildrenCommand = async (input, context) => {
1022
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
682
+ const b = (0, core_2.requestBuilder)(input, context);
1023
683
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1024
684
  "content-type": "application/json",
1025
- "x-amz-data-partition": input.DirectoryArn,
1026
- "x-amz-consistency-level": input.ConsistencyLevel,
685
+ [_xadp]: input[_DA],
686
+ [_xacl]: input[_CL],
1027
687
  });
1028
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1029
- "/amazonclouddirectory/2017-01-11/object/children";
688
+ b.bp("/amazonclouddirectory/2017-01-11/object/children");
1030
689
  let body;
1031
690
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1032
691
  MaxResults: [],
1033
692
  NextToken: [],
1034
693
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
1035
694
  }));
1036
- return new protocol_http_1.HttpRequest({
1037
- protocol,
1038
- hostname,
1039
- port,
1040
- method: "POST",
1041
- headers,
1042
- path: resolvedPath,
1043
- body,
1044
- });
695
+ b.m("POST").h(headers).b(body);
696
+ return b.build();
1045
697
  };
1046
698
  exports.se_ListObjectChildrenCommand = se_ListObjectChildrenCommand;
1047
699
  const se_ListObjectParentPathsCommand = async (input, context) => {
1048
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
700
+ const b = (0, core_2.requestBuilder)(input, context);
1049
701
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1050
702
  "content-type": "application/json",
1051
- "x-amz-data-partition": input.DirectoryArn,
703
+ [_xadp]: input[_DA],
1052
704
  });
1053
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1054
- "/amazonclouddirectory/2017-01-11/object/parentpaths";
705
+ b.bp("/amazonclouddirectory/2017-01-11/object/parentpaths");
1055
706
  let body;
1056
707
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1057
708
  MaxResults: [],
1058
709
  NextToken: [],
1059
710
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
1060
711
  }));
1061
- return new protocol_http_1.HttpRequest({
1062
- protocol,
1063
- hostname,
1064
- port,
1065
- method: "POST",
1066
- headers,
1067
- path: resolvedPath,
1068
- body,
1069
- });
712
+ b.m("POST").h(headers).b(body);
713
+ return b.build();
1070
714
  };
1071
715
  exports.se_ListObjectParentPathsCommand = se_ListObjectParentPathsCommand;
1072
716
  const se_ListObjectParentsCommand = async (input, context) => {
1073
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
717
+ const b = (0, core_2.requestBuilder)(input, context);
1074
718
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1075
719
  "content-type": "application/json",
1076
- "x-amz-data-partition": input.DirectoryArn,
1077
- "x-amz-consistency-level": input.ConsistencyLevel,
720
+ [_xadp]: input[_DA],
721
+ [_xacl]: input[_CL],
1078
722
  });
1079
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1080
- "/amazonclouddirectory/2017-01-11/object/parent";
723
+ b.bp("/amazonclouddirectory/2017-01-11/object/parent");
1081
724
  let body;
1082
725
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1083
726
  IncludeAllLinksToEachParent: [],
@@ -1085,51 +728,35 @@ const se_ListObjectParentsCommand = async (input, context) => {
1085
728
  NextToken: [],
1086
729
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
1087
730
  }));
1088
- return new protocol_http_1.HttpRequest({
1089
- protocol,
1090
- hostname,
1091
- port,
1092
- method: "POST",
1093
- headers,
1094
- path: resolvedPath,
1095
- body,
1096
- });
731
+ b.m("POST").h(headers).b(body);
732
+ return b.build();
1097
733
  };
1098
734
  exports.se_ListObjectParentsCommand = se_ListObjectParentsCommand;
1099
735
  const se_ListObjectPoliciesCommand = async (input, context) => {
1100
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
736
+ const b = (0, core_2.requestBuilder)(input, context);
1101
737
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1102
738
  "content-type": "application/json",
1103
- "x-amz-data-partition": input.DirectoryArn,
1104
- "x-amz-consistency-level": input.ConsistencyLevel,
739
+ [_xadp]: input[_DA],
740
+ [_xacl]: input[_CL],
1105
741
  });
1106
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1107
- "/amazonclouddirectory/2017-01-11/object/policy";
742
+ b.bp("/amazonclouddirectory/2017-01-11/object/policy");
1108
743
  let body;
1109
744
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1110
745
  MaxResults: [],
1111
746
  NextToken: [],
1112
747
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
1113
748
  }));
1114
- return new protocol_http_1.HttpRequest({
1115
- protocol,
1116
- hostname,
1117
- port,
1118
- method: "POST",
1119
- headers,
1120
- path: resolvedPath,
1121
- body,
1122
- });
749
+ b.m("POST").h(headers).b(body);
750
+ return b.build();
1123
751
  };
1124
752
  exports.se_ListObjectPoliciesCommand = se_ListObjectPoliciesCommand;
1125
753
  const se_ListOutgoingTypedLinksCommand = async (input, context) => {
1126
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
754
+ const b = (0, core_2.requestBuilder)(input, context);
1127
755
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1128
756
  "content-type": "application/json",
1129
- "x-amz-data-partition": input.DirectoryArn,
757
+ [_xadp]: input[_DA],
1130
758
  });
1131
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1132
- "/amazonclouddirectory/2017-01-11/typedlink/outgoing";
759
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/outgoing");
1133
760
  let body;
1134
761
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1135
762
  ConsistencyLevel: [],
@@ -1139,432 +766,291 @@ const se_ListOutgoingTypedLinksCommand = async (input, context) => {
1139
766
  NextToken: [],
1140
767
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
1141
768
  }));
1142
- return new protocol_http_1.HttpRequest({
1143
- protocol,
1144
- hostname,
1145
- port,
1146
- method: "POST",
1147
- headers,
1148
- path: resolvedPath,
1149
- body,
1150
- });
769
+ b.m("POST").h(headers).b(body);
770
+ return b.build();
1151
771
  };
1152
772
  exports.se_ListOutgoingTypedLinksCommand = se_ListOutgoingTypedLinksCommand;
1153
773
  const se_ListPolicyAttachmentsCommand = async (input, context) => {
1154
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
774
+ const b = (0, core_2.requestBuilder)(input, context);
1155
775
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1156
776
  "content-type": "application/json",
1157
- "x-amz-data-partition": input.DirectoryArn,
1158
- "x-amz-consistency-level": input.ConsistencyLevel,
777
+ [_xadp]: input[_DA],
778
+ [_xacl]: input[_CL],
1159
779
  });
1160
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1161
- "/amazonclouddirectory/2017-01-11/policy/attachment";
780
+ b.bp("/amazonclouddirectory/2017-01-11/policy/attachment");
1162
781
  let body;
1163
782
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1164
783
  MaxResults: [],
1165
784
  NextToken: [],
1166
785
  PolicyReference: (_) => (0, smithy_client_1._json)(_),
1167
786
  }));
1168
- return new protocol_http_1.HttpRequest({
1169
- protocol,
1170
- hostname,
1171
- port,
1172
- method: "POST",
1173
- headers,
1174
- path: resolvedPath,
1175
- body,
1176
- });
787
+ b.m("POST").h(headers).b(body);
788
+ return b.build();
1177
789
  };
1178
790
  exports.se_ListPolicyAttachmentsCommand = se_ListPolicyAttachmentsCommand;
1179
791
  const se_ListPublishedSchemaArnsCommand = async (input, context) => {
1180
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
792
+ const b = (0, core_2.requestBuilder)(input, context);
1181
793
  const headers = {
1182
794
  "content-type": "application/json",
1183
795
  };
1184
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1185
- "/amazonclouddirectory/2017-01-11/schema/published";
796
+ b.bp("/amazonclouddirectory/2017-01-11/schema/published");
1186
797
  let body;
1187
798
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1188
799
  MaxResults: [],
1189
800
  NextToken: [],
1190
801
  SchemaArn: [],
1191
802
  }));
1192
- return new protocol_http_1.HttpRequest({
1193
- protocol,
1194
- hostname,
1195
- port,
1196
- method: "POST",
1197
- headers,
1198
- path: resolvedPath,
1199
- body,
1200
- });
803
+ b.m("POST").h(headers).b(body);
804
+ return b.build();
1201
805
  };
1202
806
  exports.se_ListPublishedSchemaArnsCommand = se_ListPublishedSchemaArnsCommand;
1203
807
  const se_ListTagsForResourceCommand = async (input, context) => {
1204
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
808
+ const b = (0, core_2.requestBuilder)(input, context);
1205
809
  const headers = {
1206
810
  "content-type": "application/json",
1207
811
  };
1208
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/tags";
812
+ b.bp("/amazonclouddirectory/2017-01-11/tags");
1209
813
  let body;
1210
814
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1211
815
  MaxResults: [],
1212
816
  NextToken: [],
1213
817
  ResourceArn: [],
1214
818
  }));
1215
- return new protocol_http_1.HttpRequest({
1216
- protocol,
1217
- hostname,
1218
- port,
1219
- method: "POST",
1220
- headers,
1221
- path: resolvedPath,
1222
- body,
1223
- });
819
+ b.m("POST").h(headers).b(body);
820
+ return b.build();
1224
821
  };
1225
822
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1226
823
  const se_ListTypedLinkFacetAttributesCommand = async (input, context) => {
1227
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
824
+ const b = (0, core_2.requestBuilder)(input, context);
1228
825
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1229
826
  "content-type": "application/json",
1230
- "x-amz-data-partition": input.SchemaArn,
827
+ [_xadp]: input[_SA],
1231
828
  });
1232
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1233
- "/amazonclouddirectory/2017-01-11/typedlink/facet/attributes";
829
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/attributes");
1234
830
  let body;
1235
831
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1236
832
  MaxResults: [],
1237
833
  Name: [],
1238
834
  NextToken: [],
1239
835
  }));
1240
- return new protocol_http_1.HttpRequest({
1241
- protocol,
1242
- hostname,
1243
- port,
1244
- method: "POST",
1245
- headers,
1246
- path: resolvedPath,
1247
- body,
1248
- });
836
+ b.m("POST").h(headers).b(body);
837
+ return b.build();
1249
838
  };
1250
839
  exports.se_ListTypedLinkFacetAttributesCommand = se_ListTypedLinkFacetAttributesCommand;
1251
840
  const se_ListTypedLinkFacetNamesCommand = async (input, context) => {
1252
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
841
+ const b = (0, core_2.requestBuilder)(input, context);
1253
842
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1254
843
  "content-type": "application/json",
1255
- "x-amz-data-partition": input.SchemaArn,
844
+ [_xadp]: input[_SA],
1256
845
  });
1257
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1258
- "/amazonclouddirectory/2017-01-11/typedlink/facet/list";
846
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet/list");
1259
847
  let body;
1260
848
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1261
849
  MaxResults: [],
1262
850
  NextToken: [],
1263
851
  }));
1264
- return new protocol_http_1.HttpRequest({
1265
- protocol,
1266
- hostname,
1267
- port,
1268
- method: "POST",
1269
- headers,
1270
- path: resolvedPath,
1271
- body,
1272
- });
852
+ b.m("POST").h(headers).b(body);
853
+ return b.build();
1273
854
  };
1274
855
  exports.se_ListTypedLinkFacetNamesCommand = se_ListTypedLinkFacetNamesCommand;
1275
856
  const se_LookupPolicyCommand = async (input, context) => {
1276
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
857
+ const b = (0, core_2.requestBuilder)(input, context);
1277
858
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1278
859
  "content-type": "application/json",
1279
- "x-amz-data-partition": input.DirectoryArn,
860
+ [_xadp]: input[_DA],
1280
861
  });
1281
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1282
- "/amazonclouddirectory/2017-01-11/policy/lookup";
862
+ b.bp("/amazonclouddirectory/2017-01-11/policy/lookup");
1283
863
  let body;
1284
864
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1285
865
  MaxResults: [],
1286
866
  NextToken: [],
1287
867
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
1288
868
  }));
1289
- return new protocol_http_1.HttpRequest({
1290
- protocol,
1291
- hostname,
1292
- port,
1293
- method: "POST",
1294
- headers,
1295
- path: resolvedPath,
1296
- body,
1297
- });
869
+ b.m("POST").h(headers).b(body);
870
+ return b.build();
1298
871
  };
1299
872
  exports.se_LookupPolicyCommand = se_LookupPolicyCommand;
1300
873
  const se_PublishSchemaCommand = async (input, context) => {
1301
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
874
+ const b = (0, core_2.requestBuilder)(input, context);
1302
875
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1303
876
  "content-type": "application/json",
1304
- "x-amz-data-partition": input.DevelopmentSchemaArn,
877
+ [_xadp]: input[_DSA],
1305
878
  });
1306
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1307
- "/amazonclouddirectory/2017-01-11/schema/publish";
879
+ b.bp("/amazonclouddirectory/2017-01-11/schema/publish");
1308
880
  let body;
1309
881
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1310
882
  MinorVersion: [],
1311
883
  Name: [],
1312
884
  Version: [],
1313
885
  }));
1314
- return new protocol_http_1.HttpRequest({
1315
- protocol,
1316
- hostname,
1317
- port,
1318
- method: "PUT",
1319
- headers,
1320
- path: resolvedPath,
1321
- body,
1322
- });
886
+ b.m("PUT").h(headers).b(body);
887
+ return b.build();
1323
888
  };
1324
889
  exports.se_PublishSchemaCommand = se_PublishSchemaCommand;
1325
890
  const se_PutSchemaFromJsonCommand = async (input, context) => {
1326
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
891
+ const b = (0, core_2.requestBuilder)(input, context);
1327
892
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1328
893
  "content-type": "application/json",
1329
- "x-amz-data-partition": input.SchemaArn,
894
+ [_xadp]: input[_SA],
1330
895
  });
1331
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1332
- "/amazonclouddirectory/2017-01-11/schema/json";
896
+ b.bp("/amazonclouddirectory/2017-01-11/schema/json");
1333
897
  let body;
1334
898
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1335
899
  Document: [],
1336
900
  }));
1337
- return new protocol_http_1.HttpRequest({
1338
- protocol,
1339
- hostname,
1340
- port,
1341
- method: "PUT",
1342
- headers,
1343
- path: resolvedPath,
1344
- body,
1345
- });
901
+ b.m("PUT").h(headers).b(body);
902
+ return b.build();
1346
903
  };
1347
904
  exports.se_PutSchemaFromJsonCommand = se_PutSchemaFromJsonCommand;
1348
905
  const se_RemoveFacetFromObjectCommand = async (input, context) => {
1349
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
906
+ const b = (0, core_2.requestBuilder)(input, context);
1350
907
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1351
908
  "content-type": "application/json",
1352
- "x-amz-data-partition": input.DirectoryArn,
909
+ [_xadp]: input[_DA],
1353
910
  });
1354
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1355
- "/amazonclouddirectory/2017-01-11/object/facets/delete";
911
+ b.bp("/amazonclouddirectory/2017-01-11/object/facets/delete");
1356
912
  let body;
1357
913
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1358
914
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
1359
915
  SchemaFacet: (_) => (0, smithy_client_1._json)(_),
1360
916
  }));
1361
- return new protocol_http_1.HttpRequest({
1362
- protocol,
1363
- hostname,
1364
- port,
1365
- method: "PUT",
1366
- headers,
1367
- path: resolvedPath,
1368
- body,
1369
- });
917
+ b.m("PUT").h(headers).b(body);
918
+ return b.build();
1370
919
  };
1371
920
  exports.se_RemoveFacetFromObjectCommand = se_RemoveFacetFromObjectCommand;
1372
921
  const se_TagResourceCommand = async (input, context) => {
1373
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
922
+ const b = (0, core_2.requestBuilder)(input, context);
1374
923
  const headers = {
1375
924
  "content-type": "application/json",
1376
925
  };
1377
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/tags/add";
926
+ b.bp("/amazonclouddirectory/2017-01-11/tags/add");
1378
927
  let body;
1379
928
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1380
929
  ResourceArn: [],
1381
930
  Tags: (_) => (0, smithy_client_1._json)(_),
1382
931
  }));
1383
- return new protocol_http_1.HttpRequest({
1384
- protocol,
1385
- hostname,
1386
- port,
1387
- method: "PUT",
1388
- headers,
1389
- path: resolvedPath,
1390
- body,
1391
- });
932
+ b.m("PUT").h(headers).b(body);
933
+ return b.build();
1392
934
  };
1393
935
  exports.se_TagResourceCommand = se_TagResourceCommand;
1394
936
  const se_UntagResourceCommand = async (input, context) => {
1395
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
937
+ const b = (0, core_2.requestBuilder)(input, context);
1396
938
  const headers = {
1397
939
  "content-type": "application/json",
1398
940
  };
1399
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1400
- "/amazonclouddirectory/2017-01-11/tags/remove";
941
+ b.bp("/amazonclouddirectory/2017-01-11/tags/remove");
1401
942
  let body;
1402
943
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1403
944
  ResourceArn: [],
1404
945
  TagKeys: (_) => (0, smithy_client_1._json)(_),
1405
946
  }));
1406
- return new protocol_http_1.HttpRequest({
1407
- protocol,
1408
- hostname,
1409
- port,
1410
- method: "PUT",
1411
- headers,
1412
- path: resolvedPath,
1413
- body,
1414
- });
947
+ b.m("PUT").h(headers).b(body);
948
+ return b.build();
1415
949
  };
1416
950
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1417
951
  const se_UpdateFacetCommand = async (input, context) => {
1418
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
952
+ const b = (0, core_2.requestBuilder)(input, context);
1419
953
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1420
954
  "content-type": "application/json",
1421
- "x-amz-data-partition": input.SchemaArn,
955
+ [_xadp]: input[_SA],
1422
956
  });
1423
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/facet";
957
+ b.bp("/amazonclouddirectory/2017-01-11/facet");
1424
958
  let body;
1425
959
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1426
960
  AttributeUpdates: (_) => se_FacetAttributeUpdateList(_, context),
1427
961
  Name: [],
1428
962
  ObjectType: [],
1429
963
  }));
1430
- return new protocol_http_1.HttpRequest({
1431
- protocol,
1432
- hostname,
1433
- port,
1434
- method: "PUT",
1435
- headers,
1436
- path: resolvedPath,
1437
- body,
1438
- });
964
+ b.m("PUT").h(headers).b(body);
965
+ return b.build();
1439
966
  };
1440
967
  exports.se_UpdateFacetCommand = se_UpdateFacetCommand;
1441
968
  const se_UpdateLinkAttributesCommand = async (input, context) => {
1442
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
969
+ const b = (0, core_2.requestBuilder)(input, context);
1443
970
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1444
971
  "content-type": "application/json",
1445
- "x-amz-data-partition": input.DirectoryArn,
972
+ [_xadp]: input[_DA],
1446
973
  });
1447
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1448
- "/amazonclouddirectory/2017-01-11/typedlink/attributes/update";
974
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/attributes/update");
1449
975
  let body;
1450
976
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1451
977
  AttributeUpdates: (_) => se_LinkAttributeUpdateList(_, context),
1452
978
  TypedLinkSpecifier: (_) => se_TypedLinkSpecifier(_, context),
1453
979
  }));
1454
- return new protocol_http_1.HttpRequest({
1455
- protocol,
1456
- hostname,
1457
- port,
1458
- method: "POST",
1459
- headers,
1460
- path: resolvedPath,
1461
- body,
1462
- });
980
+ b.m("POST").h(headers).b(body);
981
+ return b.build();
1463
982
  };
1464
983
  exports.se_UpdateLinkAttributesCommand = se_UpdateLinkAttributesCommand;
1465
984
  const se_UpdateObjectAttributesCommand = async (input, context) => {
1466
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
985
+ const b = (0, core_2.requestBuilder)(input, context);
1467
986
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1468
987
  "content-type": "application/json",
1469
- "x-amz-data-partition": input.DirectoryArn,
988
+ [_xadp]: input[_DA],
1470
989
  });
1471
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1472
- "/amazonclouddirectory/2017-01-11/object/update";
990
+ b.bp("/amazonclouddirectory/2017-01-11/object/update");
1473
991
  let body;
1474
992
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1475
993
  AttributeUpdates: (_) => se_ObjectAttributeUpdateList(_, context),
1476
994
  ObjectReference: (_) => (0, smithy_client_1._json)(_),
1477
995
  }));
1478
- return new protocol_http_1.HttpRequest({
1479
- protocol,
1480
- hostname,
1481
- port,
1482
- method: "PUT",
1483
- headers,
1484
- path: resolvedPath,
1485
- body,
1486
- });
996
+ b.m("PUT").h(headers).b(body);
997
+ return b.build();
1487
998
  };
1488
999
  exports.se_UpdateObjectAttributesCommand = se_UpdateObjectAttributesCommand;
1489
1000
  const se_UpdateSchemaCommand = async (input, context) => {
1490
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1001
+ const b = (0, core_2.requestBuilder)(input, context);
1491
1002
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1492
1003
  "content-type": "application/json",
1493
- "x-amz-data-partition": input.SchemaArn,
1004
+ [_xadp]: input[_SA],
1494
1005
  });
1495
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1496
- "/amazonclouddirectory/2017-01-11/schema/update";
1006
+ b.bp("/amazonclouddirectory/2017-01-11/schema/update");
1497
1007
  let body;
1498
1008
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1499
1009
  Name: [],
1500
1010
  }));
1501
- return new protocol_http_1.HttpRequest({
1502
- protocol,
1503
- hostname,
1504
- port,
1505
- method: "PUT",
1506
- headers,
1507
- path: resolvedPath,
1508
- body,
1509
- });
1011
+ b.m("PUT").h(headers).b(body);
1012
+ return b.build();
1510
1013
  };
1511
1014
  exports.se_UpdateSchemaCommand = se_UpdateSchemaCommand;
1512
1015
  const se_UpdateTypedLinkFacetCommand = async (input, context) => {
1513
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1016
+ const b = (0, core_2.requestBuilder)(input, context);
1514
1017
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1515
1018
  "content-type": "application/json",
1516
- "x-amz-data-partition": input.SchemaArn,
1019
+ [_xadp]: input[_SA],
1517
1020
  });
1518
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1519
- "/amazonclouddirectory/2017-01-11/typedlink/facet";
1021
+ b.bp("/amazonclouddirectory/2017-01-11/typedlink/facet");
1520
1022
  let body;
1521
1023
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1522
1024
  AttributeUpdates: (_) => se_TypedLinkFacetAttributeUpdateList(_, context),
1523
1025
  IdentityAttributeOrder: (_) => (0, smithy_client_1._json)(_),
1524
1026
  Name: [],
1525
1027
  }));
1526
- return new protocol_http_1.HttpRequest({
1527
- protocol,
1528
- hostname,
1529
- port,
1530
- method: "PUT",
1531
- headers,
1532
- path: resolvedPath,
1533
- body,
1534
- });
1028
+ b.m("PUT").h(headers).b(body);
1029
+ return b.build();
1535
1030
  };
1536
1031
  exports.se_UpdateTypedLinkFacetCommand = se_UpdateTypedLinkFacetCommand;
1537
1032
  const se_UpgradeAppliedSchemaCommand = async (input, context) => {
1538
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1033
+ const b = (0, core_2.requestBuilder)(input, context);
1539
1034
  const headers = {
1540
1035
  "content-type": "application/json",
1541
1036
  };
1542
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1543
- "/amazonclouddirectory/2017-01-11/schema/upgradeapplied";
1037
+ b.bp("/amazonclouddirectory/2017-01-11/schema/upgradeapplied");
1544
1038
  let body;
1545
1039
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1546
1040
  DirectoryArn: [],
1547
1041
  DryRun: [],
1548
1042
  PublishedSchemaArn: [],
1549
1043
  }));
1550
- return new protocol_http_1.HttpRequest({
1551
- protocol,
1552
- hostname,
1553
- port,
1554
- method: "PUT",
1555
- headers,
1556
- path: resolvedPath,
1557
- body,
1558
- });
1044
+ b.m("PUT").h(headers).b(body);
1045
+ return b.build();
1559
1046
  };
1560
1047
  exports.se_UpgradeAppliedSchemaCommand = se_UpgradeAppliedSchemaCommand;
1561
1048
  const se_UpgradePublishedSchemaCommand = async (input, context) => {
1562
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1049
+ const b = (0, core_2.requestBuilder)(input, context);
1563
1050
  const headers = {
1564
1051
  "content-type": "application/json",
1565
1052
  };
1566
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1567
- "/amazonclouddirectory/2017-01-11/schema/upgradepublished";
1053
+ b.bp("/amazonclouddirectory/2017-01-11/schema/upgradepublished");
1568
1054
  let body;
1569
1055
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1570
1056
  DevelopmentSchemaArn: [],
@@ -1572,15 +1058,8 @@ const se_UpgradePublishedSchemaCommand = async (input, context) => {
1572
1058
  MinorVersion: [],
1573
1059
  PublishedSchemaArn: [],
1574
1060
  }));
1575
- return new protocol_http_1.HttpRequest({
1576
- protocol,
1577
- hostname,
1578
- port,
1579
- method: "PUT",
1580
- headers,
1581
- path: resolvedPath,
1582
- body,
1583
- });
1061
+ b.m("PUT").h(headers).b(body);
1062
+ return b.build();
1584
1063
  };
1585
1064
  exports.se_UpgradePublishedSchemaCommand = se_UpgradePublishedSchemaCommand;
1586
1065
  const de_AddFacetToObjectCommand = async (output, context) => {
@@ -6372,6 +5851,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
6372
5851
  value !== "" &&
6373
5852
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
6374
5853
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
5854
+ const _CL = "ConsistencyLevel";
5855
+ const _DA = "DirectoryArn";
5856
+ const _DSA = "DevelopmentSchemaArn";
5857
+ const _SA = "SchemaArn";
5858
+ const _xacl = "x-amz-consistency-level";
5859
+ const _xadp = "x-amz-data-partition";
6375
5860
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6376
5861
  if (encoded.length) {
6377
5862
  return JSON.parse(encoded);