@aws-sdk/client-outposts 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.
@@ -2,33 +2,26 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateSiteCommand = exports.de_UpdateOutpostCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartConnectionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSitesCommand = exports.de_ListOutpostsCommand = exports.de_ListOrdersCommand = exports.de_ListCatalogItemsCommand = exports.de_ListAssetsCommand = exports.de_GetSiteAddressCommand = exports.de_GetSiteCommand = exports.de_GetOutpostInstanceTypesCommand = exports.de_GetOutpostCommand = exports.de_GetOrderCommand = exports.de_GetConnectionCommand = exports.de_GetCatalogItemCommand = exports.de_DeleteSiteCommand = exports.de_DeleteOutpostCommand = exports.de_CreateSiteCommand = exports.de_CreateOutpostCommand = exports.de_CreateOrderCommand = exports.de_CancelOrderCommand = exports.se_UpdateSiteRackPhysicalPropertiesCommand = exports.se_UpdateSiteAddressCommand = exports.se_UpdateSiteCommand = exports.se_UpdateOutpostCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartConnectionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSitesCommand = exports.se_ListOutpostsCommand = exports.se_ListOrdersCommand = exports.se_ListCatalogItemsCommand = exports.se_ListAssetsCommand = exports.se_GetSiteAddressCommand = exports.se_GetSiteCommand = exports.se_GetOutpostInstanceTypesCommand = exports.se_GetOutpostCommand = exports.se_GetOrderCommand = exports.se_GetConnectionCommand = exports.se_GetCatalogItemCommand = exports.se_DeleteSiteCommand = exports.se_DeleteOutpostCommand = exports.se_CreateSiteCommand = exports.se_CreateOutpostCommand = exports.se_CreateOrderCommand = exports.se_CancelOrderCommand = void 0;
4
4
  exports.de_UpdateSiteRackPhysicalPropertiesCommand = exports.de_UpdateSiteAddressCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const OutpostsServiceException_1 = require("../models/OutpostsServiceException");
9
9
  const se_CancelOrderCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {};
12
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders/{OrderId}/cancel";
13
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OrderId", () => input.OrderId, "{OrderId}", false);
12
+ b.bp("/orders/{OrderId}/cancel");
13
+ b.p("OrderId", () => input.OrderId, "{OrderId}", false);
14
14
  let body;
15
- return new protocol_http_1.HttpRequest({
16
- protocol,
17
- hostname,
18
- port,
19
- method: "POST",
20
- headers,
21
- path: resolvedPath,
22
- body,
23
- });
15
+ b.m("POST").h(headers).b(body);
16
+ return b.build();
24
17
  };
25
18
  exports.se_CancelOrderCommand = se_CancelOrderCommand;
26
19
  const se_CreateOrderCommand = async (input, context) => {
27
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
20
+ const b = (0, core_1.requestBuilder)(input, context);
28
21
  const headers = {
29
22
  "content-type": "application/json",
30
23
  };
31
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders";
24
+ b.bp("/orders");
32
25
  let body;
33
26
  body = JSON.stringify((0, smithy_client_1.take)(input, {
34
27
  LineItems: (_) => (0, smithy_client_1._json)(_),
@@ -36,23 +29,16 @@ const se_CreateOrderCommand = async (input, context) => {
36
29
  PaymentOption: [],
37
30
  PaymentTerm: [],
38
31
  }));
39
- return new protocol_http_1.HttpRequest({
40
- protocol,
41
- hostname,
42
- port,
43
- method: "POST",
44
- headers,
45
- path: resolvedPath,
46
- body,
47
- });
32
+ b.m("POST").h(headers).b(body);
33
+ return b.build();
48
34
  };
49
35
  exports.se_CreateOrderCommand = se_CreateOrderCommand;
50
36
  const se_CreateOutpostCommand = async (input, context) => {
51
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
+ const b = (0, core_1.requestBuilder)(input, context);
52
38
  const headers = {
53
39
  "content-type": "application/json",
54
40
  };
55
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts";
41
+ b.bp("/outposts");
56
42
  let body;
57
43
  body = JSON.stringify((0, smithy_client_1.take)(input, {
58
44
  AvailabilityZone: [],
@@ -63,23 +49,16 @@ const se_CreateOutpostCommand = async (input, context) => {
63
49
  SupportedHardwareType: [],
64
50
  Tags: (_) => (0, smithy_client_1._json)(_),
65
51
  }));
66
- return new protocol_http_1.HttpRequest({
67
- protocol,
68
- hostname,
69
- port,
70
- method: "POST",
71
- headers,
72
- path: resolvedPath,
73
- body,
74
- });
52
+ b.m("POST").h(headers).b(body);
53
+ return b.build();
75
54
  };
76
55
  exports.se_CreateOutpostCommand = se_CreateOutpostCommand;
77
56
  const se_CreateSiteCommand = async (input, context) => {
78
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
57
+ const b = (0, core_1.requestBuilder)(input, context);
79
58
  const headers = {
80
59
  "content-type": "application/json",
81
60
  };
82
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites";
61
+ b.bp("/sites");
83
62
  let body;
84
63
  body = JSON.stringify((0, smithy_client_1.take)(input, {
85
64
  Description: [],
@@ -90,353 +69,213 @@ const se_CreateSiteCommand = async (input, context) => {
90
69
  ShippingAddress: (_) => (0, smithy_client_1._json)(_),
91
70
  Tags: (_) => (0, smithy_client_1._json)(_),
92
71
  }));
93
- return new protocol_http_1.HttpRequest({
94
- protocol,
95
- hostname,
96
- port,
97
- method: "POST",
98
- headers,
99
- path: resolvedPath,
100
- body,
101
- });
72
+ b.m("POST").h(headers).b(body);
73
+ return b.build();
102
74
  };
103
75
  exports.se_CreateSiteCommand = se_CreateSiteCommand;
104
76
  const se_DeleteOutpostCommand = async (input, context) => {
105
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
77
+ const b = (0, core_1.requestBuilder)(input, context);
106
78
  const headers = {};
107
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}";
108
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutpostId", () => input.OutpostId, "{OutpostId}", false);
79
+ b.bp("/outposts/{OutpostId}");
80
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
109
81
  let body;
110
- return new protocol_http_1.HttpRequest({
111
- protocol,
112
- hostname,
113
- port,
114
- method: "DELETE",
115
- headers,
116
- path: resolvedPath,
117
- body,
118
- });
82
+ b.m("DELETE").h(headers).b(body);
83
+ return b.build();
119
84
  };
120
85
  exports.se_DeleteOutpostCommand = se_DeleteOutpostCommand;
121
86
  const se_DeleteSiteCommand = async (input, context) => {
122
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const b = (0, core_1.requestBuilder)(input, context);
123
88
  const headers = {};
124
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}";
125
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
89
+ b.bp("/sites/{SiteId}");
90
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
126
91
  let body;
127
- return new protocol_http_1.HttpRequest({
128
- protocol,
129
- hostname,
130
- port,
131
- method: "DELETE",
132
- headers,
133
- path: resolvedPath,
134
- body,
135
- });
92
+ b.m("DELETE").h(headers).b(body);
93
+ return b.build();
136
94
  };
137
95
  exports.se_DeleteSiteCommand = se_DeleteSiteCommand;
138
96
  const se_GetCatalogItemCommand = async (input, context) => {
139
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
97
+ const b = (0, core_1.requestBuilder)(input, context);
140
98
  const headers = {};
141
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/catalog/item/{CatalogItemId}";
142
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CatalogItemId", () => input.CatalogItemId, "{CatalogItemId}", false);
99
+ b.bp("/catalog/item/{CatalogItemId}");
100
+ b.p("CatalogItemId", () => input.CatalogItemId, "{CatalogItemId}", false);
143
101
  let body;
144
- return new protocol_http_1.HttpRequest({
145
- protocol,
146
- hostname,
147
- port,
148
- method: "GET",
149
- headers,
150
- path: resolvedPath,
151
- body,
152
- });
102
+ b.m("GET").h(headers).b(body);
103
+ return b.build();
153
104
  };
154
105
  exports.se_GetCatalogItemCommand = se_GetCatalogItemCommand;
155
106
  const se_GetConnectionCommand = async (input, context) => {
156
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = (0, core_1.requestBuilder)(input, context);
157
108
  const headers = {};
158
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connections/{ConnectionId}";
159
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
109
+ b.bp("/connections/{ConnectionId}");
110
+ b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
160
111
  let body;
161
- return new protocol_http_1.HttpRequest({
162
- protocol,
163
- hostname,
164
- port,
165
- method: "GET",
166
- headers,
167
- path: resolvedPath,
168
- body,
169
- });
112
+ b.m("GET").h(headers).b(body);
113
+ return b.build();
170
114
  };
171
115
  exports.se_GetConnectionCommand = se_GetConnectionCommand;
172
116
  const se_GetOrderCommand = async (input, context) => {
173
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
117
+ const b = (0, core_1.requestBuilder)(input, context);
174
118
  const headers = {};
175
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders/{OrderId}";
176
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OrderId", () => input.OrderId, "{OrderId}", false);
119
+ b.bp("/orders/{OrderId}");
120
+ b.p("OrderId", () => input.OrderId, "{OrderId}", false);
177
121
  let body;
178
- return new protocol_http_1.HttpRequest({
179
- protocol,
180
- hostname,
181
- port,
182
- method: "GET",
183
- headers,
184
- path: resolvedPath,
185
- body,
186
- });
122
+ b.m("GET").h(headers).b(body);
123
+ return b.build();
187
124
  };
188
125
  exports.se_GetOrderCommand = se_GetOrderCommand;
189
126
  const se_GetOutpostCommand = async (input, context) => {
190
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
127
+ const b = (0, core_1.requestBuilder)(input, context);
191
128
  const headers = {};
192
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}";
193
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutpostId", () => input.OutpostId, "{OutpostId}", false);
129
+ b.bp("/outposts/{OutpostId}");
130
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
194
131
  let body;
195
- return new protocol_http_1.HttpRequest({
196
- protocol,
197
- hostname,
198
- port,
199
- method: "GET",
200
- headers,
201
- path: resolvedPath,
202
- body,
203
- });
132
+ b.m("GET").h(headers).b(body);
133
+ return b.build();
204
134
  };
205
135
  exports.se_GetOutpostCommand = se_GetOutpostCommand;
206
136
  const se_GetOutpostInstanceTypesCommand = async (input, context) => {
207
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
137
+ const b = (0, core_1.requestBuilder)(input, context);
208
138
  const headers = {};
209
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}/instanceTypes";
210
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutpostId", () => input.OutpostId, "{OutpostId}", false);
139
+ b.bp("/outposts/{OutpostId}/instanceTypes");
140
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
211
141
  const query = (0, smithy_client_1.map)({
212
- NextToken: [, input.NextToken],
213
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
142
+ [_NT]: [, input[_NT]],
143
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
214
144
  });
215
145
  let body;
216
- return new protocol_http_1.HttpRequest({
217
- protocol,
218
- hostname,
219
- port,
220
- method: "GET",
221
- headers,
222
- path: resolvedPath,
223
- query,
224
- body,
225
- });
146
+ b.m("GET").h(headers).q(query).b(body);
147
+ return b.build();
226
148
  };
227
149
  exports.se_GetOutpostInstanceTypesCommand = se_GetOutpostInstanceTypesCommand;
228
150
  const se_GetSiteCommand = async (input, context) => {
229
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
+ const b = (0, core_1.requestBuilder)(input, context);
230
152
  const headers = {};
231
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}";
232
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
153
+ b.bp("/sites/{SiteId}");
154
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
233
155
  let body;
234
- return new protocol_http_1.HttpRequest({
235
- protocol,
236
- hostname,
237
- port,
238
- method: "GET",
239
- headers,
240
- path: resolvedPath,
241
- body,
242
- });
156
+ b.m("GET").h(headers).b(body);
157
+ return b.build();
243
158
  };
244
159
  exports.se_GetSiteCommand = se_GetSiteCommand;
245
160
  const se_GetSiteAddressCommand = async (input, context) => {
246
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
161
+ const b = (0, core_1.requestBuilder)(input, context);
247
162
  const headers = {};
248
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/address";
249
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
163
+ b.bp("/sites/{SiteId}/address");
164
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
250
165
  const query = (0, smithy_client_1.map)({
251
- AddressType: [, (0, smithy_client_1.expectNonNull)(input.AddressType, `AddressType`)],
166
+ [_AT]: [, (0, smithy_client_1.expectNonNull)(input[_AT], `AddressType`)],
252
167
  });
253
168
  let body;
254
- return new protocol_http_1.HttpRequest({
255
- protocol,
256
- hostname,
257
- port,
258
- method: "GET",
259
- headers,
260
- path: resolvedPath,
261
- query,
262
- body,
263
- });
169
+ b.m("GET").h(headers).q(query).b(body);
170
+ return b.build();
264
171
  };
265
172
  exports.se_GetSiteAddressCommand = se_GetSiteAddressCommand;
266
173
  const se_ListAssetsCommand = async (input, context) => {
267
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
174
+ const b = (0, core_1.requestBuilder)(input, context);
268
175
  const headers = {};
269
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostIdentifier}/assets";
270
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
176
+ b.bp("/outposts/{OutpostIdentifier}/assets");
177
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
271
178
  const query = (0, smithy_client_1.map)({
272
- HostIdFilter: [
273
- () => input.HostIdFilter !== void 0,
274
- () => (input.HostIdFilter || []).map((_entry) => _entry),
275
- ],
276
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
277
- NextToken: [, input.NextToken],
278
- StatusFilter: [
279
- () => input.StatusFilter !== void 0,
280
- () => (input.StatusFilter || []).map((_entry) => _entry),
281
- ],
179
+ [_HIF]: [() => input.HostIdFilter !== void 0, () => (input[_HIF] || []).map((_entry) => _entry)],
180
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
181
+ [_NT]: [, input[_NT]],
182
+ [_SF]: [() => input.StatusFilter !== void 0, () => (input[_SF] || []).map((_entry) => _entry)],
282
183
  });
283
184
  let body;
284
- return new protocol_http_1.HttpRequest({
285
- protocol,
286
- hostname,
287
- port,
288
- method: "GET",
289
- headers,
290
- path: resolvedPath,
291
- query,
292
- body,
293
- });
185
+ b.m("GET").h(headers).q(query).b(body);
186
+ return b.build();
294
187
  };
295
188
  exports.se_ListAssetsCommand = se_ListAssetsCommand;
296
189
  const se_ListCatalogItemsCommand = async (input, context) => {
297
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
190
+ const b = (0, core_1.requestBuilder)(input, context);
298
191
  const headers = {};
299
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/catalog/items";
192
+ b.bp("/catalog/items");
300
193
  const query = (0, smithy_client_1.map)({
301
- NextToken: [, input.NextToken],
302
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
303
- ItemClassFilter: [
304
- () => input.ItemClassFilter !== void 0,
305
- () => (input.ItemClassFilter || []).map((_entry) => _entry),
306
- ],
307
- SupportedStorageFilter: [
308
- () => input.SupportedStorageFilter !== void 0,
309
- () => (input.SupportedStorageFilter || []).map((_entry) => _entry),
310
- ],
311
- EC2FamilyFilter: [
312
- () => input.EC2FamilyFilter !== void 0,
313
- () => (input.EC2FamilyFilter || []).map((_entry) => _entry),
314
- ],
194
+ [_NT]: [, input[_NT]],
195
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
196
+ [_ICF]: [() => input.ItemClassFilter !== void 0, () => (input[_ICF] || []).map((_entry) => _entry)],
197
+ [_SSF]: [() => input.SupportedStorageFilter !== void 0, () => (input[_SSF] || []).map((_entry) => _entry)],
198
+ [_ECFF]: [() => input.EC2FamilyFilter !== void 0, () => (input[_ECFF] || []).map((_entry) => _entry)],
315
199
  });
316
200
  let body;
317
- return new protocol_http_1.HttpRequest({
318
- protocol,
319
- hostname,
320
- port,
321
- method: "GET",
322
- headers,
323
- path: resolvedPath,
324
- query,
325
- body,
326
- });
201
+ b.m("GET").h(headers).q(query).b(body);
202
+ return b.build();
327
203
  };
328
204
  exports.se_ListCatalogItemsCommand = se_ListCatalogItemsCommand;
329
205
  const se_ListOrdersCommand = async (input, context) => {
330
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
206
+ const b = (0, core_1.requestBuilder)(input, context);
331
207
  const headers = {};
332
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-orders";
208
+ b.bp("/list-orders");
333
209
  const query = (0, smithy_client_1.map)({
334
- OutpostIdentifierFilter: [, input.OutpostIdentifierFilter],
335
- NextToken: [, input.NextToken],
336
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
210
+ [_OIF]: [, input[_OIF]],
211
+ [_NT]: [, input[_NT]],
212
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
337
213
  });
338
214
  let body;
339
- return new protocol_http_1.HttpRequest({
340
- protocol,
341
- hostname,
342
- port,
343
- method: "GET",
344
- headers,
345
- path: resolvedPath,
346
- query,
347
- body,
348
- });
215
+ b.m("GET").h(headers).q(query).b(body);
216
+ return b.build();
349
217
  };
350
218
  exports.se_ListOrdersCommand = se_ListOrdersCommand;
351
219
  const se_ListOutpostsCommand = async (input, context) => {
352
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
220
+ const b = (0, core_1.requestBuilder)(input, context);
353
221
  const headers = {};
354
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts";
222
+ b.bp("/outposts");
355
223
  const query = (0, smithy_client_1.map)({
356
- NextToken: [, input.NextToken],
357
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
358
- LifeCycleStatusFilter: [
359
- () => input.LifeCycleStatusFilter !== void 0,
360
- () => (input.LifeCycleStatusFilter || []).map((_entry) => _entry),
361
- ],
362
- AvailabilityZoneFilter: [
363
- () => input.AvailabilityZoneFilter !== void 0,
364
- () => (input.AvailabilityZoneFilter || []).map((_entry) => _entry),
365
- ],
366
- AvailabilityZoneIdFilter: [
224
+ [_NT]: [, input[_NT]],
225
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
226
+ [_LCSF]: [() => input.LifeCycleStatusFilter !== void 0, () => (input[_LCSF] || []).map((_entry) => _entry)],
227
+ [_AZF]: [() => input.AvailabilityZoneFilter !== void 0, () => (input[_AZF] || []).map((_entry) => _entry)],
228
+ [_AZIF]: [
367
229
  () => input.AvailabilityZoneIdFilter !== void 0,
368
- () => (input.AvailabilityZoneIdFilter || []).map((_entry) => _entry),
230
+ () => (input[_AZIF] || []).map((_entry) => _entry),
369
231
  ],
370
232
  });
371
233
  let body;
372
- return new protocol_http_1.HttpRequest({
373
- protocol,
374
- hostname,
375
- port,
376
- method: "GET",
377
- headers,
378
- path: resolvedPath,
379
- query,
380
- body,
381
- });
234
+ b.m("GET").h(headers).q(query).b(body);
235
+ return b.build();
382
236
  };
383
237
  exports.se_ListOutpostsCommand = se_ListOutpostsCommand;
384
238
  const se_ListSitesCommand = async (input, context) => {
385
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
239
+ const b = (0, core_1.requestBuilder)(input, context);
386
240
  const headers = {};
387
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites";
241
+ b.bp("/sites");
388
242
  const query = (0, smithy_client_1.map)({
389
- NextToken: [, input.NextToken],
390
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
391
- OperatingAddressCountryCodeFilter: [
243
+ [_NT]: [, input[_NT]],
244
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
245
+ [_OACCF]: [
392
246
  () => input.OperatingAddressCountryCodeFilter !== void 0,
393
- () => (input.OperatingAddressCountryCodeFilter || []).map((_entry) => _entry),
247
+ () => (input[_OACCF] || []).map((_entry) => _entry),
394
248
  ],
395
- OperatingAddressStateOrRegionFilter: [
249
+ [_OASORF]: [
396
250
  () => input.OperatingAddressStateOrRegionFilter !== void 0,
397
- () => (input.OperatingAddressStateOrRegionFilter || []).map((_entry) => _entry),
251
+ () => (input[_OASORF] || []).map((_entry) => _entry),
398
252
  ],
399
- OperatingAddressCityFilter: [
253
+ [_OACF]: [
400
254
  () => input.OperatingAddressCityFilter !== void 0,
401
- () => (input.OperatingAddressCityFilter || []).map((_entry) => _entry),
255
+ () => (input[_OACF] || []).map((_entry) => _entry),
402
256
  ],
403
257
  });
404
258
  let body;
405
- return new protocol_http_1.HttpRequest({
406
- protocol,
407
- hostname,
408
- port,
409
- method: "GET",
410
- headers,
411
- path: resolvedPath,
412
- query,
413
- body,
414
- });
259
+ b.m("GET").h(headers).q(query).b(body);
260
+ return b.build();
415
261
  };
416
262
  exports.se_ListSitesCommand = se_ListSitesCommand;
417
263
  const se_ListTagsForResourceCommand = async (input, context) => {
418
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
264
+ const b = (0, core_1.requestBuilder)(input, context);
419
265
  const headers = {};
420
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
421
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
266
+ b.bp("/tags/{ResourceArn}");
267
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
422
268
  let body;
423
- return new protocol_http_1.HttpRequest({
424
- protocol,
425
- hostname,
426
- port,
427
- method: "GET",
428
- headers,
429
- path: resolvedPath,
430
- body,
431
- });
269
+ b.m("GET").h(headers).b(body);
270
+ return b.build();
432
271
  };
433
272
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
434
273
  const se_StartConnectionCommand = async (input, context) => {
435
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
274
+ const b = (0, core_1.requestBuilder)(input, context);
436
275
  const headers = {
437
276
  "content-type": "application/json",
438
277
  };
439
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connections";
278
+ b.bp("/connections");
440
279
  let body;
441
280
  body = JSON.stringify((0, smithy_client_1.take)(input, {
442
281
  AssetId: [],
@@ -444,141 +283,98 @@ const se_StartConnectionCommand = async (input, context) => {
444
283
  DeviceSerialNumber: [],
445
284
  NetworkInterfaceDeviceIndex: [],
446
285
  }));
447
- return new protocol_http_1.HttpRequest({
448
- protocol,
449
- hostname,
450
- port,
451
- method: "POST",
452
- headers,
453
- path: resolvedPath,
454
- body,
455
- });
286
+ b.m("POST").h(headers).b(body);
287
+ return b.build();
456
288
  };
457
289
  exports.se_StartConnectionCommand = se_StartConnectionCommand;
458
290
  const se_TagResourceCommand = async (input, context) => {
459
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
291
+ const b = (0, core_1.requestBuilder)(input, context);
460
292
  const headers = {
461
293
  "content-type": "application/json",
462
294
  };
463
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
464
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
295
+ b.bp("/tags/{ResourceArn}");
296
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
465
297
  let body;
466
298
  body = JSON.stringify((0, smithy_client_1.take)(input, {
467
299
  Tags: (_) => (0, smithy_client_1._json)(_),
468
300
  }));
469
- return new protocol_http_1.HttpRequest({
470
- protocol,
471
- hostname,
472
- port,
473
- method: "POST",
474
- headers,
475
- path: resolvedPath,
476
- body,
477
- });
301
+ b.m("POST").h(headers).b(body);
302
+ return b.build();
478
303
  };
479
304
  exports.se_TagResourceCommand = se_TagResourceCommand;
480
305
  const se_UntagResourceCommand = async (input, context) => {
481
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
+ const b = (0, core_1.requestBuilder)(input, context);
482
307
  const headers = {};
483
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
484
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
308
+ b.bp("/tags/{ResourceArn}");
309
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
485
310
  const query = (0, smithy_client_1.map)({
486
- tagKeys: [
311
+ [_tK]: [
487
312
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
488
- () => (input.TagKeys || []).map((_entry) => _entry),
313
+ () => (input[_TK] || []).map((_entry) => _entry),
489
314
  ],
490
315
  });
491
316
  let body;
492
- return new protocol_http_1.HttpRequest({
493
- protocol,
494
- hostname,
495
- port,
496
- method: "DELETE",
497
- headers,
498
- path: resolvedPath,
499
- query,
500
- body,
501
- });
317
+ b.m("DELETE").h(headers).q(query).b(body);
318
+ return b.build();
502
319
  };
503
320
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
504
321
  const se_UpdateOutpostCommand = async (input, context) => {
505
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
322
+ const b = (0, core_1.requestBuilder)(input, context);
506
323
  const headers = {
507
324
  "content-type": "application/json",
508
325
  };
509
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}";
510
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutpostId", () => input.OutpostId, "{OutpostId}", false);
326
+ b.bp("/outposts/{OutpostId}");
327
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
511
328
  let body;
512
329
  body = JSON.stringify((0, smithy_client_1.take)(input, {
513
330
  Description: [],
514
331
  Name: [],
515
332
  SupportedHardwareType: [],
516
333
  }));
517
- return new protocol_http_1.HttpRequest({
518
- protocol,
519
- hostname,
520
- port,
521
- method: "PATCH",
522
- headers,
523
- path: resolvedPath,
524
- body,
525
- });
334
+ b.m("PATCH").h(headers).b(body);
335
+ return b.build();
526
336
  };
527
337
  exports.se_UpdateOutpostCommand = se_UpdateOutpostCommand;
528
338
  const se_UpdateSiteCommand = async (input, context) => {
529
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
339
+ const b = (0, core_1.requestBuilder)(input, context);
530
340
  const headers = {
531
341
  "content-type": "application/json",
532
342
  };
533
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}";
534
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
343
+ b.bp("/sites/{SiteId}");
344
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
535
345
  let body;
536
346
  body = JSON.stringify((0, smithy_client_1.take)(input, {
537
347
  Description: [],
538
348
  Name: [],
539
349
  Notes: [],
540
350
  }));
541
- return new protocol_http_1.HttpRequest({
542
- protocol,
543
- hostname,
544
- port,
545
- method: "PATCH",
546
- headers,
547
- path: resolvedPath,
548
- body,
549
- });
351
+ b.m("PATCH").h(headers).b(body);
352
+ return b.build();
550
353
  };
551
354
  exports.se_UpdateSiteCommand = se_UpdateSiteCommand;
552
355
  const se_UpdateSiteAddressCommand = async (input, context) => {
553
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
356
+ const b = (0, core_1.requestBuilder)(input, context);
554
357
  const headers = {
555
358
  "content-type": "application/json",
556
359
  };
557
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/address";
558
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
360
+ b.bp("/sites/{SiteId}/address");
361
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
559
362
  let body;
560
363
  body = JSON.stringify((0, smithy_client_1.take)(input, {
561
364
  Address: (_) => (0, smithy_client_1._json)(_),
562
365
  AddressType: [],
563
366
  }));
564
- return new protocol_http_1.HttpRequest({
565
- protocol,
566
- hostname,
567
- port,
568
- method: "PUT",
569
- headers,
570
- path: resolvedPath,
571
- body,
572
- });
367
+ b.m("PUT").h(headers).b(body);
368
+ return b.build();
573
369
  };
574
370
  exports.se_UpdateSiteAddressCommand = se_UpdateSiteAddressCommand;
575
371
  const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context) => {
576
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
372
+ const b = (0, core_1.requestBuilder)(input, context);
577
373
  const headers = {
578
374
  "content-type": "application/json",
579
375
  };
580
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/rackPhysicalProperties";
581
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
376
+ b.bp("/sites/{SiteId}/rackPhysicalProperties");
377
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
582
378
  let body;
583
379
  body = JSON.stringify((0, smithy_client_1.take)(input, {
584
380
  FiberOpticCableType: [],
@@ -591,15 +387,8 @@ const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context) => {
591
387
  UplinkCount: [],
592
388
  UplinkGbps: [],
593
389
  }));
594
- return new protocol_http_1.HttpRequest({
595
- protocol,
596
- hostname,
597
- port,
598
- method: "PATCH",
599
- headers,
600
- path: resolvedPath,
601
- body,
602
- });
390
+ b.m("PATCH").h(headers).b(body);
391
+ return b.build();
603
392
  };
604
393
  exports.se_UpdateSiteRackPhysicalPropertiesCommand = se_UpdateSiteRackPhysicalPropertiesCommand;
605
394
  const de_CancelOrderCommand = async (output, context) => {
@@ -1891,6 +1680,23 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1891
1680
  value !== "" &&
1892
1681
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1893
1682
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1683
+ const _AT = "AddressType";
1684
+ const _AZF = "AvailabilityZoneFilter";
1685
+ const _AZIF = "AvailabilityZoneIdFilter";
1686
+ const _ECFF = "EC2FamilyFilter";
1687
+ const _HIF = "HostIdFilter";
1688
+ const _ICF = "ItemClassFilter";
1689
+ const _LCSF = "LifeCycleStatusFilter";
1690
+ const _MR = "MaxResults";
1691
+ const _NT = "NextToken";
1692
+ const _OACCF = "OperatingAddressCountryCodeFilter";
1693
+ const _OACF = "OperatingAddressCityFilter";
1694
+ const _OASORF = "OperatingAddressStateOrRegionFilter";
1695
+ const _OIF = "OutpostIdentifierFilter";
1696
+ const _SF = "StatusFilter";
1697
+ const _SSF = "SupportedStorageFilter";
1698
+ const _TK = "TagKeys";
1699
+ const _tK = "tagKeys";
1894
1700
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1895
1701
  if (encoded.length) {
1896
1702
  return JSON.parse(encoded);