@aws-sdk/client-outposts 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist-cjs/pagination/GetOutpostInstanceTypesPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAssetsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListCatalogItemsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListOrdersPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListOutpostsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListSitesPaginator.js +2 -24
  7. package/dist-cjs/protocols/Aws_restJson1.js +171 -365
  8. package/dist-es/pagination/GetOutpostInstanceTypesPaginator.js +2 -23
  9. package/dist-es/pagination/ListAssetsPaginator.js +2 -23
  10. package/dist-es/pagination/ListCatalogItemsPaginator.js +2 -23
  11. package/dist-es/pagination/ListOrdersPaginator.js +2 -23
  12. package/dist-es/pagination/ListOutpostsPaginator.js +2 -23
  13. package/dist-es/pagination/ListSitesPaginator.js +2 -23
  14. package/dist-es/protocols/Aws_restJson1.js +172 -366
  15. package/dist-types/pagination/GetOutpostInstanceTypesPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListAssetsPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListCatalogItemsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListOrdersPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListOutpostsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListSitesPaginator.d.ts +1 -1
  21. package/dist-types/ts3.4/pagination/GetOutpostInstanceTypesPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListAssetsPaginator.d.ts +3 -3
  23. package/dist-types/ts3.4/pagination/ListCatalogItemsPaginator.d.ts +3 -3
  24. package/dist-types/ts3.4/pagination/ListOrdersPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListOutpostsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListSitesPaginator.d.ts +3 -3
  27. package/package.json +7 -6
@@ -1,29 +1,22 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
4
4
  import { OutpostsServiceException as __BaseException } from "../models/OutpostsServiceException";
5
5
  export const se_CancelOrderCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {};
8
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders/{OrderId}/cancel";
9
- resolvedPath = __resolvedPath(resolvedPath, input, "OrderId", () => input.OrderId, "{OrderId}", false);
8
+ b.bp("/orders/{OrderId}/cancel");
9
+ b.p("OrderId", () => input.OrderId, "{OrderId}", false);
10
10
  let body;
11
- return new __HttpRequest({
12
- protocol,
13
- hostname,
14
- port,
15
- method: "POST",
16
- headers,
17
- path: resolvedPath,
18
- body,
19
- });
11
+ b.m("POST").h(headers).b(body);
12
+ return b.build();
20
13
  };
21
14
  export const se_CreateOrderCommand = async (input, context) => {
22
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
15
+ const b = rb(input, context);
23
16
  const headers = {
24
17
  "content-type": "application/json",
25
18
  };
26
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders";
19
+ b.bp("/orders");
27
20
  let body;
28
21
  body = JSON.stringify(take(input, {
29
22
  LineItems: (_) => _json(_),
@@ -31,22 +24,15 @@ export const se_CreateOrderCommand = async (input, context) => {
31
24
  PaymentOption: [],
32
25
  PaymentTerm: [],
33
26
  }));
34
- return new __HttpRequest({
35
- protocol,
36
- hostname,
37
- port,
38
- method: "POST",
39
- headers,
40
- path: resolvedPath,
41
- body,
42
- });
27
+ b.m("POST").h(headers).b(body);
28
+ return b.build();
43
29
  };
44
30
  export const se_CreateOutpostCommand = async (input, context) => {
45
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
+ const b = rb(input, context);
46
32
  const headers = {
47
33
  "content-type": "application/json",
48
34
  };
49
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts";
35
+ b.bp("/outposts");
50
36
  let body;
51
37
  body = JSON.stringify(take(input, {
52
38
  AvailabilityZone: [],
@@ -57,22 +43,15 @@ export const se_CreateOutpostCommand = async (input, context) => {
57
43
  SupportedHardwareType: [],
58
44
  Tags: (_) => _json(_),
59
45
  }));
60
- return new __HttpRequest({
61
- protocol,
62
- hostname,
63
- port,
64
- method: "POST",
65
- headers,
66
- path: resolvedPath,
67
- body,
68
- });
46
+ b.m("POST").h(headers).b(body);
47
+ return b.build();
69
48
  };
70
49
  export const se_CreateSiteCommand = async (input, context) => {
71
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
50
+ const b = rb(input, context);
72
51
  const headers = {
73
52
  "content-type": "application/json",
74
53
  };
75
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites";
54
+ b.bp("/sites");
76
55
  let body;
77
56
  body = JSON.stringify(take(input, {
78
57
  Description: [],
@@ -83,337 +62,197 @@ export const se_CreateSiteCommand = async (input, context) => {
83
62
  ShippingAddress: (_) => _json(_),
84
63
  Tags: (_) => _json(_),
85
64
  }));
86
- return new __HttpRequest({
87
- protocol,
88
- hostname,
89
- port,
90
- method: "POST",
91
- headers,
92
- path: resolvedPath,
93
- body,
94
- });
65
+ b.m("POST").h(headers).b(body);
66
+ return b.build();
95
67
  };
96
68
  export const se_DeleteOutpostCommand = async (input, context) => {
97
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
69
+ const b = rb(input, context);
98
70
  const headers = {};
99
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}";
100
- resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", () => input.OutpostId, "{OutpostId}", false);
71
+ b.bp("/outposts/{OutpostId}");
72
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
101
73
  let body;
102
- return new __HttpRequest({
103
- protocol,
104
- hostname,
105
- port,
106
- method: "DELETE",
107
- headers,
108
- path: resolvedPath,
109
- body,
110
- });
74
+ b.m("DELETE").h(headers).b(body);
75
+ return b.build();
111
76
  };
112
77
  export const se_DeleteSiteCommand = async (input, context) => {
113
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
78
+ const b = rb(input, context);
114
79
  const headers = {};
115
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}";
116
- resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
80
+ b.bp("/sites/{SiteId}");
81
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
117
82
  let body;
118
- return new __HttpRequest({
119
- protocol,
120
- hostname,
121
- port,
122
- method: "DELETE",
123
- headers,
124
- path: resolvedPath,
125
- body,
126
- });
83
+ b.m("DELETE").h(headers).b(body);
84
+ return b.build();
127
85
  };
128
86
  export const se_GetCatalogItemCommand = async (input, context) => {
129
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const b = rb(input, context);
130
88
  const headers = {};
131
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/catalog/item/{CatalogItemId}";
132
- resolvedPath = __resolvedPath(resolvedPath, input, "CatalogItemId", () => input.CatalogItemId, "{CatalogItemId}", false);
89
+ b.bp("/catalog/item/{CatalogItemId}");
90
+ b.p("CatalogItemId", () => input.CatalogItemId, "{CatalogItemId}", false);
133
91
  let body;
134
- return new __HttpRequest({
135
- protocol,
136
- hostname,
137
- port,
138
- method: "GET",
139
- headers,
140
- path: resolvedPath,
141
- body,
142
- });
92
+ b.m("GET").h(headers).b(body);
93
+ return b.build();
143
94
  };
144
95
  export const se_GetConnectionCommand = async (input, context) => {
145
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
96
+ const b = rb(input, context);
146
97
  const headers = {};
147
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connections/{ConnectionId}";
148
- resolvedPath = __resolvedPath(resolvedPath, input, "ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
98
+ b.bp("/connections/{ConnectionId}");
99
+ b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
149
100
  let body;
150
- return new __HttpRequest({
151
- protocol,
152
- hostname,
153
- port,
154
- method: "GET",
155
- headers,
156
- path: resolvedPath,
157
- body,
158
- });
101
+ b.m("GET").h(headers).b(body);
102
+ return b.build();
159
103
  };
160
104
  export const se_GetOrderCommand = async (input, context) => {
161
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = rb(input, context);
162
106
  const headers = {};
163
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orders/{OrderId}";
164
- resolvedPath = __resolvedPath(resolvedPath, input, "OrderId", () => input.OrderId, "{OrderId}", false);
107
+ b.bp("/orders/{OrderId}");
108
+ b.p("OrderId", () => input.OrderId, "{OrderId}", false);
165
109
  let body;
166
- return new __HttpRequest({
167
- protocol,
168
- hostname,
169
- port,
170
- method: "GET",
171
- headers,
172
- path: resolvedPath,
173
- body,
174
- });
110
+ b.m("GET").h(headers).b(body);
111
+ return b.build();
175
112
  };
176
113
  export const se_GetOutpostCommand = async (input, context) => {
177
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
114
+ const b = rb(input, context);
178
115
  const headers = {};
179
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}";
180
- resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", () => input.OutpostId, "{OutpostId}", false);
116
+ b.bp("/outposts/{OutpostId}");
117
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
181
118
  let body;
182
- return new __HttpRequest({
183
- protocol,
184
- hostname,
185
- port,
186
- method: "GET",
187
- headers,
188
- path: resolvedPath,
189
- body,
190
- });
119
+ b.m("GET").h(headers).b(body);
120
+ return b.build();
191
121
  };
192
122
  export const se_GetOutpostInstanceTypesCommand = async (input, context) => {
193
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
123
+ const b = rb(input, context);
194
124
  const headers = {};
195
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}/instanceTypes";
196
- resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", () => input.OutpostId, "{OutpostId}", false);
125
+ b.bp("/outposts/{OutpostId}/instanceTypes");
126
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
197
127
  const query = map({
198
- NextToken: [, input.NextToken],
199
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
128
+ [_NT]: [, input[_NT]],
129
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
200
130
  });
201
131
  let body;
202
- return new __HttpRequest({
203
- protocol,
204
- hostname,
205
- port,
206
- method: "GET",
207
- headers,
208
- path: resolvedPath,
209
- query,
210
- body,
211
- });
132
+ b.m("GET").h(headers).q(query).b(body);
133
+ return b.build();
212
134
  };
213
135
  export const se_GetSiteCommand = async (input, context) => {
214
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
+ const b = rb(input, context);
215
137
  const headers = {};
216
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}";
217
- resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
138
+ b.bp("/sites/{SiteId}");
139
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
218
140
  let body;
219
- return new __HttpRequest({
220
- protocol,
221
- hostname,
222
- port,
223
- method: "GET",
224
- headers,
225
- path: resolvedPath,
226
- body,
227
- });
141
+ b.m("GET").h(headers).b(body);
142
+ return b.build();
228
143
  };
229
144
  export const se_GetSiteAddressCommand = async (input, context) => {
230
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
145
+ const b = rb(input, context);
231
146
  const headers = {};
232
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/address";
233
- resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
147
+ b.bp("/sites/{SiteId}/address");
148
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
234
149
  const query = map({
235
- AddressType: [, __expectNonNull(input.AddressType, `AddressType`)],
150
+ [_AT]: [, __expectNonNull(input[_AT], `AddressType`)],
236
151
  });
237
152
  let body;
238
- return new __HttpRequest({
239
- protocol,
240
- hostname,
241
- port,
242
- method: "GET",
243
- headers,
244
- path: resolvedPath,
245
- query,
246
- body,
247
- });
153
+ b.m("GET").h(headers).q(query).b(body);
154
+ return b.build();
248
155
  };
249
156
  export const se_ListAssetsCommand = async (input, context) => {
250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
157
+ const b = rb(input, context);
251
158
  const headers = {};
252
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostIdentifier}/assets";
253
- resolvedPath = __resolvedPath(resolvedPath, input, "OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
159
+ b.bp("/outposts/{OutpostIdentifier}/assets");
160
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
254
161
  const query = map({
255
- HostIdFilter: [
256
- () => input.HostIdFilter !== void 0,
257
- () => (input.HostIdFilter || []).map((_entry) => _entry),
258
- ],
259
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
260
- NextToken: [, input.NextToken],
261
- StatusFilter: [
262
- () => input.StatusFilter !== void 0,
263
- () => (input.StatusFilter || []).map((_entry) => _entry),
264
- ],
162
+ [_HIF]: [() => input.HostIdFilter !== void 0, () => (input[_HIF] || []).map((_entry) => _entry)],
163
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
164
+ [_NT]: [, input[_NT]],
165
+ [_SF]: [() => input.StatusFilter !== void 0, () => (input[_SF] || []).map((_entry) => _entry)],
265
166
  });
266
167
  let body;
267
- return new __HttpRequest({
268
- protocol,
269
- hostname,
270
- port,
271
- method: "GET",
272
- headers,
273
- path: resolvedPath,
274
- query,
275
- body,
276
- });
168
+ b.m("GET").h(headers).q(query).b(body);
169
+ return b.build();
277
170
  };
278
171
  export const se_ListCatalogItemsCommand = async (input, context) => {
279
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
172
+ const b = rb(input, context);
280
173
  const headers = {};
281
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/catalog/items";
174
+ b.bp("/catalog/items");
282
175
  const query = map({
283
- NextToken: [, input.NextToken],
284
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
285
- ItemClassFilter: [
286
- () => input.ItemClassFilter !== void 0,
287
- () => (input.ItemClassFilter || []).map((_entry) => _entry),
288
- ],
289
- SupportedStorageFilter: [
290
- () => input.SupportedStorageFilter !== void 0,
291
- () => (input.SupportedStorageFilter || []).map((_entry) => _entry),
292
- ],
293
- EC2FamilyFilter: [
294
- () => input.EC2FamilyFilter !== void 0,
295
- () => (input.EC2FamilyFilter || []).map((_entry) => _entry),
296
- ],
176
+ [_NT]: [, input[_NT]],
177
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
178
+ [_ICF]: [() => input.ItemClassFilter !== void 0, () => (input[_ICF] || []).map((_entry) => _entry)],
179
+ [_SSF]: [() => input.SupportedStorageFilter !== void 0, () => (input[_SSF] || []).map((_entry) => _entry)],
180
+ [_ECFF]: [() => input.EC2FamilyFilter !== void 0, () => (input[_ECFF] || []).map((_entry) => _entry)],
297
181
  });
298
182
  let body;
299
- return new __HttpRequest({
300
- protocol,
301
- hostname,
302
- port,
303
- method: "GET",
304
- headers,
305
- path: resolvedPath,
306
- query,
307
- body,
308
- });
183
+ b.m("GET").h(headers).q(query).b(body);
184
+ return b.build();
309
185
  };
310
186
  export const se_ListOrdersCommand = async (input, context) => {
311
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
187
+ const b = rb(input, context);
312
188
  const headers = {};
313
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-orders";
189
+ b.bp("/list-orders");
314
190
  const query = map({
315
- OutpostIdentifierFilter: [, input.OutpostIdentifierFilter],
316
- NextToken: [, input.NextToken],
317
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
191
+ [_OIF]: [, input[_OIF]],
192
+ [_NT]: [, input[_NT]],
193
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
318
194
  });
319
195
  let body;
320
- return new __HttpRequest({
321
- protocol,
322
- hostname,
323
- port,
324
- method: "GET",
325
- headers,
326
- path: resolvedPath,
327
- query,
328
- body,
329
- });
196
+ b.m("GET").h(headers).q(query).b(body);
197
+ return b.build();
330
198
  };
331
199
  export const se_ListOutpostsCommand = async (input, context) => {
332
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
200
+ const b = rb(input, context);
333
201
  const headers = {};
334
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts";
202
+ b.bp("/outposts");
335
203
  const query = map({
336
- NextToken: [, input.NextToken],
337
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
338
- LifeCycleStatusFilter: [
339
- () => input.LifeCycleStatusFilter !== void 0,
340
- () => (input.LifeCycleStatusFilter || []).map((_entry) => _entry),
341
- ],
342
- AvailabilityZoneFilter: [
343
- () => input.AvailabilityZoneFilter !== void 0,
344
- () => (input.AvailabilityZoneFilter || []).map((_entry) => _entry),
345
- ],
346
- AvailabilityZoneIdFilter: [
204
+ [_NT]: [, input[_NT]],
205
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
206
+ [_LCSF]: [() => input.LifeCycleStatusFilter !== void 0, () => (input[_LCSF] || []).map((_entry) => _entry)],
207
+ [_AZF]: [() => input.AvailabilityZoneFilter !== void 0, () => (input[_AZF] || []).map((_entry) => _entry)],
208
+ [_AZIF]: [
347
209
  () => input.AvailabilityZoneIdFilter !== void 0,
348
- () => (input.AvailabilityZoneIdFilter || []).map((_entry) => _entry),
210
+ () => (input[_AZIF] || []).map((_entry) => _entry),
349
211
  ],
350
212
  });
351
213
  let body;
352
- return new __HttpRequest({
353
- protocol,
354
- hostname,
355
- port,
356
- method: "GET",
357
- headers,
358
- path: resolvedPath,
359
- query,
360
- body,
361
- });
214
+ b.m("GET").h(headers).q(query).b(body);
215
+ return b.build();
362
216
  };
363
217
  export const se_ListSitesCommand = async (input, context) => {
364
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
218
+ const b = rb(input, context);
365
219
  const headers = {};
366
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites";
220
+ b.bp("/sites");
367
221
  const query = map({
368
- NextToken: [, input.NextToken],
369
- MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
370
- OperatingAddressCountryCodeFilter: [
222
+ [_NT]: [, input[_NT]],
223
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
224
+ [_OACCF]: [
371
225
  () => input.OperatingAddressCountryCodeFilter !== void 0,
372
- () => (input.OperatingAddressCountryCodeFilter || []).map((_entry) => _entry),
226
+ () => (input[_OACCF] || []).map((_entry) => _entry),
373
227
  ],
374
- OperatingAddressStateOrRegionFilter: [
228
+ [_OASORF]: [
375
229
  () => input.OperatingAddressStateOrRegionFilter !== void 0,
376
- () => (input.OperatingAddressStateOrRegionFilter || []).map((_entry) => _entry),
230
+ () => (input[_OASORF] || []).map((_entry) => _entry),
377
231
  ],
378
- OperatingAddressCityFilter: [
232
+ [_OACF]: [
379
233
  () => input.OperatingAddressCityFilter !== void 0,
380
- () => (input.OperatingAddressCityFilter || []).map((_entry) => _entry),
234
+ () => (input[_OACF] || []).map((_entry) => _entry),
381
235
  ],
382
236
  });
383
237
  let body;
384
- return new __HttpRequest({
385
- protocol,
386
- hostname,
387
- port,
388
- method: "GET",
389
- headers,
390
- path: resolvedPath,
391
- query,
392
- body,
393
- });
238
+ b.m("GET").h(headers).q(query).b(body);
239
+ return b.build();
394
240
  };
395
241
  export const se_ListTagsForResourceCommand = async (input, context) => {
396
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
242
+ const b = rb(input, context);
397
243
  const headers = {};
398
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
399
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
244
+ b.bp("/tags/{ResourceArn}");
245
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
400
246
  let body;
401
- return new __HttpRequest({
402
- protocol,
403
- hostname,
404
- port,
405
- method: "GET",
406
- headers,
407
- path: resolvedPath,
408
- body,
409
- });
247
+ b.m("GET").h(headers).b(body);
248
+ return b.build();
410
249
  };
411
250
  export const se_StartConnectionCommand = async (input, context) => {
412
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
251
+ const b = rb(input, context);
413
252
  const headers = {
414
253
  "content-type": "application/json",
415
254
  };
416
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connections";
255
+ b.bp("/connections");
417
256
  let body;
418
257
  body = JSON.stringify(take(input, {
419
258
  AssetId: [],
@@ -421,135 +260,92 @@ export const se_StartConnectionCommand = async (input, context) => {
421
260
  DeviceSerialNumber: [],
422
261
  NetworkInterfaceDeviceIndex: [],
423
262
  }));
424
- return new __HttpRequest({
425
- protocol,
426
- hostname,
427
- port,
428
- method: "POST",
429
- headers,
430
- path: resolvedPath,
431
- body,
432
- });
263
+ b.m("POST").h(headers).b(body);
264
+ return b.build();
433
265
  };
434
266
  export const se_TagResourceCommand = async (input, context) => {
435
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
267
+ const b = rb(input, context);
436
268
  const headers = {
437
269
  "content-type": "application/json",
438
270
  };
439
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
440
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
271
+ b.bp("/tags/{ResourceArn}");
272
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
441
273
  let body;
442
274
  body = JSON.stringify(take(input, {
443
275
  Tags: (_) => _json(_),
444
276
  }));
445
- return new __HttpRequest({
446
- protocol,
447
- hostname,
448
- port,
449
- method: "POST",
450
- headers,
451
- path: resolvedPath,
452
- body,
453
- });
277
+ b.m("POST").h(headers).b(body);
278
+ return b.build();
454
279
  };
455
280
  export const se_UntagResourceCommand = async (input, context) => {
456
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
281
+ const b = rb(input, context);
457
282
  const headers = {};
458
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
459
- resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
283
+ b.bp("/tags/{ResourceArn}");
284
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
460
285
  const query = map({
461
- tagKeys: [
286
+ [_tK]: [
462
287
  __expectNonNull(input.TagKeys, `TagKeys`) != null,
463
- () => (input.TagKeys || []).map((_entry) => _entry),
288
+ () => (input[_TK] || []).map((_entry) => _entry),
464
289
  ],
465
290
  });
466
291
  let body;
467
- return new __HttpRequest({
468
- protocol,
469
- hostname,
470
- port,
471
- method: "DELETE",
472
- headers,
473
- path: resolvedPath,
474
- query,
475
- body,
476
- });
292
+ b.m("DELETE").h(headers).q(query).b(body);
293
+ return b.build();
477
294
  };
478
295
  export const se_UpdateOutpostCommand = async (input, context) => {
479
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
296
+ const b = rb(input, context);
480
297
  const headers = {
481
298
  "content-type": "application/json",
482
299
  };
483
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/outposts/{OutpostId}";
484
- resolvedPath = __resolvedPath(resolvedPath, input, "OutpostId", () => input.OutpostId, "{OutpostId}", false);
300
+ b.bp("/outposts/{OutpostId}");
301
+ b.p("OutpostId", () => input.OutpostId, "{OutpostId}", false);
485
302
  let body;
486
303
  body = JSON.stringify(take(input, {
487
304
  Description: [],
488
305
  Name: [],
489
306
  SupportedHardwareType: [],
490
307
  }));
491
- return new __HttpRequest({
492
- protocol,
493
- hostname,
494
- port,
495
- method: "PATCH",
496
- headers,
497
- path: resolvedPath,
498
- body,
499
- });
308
+ b.m("PATCH").h(headers).b(body);
309
+ return b.build();
500
310
  };
501
311
  export const se_UpdateSiteCommand = async (input, context) => {
502
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
312
+ const b = rb(input, context);
503
313
  const headers = {
504
314
  "content-type": "application/json",
505
315
  };
506
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}";
507
- resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
316
+ b.bp("/sites/{SiteId}");
317
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
508
318
  let body;
509
319
  body = JSON.stringify(take(input, {
510
320
  Description: [],
511
321
  Name: [],
512
322
  Notes: [],
513
323
  }));
514
- return new __HttpRequest({
515
- protocol,
516
- hostname,
517
- port,
518
- method: "PATCH",
519
- headers,
520
- path: resolvedPath,
521
- body,
522
- });
324
+ b.m("PATCH").h(headers).b(body);
325
+ return b.build();
523
326
  };
524
327
  export const se_UpdateSiteAddressCommand = async (input, context) => {
525
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
328
+ const b = rb(input, context);
526
329
  const headers = {
527
330
  "content-type": "application/json",
528
331
  };
529
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/address";
530
- resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
332
+ b.bp("/sites/{SiteId}/address");
333
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
531
334
  let body;
532
335
  body = JSON.stringify(take(input, {
533
336
  Address: (_) => _json(_),
534
337
  AddressType: [],
535
338
  }));
536
- return new __HttpRequest({
537
- protocol,
538
- hostname,
539
- port,
540
- method: "PUT",
541
- headers,
542
- path: resolvedPath,
543
- body,
544
- });
339
+ b.m("PUT").h(headers).b(body);
340
+ return b.build();
545
341
  };
546
342
  export const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context) => {
547
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
343
+ const b = rb(input, context);
548
344
  const headers = {
549
345
  "content-type": "application/json",
550
346
  };
551
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sites/{SiteId}/rackPhysicalProperties";
552
- resolvedPath = __resolvedPath(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
347
+ b.bp("/sites/{SiteId}/rackPhysicalProperties");
348
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
553
349
  let body;
554
350
  body = JSON.stringify(take(input, {
555
351
  FiberOpticCableType: [],
@@ -562,15 +358,8 @@ export const se_UpdateSiteRackPhysicalPropertiesCommand = async (input, context)
562
358
  UplinkCount: [],
563
359
  UplinkGbps: [],
564
360
  }));
565
- return new __HttpRequest({
566
- protocol,
567
- hostname,
568
- port,
569
- method: "PATCH",
570
- headers,
571
- path: resolvedPath,
572
- body,
573
- });
361
+ b.m("PATCH").h(headers).b(body);
362
+ return b.build();
574
363
  };
575
364
  export const de_CancelOrderCommand = async (output, context) => {
576
365
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1835,6 +1624,23 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1835
1624
  value !== "" &&
1836
1625
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1837
1626
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1627
+ const _AT = "AddressType";
1628
+ const _AZF = "AvailabilityZoneFilter";
1629
+ const _AZIF = "AvailabilityZoneIdFilter";
1630
+ const _ECFF = "EC2FamilyFilter";
1631
+ const _HIF = "HostIdFilter";
1632
+ const _ICF = "ItemClassFilter";
1633
+ const _LCSF = "LifeCycleStatusFilter";
1634
+ const _MR = "MaxResults";
1635
+ const _NT = "NextToken";
1636
+ const _OACCF = "OperatingAddressCountryCodeFilter";
1637
+ const _OACF = "OperatingAddressCityFilter";
1638
+ const _OASORF = "OperatingAddressStateOrRegionFilter";
1639
+ const _OIF = "OutpostIdentifierFilter";
1640
+ const _SF = "StatusFilter";
1641
+ const _SSF = "SupportedStorageFilter";
1642
+ const _TK = "TagKeys";
1643
+ const _tK = "tagKeys";
1838
1644
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1839
1645
  if (encoded.length) {
1840
1646
  return JSON.parse(encoded);