@aws-sdk/client-iotsitewise 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.
@@ -1,16 +1,17 @@
1
- import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
4
  import { v4 as generateIdempotencyToken } from "uuid";
4
5
  import { IoTSiteWiseServiceException as __BaseException } from "../models/IoTSiteWiseServiceException";
5
6
  import { AccessDeniedException, ConflictingOperationException, InternalFailureException, InvalidRequestException, LimitExceededException, QueryTimeoutException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
6
7
  import { TooManyTagsException } from "../models/models_1";
7
8
  export const se_AssociateAssetsCommand = async (input, context) => {
8
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const b = rb(input, context);
9
10
  const headers = {
10
11
  "content-type": "application/json",
11
12
  };
12
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/associate";
13
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
13
+ b.bp("/assets/{assetId}/associate");
14
+ b.p("assetId", () => input.assetId, "{assetId}", false);
14
15
  let body;
15
16
  body = JSON.stringify(take(input, {
16
17
  childAssetId: [],
@@ -24,26 +25,20 @@ export const se_AssociateAssetsCommand = async (input, context) => {
24
25
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
25
26
  }
26
27
  }
27
- return new __HttpRequest({
28
- protocol,
29
- hostname: resolvedHostname,
30
- port,
31
- method: "POST",
32
- headers,
33
- path: resolvedPath,
34
- body,
35
- });
28
+ b.hn(resolvedHostname);
29
+ b.m("POST").h(headers).b(body);
30
+ return b.build();
36
31
  };
37
32
  export const se_AssociateTimeSeriesToAssetPropertyCommand = async (input, context) => {
38
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
33
+ const b = rb(input, context);
39
34
  const headers = {
40
35
  "content-type": "application/json",
41
36
  };
42
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/associate";
37
+ b.bp("/timeseries/associate");
43
38
  const query = map({
44
- alias: [, __expectNonNull(input.alias, `alias`)],
45
- assetId: [, __expectNonNull(input.assetId, `assetId`)],
46
- propertyId: [, __expectNonNull(input.propertyId, `propertyId`)],
39
+ [_a]: [, __expectNonNull(input[_a], `alias`)],
40
+ [_aI]: [, __expectNonNull(input[_aI], `assetId`)],
41
+ [_pI]: [, __expectNonNull(input[_pI], `propertyId`)],
47
42
  });
48
43
  let body;
49
44
  body = JSON.stringify(take(input, {
@@ -56,24 +51,17 @@ export const se_AssociateTimeSeriesToAssetPropertyCommand = async (input, contex
56
51
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
57
52
  }
58
53
  }
59
- return new __HttpRequest({
60
- protocol,
61
- hostname: resolvedHostname,
62
- port,
63
- method: "POST",
64
- headers,
65
- path: resolvedPath,
66
- query,
67
- body,
68
- });
54
+ b.hn(resolvedHostname);
55
+ b.m("POST").h(headers).q(query).b(body);
56
+ return b.build();
69
57
  };
70
58
  export const se_BatchAssociateProjectAssetsCommand = async (input, context) => {
71
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
+ const b = rb(input, context);
72
60
  const headers = {
73
61
  "content-type": "application/json",
74
62
  };
75
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/associate";
76
- resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
63
+ b.bp("/projects/{projectId}/assets/associate");
64
+ b.p("projectId", () => input.projectId, "{projectId}", false);
77
65
  let body;
78
66
  body = JSON.stringify(take(input, {
79
67
  assetIds: (_) => _json(_),
@@ -86,23 +74,17 @@ export const se_BatchAssociateProjectAssetsCommand = async (input, context) => {
86
74
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
87
75
  }
88
76
  }
89
- return new __HttpRequest({
90
- protocol,
91
- hostname: resolvedHostname,
92
- port,
93
- method: "POST",
94
- headers,
95
- path: resolvedPath,
96
- body,
97
- });
77
+ b.hn(resolvedHostname);
78
+ b.m("POST").h(headers).b(body);
79
+ return b.build();
98
80
  };
99
81
  export const se_BatchDisassociateProjectAssetsCommand = async (input, context) => {
100
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
82
+ const b = rb(input, context);
101
83
  const headers = {
102
84
  "content-type": "application/json",
103
85
  };
104
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/disassociate";
105
- resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
86
+ b.bp("/projects/{projectId}/assets/disassociate");
87
+ b.p("projectId", () => input.projectId, "{projectId}", false);
106
88
  let body;
107
89
  body = JSON.stringify(take(input, {
108
90
  assetIds: (_) => _json(_),
@@ -115,22 +97,16 @@ export const se_BatchDisassociateProjectAssetsCommand = async (input, context) =
115
97
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
116
98
  }
117
99
  }
118
- return new __HttpRequest({
119
- protocol,
120
- hostname: resolvedHostname,
121
- port,
122
- method: "POST",
123
- headers,
124
- path: resolvedPath,
125
- body,
126
- });
100
+ b.hn(resolvedHostname);
101
+ b.m("POST").h(headers).b(body);
102
+ return b.build();
127
103
  };
128
104
  export const se_BatchGetAssetPropertyAggregatesCommand = async (input, context) => {
129
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
105
+ const b = rb(input, context);
130
106
  const headers = {
131
107
  "content-type": "application/json",
132
108
  };
133
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/aggregates";
109
+ b.bp("/properties/batch/aggregates");
134
110
  let body;
135
111
  body = JSON.stringify(take(input, {
136
112
  entries: (_) => se_BatchGetAssetPropertyAggregatesEntries(_, context),
@@ -144,22 +120,16 @@ export const se_BatchGetAssetPropertyAggregatesCommand = async (input, context)
144
120
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
145
121
  }
146
122
  }
147
- return new __HttpRequest({
148
- protocol,
149
- hostname: resolvedHostname,
150
- port,
151
- method: "POST",
152
- headers,
153
- path: resolvedPath,
154
- body,
155
- });
123
+ b.hn(resolvedHostname);
124
+ b.m("POST").h(headers).b(body);
125
+ return b.build();
156
126
  };
157
127
  export const se_BatchGetAssetPropertyValueCommand = async (input, context) => {
158
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
128
+ const b = rb(input, context);
159
129
  const headers = {
160
130
  "content-type": "application/json",
161
131
  };
162
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/latest";
132
+ b.bp("/properties/batch/latest");
163
133
  let body;
164
134
  body = JSON.stringify(take(input, {
165
135
  entries: (_) => _json(_),
@@ -172,22 +142,16 @@ export const se_BatchGetAssetPropertyValueCommand = async (input, context) => {
172
142
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
173
143
  }
174
144
  }
175
- return new __HttpRequest({
176
- protocol,
177
- hostname: resolvedHostname,
178
- port,
179
- method: "POST",
180
- headers,
181
- path: resolvedPath,
182
- body,
183
- });
145
+ b.hn(resolvedHostname);
146
+ b.m("POST").h(headers).b(body);
147
+ return b.build();
184
148
  };
185
149
  export const se_BatchGetAssetPropertyValueHistoryCommand = async (input, context) => {
186
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
+ const b = rb(input, context);
187
151
  const headers = {
188
152
  "content-type": "application/json",
189
153
  };
190
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/history";
154
+ b.bp("/properties/batch/history");
191
155
  let body;
192
156
  body = JSON.stringify(take(input, {
193
157
  entries: (_) => se_BatchGetAssetPropertyValueHistoryEntries(_, context),
@@ -201,22 +165,16 @@ export const se_BatchGetAssetPropertyValueHistoryCommand = async (input, context
201
165
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
202
166
  }
203
167
  }
204
- return new __HttpRequest({
205
- protocol,
206
- hostname: resolvedHostname,
207
- port,
208
- method: "POST",
209
- headers,
210
- path: resolvedPath,
211
- body,
212
- });
168
+ b.hn(resolvedHostname);
169
+ b.m("POST").h(headers).b(body);
170
+ return b.build();
213
171
  };
214
172
  export const se_BatchPutAssetPropertyValueCommand = async (input, context) => {
215
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
173
+ const b = rb(input, context);
216
174
  const headers = {
217
175
  "content-type": "application/json",
218
176
  };
219
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties";
177
+ b.bp("/properties");
220
178
  let body;
221
179
  body = JSON.stringify(take(input, {
222
180
  entries: (_) => se_PutAssetPropertyValueEntries(_, context),
@@ -228,22 +186,16 @@ export const se_BatchPutAssetPropertyValueCommand = async (input, context) => {
228
186
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
229
187
  }
230
188
  }
231
- return new __HttpRequest({
232
- protocol,
233
- hostname: resolvedHostname,
234
- port,
235
- method: "POST",
236
- headers,
237
- path: resolvedPath,
238
- body,
239
- });
189
+ b.hn(resolvedHostname);
190
+ b.m("POST").h(headers).b(body);
191
+ return b.build();
240
192
  };
241
193
  export const se_CreateAccessPolicyCommand = async (input, context) => {
242
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
194
+ const b = rb(input, context);
243
195
  const headers = {
244
196
  "content-type": "application/json",
245
197
  };
246
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
198
+ b.bp("/access-policies");
247
199
  let body;
248
200
  body = JSON.stringify(take(input, {
249
201
  accessPolicyIdentity: (_) => _json(_),
@@ -259,22 +211,16 @@ export const se_CreateAccessPolicyCommand = async (input, context) => {
259
211
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
260
212
  }
261
213
  }
262
- return new __HttpRequest({
263
- protocol,
264
- hostname: resolvedHostname,
265
- port,
266
- method: "POST",
267
- headers,
268
- path: resolvedPath,
269
- body,
270
- });
214
+ b.hn(resolvedHostname);
215
+ b.m("POST").h(headers).b(body);
216
+ return b.build();
271
217
  };
272
218
  export const se_CreateAssetCommand = async (input, context) => {
273
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
219
+ const b = rb(input, context);
274
220
  const headers = {
275
221
  "content-type": "application/json",
276
222
  };
277
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
223
+ b.bp("/assets");
278
224
  let body;
279
225
  body = JSON.stringify(take(input, {
280
226
  assetDescription: [],
@@ -292,22 +238,16 @@ export const se_CreateAssetCommand = async (input, context) => {
292
238
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
293
239
  }
294
240
  }
295
- return new __HttpRequest({
296
- protocol,
297
- hostname: resolvedHostname,
298
- port,
299
- method: "POST",
300
- headers,
301
- path: resolvedPath,
302
- body,
303
- });
241
+ b.hn(resolvedHostname);
242
+ b.m("POST").h(headers).b(body);
243
+ return b.build();
304
244
  };
305
245
  export const se_CreateAssetModelCommand = async (input, context) => {
306
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
246
+ const b = rb(input, context);
307
247
  const headers = {
308
248
  "content-type": "application/json",
309
249
  };
310
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
250
+ b.bp("/asset-models");
311
251
  let body;
312
252
  body = JSON.stringify(take(input, {
313
253
  assetModelCompositeModels: (_) => se_AssetModelCompositeModelDefinitions(_, context),
@@ -328,24 +268,17 @@ export const se_CreateAssetModelCommand = async (input, context) => {
328
268
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
329
269
  }
330
270
  }
331
- return new __HttpRequest({
332
- protocol,
333
- hostname: resolvedHostname,
334
- port,
335
- method: "POST",
336
- headers,
337
- path: resolvedPath,
338
- body,
339
- });
271
+ b.hn(resolvedHostname);
272
+ b.m("POST").h(headers).b(body);
273
+ return b.build();
340
274
  };
341
275
  export const se_CreateAssetModelCompositeModelCommand = async (input, context) => {
342
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
276
+ const b = rb(input, context);
343
277
  const headers = {
344
278
  "content-type": "application/json",
345
279
  };
346
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
347
- "/asset-models/{assetModelId}/composite-models";
348
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
280
+ b.bp("/asset-models/{assetModelId}/composite-models");
281
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
349
282
  let body;
350
283
  body = JSON.stringify(take(input, {
351
284
  assetModelCompositeModelDescription: [],
@@ -365,22 +298,16 @@ export const se_CreateAssetModelCompositeModelCommand = async (input, context) =
365
298
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
366
299
  }
367
300
  }
368
- return new __HttpRequest({
369
- protocol,
370
- hostname: resolvedHostname,
371
- port,
372
- method: "POST",
373
- headers,
374
- path: resolvedPath,
375
- body,
376
- });
301
+ b.hn(resolvedHostname);
302
+ b.m("POST").h(headers).b(body);
303
+ return b.build();
377
304
  };
378
305
  export const se_CreateBulkImportJobCommand = async (input, context) => {
379
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
+ const b = rb(input, context);
380
307
  const headers = {
381
308
  "content-type": "application/json",
382
309
  };
383
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
310
+ b.bp("/jobs");
384
311
  let body;
385
312
  body = JSON.stringify(take(input, {
386
313
  adaptiveIngestion: [],
@@ -398,22 +325,16 @@ export const se_CreateBulkImportJobCommand = async (input, context) => {
398
325
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
399
326
  }
400
327
  }
401
- return new __HttpRequest({
402
- protocol,
403
- hostname: resolvedHostname,
404
- port,
405
- method: "POST",
406
- headers,
407
- path: resolvedPath,
408
- body,
409
- });
328
+ b.hn(resolvedHostname);
329
+ b.m("POST").h(headers).b(body);
330
+ return b.build();
410
331
  };
411
332
  export const se_CreateDashboardCommand = async (input, context) => {
412
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
333
+ const b = rb(input, context);
413
334
  const headers = {
414
335
  "content-type": "application/json",
415
336
  };
416
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
337
+ b.bp("/dashboards");
417
338
  let body;
418
339
  body = JSON.stringify(take(input, {
419
340
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -430,22 +351,16 @@ export const se_CreateDashboardCommand = async (input, context) => {
430
351
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
431
352
  }
432
353
  }
433
- return new __HttpRequest({
434
- protocol,
435
- hostname: resolvedHostname,
436
- port,
437
- method: "POST",
438
- headers,
439
- path: resolvedPath,
440
- body,
441
- });
354
+ b.hn(resolvedHostname);
355
+ b.m("POST").h(headers).b(body);
356
+ return b.build();
442
357
  };
443
358
  export const se_CreateGatewayCommand = async (input, context) => {
444
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
359
+ const b = rb(input, context);
445
360
  const headers = {
446
361
  "content-type": "application/json",
447
362
  };
448
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
363
+ b.bp("/20200301/gateways");
449
364
  let body;
450
365
  body = JSON.stringify(take(input, {
451
366
  gatewayName: [],
@@ -459,22 +374,16 @@ export const se_CreateGatewayCommand = async (input, context) => {
459
374
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
460
375
  }
461
376
  }
462
- return new __HttpRequest({
463
- protocol,
464
- hostname: resolvedHostname,
465
- port,
466
- method: "POST",
467
- headers,
468
- path: resolvedPath,
469
- body,
470
- });
377
+ b.hn(resolvedHostname);
378
+ b.m("POST").h(headers).b(body);
379
+ return b.build();
471
380
  };
472
381
  export const se_CreatePortalCommand = async (input, context) => {
473
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
382
+ const b = rb(input, context);
474
383
  const headers = {
475
384
  "content-type": "application/json",
476
385
  };
477
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
386
+ b.bp("/portals");
478
387
  let body;
479
388
  body = JSON.stringify(take(input, {
480
389
  alarms: (_) => _json(_),
@@ -495,22 +404,16 @@ export const se_CreatePortalCommand = async (input, context) => {
495
404
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
496
405
  }
497
406
  }
498
- return new __HttpRequest({
499
- protocol,
500
- hostname: resolvedHostname,
501
- port,
502
- method: "POST",
503
- headers,
504
- path: resolvedPath,
505
- body,
506
- });
407
+ b.hn(resolvedHostname);
408
+ b.m("POST").h(headers).b(body);
409
+ return b.build();
507
410
  };
508
411
  export const se_CreateProjectCommand = async (input, context) => {
509
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
412
+ const b = rb(input, context);
510
413
  const headers = {
511
414
  "content-type": "application/json",
512
415
  };
513
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
416
+ b.bp("/projects");
514
417
  let body;
515
418
  body = JSON.stringify(take(input, {
516
419
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -526,23 +429,17 @@ export const se_CreateProjectCommand = async (input, context) => {
526
429
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
527
430
  }
528
431
  }
529
- return new __HttpRequest({
530
- protocol,
531
- hostname: resolvedHostname,
532
- port,
533
- method: "POST",
534
- headers,
535
- path: resolvedPath,
536
- body,
537
- });
432
+ b.hn(resolvedHostname);
433
+ b.m("POST").h(headers).b(body);
434
+ return b.build();
538
435
  };
539
436
  export const se_DeleteAccessPolicyCommand = async (input, context) => {
540
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
437
+ const b = rb(input, context);
541
438
  const headers = {};
542
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
543
- resolvedPath = __resolvedPath(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
439
+ b.bp("/access-policies/{accessPolicyId}");
440
+ b.p("accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
544
441
  const query = map({
545
- clientToken: [, input.clientToken ?? generateIdempotencyToken()],
442
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
546
443
  });
547
444
  let body;
548
445
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -552,24 +449,17 @@ export const se_DeleteAccessPolicyCommand = async (input, context) => {
552
449
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
553
450
  }
554
451
  }
555
- return new __HttpRequest({
556
- protocol,
557
- hostname: resolvedHostname,
558
- port,
559
- method: "DELETE",
560
- headers,
561
- path: resolvedPath,
562
- query,
563
- body,
564
- });
452
+ b.hn(resolvedHostname);
453
+ b.m("DELETE").h(headers).q(query).b(body);
454
+ return b.build();
565
455
  };
566
456
  export const se_DeleteAssetCommand = async (input, context) => {
567
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
457
+ const b = rb(input, context);
568
458
  const headers = {};
569
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
570
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
459
+ b.bp("/assets/{assetId}");
460
+ b.p("assetId", () => input.assetId, "{assetId}", false);
571
461
  const query = map({
572
- clientToken: [, input.clientToken ?? generateIdempotencyToken()],
462
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
573
463
  });
574
464
  let body;
575
465
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -579,24 +469,17 @@ export const se_DeleteAssetCommand = async (input, context) => {
579
469
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
580
470
  }
581
471
  }
582
- return new __HttpRequest({
583
- protocol,
584
- hostname: resolvedHostname,
585
- port,
586
- method: "DELETE",
587
- headers,
588
- path: resolvedPath,
589
- query,
590
- body,
591
- });
472
+ b.hn(resolvedHostname);
473
+ b.m("DELETE").h(headers).q(query).b(body);
474
+ return b.build();
592
475
  };
593
476
  export const se_DeleteAssetModelCommand = async (input, context) => {
594
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
477
+ const b = rb(input, context);
595
478
  const headers = {};
596
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
597
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
479
+ b.bp("/asset-models/{assetModelId}");
480
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
598
481
  const query = map({
599
- clientToken: [, input.clientToken ?? generateIdempotencyToken()],
482
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
600
483
  });
601
484
  let body;
602
485
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -606,26 +489,18 @@ export const se_DeleteAssetModelCommand = async (input, context) => {
606
489
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
607
490
  }
608
491
  }
609
- return new __HttpRequest({
610
- protocol,
611
- hostname: resolvedHostname,
612
- port,
613
- method: "DELETE",
614
- headers,
615
- path: resolvedPath,
616
- query,
617
- body,
618
- });
492
+ b.hn(resolvedHostname);
493
+ b.m("DELETE").h(headers).q(query).b(body);
494
+ return b.build();
619
495
  };
620
496
  export const se_DeleteAssetModelCompositeModelCommand = async (input, context) => {
621
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
497
+ const b = rb(input, context);
622
498
  const headers = {};
623
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
624
- "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
625
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
626
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
499
+ b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}");
500
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
501
+ b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
627
502
  const query = map({
628
- clientToken: [, input.clientToken ?? generateIdempotencyToken()],
503
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
629
504
  });
630
505
  let body;
631
506
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -635,24 +510,17 @@ export const se_DeleteAssetModelCompositeModelCommand = async (input, context) =
635
510
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
636
511
  }
637
512
  }
638
- return new __HttpRequest({
639
- protocol,
640
- hostname: resolvedHostname,
641
- port,
642
- method: "DELETE",
643
- headers,
644
- path: resolvedPath,
645
- query,
646
- body,
647
- });
513
+ b.hn(resolvedHostname);
514
+ b.m("DELETE").h(headers).q(query).b(body);
515
+ return b.build();
648
516
  };
649
517
  export const se_DeleteDashboardCommand = async (input, context) => {
650
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
518
+ const b = rb(input, context);
651
519
  const headers = {};
652
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
653
- resolvedPath = __resolvedPath(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
520
+ b.bp("/dashboards/{dashboardId}");
521
+ b.p("dashboardId", () => input.dashboardId, "{dashboardId}", false);
654
522
  const query = map({
655
- clientToken: [, input.clientToken ?? generateIdempotencyToken()],
523
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
656
524
  });
657
525
  let body;
658
526
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -662,22 +530,15 @@ export const se_DeleteDashboardCommand = async (input, context) => {
662
530
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
663
531
  }
664
532
  }
665
- return new __HttpRequest({
666
- protocol,
667
- hostname: resolvedHostname,
668
- port,
669
- method: "DELETE",
670
- headers,
671
- path: resolvedPath,
672
- query,
673
- body,
674
- });
533
+ b.hn(resolvedHostname);
534
+ b.m("DELETE").h(headers).q(query).b(body);
535
+ return b.build();
675
536
  };
676
537
  export const se_DeleteGatewayCommand = async (input, context) => {
677
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
538
+ const b = rb(input, context);
678
539
  const headers = {};
679
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
680
- resolvedPath = __resolvedPath(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
540
+ b.bp("/20200301/gateways/{gatewayId}");
541
+ b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
681
542
  let body;
682
543
  let { hostname: resolvedHostname } = await context.endpoint();
683
544
  if (context.disableHostPrefix !== true) {
@@ -686,23 +547,17 @@ export const se_DeleteGatewayCommand = async (input, context) => {
686
547
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
687
548
  }
688
549
  }
689
- return new __HttpRequest({
690
- protocol,
691
- hostname: resolvedHostname,
692
- port,
693
- method: "DELETE",
694
- headers,
695
- path: resolvedPath,
696
- body,
697
- });
550
+ b.hn(resolvedHostname);
551
+ b.m("DELETE").h(headers).b(body);
552
+ return b.build();
698
553
  };
699
554
  export const se_DeletePortalCommand = async (input, context) => {
700
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
555
+ const b = rb(input, context);
701
556
  const headers = {};
702
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
703
- resolvedPath = __resolvedPath(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
557
+ b.bp("/portals/{portalId}");
558
+ b.p("portalId", () => input.portalId, "{portalId}", false);
704
559
  const query = map({
705
- clientToken: [, input.clientToken ?? generateIdempotencyToken()],
560
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
706
561
  });
707
562
  let body;
708
563
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -712,24 +567,17 @@ export const se_DeletePortalCommand = async (input, context) => {
712
567
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
713
568
  }
714
569
  }
715
- return new __HttpRequest({
716
- protocol,
717
- hostname: resolvedHostname,
718
- port,
719
- method: "DELETE",
720
- headers,
721
- path: resolvedPath,
722
- query,
723
- body,
724
- });
570
+ b.hn(resolvedHostname);
571
+ b.m("DELETE").h(headers).q(query).b(body);
572
+ return b.build();
725
573
  };
726
574
  export const se_DeleteProjectCommand = async (input, context) => {
727
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
575
+ const b = rb(input, context);
728
576
  const headers = {};
729
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
730
- resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
577
+ b.bp("/projects/{projectId}");
578
+ b.p("projectId", () => input.projectId, "{projectId}", false);
731
579
  const query = map({
732
- clientToken: [, input.clientToken ?? generateIdempotencyToken()],
580
+ [_cT]: [, input[_cT] ?? generateIdempotencyToken()],
733
581
  });
734
582
  let body;
735
583
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -739,27 +587,20 @@ export const se_DeleteProjectCommand = async (input, context) => {
739
587
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
740
588
  }
741
589
  }
742
- return new __HttpRequest({
743
- protocol,
744
- hostname: resolvedHostname,
745
- port,
746
- method: "DELETE",
747
- headers,
748
- path: resolvedPath,
749
- query,
750
- body,
751
- });
590
+ b.hn(resolvedHostname);
591
+ b.m("DELETE").h(headers).q(query).b(body);
592
+ return b.build();
752
593
  };
753
594
  export const se_DeleteTimeSeriesCommand = async (input, context) => {
754
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
595
+ const b = rb(input, context);
755
596
  const headers = {
756
597
  "content-type": "application/json",
757
598
  };
758
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/delete";
599
+ b.bp("/timeseries/delete");
759
600
  const query = map({
760
- alias: [, input.alias],
761
- assetId: [, input.assetId],
762
- propertyId: [, input.propertyId],
601
+ [_a]: [, input[_a]],
602
+ [_aI]: [, input[_aI]],
603
+ [_pI]: [, input[_pI]],
763
604
  });
764
605
  let body;
765
606
  body = JSON.stringify(take(input, {
@@ -772,22 +613,15 @@ export const se_DeleteTimeSeriesCommand = async (input, context) => {
772
613
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
773
614
  }
774
615
  }
775
- return new __HttpRequest({
776
- protocol,
777
- hostname: resolvedHostname,
778
- port,
779
- method: "POST",
780
- headers,
781
- path: resolvedPath,
782
- query,
783
- body,
784
- });
616
+ b.hn(resolvedHostname);
617
+ b.m("POST").h(headers).q(query).b(body);
618
+ return b.build();
785
619
  };
786
620
  export const se_DescribeAccessPolicyCommand = async (input, context) => {
787
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
621
+ const b = rb(input, context);
788
622
  const headers = {};
789
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
790
- resolvedPath = __resolvedPath(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
623
+ b.bp("/access-policies/{accessPolicyId}");
624
+ b.p("accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
791
625
  let body;
792
626
  let { hostname: resolvedHostname } = await context.endpoint();
793
627
  if (context.disableHostPrefix !== true) {
@@ -796,21 +630,15 @@ export const se_DescribeAccessPolicyCommand = async (input, context) => {
796
630
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
797
631
  }
798
632
  }
799
- return new __HttpRequest({
800
- protocol,
801
- hostname: resolvedHostname,
802
- port,
803
- method: "GET",
804
- headers,
805
- path: resolvedPath,
806
- body,
807
- });
633
+ b.hn(resolvedHostname);
634
+ b.m("GET").h(headers).b(body);
635
+ return b.build();
808
636
  };
809
637
  export const se_DescribeActionCommand = async (input, context) => {
810
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
638
+ const b = rb(input, context);
811
639
  const headers = {};
812
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions/{actionId}";
813
- resolvedPath = __resolvedPath(resolvedPath, input, "actionId", () => input.actionId, "{actionId}", false);
640
+ b.bp("/actions/{actionId}");
641
+ b.p("actionId", () => input.actionId, "{actionId}", false);
814
642
  let body;
815
643
  let { hostname: resolvedHostname } = await context.endpoint();
816
644
  if (context.disableHostPrefix !== true) {
@@ -819,23 +647,17 @@ export const se_DescribeActionCommand = async (input, context) => {
819
647
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
820
648
  }
821
649
  }
822
- return new __HttpRequest({
823
- protocol,
824
- hostname: resolvedHostname,
825
- port,
826
- method: "GET",
827
- headers,
828
- path: resolvedPath,
829
- body,
830
- });
650
+ b.hn(resolvedHostname);
651
+ b.m("GET").h(headers).b(body);
652
+ return b.build();
831
653
  };
832
654
  export const se_DescribeAssetCommand = async (input, context) => {
833
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
655
+ const b = rb(input, context);
834
656
  const headers = {};
835
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
836
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
657
+ b.bp("/assets/{assetId}");
658
+ b.p("assetId", () => input.assetId, "{assetId}", false);
837
659
  const query = map({
838
- excludeProperties: [() => input.excludeProperties !== void 0, () => input.excludeProperties.toString()],
660
+ [_eP]: [() => input.excludeProperties !== void 0, () => input[_eP].toString()],
839
661
  });
840
662
  let body;
841
663
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -845,24 +667,16 @@ export const se_DescribeAssetCommand = async (input, context) => {
845
667
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
846
668
  }
847
669
  }
848
- return new __HttpRequest({
849
- protocol,
850
- hostname: resolvedHostname,
851
- port,
852
- method: "GET",
853
- headers,
854
- path: resolvedPath,
855
- query,
856
- body,
857
- });
670
+ b.hn(resolvedHostname);
671
+ b.m("GET").h(headers).q(query).b(body);
672
+ return b.build();
858
673
  };
859
674
  export const se_DescribeAssetCompositeModelCommand = async (input, context) => {
860
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
675
+ const b = rb(input, context);
861
676
  const headers = {};
862
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
863
- "/assets/{assetId}/composite-models/{assetCompositeModelId}";
864
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
865
- resolvedPath = __resolvedPath(resolvedPath, input, "assetCompositeModelId", () => input.assetCompositeModelId, "{assetCompositeModelId}", false);
677
+ b.bp("/assets/{assetId}/composite-models/{assetCompositeModelId}");
678
+ b.p("assetId", () => input.assetId, "{assetId}", false);
679
+ b.p("assetCompositeModelId", () => input.assetCompositeModelId, "{assetCompositeModelId}", false);
866
680
  let body;
867
681
  let { hostname: resolvedHostname } = await context.endpoint();
868
682
  if (context.disableHostPrefix !== true) {
@@ -871,23 +685,17 @@ export const se_DescribeAssetCompositeModelCommand = async (input, context) => {
871
685
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
872
686
  }
873
687
  }
874
- return new __HttpRequest({
875
- protocol,
876
- hostname: resolvedHostname,
877
- port,
878
- method: "GET",
879
- headers,
880
- path: resolvedPath,
881
- body,
882
- });
688
+ b.hn(resolvedHostname);
689
+ b.m("GET").h(headers).b(body);
690
+ return b.build();
883
691
  };
884
692
  export const se_DescribeAssetModelCommand = async (input, context) => {
885
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
693
+ const b = rb(input, context);
886
694
  const headers = {};
887
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
888
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
695
+ b.bp("/asset-models/{assetModelId}");
696
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
889
697
  const query = map({
890
- excludeProperties: [() => input.excludeProperties !== void 0, () => input.excludeProperties.toString()],
698
+ [_eP]: [() => input.excludeProperties !== void 0, () => input[_eP].toString()],
891
699
  });
892
700
  let body;
893
701
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -897,24 +705,16 @@ export const se_DescribeAssetModelCommand = async (input, context) => {
897
705
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
898
706
  }
899
707
  }
900
- return new __HttpRequest({
901
- protocol,
902
- hostname: resolvedHostname,
903
- port,
904
- method: "GET",
905
- headers,
906
- path: resolvedPath,
907
- query,
908
- body,
909
- });
708
+ b.hn(resolvedHostname);
709
+ b.m("GET").h(headers).q(query).b(body);
710
+ return b.build();
910
711
  };
911
712
  export const se_DescribeAssetModelCompositeModelCommand = async (input, context) => {
912
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
713
+ const b = rb(input, context);
913
714
  const headers = {};
914
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
915
- "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
916
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
917
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
715
+ b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}");
716
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
717
+ b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
918
718
  let body;
919
719
  let { hostname: resolvedHostname } = await context.endpoint();
920
720
  if (context.disableHostPrefix !== true) {
@@ -923,22 +723,16 @@ export const se_DescribeAssetModelCompositeModelCommand = async (input, context)
923
723
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
924
724
  }
925
725
  }
926
- return new __HttpRequest({
927
- protocol,
928
- hostname: resolvedHostname,
929
- port,
930
- method: "GET",
931
- headers,
932
- path: resolvedPath,
933
- body,
934
- });
726
+ b.hn(resolvedHostname);
727
+ b.m("GET").h(headers).b(body);
728
+ return b.build();
935
729
  };
936
730
  export const se_DescribeAssetPropertyCommand = async (input, context) => {
937
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
731
+ const b = rb(input, context);
938
732
  const headers = {};
939
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
940
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
941
- resolvedPath = __resolvedPath(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
733
+ b.bp("/assets/{assetId}/properties/{propertyId}");
734
+ b.p("assetId", () => input.assetId, "{assetId}", false);
735
+ b.p("propertyId", () => input.propertyId, "{propertyId}", false);
942
736
  let body;
943
737
  let { hostname: resolvedHostname } = await context.endpoint();
944
738
  if (context.disableHostPrefix !== true) {
@@ -947,21 +741,15 @@ export const se_DescribeAssetPropertyCommand = async (input, context) => {
947
741
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
948
742
  }
949
743
  }
950
- return new __HttpRequest({
951
- protocol,
952
- hostname: resolvedHostname,
953
- port,
954
- method: "GET",
955
- headers,
956
- path: resolvedPath,
957
- body,
958
- });
744
+ b.hn(resolvedHostname);
745
+ b.m("GET").h(headers).b(body);
746
+ return b.build();
959
747
  };
960
748
  export const se_DescribeBulkImportJobCommand = async (input, context) => {
961
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
749
+ const b = rb(input, context);
962
750
  const headers = {};
963
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
964
- resolvedPath = __resolvedPath(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
751
+ b.bp("/jobs/{jobId}");
752
+ b.p("jobId", () => input.jobId, "{jobId}", false);
965
753
  let body;
966
754
  let { hostname: resolvedHostname } = await context.endpoint();
967
755
  if (context.disableHostPrefix !== true) {
@@ -970,21 +758,15 @@ export const se_DescribeBulkImportJobCommand = async (input, context) => {
970
758
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
971
759
  }
972
760
  }
973
- return new __HttpRequest({
974
- protocol,
975
- hostname: resolvedHostname,
976
- port,
977
- method: "GET",
978
- headers,
979
- path: resolvedPath,
980
- body,
981
- });
761
+ b.hn(resolvedHostname);
762
+ b.m("GET").h(headers).b(body);
763
+ return b.build();
982
764
  };
983
765
  export const se_DescribeDashboardCommand = async (input, context) => {
984
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
766
+ const b = rb(input, context);
985
767
  const headers = {};
986
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
987
- resolvedPath = __resolvedPath(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
768
+ b.bp("/dashboards/{dashboardId}");
769
+ b.p("dashboardId", () => input.dashboardId, "{dashboardId}", false);
988
770
  let body;
989
771
  let { hostname: resolvedHostname } = await context.endpoint();
990
772
  if (context.disableHostPrefix !== true) {
@@ -993,22 +775,16 @@ export const se_DescribeDashboardCommand = async (input, context) => {
993
775
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
994
776
  }
995
777
  }
996
- return new __HttpRequest({
997
- protocol,
998
- hostname: resolvedHostname,
999
- port,
1000
- method: "GET",
1001
- headers,
1002
- path: resolvedPath,
1003
- body,
1004
- });
778
+ b.hn(resolvedHostname);
779
+ b.m("GET").h(headers).b(body);
780
+ return b.build();
1005
781
  };
1006
782
  export const se_DescribeDefaultEncryptionConfigurationCommand = async (input, context) => {
1007
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
783
+ const b = rb(input, context);
1008
784
  const headers = {
1009
785
  "content-type": "application/json",
1010
786
  };
1011
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
787
+ b.bp("/configuration/account/encryption");
1012
788
  let body;
1013
789
  body = "";
1014
790
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1018,21 +794,15 @@ export const se_DescribeDefaultEncryptionConfigurationCommand = async (input, co
1018
794
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1019
795
  }
1020
796
  }
1021
- return new __HttpRequest({
1022
- protocol,
1023
- hostname: resolvedHostname,
1024
- port,
1025
- method: "GET",
1026
- headers,
1027
- path: resolvedPath,
1028
- body,
1029
- });
797
+ b.hn(resolvedHostname);
798
+ b.m("GET").h(headers).b(body);
799
+ return b.build();
1030
800
  };
1031
801
  export const se_DescribeGatewayCommand = async (input, context) => {
1032
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
802
+ const b = rb(input, context);
1033
803
  const headers = {};
1034
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
1035
- resolvedPath = __resolvedPath(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
804
+ b.bp("/20200301/gateways/{gatewayId}");
805
+ b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
1036
806
  let body;
1037
807
  let { hostname: resolvedHostname } = await context.endpoint();
1038
808
  if (context.disableHostPrefix !== true) {
@@ -1041,23 +811,16 @@ export const se_DescribeGatewayCommand = async (input, context) => {
1041
811
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1042
812
  }
1043
813
  }
1044
- return new __HttpRequest({
1045
- protocol,
1046
- hostname: resolvedHostname,
1047
- port,
1048
- method: "GET",
1049
- headers,
1050
- path: resolvedPath,
1051
- body,
1052
- });
814
+ b.hn(resolvedHostname);
815
+ b.m("GET").h(headers).b(body);
816
+ return b.build();
1053
817
  };
1054
818
  export const se_DescribeGatewayCapabilityConfigurationCommand = async (input, context) => {
1055
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
819
+ const b = rb(input, context);
1056
820
  const headers = {};
1057
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1058
- "/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}";
1059
- resolvedPath = __resolvedPath(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
1060
- resolvedPath = __resolvedPath(resolvedPath, input, "capabilityNamespace", () => input.capabilityNamespace, "{capabilityNamespace}", false);
821
+ b.bp("/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}");
822
+ b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
823
+ b.p("capabilityNamespace", () => input.capabilityNamespace, "{capabilityNamespace}", false);
1061
824
  let body;
1062
825
  let { hostname: resolvedHostname } = await context.endpoint();
1063
826
  if (context.disableHostPrefix !== true) {
@@ -1066,22 +829,16 @@ export const se_DescribeGatewayCapabilityConfigurationCommand = async (input, co
1066
829
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1067
830
  }
1068
831
  }
1069
- return new __HttpRequest({
1070
- protocol,
1071
- hostname: resolvedHostname,
1072
- port,
1073
- method: "GET",
1074
- headers,
1075
- path: resolvedPath,
1076
- body,
1077
- });
832
+ b.hn(resolvedHostname);
833
+ b.m("GET").h(headers).b(body);
834
+ return b.build();
1078
835
  };
1079
836
  export const se_DescribeLoggingOptionsCommand = async (input, context) => {
1080
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
837
+ const b = rb(input, context);
1081
838
  const headers = {
1082
839
  "content-type": "application/json",
1083
840
  };
1084
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
841
+ b.bp("/logging");
1085
842
  let body;
1086
843
  body = "";
1087
844
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1091,21 +848,15 @@ export const se_DescribeLoggingOptionsCommand = async (input, context) => {
1091
848
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1092
849
  }
1093
850
  }
1094
- return new __HttpRequest({
1095
- protocol,
1096
- hostname: resolvedHostname,
1097
- port,
1098
- method: "GET",
1099
- headers,
1100
- path: resolvedPath,
1101
- body,
1102
- });
851
+ b.hn(resolvedHostname);
852
+ b.m("GET").h(headers).b(body);
853
+ return b.build();
1103
854
  };
1104
855
  export const se_DescribePortalCommand = async (input, context) => {
1105
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
856
+ const b = rb(input, context);
1106
857
  const headers = {};
1107
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
1108
- resolvedPath = __resolvedPath(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
858
+ b.bp("/portals/{portalId}");
859
+ b.p("portalId", () => input.portalId, "{portalId}", false);
1109
860
  let body;
1110
861
  let { hostname: resolvedHostname } = await context.endpoint();
1111
862
  if (context.disableHostPrefix !== true) {
@@ -1114,21 +865,15 @@ export const se_DescribePortalCommand = async (input, context) => {
1114
865
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1115
866
  }
1116
867
  }
1117
- return new __HttpRequest({
1118
- protocol,
1119
- hostname: resolvedHostname,
1120
- port,
1121
- method: "GET",
1122
- headers,
1123
- path: resolvedPath,
1124
- body,
1125
- });
868
+ b.hn(resolvedHostname);
869
+ b.m("GET").h(headers).b(body);
870
+ return b.build();
1126
871
  };
1127
872
  export const se_DescribeProjectCommand = async (input, context) => {
1128
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
873
+ const b = rb(input, context);
1129
874
  const headers = {};
1130
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
1131
- resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
875
+ b.bp("/projects/{projectId}");
876
+ b.p("projectId", () => input.projectId, "{projectId}", false);
1132
877
  let body;
1133
878
  let { hostname: resolvedHostname } = await context.endpoint();
1134
879
  if (context.disableHostPrefix !== true) {
@@ -1137,22 +882,16 @@ export const se_DescribeProjectCommand = async (input, context) => {
1137
882
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1138
883
  }
1139
884
  }
1140
- return new __HttpRequest({
1141
- protocol,
1142
- hostname: resolvedHostname,
1143
- port,
1144
- method: "GET",
1145
- headers,
1146
- path: resolvedPath,
1147
- body,
1148
- });
885
+ b.hn(resolvedHostname);
886
+ b.m("GET").h(headers).b(body);
887
+ return b.build();
1149
888
  };
1150
889
  export const se_DescribeStorageConfigurationCommand = async (input, context) => {
1151
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
890
+ const b = rb(input, context);
1152
891
  const headers = {
1153
892
  "content-type": "application/json",
1154
893
  };
1155
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
894
+ b.bp("/configuration/account/storage");
1156
895
  let body;
1157
896
  body = "";
1158
897
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1162,24 +901,18 @@ export const se_DescribeStorageConfigurationCommand = async (input, context) =>
1162
901
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1163
902
  }
1164
903
  }
1165
- return new __HttpRequest({
1166
- protocol,
1167
- hostname: resolvedHostname,
1168
- port,
1169
- method: "GET",
1170
- headers,
1171
- path: resolvedPath,
1172
- body,
1173
- });
904
+ b.hn(resolvedHostname);
905
+ b.m("GET").h(headers).b(body);
906
+ return b.build();
1174
907
  };
1175
908
  export const se_DescribeTimeSeriesCommand = async (input, context) => {
1176
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
909
+ const b = rb(input, context);
1177
910
  const headers = {};
1178
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/describe";
911
+ b.bp("/timeseries/describe");
1179
912
  const query = map({
1180
- alias: [, input.alias],
1181
- assetId: [, input.assetId],
1182
- propertyId: [, input.propertyId],
913
+ [_a]: [, input[_a]],
914
+ [_aI]: [, input[_aI]],
915
+ [_pI]: [, input[_pI]],
1183
916
  });
1184
917
  let body;
1185
918
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1189,24 +922,17 @@ export const se_DescribeTimeSeriesCommand = async (input, context) => {
1189
922
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1190
923
  }
1191
924
  }
1192
- return new __HttpRequest({
1193
- protocol,
1194
- hostname: resolvedHostname,
1195
- port,
1196
- method: "GET",
1197
- headers,
1198
- path: resolvedPath,
1199
- query,
1200
- body,
1201
- });
925
+ b.hn(resolvedHostname);
926
+ b.m("GET").h(headers).q(query).b(body);
927
+ return b.build();
1202
928
  };
1203
929
  export const se_DisassociateAssetsCommand = async (input, context) => {
1204
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
930
+ const b = rb(input, context);
1205
931
  const headers = {
1206
932
  "content-type": "application/json",
1207
933
  };
1208
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/disassociate";
1209
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
934
+ b.bp("/assets/{assetId}/disassociate");
935
+ b.p("assetId", () => input.assetId, "{assetId}", false);
1210
936
  let body;
1211
937
  body = JSON.stringify(take(input, {
1212
938
  childAssetId: [],
@@ -1220,26 +946,20 @@ export const se_DisassociateAssetsCommand = async (input, context) => {
1220
946
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1221
947
  }
1222
948
  }
1223
- return new __HttpRequest({
1224
- protocol,
1225
- hostname: resolvedHostname,
1226
- port,
1227
- method: "POST",
1228
- headers,
1229
- path: resolvedPath,
1230
- body,
1231
- });
949
+ b.hn(resolvedHostname);
950
+ b.m("POST").h(headers).b(body);
951
+ return b.build();
1232
952
  };
1233
953
  export const se_DisassociateTimeSeriesFromAssetPropertyCommand = async (input, context) => {
1234
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
954
+ const b = rb(input, context);
1235
955
  const headers = {
1236
956
  "content-type": "application/json",
1237
957
  };
1238
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/disassociate";
958
+ b.bp("/timeseries/disassociate");
1239
959
  const query = map({
1240
- alias: [, __expectNonNull(input.alias, `alias`)],
1241
- assetId: [, __expectNonNull(input.assetId, `assetId`)],
1242
- propertyId: [, __expectNonNull(input.propertyId, `propertyId`)],
960
+ [_a]: [, __expectNonNull(input[_a], `alias`)],
961
+ [_aI]: [, __expectNonNull(input[_aI], `assetId`)],
962
+ [_pI]: [, __expectNonNull(input[_pI], `propertyId`)],
1243
963
  });
1244
964
  let body;
1245
965
  body = JSON.stringify(take(input, {
@@ -1252,23 +972,16 @@ export const se_DisassociateTimeSeriesFromAssetPropertyCommand = async (input, c
1252
972
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1253
973
  }
1254
974
  }
1255
- return new __HttpRequest({
1256
- protocol,
1257
- hostname: resolvedHostname,
1258
- port,
1259
- method: "POST",
1260
- headers,
1261
- path: resolvedPath,
1262
- query,
1263
- body,
1264
- });
975
+ b.hn(resolvedHostname);
976
+ b.m("POST").h(headers).q(query).b(body);
977
+ return b.build();
1265
978
  };
1266
979
  export const se_ExecuteActionCommand = async (input, context) => {
1267
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
980
+ const b = rb(input, context);
1268
981
  const headers = {
1269
982
  "content-type": "application/json",
1270
983
  };
1271
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
984
+ b.bp("/actions");
1272
985
  let body;
1273
986
  body = JSON.stringify(take(input, {
1274
987
  actionDefinitionId: [],
@@ -1283,22 +996,16 @@ export const se_ExecuteActionCommand = async (input, context) => {
1283
996
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1284
997
  }
1285
998
  }
1286
- return new __HttpRequest({
1287
- protocol,
1288
- hostname: resolvedHostname,
1289
- port,
1290
- method: "POST",
1291
- headers,
1292
- path: resolvedPath,
1293
- body,
1294
- });
999
+ b.hn(resolvedHostname);
1000
+ b.m("POST").h(headers).b(body);
1001
+ return b.build();
1295
1002
  };
1296
1003
  export const se_ExecuteQueryCommand = async (input, context) => {
1297
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1004
+ const b = rb(input, context);
1298
1005
  const headers = {
1299
1006
  "content-type": "application/json",
1300
1007
  };
1301
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queries/execution";
1008
+ b.bp("/queries/execution");
1302
1009
  let body;
1303
1010
  body = JSON.stringify(take(input, {
1304
1011
  maxResults: [],
@@ -1312,41 +1019,35 @@ export const se_ExecuteQueryCommand = async (input, context) => {
1312
1019
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1313
1020
  }
1314
1021
  }
1315
- return new __HttpRequest({
1316
- protocol,
1317
- hostname: resolvedHostname,
1318
- port,
1319
- method: "POST",
1320
- headers,
1321
- path: resolvedPath,
1322
- body,
1323
- });
1022
+ b.hn(resolvedHostname);
1023
+ b.m("POST").h(headers).b(body);
1024
+ return b.build();
1324
1025
  };
1325
1026
  export const se_GetAssetPropertyAggregatesCommand = async (input, context) => {
1326
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1027
+ const b = rb(input, context);
1327
1028
  const headers = {};
1328
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/aggregates";
1029
+ b.bp("/properties/aggregates");
1329
1030
  const query = map({
1330
- assetId: [, input.assetId],
1331
- propertyId: [, input.propertyId],
1332
- propertyAlias: [, input.propertyAlias],
1333
- aggregateTypes: [
1031
+ [_aI]: [, input[_aI]],
1032
+ [_pI]: [, input[_pI]],
1033
+ [_pA]: [, input[_pA]],
1034
+ [_aT]: [
1334
1035
  __expectNonNull(input.aggregateTypes, `aggregateTypes`) != null,
1335
- () => (input.aggregateTypes || []).map((_entry) => _entry),
1036
+ () => (input[_aT] || []).map((_entry) => _entry),
1336
1037
  ],
1337
- resolution: [, __expectNonNull(input.resolution, `resolution`)],
1338
- qualities: [() => input.qualities !== void 0, () => (input.qualities || []).map((_entry) => _entry)],
1339
- startDate: [
1038
+ [_r]: [, __expectNonNull(input[_r], `resolution`)],
1039
+ [_q]: [() => input.qualities !== void 0, () => (input[_q] || []).map((_entry) => _entry)],
1040
+ [_sD]: [
1340
1041
  __expectNonNull(input.startDate, `startDate`) != null,
1341
- () => (input.startDate.toISOString().split(".")[0] + "Z").toString(),
1042
+ () => (input[_sD].toISOString().split(".")[0] + "Z").toString(),
1342
1043
  ],
1343
- endDate: [
1044
+ [_eD]: [
1344
1045
  __expectNonNull(input.endDate, `endDate`) != null,
1345
- () => (input.endDate.toISOString().split(".")[0] + "Z").toString(),
1046
+ () => (input[_eD].toISOString().split(".")[0] + "Z").toString(),
1346
1047
  ],
1347
- timeOrdering: [, input.timeOrdering],
1348
- nextToken: [, input.nextToken],
1349
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1048
+ [_tO]: [, input[_tO]],
1049
+ [_nT]: [, input[_nT]],
1050
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1350
1051
  });
1351
1052
  let body;
1352
1053
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1356,25 +1057,18 @@ export const se_GetAssetPropertyAggregatesCommand = async (input, context) => {
1356
1057
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1357
1058
  }
1358
1059
  }
1359
- return new __HttpRequest({
1360
- protocol,
1361
- hostname: resolvedHostname,
1362
- port,
1363
- method: "GET",
1364
- headers,
1365
- path: resolvedPath,
1366
- query,
1367
- body,
1368
- });
1060
+ b.hn(resolvedHostname);
1061
+ b.m("GET").h(headers).q(query).b(body);
1062
+ return b.build();
1369
1063
  };
1370
1064
  export const se_GetAssetPropertyValueCommand = async (input, context) => {
1371
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1065
+ const b = rb(input, context);
1372
1066
  const headers = {};
1373
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/latest";
1067
+ b.bp("/properties/latest");
1374
1068
  const query = map({
1375
- assetId: [, input.assetId],
1376
- propertyId: [, input.propertyId],
1377
- propertyAlias: [, input.propertyAlias],
1069
+ [_aI]: [, input[_aI]],
1070
+ [_pI]: [, input[_pI]],
1071
+ [_pA]: [, input[_pA]],
1378
1072
  });
1379
1073
  let body;
1380
1074
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1384,34 +1078,24 @@ export const se_GetAssetPropertyValueCommand = async (input, context) => {
1384
1078
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1385
1079
  }
1386
1080
  }
1387
- return new __HttpRequest({
1388
- protocol,
1389
- hostname: resolvedHostname,
1390
- port,
1391
- method: "GET",
1392
- headers,
1393
- path: resolvedPath,
1394
- query,
1395
- body,
1396
- });
1081
+ b.hn(resolvedHostname);
1082
+ b.m("GET").h(headers).q(query).b(body);
1083
+ return b.build();
1397
1084
  };
1398
1085
  export const se_GetAssetPropertyValueHistoryCommand = async (input, context) => {
1399
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1086
+ const b = rb(input, context);
1400
1087
  const headers = {};
1401
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/history";
1088
+ b.bp("/properties/history");
1402
1089
  const query = map({
1403
- assetId: [, input.assetId],
1404
- propertyId: [, input.propertyId],
1405
- propertyAlias: [, input.propertyAlias],
1406
- startDate: [
1407
- () => input.startDate !== void 0,
1408
- () => (input.startDate.toISOString().split(".")[0] + "Z").toString(),
1409
- ],
1410
- endDate: [() => input.endDate !== void 0, () => (input.endDate.toISOString().split(".")[0] + "Z").toString()],
1411
- qualities: [() => input.qualities !== void 0, () => (input.qualities || []).map((_entry) => _entry)],
1412
- timeOrdering: [, input.timeOrdering],
1413
- nextToken: [, input.nextToken],
1414
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1090
+ [_aI]: [, input[_aI]],
1091
+ [_pI]: [, input[_pI]],
1092
+ [_pA]: [, input[_pA]],
1093
+ [_sD]: [() => input.startDate !== void 0, () => (input[_sD].toISOString().split(".")[0] + "Z").toString()],
1094
+ [_eD]: [() => input.endDate !== void 0, () => (input[_eD].toISOString().split(".")[0] + "Z").toString()],
1095
+ [_q]: [() => input.qualities !== void 0, () => (input[_q] || []).map((_entry) => _entry)],
1096
+ [_tO]: [, input[_tO]],
1097
+ [_nT]: [, input[_nT]],
1098
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1415
1099
  });
1416
1100
  let body;
1417
1101
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1421,50 +1105,28 @@ export const se_GetAssetPropertyValueHistoryCommand = async (input, context) =>
1421
1105
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1422
1106
  }
1423
1107
  }
1424
- return new __HttpRequest({
1425
- protocol,
1426
- hostname: resolvedHostname,
1427
- port,
1428
- method: "GET",
1429
- headers,
1430
- path: resolvedPath,
1431
- query,
1432
- body,
1433
- });
1108
+ b.hn(resolvedHostname);
1109
+ b.m("GET").h(headers).q(query).b(body);
1110
+ return b.build();
1434
1111
  };
1435
1112
  export const se_GetInterpolatedAssetPropertyValuesCommand = async (input, context) => {
1436
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1113
+ const b = rb(input, context);
1437
1114
  const headers = {};
1438
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/interpolated";
1115
+ b.bp("/properties/interpolated");
1439
1116
  const query = map({
1440
- assetId: [, input.assetId],
1441
- propertyId: [, input.propertyId],
1442
- propertyAlias: [, input.propertyAlias],
1443
- startTimeInSeconds: [
1444
- __expectNonNull(input.startTimeInSeconds, `startTimeInSeconds`) != null,
1445
- () => input.startTimeInSeconds.toString(),
1446
- ],
1447
- startTimeOffsetInNanos: [
1448
- () => input.startTimeOffsetInNanos !== void 0,
1449
- () => input.startTimeOffsetInNanos.toString(),
1450
- ],
1451
- endTimeInSeconds: [
1452
- __expectNonNull(input.endTimeInSeconds, `endTimeInSeconds`) != null,
1453
- () => input.endTimeInSeconds.toString(),
1454
- ],
1455
- endTimeOffsetInNanos: [() => input.endTimeOffsetInNanos !== void 0, () => input.endTimeOffsetInNanos.toString()],
1456
- quality: [, __expectNonNull(input.quality, `quality`)],
1457
- intervalInSeconds: [
1458
- __expectNonNull(input.intervalInSeconds, `intervalInSeconds`) != null,
1459
- () => input.intervalInSeconds.toString(),
1460
- ],
1461
- nextToken: [, input.nextToken],
1462
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1463
- type: [, __expectNonNull(input.type, `type`)],
1464
- intervalWindowInSeconds: [
1465
- () => input.intervalWindowInSeconds !== void 0,
1466
- () => input.intervalWindowInSeconds.toString(),
1467
- ],
1117
+ [_aI]: [, input[_aI]],
1118
+ [_pI]: [, input[_pI]],
1119
+ [_pA]: [, input[_pA]],
1120
+ [_sTIS]: [__expectNonNull(input.startTimeInSeconds, `startTimeInSeconds`) != null, () => input[_sTIS].toString()],
1121
+ [_sTOIN]: [() => input.startTimeOffsetInNanos !== void 0, () => input[_sTOIN].toString()],
1122
+ [_eTIS]: [__expectNonNull(input.endTimeInSeconds, `endTimeInSeconds`) != null, () => input[_eTIS].toString()],
1123
+ [_eTOIN]: [() => input.endTimeOffsetInNanos !== void 0, () => input[_eTOIN].toString()],
1124
+ [_qu]: [, __expectNonNull(input[_qu], `quality`)],
1125
+ [_iIS]: [__expectNonNull(input.intervalInSeconds, `intervalInSeconds`) != null, () => input[_iIS].toString()],
1126
+ [_nT]: [, input[_nT]],
1127
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1128
+ [_t]: [, __expectNonNull(input[_t], `type`)],
1129
+ [_iWIS]: [() => input.intervalWindowInSeconds !== void 0, () => input[_iWIS].toString()],
1468
1130
  });
1469
1131
  let body;
1470
1132
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1474,29 +1136,22 @@ export const se_GetInterpolatedAssetPropertyValuesCommand = async (input, contex
1474
1136
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1475
1137
  }
1476
1138
  }
1477
- return new __HttpRequest({
1478
- protocol,
1479
- hostname: resolvedHostname,
1480
- port,
1481
- method: "GET",
1482
- headers,
1483
- path: resolvedPath,
1484
- query,
1485
- body,
1486
- });
1139
+ b.hn(resolvedHostname);
1140
+ b.m("GET").h(headers).q(query).b(body);
1141
+ return b.build();
1487
1142
  };
1488
1143
  export const se_ListAccessPoliciesCommand = async (input, context) => {
1489
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1144
+ const b = rb(input, context);
1490
1145
  const headers = {};
1491
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
1146
+ b.bp("/access-policies");
1492
1147
  const query = map({
1493
- identityType: [, input.identityType],
1494
- identityId: [, input.identityId],
1495
- resourceType: [, input.resourceType],
1496
- resourceId: [, input.resourceId],
1497
- iamArn: [, input.iamArn],
1498
- nextToken: [, input.nextToken],
1499
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1148
+ [_iT]: [, input[_iT]],
1149
+ [_iI]: [, input[_iI]],
1150
+ [_rT]: [, input[_rT]],
1151
+ [_rI]: [, input[_rI]],
1152
+ [_iA]: [, input[_iA]],
1153
+ [_nT]: [, input[_nT]],
1154
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1500
1155
  });
1501
1156
  let body;
1502
1157
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1506,26 +1161,19 @@ export const se_ListAccessPoliciesCommand = async (input, context) => {
1506
1161
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1507
1162
  }
1508
1163
  }
1509
- return new __HttpRequest({
1510
- protocol,
1511
- hostname: resolvedHostname,
1512
- port,
1513
- method: "GET",
1514
- headers,
1515
- path: resolvedPath,
1516
- query,
1517
- body,
1518
- });
1164
+ b.hn(resolvedHostname);
1165
+ b.m("GET").h(headers).q(query).b(body);
1166
+ return b.build();
1519
1167
  };
1520
1168
  export const se_ListActionsCommand = async (input, context) => {
1521
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1169
+ const b = rb(input, context);
1522
1170
  const headers = {};
1523
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
1171
+ b.bp("/actions");
1524
1172
  const query = map({
1525
- targetResourceType: [, __expectNonNull(input.targetResourceType, `targetResourceType`)],
1526
- targetResourceId: [, __expectNonNull(input.targetResourceId, `targetResourceId`)],
1527
- nextToken: [, input.nextToken],
1528
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1173
+ [_tRT]: [, __expectNonNull(input[_tRT], `targetResourceType`)],
1174
+ [_tRI]: [, __expectNonNull(input[_tRI], `targetResourceId`)],
1175
+ [_nT]: [, input[_nT]],
1176
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1529
1177
  });
1530
1178
  let body;
1531
1179
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1535,26 +1183,18 @@ export const se_ListActionsCommand = async (input, context) => {
1535
1183
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1536
1184
  }
1537
1185
  }
1538
- return new __HttpRequest({
1539
- protocol,
1540
- hostname: resolvedHostname,
1541
- port,
1542
- method: "GET",
1543
- headers,
1544
- path: resolvedPath,
1545
- query,
1546
- body,
1547
- });
1186
+ b.hn(resolvedHostname);
1187
+ b.m("GET").h(headers).q(query).b(body);
1188
+ return b.build();
1548
1189
  };
1549
1190
  export const se_ListAssetModelCompositeModelsCommand = async (input, context) => {
1550
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1191
+ const b = rb(input, context);
1551
1192
  const headers = {};
1552
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1553
- "/asset-models/{assetModelId}/composite-models";
1554
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1193
+ b.bp("/asset-models/{assetModelId}/composite-models");
1194
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
1555
1195
  const query = map({
1556
- nextToken: [, input.nextToken],
1557
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1196
+ [_nT]: [, input[_nT]],
1197
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1558
1198
  });
1559
1199
  let body;
1560
1200
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1564,26 +1204,19 @@ export const se_ListAssetModelCompositeModelsCommand = async (input, context) =>
1564
1204
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1565
1205
  }
1566
1206
  }
1567
- return new __HttpRequest({
1568
- protocol,
1569
- hostname: resolvedHostname,
1570
- port,
1571
- method: "GET",
1572
- headers,
1573
- path: resolvedPath,
1574
- query,
1575
- body,
1576
- });
1207
+ b.hn(resolvedHostname);
1208
+ b.m("GET").h(headers).q(query).b(body);
1209
+ return b.build();
1577
1210
  };
1578
1211
  export const se_ListAssetModelPropertiesCommand = async (input, context) => {
1579
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1212
+ const b = rb(input, context);
1580
1213
  const headers = {};
1581
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}/properties";
1582
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1214
+ b.bp("/asset-models/{assetModelId}/properties");
1215
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
1583
1216
  const query = map({
1584
- nextToken: [, input.nextToken],
1585
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1586
- filter: [, input.filter],
1217
+ [_nT]: [, input[_nT]],
1218
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1219
+ [_f]: [, input[_f]],
1587
1220
  });
1588
1221
  let body;
1589
1222
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1593,28 +1226,18 @@ export const se_ListAssetModelPropertiesCommand = async (input, context) => {
1593
1226
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1594
1227
  }
1595
1228
  }
1596
- return new __HttpRequest({
1597
- protocol,
1598
- hostname: resolvedHostname,
1599
- port,
1600
- method: "GET",
1601
- headers,
1602
- path: resolvedPath,
1603
- query,
1604
- body,
1605
- });
1229
+ b.hn(resolvedHostname);
1230
+ b.m("GET").h(headers).q(query).b(body);
1231
+ return b.build();
1606
1232
  };
1607
1233
  export const se_ListAssetModelsCommand = async (input, context) => {
1608
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1234
+ const b = rb(input, context);
1609
1235
  const headers = {};
1610
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
1236
+ b.bp("/asset-models");
1611
1237
  const query = map({
1612
- nextToken: [, input.nextToken],
1613
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1614
- assetModelTypes: [
1615
- () => input.assetModelTypes !== void 0,
1616
- () => (input.assetModelTypes || []).map((_entry) => _entry),
1617
- ],
1238
+ [_nT]: [, input[_nT]],
1239
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1240
+ [_aMT]: [() => input.assetModelTypes !== void 0, () => (input[_aMT] || []).map((_entry) => _entry)],
1618
1241
  });
1619
1242
  let body;
1620
1243
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1624,26 +1247,19 @@ export const se_ListAssetModelsCommand = async (input, context) => {
1624
1247
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1625
1248
  }
1626
1249
  }
1627
- return new __HttpRequest({
1628
- protocol,
1629
- hostname: resolvedHostname,
1630
- port,
1631
- method: "GET",
1632
- headers,
1633
- path: resolvedPath,
1634
- query,
1635
- body,
1636
- });
1250
+ b.hn(resolvedHostname);
1251
+ b.m("GET").h(headers).q(query).b(body);
1252
+ return b.build();
1637
1253
  };
1638
1254
  export const se_ListAssetPropertiesCommand = async (input, context) => {
1639
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1255
+ const b = rb(input, context);
1640
1256
  const headers = {};
1641
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties";
1642
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1257
+ b.bp("/assets/{assetId}/properties");
1258
+ b.p("assetId", () => input.assetId, "{assetId}", false);
1643
1259
  const query = map({
1644
- nextToken: [, input.nextToken],
1645
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1646
- filter: [, input.filter],
1260
+ [_nT]: [, input[_nT]],
1261
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1262
+ [_f]: [, input[_f]],
1647
1263
  });
1648
1264
  let body;
1649
1265
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1653,26 +1269,19 @@ export const se_ListAssetPropertiesCommand = async (input, context) => {
1653
1269
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1654
1270
  }
1655
1271
  }
1656
- return new __HttpRequest({
1657
- protocol,
1658
- hostname: resolvedHostname,
1659
- port,
1660
- method: "GET",
1661
- headers,
1662
- path: resolvedPath,
1663
- query,
1664
- body,
1665
- });
1272
+ b.hn(resolvedHostname);
1273
+ b.m("GET").h(headers).q(query).b(body);
1274
+ return b.build();
1666
1275
  };
1667
1276
  export const se_ListAssetRelationshipsCommand = async (input, context) => {
1668
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1277
+ const b = rb(input, context);
1669
1278
  const headers = {};
1670
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/assetRelationships";
1671
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1279
+ b.bp("/assets/{assetId}/assetRelationships");
1280
+ b.p("assetId", () => input.assetId, "{assetId}", false);
1672
1281
  const query = map({
1673
- traversalType: [, __expectNonNull(input.traversalType, `traversalType`)],
1674
- nextToken: [, input.nextToken],
1675
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1282
+ [_tT]: [, __expectNonNull(input[_tT], `traversalType`)],
1283
+ [_nT]: [, input[_nT]],
1284
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1676
1285
  });
1677
1286
  let body;
1678
1287
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1682,26 +1291,19 @@ export const se_ListAssetRelationshipsCommand = async (input, context) => {
1682
1291
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1683
1292
  }
1684
1293
  }
1685
- return new __HttpRequest({
1686
- protocol,
1687
- hostname: resolvedHostname,
1688
- port,
1689
- method: "GET",
1690
- headers,
1691
- path: resolvedPath,
1692
- query,
1693
- body,
1694
- });
1294
+ b.hn(resolvedHostname);
1295
+ b.m("GET").h(headers).q(query).b(body);
1296
+ return b.build();
1695
1297
  };
1696
1298
  export const se_ListAssetsCommand = async (input, context) => {
1697
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1299
+ const b = rb(input, context);
1698
1300
  const headers = {};
1699
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
1301
+ b.bp("/assets");
1700
1302
  const query = map({
1701
- nextToken: [, input.nextToken],
1702
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1703
- assetModelId: [, input.assetModelId],
1704
- filter: [, input.filter],
1303
+ [_nT]: [, input[_nT]],
1304
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1305
+ [_aMI]: [, input[_aMI]],
1306
+ [_f]: [, input[_f]],
1705
1307
  });
1706
1308
  let body;
1707
1309
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1711,27 +1313,20 @@ export const se_ListAssetsCommand = async (input, context) => {
1711
1313
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1712
1314
  }
1713
1315
  }
1714
- return new __HttpRequest({
1715
- protocol,
1716
- hostname: resolvedHostname,
1717
- port,
1718
- method: "GET",
1719
- headers,
1720
- path: resolvedPath,
1721
- query,
1722
- body,
1723
- });
1316
+ b.hn(resolvedHostname);
1317
+ b.m("GET").h(headers).q(query).b(body);
1318
+ return b.build();
1724
1319
  };
1725
1320
  export const se_ListAssociatedAssetsCommand = async (input, context) => {
1726
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1321
+ const b = rb(input, context);
1727
1322
  const headers = {};
1728
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/hierarchies";
1729
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1323
+ b.bp("/assets/{assetId}/hierarchies");
1324
+ b.p("assetId", () => input.assetId, "{assetId}", false);
1730
1325
  const query = map({
1731
- hierarchyId: [, input.hierarchyId],
1732
- traversalDirection: [, input.traversalDirection],
1733
- nextToken: [, input.nextToken],
1734
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1326
+ [_hI]: [, input[_hI]],
1327
+ [_tD]: [, input[_tD]],
1328
+ [_nT]: [, input[_nT]],
1329
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1735
1330
  });
1736
1331
  let body;
1737
1332
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1741,25 +1336,18 @@ export const se_ListAssociatedAssetsCommand = async (input, context) => {
1741
1336
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1742
1337
  }
1743
1338
  }
1744
- return new __HttpRequest({
1745
- protocol,
1746
- hostname: resolvedHostname,
1747
- port,
1748
- method: "GET",
1749
- headers,
1750
- path: resolvedPath,
1751
- query,
1752
- body,
1753
- });
1339
+ b.hn(resolvedHostname);
1340
+ b.m("GET").h(headers).q(query).b(body);
1341
+ return b.build();
1754
1342
  };
1755
1343
  export const se_ListBulkImportJobsCommand = async (input, context) => {
1756
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1344
+ const b = rb(input, context);
1757
1345
  const headers = {};
1758
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
1346
+ b.bp("/jobs");
1759
1347
  const query = map({
1760
- nextToken: [, input.nextToken],
1761
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1762
- filter: [, input.filter],
1348
+ [_nT]: [, input[_nT]],
1349
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1350
+ [_f]: [, input[_f]],
1763
1351
  });
1764
1352
  let body;
1765
1353
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1769,26 +1357,18 @@ export const se_ListBulkImportJobsCommand = async (input, context) => {
1769
1357
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1770
1358
  }
1771
1359
  }
1772
- return new __HttpRequest({
1773
- protocol,
1774
- hostname: resolvedHostname,
1775
- port,
1776
- method: "GET",
1777
- headers,
1778
- path: resolvedPath,
1779
- query,
1780
- body,
1781
- });
1360
+ b.hn(resolvedHostname);
1361
+ b.m("GET").h(headers).q(query).b(body);
1362
+ return b.build();
1782
1363
  };
1783
1364
  export const se_ListCompositionRelationshipsCommand = async (input, context) => {
1784
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1365
+ const b = rb(input, context);
1785
1366
  const headers = {};
1786
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1787
- "/asset-models/{assetModelId}/composition-relationships";
1788
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1367
+ b.bp("/asset-models/{assetModelId}/composition-relationships");
1368
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
1789
1369
  const query = map({
1790
- nextToken: [, input.nextToken],
1791
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1370
+ [_nT]: [, input[_nT]],
1371
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1792
1372
  });
1793
1373
  let body;
1794
1374
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1798,25 +1378,18 @@ export const se_ListCompositionRelationshipsCommand = async (input, context) =>
1798
1378
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1799
1379
  }
1800
1380
  }
1801
- return new __HttpRequest({
1802
- protocol,
1803
- hostname: resolvedHostname,
1804
- port,
1805
- method: "GET",
1806
- headers,
1807
- path: resolvedPath,
1808
- query,
1809
- body,
1810
- });
1381
+ b.hn(resolvedHostname);
1382
+ b.m("GET").h(headers).q(query).b(body);
1383
+ return b.build();
1811
1384
  };
1812
1385
  export const se_ListDashboardsCommand = async (input, context) => {
1813
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1386
+ const b = rb(input, context);
1814
1387
  const headers = {};
1815
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
1388
+ b.bp("/dashboards");
1816
1389
  const query = map({
1817
- projectId: [, __expectNonNull(input.projectId, `projectId`)],
1818
- nextToken: [, input.nextToken],
1819
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1390
+ [_pIr]: [, __expectNonNull(input[_pIr], `projectId`)],
1391
+ [_nT]: [, input[_nT]],
1392
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1820
1393
  });
1821
1394
  let body;
1822
1395
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1826,24 +1399,17 @@ export const se_ListDashboardsCommand = async (input, context) => {
1826
1399
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1827
1400
  }
1828
1401
  }
1829
- return new __HttpRequest({
1830
- protocol,
1831
- hostname: resolvedHostname,
1832
- port,
1833
- method: "GET",
1834
- headers,
1835
- path: resolvedPath,
1836
- query,
1837
- body,
1838
- });
1402
+ b.hn(resolvedHostname);
1403
+ b.m("GET").h(headers).q(query).b(body);
1404
+ return b.build();
1839
1405
  };
1840
1406
  export const se_ListGatewaysCommand = async (input, context) => {
1841
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1407
+ const b = rb(input, context);
1842
1408
  const headers = {};
1843
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
1409
+ b.bp("/20200301/gateways");
1844
1410
  const query = map({
1845
- nextToken: [, input.nextToken],
1846
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1411
+ [_nT]: [, input[_nT]],
1412
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1847
1413
  });
1848
1414
  let body;
1849
1415
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1853,24 +1419,17 @@ export const se_ListGatewaysCommand = async (input, context) => {
1853
1419
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1854
1420
  }
1855
1421
  }
1856
- return new __HttpRequest({
1857
- protocol,
1858
- hostname: resolvedHostname,
1859
- port,
1860
- method: "GET",
1861
- headers,
1862
- path: resolvedPath,
1863
- query,
1864
- body,
1865
- });
1422
+ b.hn(resolvedHostname);
1423
+ b.m("GET").h(headers).q(query).b(body);
1424
+ return b.build();
1866
1425
  };
1867
1426
  export const se_ListPortalsCommand = async (input, context) => {
1868
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1427
+ const b = rb(input, context);
1869
1428
  const headers = {};
1870
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
1429
+ b.bp("/portals");
1871
1430
  const query = map({
1872
- nextToken: [, input.nextToken],
1873
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1431
+ [_nT]: [, input[_nT]],
1432
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1874
1433
  });
1875
1434
  let body;
1876
1435
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1880,25 +1439,18 @@ export const se_ListPortalsCommand = async (input, context) => {
1880
1439
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1881
1440
  }
1882
1441
  }
1883
- return new __HttpRequest({
1884
- protocol,
1885
- hostname: resolvedHostname,
1886
- port,
1887
- method: "GET",
1888
- headers,
1889
- path: resolvedPath,
1890
- query,
1891
- body,
1892
- });
1442
+ b.hn(resolvedHostname);
1443
+ b.m("GET").h(headers).q(query).b(body);
1444
+ return b.build();
1893
1445
  };
1894
1446
  export const se_ListProjectAssetsCommand = async (input, context) => {
1895
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1447
+ const b = rb(input, context);
1896
1448
  const headers = {};
1897
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets";
1898
- resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
1449
+ b.bp("/projects/{projectId}/assets");
1450
+ b.p("projectId", () => input.projectId, "{projectId}", false);
1899
1451
  const query = map({
1900
- nextToken: [, input.nextToken],
1901
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1452
+ [_nT]: [, input[_nT]],
1453
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1902
1454
  });
1903
1455
  let body;
1904
1456
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1908,25 +1460,18 @@ export const se_ListProjectAssetsCommand = async (input, context) => {
1908
1460
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1909
1461
  }
1910
1462
  }
1911
- return new __HttpRequest({
1912
- protocol,
1913
- hostname: resolvedHostname,
1914
- port,
1915
- method: "GET",
1916
- headers,
1917
- path: resolvedPath,
1918
- query,
1919
- body,
1920
- });
1463
+ b.hn(resolvedHostname);
1464
+ b.m("GET").h(headers).q(query).b(body);
1465
+ return b.build();
1921
1466
  };
1922
1467
  export const se_ListProjectsCommand = async (input, context) => {
1923
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1468
+ const b = rb(input, context);
1924
1469
  const headers = {};
1925
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
1470
+ b.bp("/projects");
1926
1471
  const query = map({
1927
- portalId: [, __expectNonNull(input.portalId, `portalId`)],
1928
- nextToken: [, input.nextToken],
1929
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1472
+ [_pIo]: [, __expectNonNull(input[_pIo], `portalId`)],
1473
+ [_nT]: [, input[_nT]],
1474
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1930
1475
  });
1931
1476
  let body;
1932
1477
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1936,23 +1481,16 @@ export const se_ListProjectsCommand = async (input, context) => {
1936
1481
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1937
1482
  }
1938
1483
  }
1939
- return new __HttpRequest({
1940
- protocol,
1941
- hostname: resolvedHostname,
1942
- port,
1943
- method: "GET",
1944
- headers,
1945
- path: resolvedPath,
1946
- query,
1947
- body,
1948
- });
1484
+ b.hn(resolvedHostname);
1485
+ b.m("GET").h(headers).q(query).b(body);
1486
+ return b.build();
1949
1487
  };
1950
1488
  export const se_ListTagsForResourceCommand = async (input, context) => {
1951
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1489
+ const b = rb(input, context);
1952
1490
  const headers = {};
1953
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1491
+ b.bp("/tags");
1954
1492
  const query = map({
1955
- resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
1493
+ [_rA]: [, __expectNonNull(input[_rA], `resourceArn`)],
1956
1494
  });
1957
1495
  let body;
1958
1496
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1962,27 +1500,20 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
1962
1500
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1963
1501
  }
1964
1502
  }
1965
- return new __HttpRequest({
1966
- protocol,
1967
- hostname: resolvedHostname,
1968
- port,
1969
- method: "GET",
1970
- headers,
1971
- path: resolvedPath,
1972
- query,
1973
- body,
1974
- });
1503
+ b.hn(resolvedHostname);
1504
+ b.m("GET").h(headers).q(query).b(body);
1505
+ return b.build();
1975
1506
  };
1976
1507
  export const se_ListTimeSeriesCommand = async (input, context) => {
1977
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1508
+ const b = rb(input, context);
1978
1509
  const headers = {};
1979
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries";
1510
+ b.bp("/timeseries");
1980
1511
  const query = map({
1981
- nextToken: [, input.nextToken],
1982
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1983
- assetId: [, input.assetId],
1984
- aliasPrefix: [, input.aliasPrefix],
1985
- timeSeriesType: [, input.timeSeriesType],
1512
+ [_nT]: [, input[_nT]],
1513
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1514
+ [_aI]: [, input[_aI]],
1515
+ [_aP]: [, input[_aP]],
1516
+ [_tST]: [, input[_tST]],
1986
1517
  });
1987
1518
  let body;
1988
1519
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1992,23 +1523,16 @@ export const se_ListTimeSeriesCommand = async (input, context) => {
1992
1523
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1993
1524
  }
1994
1525
  }
1995
- return new __HttpRequest({
1996
- protocol,
1997
- hostname: resolvedHostname,
1998
- port,
1999
- method: "GET",
2000
- headers,
2001
- path: resolvedPath,
2002
- query,
2003
- body,
2004
- });
1526
+ b.hn(resolvedHostname);
1527
+ b.m("GET").h(headers).q(query).b(body);
1528
+ return b.build();
2005
1529
  };
2006
1530
  export const se_PutDefaultEncryptionConfigurationCommand = async (input, context) => {
2007
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1531
+ const b = rb(input, context);
2008
1532
  const headers = {
2009
1533
  "content-type": "application/json",
2010
1534
  };
2011
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
1535
+ b.bp("/configuration/account/encryption");
2012
1536
  let body;
2013
1537
  body = JSON.stringify(take(input, {
2014
1538
  encryptionType: [],
@@ -2021,22 +1545,16 @@ export const se_PutDefaultEncryptionConfigurationCommand = async (input, context
2021
1545
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2022
1546
  }
2023
1547
  }
2024
- return new __HttpRequest({
2025
- protocol,
2026
- hostname: resolvedHostname,
2027
- port,
2028
- method: "POST",
2029
- headers,
2030
- path: resolvedPath,
2031
- body,
2032
- });
1548
+ b.hn(resolvedHostname);
1549
+ b.m("POST").h(headers).b(body);
1550
+ return b.build();
2033
1551
  };
2034
1552
  export const se_PutLoggingOptionsCommand = async (input, context) => {
2035
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1553
+ const b = rb(input, context);
2036
1554
  const headers = {
2037
1555
  "content-type": "application/json",
2038
1556
  };
2039
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
1557
+ b.bp("/logging");
2040
1558
  let body;
2041
1559
  body = JSON.stringify(take(input, {
2042
1560
  loggingOptions: (_) => _json(_),
@@ -2048,22 +1566,16 @@ export const se_PutLoggingOptionsCommand = async (input, context) => {
2048
1566
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2049
1567
  }
2050
1568
  }
2051
- return new __HttpRequest({
2052
- protocol,
2053
- hostname: resolvedHostname,
2054
- port,
2055
- method: "PUT",
2056
- headers,
2057
- path: resolvedPath,
2058
- body,
2059
- });
1569
+ b.hn(resolvedHostname);
1570
+ b.m("PUT").h(headers).b(body);
1571
+ return b.build();
2060
1572
  };
2061
1573
  export const se_PutStorageConfigurationCommand = async (input, context) => {
2062
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1574
+ const b = rb(input, context);
2063
1575
  const headers = {
2064
1576
  "content-type": "application/json",
2065
1577
  };
2066
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
1578
+ b.bp("/configuration/account/storage");
2067
1579
  let body;
2068
1580
  body = JSON.stringify(take(input, {
2069
1581
  disassociatedDataStorage: [],
@@ -2080,24 +1592,18 @@ export const se_PutStorageConfigurationCommand = async (input, context) => {
2080
1592
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2081
1593
  }
2082
1594
  }
2083
- return new __HttpRequest({
2084
- protocol,
2085
- hostname: resolvedHostname,
2086
- port,
2087
- method: "POST",
2088
- headers,
2089
- path: resolvedPath,
2090
- body,
2091
- });
1595
+ b.hn(resolvedHostname);
1596
+ b.m("POST").h(headers).b(body);
1597
+ return b.build();
2092
1598
  };
2093
1599
  export const se_TagResourceCommand = async (input, context) => {
2094
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1600
+ const b = rb(input, context);
2095
1601
  const headers = {
2096
1602
  "content-type": "application/json",
2097
1603
  };
2098
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1604
+ b.bp("/tags");
2099
1605
  const query = map({
2100
- resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
1606
+ [_rA]: [, __expectNonNull(input[_rA], `resourceArn`)],
2101
1607
  });
2102
1608
  let body;
2103
1609
  body = JSON.stringify(take(input, {
@@ -2110,26 +1616,19 @@ export const se_TagResourceCommand = async (input, context) => {
2110
1616
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2111
1617
  }
2112
1618
  }
2113
- return new __HttpRequest({
2114
- protocol,
2115
- hostname: resolvedHostname,
2116
- port,
2117
- method: "POST",
2118
- headers,
2119
- path: resolvedPath,
2120
- query,
2121
- body,
2122
- });
1619
+ b.hn(resolvedHostname);
1620
+ b.m("POST").h(headers).q(query).b(body);
1621
+ return b.build();
2123
1622
  };
2124
1623
  export const se_UntagResourceCommand = async (input, context) => {
2125
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1624
+ const b = rb(input, context);
2126
1625
  const headers = {};
2127
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1626
+ b.bp("/tags");
2128
1627
  const query = map({
2129
- resourceArn: [, __expectNonNull(input.resourceArn, `resourceArn`)],
2130
- tagKeys: [
1628
+ [_rA]: [, __expectNonNull(input[_rA], `resourceArn`)],
1629
+ [_tK]: [
2131
1630
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
2132
- () => (input.tagKeys || []).map((_entry) => _entry),
1631
+ () => (input[_tK] || []).map((_entry) => _entry),
2133
1632
  ],
2134
1633
  });
2135
1634
  let body;
@@ -2140,24 +1639,17 @@ export const se_UntagResourceCommand = async (input, context) => {
2140
1639
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2141
1640
  }
2142
1641
  }
2143
- return new __HttpRequest({
2144
- protocol,
2145
- hostname: resolvedHostname,
2146
- port,
2147
- method: "DELETE",
2148
- headers,
2149
- path: resolvedPath,
2150
- query,
2151
- body,
2152
- });
1642
+ b.hn(resolvedHostname);
1643
+ b.m("DELETE").h(headers).q(query).b(body);
1644
+ return b.build();
2153
1645
  };
2154
1646
  export const se_UpdateAccessPolicyCommand = async (input, context) => {
2155
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1647
+ const b = rb(input, context);
2156
1648
  const headers = {
2157
1649
  "content-type": "application/json",
2158
1650
  };
2159
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
2160
- resolvedPath = __resolvedPath(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
1651
+ b.bp("/access-policies/{accessPolicyId}");
1652
+ b.p("accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
2161
1653
  let body;
2162
1654
  body = JSON.stringify(take(input, {
2163
1655
  accessPolicyIdentity: (_) => _json(_),
@@ -2172,23 +1664,17 @@ export const se_UpdateAccessPolicyCommand = async (input, context) => {
2172
1664
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2173
1665
  }
2174
1666
  }
2175
- return new __HttpRequest({
2176
- protocol,
2177
- hostname: resolvedHostname,
2178
- port,
2179
- method: "PUT",
2180
- headers,
2181
- path: resolvedPath,
2182
- body,
2183
- });
1667
+ b.hn(resolvedHostname);
1668
+ b.m("PUT").h(headers).b(body);
1669
+ return b.build();
2184
1670
  };
2185
1671
  export const se_UpdateAssetCommand = async (input, context) => {
2186
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1672
+ const b = rb(input, context);
2187
1673
  const headers = {
2188
1674
  "content-type": "application/json",
2189
1675
  };
2190
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
2191
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1676
+ b.bp("/assets/{assetId}");
1677
+ b.p("assetId", () => input.assetId, "{assetId}", false);
2192
1678
  let body;
2193
1679
  body = JSON.stringify(take(input, {
2194
1680
  assetDescription: [],
@@ -2203,23 +1689,17 @@ export const se_UpdateAssetCommand = async (input, context) => {
2203
1689
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2204
1690
  }
2205
1691
  }
2206
- return new __HttpRequest({
2207
- protocol,
2208
- hostname: resolvedHostname,
2209
- port,
2210
- method: "PUT",
2211
- headers,
2212
- path: resolvedPath,
2213
- body,
2214
- });
1692
+ b.hn(resolvedHostname);
1693
+ b.m("PUT").h(headers).b(body);
1694
+ return b.build();
2215
1695
  };
2216
1696
  export const se_UpdateAssetModelCommand = async (input, context) => {
2217
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1697
+ const b = rb(input, context);
2218
1698
  const headers = {
2219
1699
  "content-type": "application/json",
2220
1700
  };
2221
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
2222
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1701
+ b.bp("/asset-models/{assetModelId}");
1702
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
2223
1703
  let body;
2224
1704
  body = JSON.stringify(take(input, {
2225
1705
  assetModelCompositeModels: (_) => se_AssetModelCompositeModels(_, context),
@@ -2237,25 +1717,18 @@ export const se_UpdateAssetModelCommand = async (input, context) => {
2237
1717
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2238
1718
  }
2239
1719
  }
2240
- return new __HttpRequest({
2241
- protocol,
2242
- hostname: resolvedHostname,
2243
- port,
2244
- method: "PUT",
2245
- headers,
2246
- path: resolvedPath,
2247
- body,
2248
- });
1720
+ b.hn(resolvedHostname);
1721
+ b.m("PUT").h(headers).b(body);
1722
+ return b.build();
2249
1723
  };
2250
1724
  export const se_UpdateAssetModelCompositeModelCommand = async (input, context) => {
2251
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1725
+ const b = rb(input, context);
2252
1726
  const headers = {
2253
1727
  "content-type": "application/json",
2254
1728
  };
2255
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2256
- "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
2257
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
2258
- resolvedPath = __resolvedPath(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
1729
+ b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}");
1730
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
1731
+ b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
2259
1732
  let body;
2260
1733
  body = JSON.stringify(take(input, {
2261
1734
  assetModelCompositeModelDescription: [],
@@ -2271,24 +1744,18 @@ export const se_UpdateAssetModelCompositeModelCommand = async (input, context) =
2271
1744
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2272
1745
  }
2273
1746
  }
2274
- return new __HttpRequest({
2275
- protocol,
2276
- hostname: resolvedHostname,
2277
- port,
2278
- method: "PUT",
2279
- headers,
2280
- path: resolvedPath,
2281
- body,
2282
- });
1747
+ b.hn(resolvedHostname);
1748
+ b.m("PUT").h(headers).b(body);
1749
+ return b.build();
2283
1750
  };
2284
1751
  export const se_UpdateAssetPropertyCommand = async (input, context) => {
2285
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1752
+ const b = rb(input, context);
2286
1753
  const headers = {
2287
1754
  "content-type": "application/json",
2288
1755
  };
2289
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
2290
- resolvedPath = __resolvedPath(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
2291
- resolvedPath = __resolvedPath(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
1756
+ b.bp("/assets/{assetId}/properties/{propertyId}");
1757
+ b.p("assetId", () => input.assetId, "{assetId}", false);
1758
+ b.p("propertyId", () => input.propertyId, "{propertyId}", false);
2292
1759
  let body;
2293
1760
  body = JSON.stringify(take(input, {
2294
1761
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -2303,23 +1770,17 @@ export const se_UpdateAssetPropertyCommand = async (input, context) => {
2303
1770
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2304
1771
  }
2305
1772
  }
2306
- return new __HttpRequest({
2307
- protocol,
2308
- hostname: resolvedHostname,
2309
- port,
2310
- method: "PUT",
2311
- headers,
2312
- path: resolvedPath,
2313
- body,
2314
- });
1773
+ b.hn(resolvedHostname);
1774
+ b.m("PUT").h(headers).b(body);
1775
+ return b.build();
2315
1776
  };
2316
1777
  export const se_UpdateDashboardCommand = async (input, context) => {
2317
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1778
+ const b = rb(input, context);
2318
1779
  const headers = {
2319
1780
  "content-type": "application/json",
2320
1781
  };
2321
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
2322
- resolvedPath = __resolvedPath(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
1782
+ b.bp("/dashboards/{dashboardId}");
1783
+ b.p("dashboardId", () => input.dashboardId, "{dashboardId}", false);
2323
1784
  let body;
2324
1785
  body = JSON.stringify(take(input, {
2325
1786
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -2334,23 +1795,17 @@ export const se_UpdateDashboardCommand = async (input, context) => {
2334
1795
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2335
1796
  }
2336
1797
  }
2337
- return new __HttpRequest({
2338
- protocol,
2339
- hostname: resolvedHostname,
2340
- port,
2341
- method: "PUT",
2342
- headers,
2343
- path: resolvedPath,
2344
- body,
2345
- });
1798
+ b.hn(resolvedHostname);
1799
+ b.m("PUT").h(headers).b(body);
1800
+ return b.build();
2346
1801
  };
2347
1802
  export const se_UpdateGatewayCommand = async (input, context) => {
2348
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1803
+ const b = rb(input, context);
2349
1804
  const headers = {
2350
1805
  "content-type": "application/json",
2351
1806
  };
2352
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
2353
- resolvedPath = __resolvedPath(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
1807
+ b.bp("/20200301/gateways/{gatewayId}");
1808
+ b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
2354
1809
  let body;
2355
1810
  body = JSON.stringify(take(input, {
2356
1811
  gatewayName: [],
@@ -2362,23 +1817,17 @@ export const se_UpdateGatewayCommand = async (input, context) => {
2362
1817
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2363
1818
  }
2364
1819
  }
2365
- return new __HttpRequest({
2366
- protocol,
2367
- hostname: resolvedHostname,
2368
- port,
2369
- method: "PUT",
2370
- headers,
2371
- path: resolvedPath,
2372
- body,
2373
- });
1820
+ b.hn(resolvedHostname);
1821
+ b.m("PUT").h(headers).b(body);
1822
+ return b.build();
2374
1823
  };
2375
1824
  export const se_UpdateGatewayCapabilityConfigurationCommand = async (input, context) => {
2376
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1825
+ const b = rb(input, context);
2377
1826
  const headers = {
2378
1827
  "content-type": "application/json",
2379
1828
  };
2380
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}/capability";
2381
- resolvedPath = __resolvedPath(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
1829
+ b.bp("/20200301/gateways/{gatewayId}/capability");
1830
+ b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
2382
1831
  let body;
2383
1832
  body = JSON.stringify(take(input, {
2384
1833
  capabilityConfiguration: [],
@@ -2391,23 +1840,17 @@ export const se_UpdateGatewayCapabilityConfigurationCommand = async (input, cont
2391
1840
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2392
1841
  }
2393
1842
  }
2394
- return new __HttpRequest({
2395
- protocol,
2396
- hostname: resolvedHostname,
2397
- port,
2398
- method: "POST",
2399
- headers,
2400
- path: resolvedPath,
2401
- body,
2402
- });
1843
+ b.hn(resolvedHostname);
1844
+ b.m("POST").h(headers).b(body);
1845
+ return b.build();
2403
1846
  };
2404
1847
  export const se_UpdatePortalCommand = async (input, context) => {
2405
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1848
+ const b = rb(input, context);
2406
1849
  const headers = {
2407
1850
  "content-type": "application/json",
2408
1851
  };
2409
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
2410
- resolvedPath = __resolvedPath(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
1852
+ b.bp("/portals/{portalId}");
1853
+ b.p("portalId", () => input.portalId, "{portalId}", false);
2411
1854
  let body;
2412
1855
  body = JSON.stringify(take(input, {
2413
1856
  alarms: (_) => _json(_),
@@ -2426,23 +1869,17 @@ export const se_UpdatePortalCommand = async (input, context) => {
2426
1869
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2427
1870
  }
2428
1871
  }
2429
- return new __HttpRequest({
2430
- protocol,
2431
- hostname: resolvedHostname,
2432
- port,
2433
- method: "PUT",
2434
- headers,
2435
- path: resolvedPath,
2436
- body,
2437
- });
1872
+ b.hn(resolvedHostname);
1873
+ b.m("PUT").h(headers).b(body);
1874
+ return b.build();
2438
1875
  };
2439
1876
  export const se_UpdateProjectCommand = async (input, context) => {
2440
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1877
+ const b = rb(input, context);
2441
1878
  const headers = {
2442
1879
  "content-type": "application/json",
2443
1880
  };
2444
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
2445
- resolvedPath = __resolvedPath(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
1881
+ b.bp("/projects/{projectId}");
1882
+ b.p("projectId", () => input.projectId, "{projectId}", false);
2446
1883
  let body;
2447
1884
  body = JSON.stringify(take(input, {
2448
1885
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -2456,15 +1893,9 @@ export const se_UpdateProjectCommand = async (input, context) => {
2456
1893
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2457
1894
  }
2458
1895
  }
2459
- return new __HttpRequest({
2460
- protocol,
2461
- hostname: resolvedHostname,
2462
- port,
2463
- method: "PUT",
2464
- headers,
2465
- path: resolvedPath,
2466
- body,
2467
- });
1896
+ b.hn(resolvedHostname);
1897
+ b.m("PUT").h(headers).b(body);
1898
+ return b.build();
2468
1899
  };
2469
1900
  export const de_AssociateAssetsCommand = async (output, context) => {
2470
1901
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -6964,6 +6395,47 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
6964
6395
  value !== "" &&
6965
6396
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
6966
6397
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
6398
+ const _a = "alias";
6399
+ const _aI = "assetId";
6400
+ const _aMI = "assetModelId";
6401
+ const _aMT = "assetModelTypes";
6402
+ const _aP = "aliasPrefix";
6403
+ const _aT = "aggregateTypes";
6404
+ const _cT = "clientToken";
6405
+ const _eD = "endDate";
6406
+ const _eP = "excludeProperties";
6407
+ const _eTIS = "endTimeInSeconds";
6408
+ const _eTOIN = "endTimeOffsetInNanos";
6409
+ const _f = "filter";
6410
+ const _hI = "hierarchyId";
6411
+ const _iA = "iamArn";
6412
+ const _iI = "identityId";
6413
+ const _iIS = "intervalInSeconds";
6414
+ const _iT = "identityType";
6415
+ const _iWIS = "intervalWindowInSeconds";
6416
+ const _mR = "maxResults";
6417
+ const _nT = "nextToken";
6418
+ const _pA = "propertyAlias";
6419
+ const _pI = "propertyId";
6420
+ const _pIo = "portalId";
6421
+ const _pIr = "projectId";
6422
+ const _q = "qualities";
6423
+ const _qu = "quality";
6424
+ const _r = "resolution";
6425
+ const _rA = "resourceArn";
6426
+ const _rI = "resourceId";
6427
+ const _rT = "resourceType";
6428
+ const _sD = "startDate";
6429
+ const _sTIS = "startTimeInSeconds";
6430
+ const _sTOIN = "startTimeOffsetInNanos";
6431
+ const _t = "type";
6432
+ const _tD = "traversalDirection";
6433
+ const _tK = "tagKeys";
6434
+ const _tO = "timeOrdering";
6435
+ const _tRI = "targetResourceId";
6436
+ const _tRT = "targetResourceType";
6437
+ const _tST = "timeSeriesType";
6438
+ const _tT = "traversalType";
6967
6439
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6968
6440
  if (encoded.length) {
6969
6441
  return JSON.parse(encoded);