@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.
@@ -4,6 +4,7 @@ exports.se_GetAssetPropertyValueHistoryCommand = exports.se_GetAssetPropertyValu
4
4
  exports.de_CreatePortalCommand = exports.de_CreateGatewayCommand = exports.de_CreateDashboardCommand = exports.de_CreateBulkImportJobCommand = exports.de_CreateAssetModelCompositeModelCommand = exports.de_CreateAssetModelCommand = exports.de_CreateAssetCommand = exports.de_CreateAccessPolicyCommand = exports.de_BatchPutAssetPropertyValueCommand = exports.de_BatchGetAssetPropertyValueHistoryCommand = exports.de_BatchGetAssetPropertyValueCommand = exports.de_BatchGetAssetPropertyAggregatesCommand = exports.de_BatchDisassociateProjectAssetsCommand = exports.de_BatchAssociateProjectAssetsCommand = exports.de_AssociateTimeSeriesToAssetPropertyCommand = exports.de_AssociateAssetsCommand = exports.se_UpdateProjectCommand = exports.se_UpdatePortalCommand = exports.se_UpdateGatewayCapabilityConfigurationCommand = exports.se_UpdateGatewayCommand = exports.se_UpdateDashboardCommand = exports.se_UpdateAssetPropertyCommand = exports.se_UpdateAssetModelCompositeModelCommand = exports.se_UpdateAssetModelCommand = exports.se_UpdateAssetCommand = exports.se_UpdateAccessPolicyCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_PutStorageConfigurationCommand = exports.se_PutLoggingOptionsCommand = exports.se_PutDefaultEncryptionConfigurationCommand = exports.se_ListTimeSeriesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProjectsCommand = exports.se_ListProjectAssetsCommand = exports.se_ListPortalsCommand = exports.se_ListGatewaysCommand = exports.se_ListDashboardsCommand = exports.se_ListCompositionRelationshipsCommand = exports.se_ListBulkImportJobsCommand = exports.se_ListAssociatedAssetsCommand = exports.se_ListAssetsCommand = exports.se_ListAssetRelationshipsCommand = exports.se_ListAssetPropertiesCommand = exports.se_ListAssetModelsCommand = exports.se_ListAssetModelPropertiesCommand = exports.se_ListAssetModelCompositeModelsCommand = exports.se_ListActionsCommand = exports.se_ListAccessPoliciesCommand = exports.se_GetInterpolatedAssetPropertyValuesCommand = void 0;
5
5
  exports.de_ListProjectAssetsCommand = exports.de_ListPortalsCommand = exports.de_ListGatewaysCommand = exports.de_ListDashboardsCommand = exports.de_ListCompositionRelationshipsCommand = exports.de_ListBulkImportJobsCommand = exports.de_ListAssociatedAssetsCommand = exports.de_ListAssetsCommand = exports.de_ListAssetRelationshipsCommand = exports.de_ListAssetPropertiesCommand = exports.de_ListAssetModelsCommand = exports.de_ListAssetModelPropertiesCommand = exports.de_ListAssetModelCompositeModelsCommand = exports.de_ListActionsCommand = exports.de_ListAccessPoliciesCommand = exports.de_GetInterpolatedAssetPropertyValuesCommand = exports.de_GetAssetPropertyValueHistoryCommand = exports.de_GetAssetPropertyValueCommand = exports.de_GetAssetPropertyAggregatesCommand = exports.de_ExecuteQueryCommand = exports.de_ExecuteActionCommand = exports.de_DisassociateTimeSeriesFromAssetPropertyCommand = exports.de_DisassociateAssetsCommand = exports.de_DescribeTimeSeriesCommand = exports.de_DescribeStorageConfigurationCommand = exports.de_DescribeProjectCommand = exports.de_DescribePortalCommand = exports.de_DescribeLoggingOptionsCommand = exports.de_DescribeGatewayCapabilityConfigurationCommand = exports.de_DescribeGatewayCommand = exports.de_DescribeDefaultEncryptionConfigurationCommand = exports.de_DescribeDashboardCommand = exports.de_DescribeBulkImportJobCommand = exports.de_DescribeAssetPropertyCommand = exports.de_DescribeAssetModelCompositeModelCommand = exports.de_DescribeAssetModelCommand = exports.de_DescribeAssetCompositeModelCommand = exports.de_DescribeAssetCommand = exports.de_DescribeActionCommand = exports.de_DescribeAccessPolicyCommand = exports.de_DeleteTimeSeriesCommand = exports.de_DeleteProjectCommand = exports.de_DeletePortalCommand = exports.de_DeleteGatewayCommand = exports.de_DeleteDashboardCommand = exports.de_DeleteAssetModelCompositeModelCommand = exports.de_DeleteAssetModelCommand = exports.de_DeleteAssetCommand = exports.de_DeleteAccessPolicyCommand = exports.de_CreateProjectCommand = void 0;
6
6
  exports.de_UpdateProjectCommand = exports.de_UpdatePortalCommand = exports.de_UpdateGatewayCapabilityConfigurationCommand = exports.de_UpdateGatewayCommand = exports.de_UpdateDashboardCommand = exports.de_UpdateAssetPropertyCommand = exports.de_UpdateAssetModelCompositeModelCommand = exports.de_UpdateAssetModelCommand = exports.de_UpdateAssetCommand = exports.de_UpdateAccessPolicyCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_PutStorageConfigurationCommand = exports.de_PutLoggingOptionsCommand = exports.de_PutDefaultEncryptionConfigurationCommand = exports.de_ListTimeSeriesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProjectsCommand = void 0;
7
+ const core_1 = require("@smithy/core");
7
8
  const protocol_http_1 = require("@smithy/protocol-http");
8
9
  const smithy_client_1 = require("@smithy/smithy-client");
9
10
  const uuid_1 = require("uuid");
@@ -11,12 +12,12 @@ const IoTSiteWiseServiceException_1 = require("../models/IoTSiteWiseServiceExcep
11
12
  const models_0_1 = require("../models/models_0");
12
13
  const models_1_1 = require("../models/models_1");
13
14
  const se_AssociateAssetsCommand = async (input, context) => {
14
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
15
+ const b = (0, core_1.requestBuilder)(input, context);
15
16
  const headers = {
16
17
  "content-type": "application/json",
17
18
  };
18
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/associate";
19
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
19
+ b.bp("/assets/{assetId}/associate");
20
+ b.p("assetId", () => input.assetId, "{assetId}", false);
20
21
  let body;
21
22
  body = JSON.stringify((0, smithy_client_1.take)(input, {
22
23
  childAssetId: [],
@@ -30,27 +31,21 @@ const se_AssociateAssetsCommand = async (input, context) => {
30
31
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
31
32
  }
32
33
  }
33
- return new protocol_http_1.HttpRequest({
34
- protocol,
35
- hostname: resolvedHostname,
36
- port,
37
- method: "POST",
38
- headers,
39
- path: resolvedPath,
40
- body,
41
- });
34
+ b.hn(resolvedHostname);
35
+ b.m("POST").h(headers).b(body);
36
+ return b.build();
42
37
  };
43
38
  exports.se_AssociateAssetsCommand = se_AssociateAssetsCommand;
44
39
  const se_AssociateTimeSeriesToAssetPropertyCommand = async (input, context) => {
45
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
40
+ const b = (0, core_1.requestBuilder)(input, context);
46
41
  const headers = {
47
42
  "content-type": "application/json",
48
43
  };
49
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/associate";
44
+ b.bp("/timeseries/associate");
50
45
  const query = (0, smithy_client_1.map)({
51
- alias: [, (0, smithy_client_1.expectNonNull)(input.alias, `alias`)],
52
- assetId: [, (0, smithy_client_1.expectNonNull)(input.assetId, `assetId`)],
53
- propertyId: [, (0, smithy_client_1.expectNonNull)(input.propertyId, `propertyId`)],
46
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `alias`)],
47
+ [_aI]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `assetId`)],
48
+ [_pI]: [, (0, smithy_client_1.expectNonNull)(input[_pI], `propertyId`)],
54
49
  });
55
50
  let body;
56
51
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -63,25 +58,18 @@ const se_AssociateTimeSeriesToAssetPropertyCommand = async (input, context) => {
63
58
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
64
59
  }
65
60
  }
66
- return new protocol_http_1.HttpRequest({
67
- protocol,
68
- hostname: resolvedHostname,
69
- port,
70
- method: "POST",
71
- headers,
72
- path: resolvedPath,
73
- query,
74
- body,
75
- });
61
+ b.hn(resolvedHostname);
62
+ b.m("POST").h(headers).q(query).b(body);
63
+ return b.build();
76
64
  };
77
65
  exports.se_AssociateTimeSeriesToAssetPropertyCommand = se_AssociateTimeSeriesToAssetPropertyCommand;
78
66
  const se_BatchAssociateProjectAssetsCommand = async (input, context) => {
79
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
67
+ const b = (0, core_1.requestBuilder)(input, context);
80
68
  const headers = {
81
69
  "content-type": "application/json",
82
70
  };
83
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/associate";
84
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
71
+ b.bp("/projects/{projectId}/assets/associate");
72
+ b.p("projectId", () => input.projectId, "{projectId}", false);
85
73
  let body;
86
74
  body = JSON.stringify((0, smithy_client_1.take)(input, {
87
75
  assetIds: (_) => (0, smithy_client_1._json)(_),
@@ -94,24 +82,18 @@ const se_BatchAssociateProjectAssetsCommand = async (input, context) => {
94
82
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
95
83
  }
96
84
  }
97
- return new protocol_http_1.HttpRequest({
98
- protocol,
99
- hostname: resolvedHostname,
100
- port,
101
- method: "POST",
102
- headers,
103
- path: resolvedPath,
104
- body,
105
- });
85
+ b.hn(resolvedHostname);
86
+ b.m("POST").h(headers).b(body);
87
+ return b.build();
106
88
  };
107
89
  exports.se_BatchAssociateProjectAssetsCommand = se_BatchAssociateProjectAssetsCommand;
108
90
  const se_BatchDisassociateProjectAssetsCommand = async (input, context) => {
109
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const b = (0, core_1.requestBuilder)(input, context);
110
92
  const headers = {
111
93
  "content-type": "application/json",
112
94
  };
113
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets/disassociate";
114
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
95
+ b.bp("/projects/{projectId}/assets/disassociate");
96
+ b.p("projectId", () => input.projectId, "{projectId}", false);
115
97
  let body;
116
98
  body = JSON.stringify((0, smithy_client_1.take)(input, {
117
99
  assetIds: (_) => (0, smithy_client_1._json)(_),
@@ -124,23 +106,17 @@ const se_BatchDisassociateProjectAssetsCommand = async (input, context) => {
124
106
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
125
107
  }
126
108
  }
127
- return new protocol_http_1.HttpRequest({
128
- protocol,
129
- hostname: resolvedHostname,
130
- port,
131
- method: "POST",
132
- headers,
133
- path: resolvedPath,
134
- body,
135
- });
109
+ b.hn(resolvedHostname);
110
+ b.m("POST").h(headers).b(body);
111
+ return b.build();
136
112
  };
137
113
  exports.se_BatchDisassociateProjectAssetsCommand = se_BatchDisassociateProjectAssetsCommand;
138
114
  const se_BatchGetAssetPropertyAggregatesCommand = async (input, context) => {
139
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
115
+ const b = (0, core_1.requestBuilder)(input, context);
140
116
  const headers = {
141
117
  "content-type": "application/json",
142
118
  };
143
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/aggregates";
119
+ b.bp("/properties/batch/aggregates");
144
120
  let body;
145
121
  body = JSON.stringify((0, smithy_client_1.take)(input, {
146
122
  entries: (_) => se_BatchGetAssetPropertyAggregatesEntries(_, context),
@@ -154,23 +130,17 @@ const se_BatchGetAssetPropertyAggregatesCommand = async (input, context) => {
154
130
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
155
131
  }
156
132
  }
157
- return new protocol_http_1.HttpRequest({
158
- protocol,
159
- hostname: resolvedHostname,
160
- port,
161
- method: "POST",
162
- headers,
163
- path: resolvedPath,
164
- body,
165
- });
133
+ b.hn(resolvedHostname);
134
+ b.m("POST").h(headers).b(body);
135
+ return b.build();
166
136
  };
167
137
  exports.se_BatchGetAssetPropertyAggregatesCommand = se_BatchGetAssetPropertyAggregatesCommand;
168
138
  const se_BatchGetAssetPropertyValueCommand = async (input, context) => {
169
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
+ const b = (0, core_1.requestBuilder)(input, context);
170
140
  const headers = {
171
141
  "content-type": "application/json",
172
142
  };
173
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/latest";
143
+ b.bp("/properties/batch/latest");
174
144
  let body;
175
145
  body = JSON.stringify((0, smithy_client_1.take)(input, {
176
146
  entries: (_) => (0, smithy_client_1._json)(_),
@@ -183,23 +153,17 @@ const se_BatchGetAssetPropertyValueCommand = async (input, context) => {
183
153
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
184
154
  }
185
155
  }
186
- return new protocol_http_1.HttpRequest({
187
- protocol,
188
- hostname: resolvedHostname,
189
- port,
190
- method: "POST",
191
- headers,
192
- path: resolvedPath,
193
- body,
194
- });
156
+ b.hn(resolvedHostname);
157
+ b.m("POST").h(headers).b(body);
158
+ return b.build();
195
159
  };
196
160
  exports.se_BatchGetAssetPropertyValueCommand = se_BatchGetAssetPropertyValueCommand;
197
161
  const se_BatchGetAssetPropertyValueHistoryCommand = async (input, context) => {
198
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
+ const b = (0, core_1.requestBuilder)(input, context);
199
163
  const headers = {
200
164
  "content-type": "application/json",
201
165
  };
202
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/batch/history";
166
+ b.bp("/properties/batch/history");
203
167
  let body;
204
168
  body = JSON.stringify((0, smithy_client_1.take)(input, {
205
169
  entries: (_) => se_BatchGetAssetPropertyValueHistoryEntries(_, context),
@@ -213,23 +177,17 @@ const se_BatchGetAssetPropertyValueHistoryCommand = async (input, context) => {
213
177
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
214
178
  }
215
179
  }
216
- return new protocol_http_1.HttpRequest({
217
- protocol,
218
- hostname: resolvedHostname,
219
- port,
220
- method: "POST",
221
- headers,
222
- path: resolvedPath,
223
- body,
224
- });
180
+ b.hn(resolvedHostname);
181
+ b.m("POST").h(headers).b(body);
182
+ return b.build();
225
183
  };
226
184
  exports.se_BatchGetAssetPropertyValueHistoryCommand = se_BatchGetAssetPropertyValueHistoryCommand;
227
185
  const se_BatchPutAssetPropertyValueCommand = async (input, context) => {
228
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
186
+ const b = (0, core_1.requestBuilder)(input, context);
229
187
  const headers = {
230
188
  "content-type": "application/json",
231
189
  };
232
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties";
190
+ b.bp("/properties");
233
191
  let body;
234
192
  body = JSON.stringify((0, smithy_client_1.take)(input, {
235
193
  entries: (_) => se_PutAssetPropertyValueEntries(_, context),
@@ -241,23 +199,17 @@ const se_BatchPutAssetPropertyValueCommand = async (input, context) => {
241
199
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
242
200
  }
243
201
  }
244
- return new protocol_http_1.HttpRequest({
245
- protocol,
246
- hostname: resolvedHostname,
247
- port,
248
- method: "POST",
249
- headers,
250
- path: resolvedPath,
251
- body,
252
- });
202
+ b.hn(resolvedHostname);
203
+ b.m("POST").h(headers).b(body);
204
+ return b.build();
253
205
  };
254
206
  exports.se_BatchPutAssetPropertyValueCommand = se_BatchPutAssetPropertyValueCommand;
255
207
  const se_CreateAccessPolicyCommand = async (input, context) => {
256
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
208
+ const b = (0, core_1.requestBuilder)(input, context);
257
209
  const headers = {
258
210
  "content-type": "application/json",
259
211
  };
260
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
212
+ b.bp("/access-policies");
261
213
  let body;
262
214
  body = JSON.stringify((0, smithy_client_1.take)(input, {
263
215
  accessPolicyIdentity: (_) => (0, smithy_client_1._json)(_),
@@ -273,23 +225,17 @@ const se_CreateAccessPolicyCommand = async (input, context) => {
273
225
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
274
226
  }
275
227
  }
276
- return new protocol_http_1.HttpRequest({
277
- protocol,
278
- hostname: resolvedHostname,
279
- port,
280
- method: "POST",
281
- headers,
282
- path: resolvedPath,
283
- body,
284
- });
228
+ b.hn(resolvedHostname);
229
+ b.m("POST").h(headers).b(body);
230
+ return b.build();
285
231
  };
286
232
  exports.se_CreateAccessPolicyCommand = se_CreateAccessPolicyCommand;
287
233
  const se_CreateAssetCommand = async (input, context) => {
288
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
234
+ const b = (0, core_1.requestBuilder)(input, context);
289
235
  const headers = {
290
236
  "content-type": "application/json",
291
237
  };
292
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
238
+ b.bp("/assets");
293
239
  let body;
294
240
  body = JSON.stringify((0, smithy_client_1.take)(input, {
295
241
  assetDescription: [],
@@ -307,23 +253,17 @@ const se_CreateAssetCommand = async (input, context) => {
307
253
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
308
254
  }
309
255
  }
310
- return new protocol_http_1.HttpRequest({
311
- protocol,
312
- hostname: resolvedHostname,
313
- port,
314
- method: "POST",
315
- headers,
316
- path: resolvedPath,
317
- body,
318
- });
256
+ b.hn(resolvedHostname);
257
+ b.m("POST").h(headers).b(body);
258
+ return b.build();
319
259
  };
320
260
  exports.se_CreateAssetCommand = se_CreateAssetCommand;
321
261
  const se_CreateAssetModelCommand = async (input, context) => {
322
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
262
+ const b = (0, core_1.requestBuilder)(input, context);
323
263
  const headers = {
324
264
  "content-type": "application/json",
325
265
  };
326
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
266
+ b.bp("/asset-models");
327
267
  let body;
328
268
  body = JSON.stringify((0, smithy_client_1.take)(input, {
329
269
  assetModelCompositeModels: (_) => se_AssetModelCompositeModelDefinitions(_, context),
@@ -344,25 +284,18 @@ const se_CreateAssetModelCommand = async (input, context) => {
344
284
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
345
285
  }
346
286
  }
347
- return new protocol_http_1.HttpRequest({
348
- protocol,
349
- hostname: resolvedHostname,
350
- port,
351
- method: "POST",
352
- headers,
353
- path: resolvedPath,
354
- body,
355
- });
287
+ b.hn(resolvedHostname);
288
+ b.m("POST").h(headers).b(body);
289
+ return b.build();
356
290
  };
357
291
  exports.se_CreateAssetModelCommand = se_CreateAssetModelCommand;
358
292
  const se_CreateAssetModelCompositeModelCommand = async (input, context) => {
359
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
293
+ const b = (0, core_1.requestBuilder)(input, context);
360
294
  const headers = {
361
295
  "content-type": "application/json",
362
296
  };
363
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
364
- "/asset-models/{assetModelId}/composite-models";
365
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
297
+ b.bp("/asset-models/{assetModelId}/composite-models");
298
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
366
299
  let body;
367
300
  body = JSON.stringify((0, smithy_client_1.take)(input, {
368
301
  assetModelCompositeModelDescription: [],
@@ -382,23 +315,17 @@ const se_CreateAssetModelCompositeModelCommand = async (input, context) => {
382
315
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
383
316
  }
384
317
  }
385
- return new protocol_http_1.HttpRequest({
386
- protocol,
387
- hostname: resolvedHostname,
388
- port,
389
- method: "POST",
390
- headers,
391
- path: resolvedPath,
392
- body,
393
- });
318
+ b.hn(resolvedHostname);
319
+ b.m("POST").h(headers).b(body);
320
+ return b.build();
394
321
  };
395
322
  exports.se_CreateAssetModelCompositeModelCommand = se_CreateAssetModelCompositeModelCommand;
396
323
  const se_CreateBulkImportJobCommand = async (input, context) => {
397
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
324
+ const b = (0, core_1.requestBuilder)(input, context);
398
325
  const headers = {
399
326
  "content-type": "application/json",
400
327
  };
401
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
328
+ b.bp("/jobs");
402
329
  let body;
403
330
  body = JSON.stringify((0, smithy_client_1.take)(input, {
404
331
  adaptiveIngestion: [],
@@ -416,23 +343,17 @@ const se_CreateBulkImportJobCommand = async (input, context) => {
416
343
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
417
344
  }
418
345
  }
419
- return new protocol_http_1.HttpRequest({
420
- protocol,
421
- hostname: resolvedHostname,
422
- port,
423
- method: "POST",
424
- headers,
425
- path: resolvedPath,
426
- body,
427
- });
346
+ b.hn(resolvedHostname);
347
+ b.m("POST").h(headers).b(body);
348
+ return b.build();
428
349
  };
429
350
  exports.se_CreateBulkImportJobCommand = se_CreateBulkImportJobCommand;
430
351
  const se_CreateDashboardCommand = async (input, context) => {
431
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
352
+ const b = (0, core_1.requestBuilder)(input, context);
432
353
  const headers = {
433
354
  "content-type": "application/json",
434
355
  };
435
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
356
+ b.bp("/dashboards");
436
357
  let body;
437
358
  body = JSON.stringify((0, smithy_client_1.take)(input, {
438
359
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -449,23 +370,17 @@ const se_CreateDashboardCommand = async (input, context) => {
449
370
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
450
371
  }
451
372
  }
452
- return new protocol_http_1.HttpRequest({
453
- protocol,
454
- hostname: resolvedHostname,
455
- port,
456
- method: "POST",
457
- headers,
458
- path: resolvedPath,
459
- body,
460
- });
373
+ b.hn(resolvedHostname);
374
+ b.m("POST").h(headers).b(body);
375
+ return b.build();
461
376
  };
462
377
  exports.se_CreateDashboardCommand = se_CreateDashboardCommand;
463
378
  const se_CreateGatewayCommand = async (input, context) => {
464
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
379
+ const b = (0, core_1.requestBuilder)(input, context);
465
380
  const headers = {
466
381
  "content-type": "application/json",
467
382
  };
468
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
383
+ b.bp("/20200301/gateways");
469
384
  let body;
470
385
  body = JSON.stringify((0, smithy_client_1.take)(input, {
471
386
  gatewayName: [],
@@ -479,23 +394,17 @@ const se_CreateGatewayCommand = async (input, context) => {
479
394
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
480
395
  }
481
396
  }
482
- return new protocol_http_1.HttpRequest({
483
- protocol,
484
- hostname: resolvedHostname,
485
- port,
486
- method: "POST",
487
- headers,
488
- path: resolvedPath,
489
- body,
490
- });
397
+ b.hn(resolvedHostname);
398
+ b.m("POST").h(headers).b(body);
399
+ return b.build();
491
400
  };
492
401
  exports.se_CreateGatewayCommand = se_CreateGatewayCommand;
493
402
  const se_CreatePortalCommand = async (input, context) => {
494
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
403
+ const b = (0, core_1.requestBuilder)(input, context);
495
404
  const headers = {
496
405
  "content-type": "application/json",
497
406
  };
498
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
407
+ b.bp("/portals");
499
408
  let body;
500
409
  body = JSON.stringify((0, smithy_client_1.take)(input, {
501
410
  alarms: (_) => (0, smithy_client_1._json)(_),
@@ -516,23 +425,17 @@ const se_CreatePortalCommand = async (input, context) => {
516
425
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
517
426
  }
518
427
  }
519
- return new protocol_http_1.HttpRequest({
520
- protocol,
521
- hostname: resolvedHostname,
522
- port,
523
- method: "POST",
524
- headers,
525
- path: resolvedPath,
526
- body,
527
- });
428
+ b.hn(resolvedHostname);
429
+ b.m("POST").h(headers).b(body);
430
+ return b.build();
528
431
  };
529
432
  exports.se_CreatePortalCommand = se_CreatePortalCommand;
530
433
  const se_CreateProjectCommand = async (input, context) => {
531
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
434
+ const b = (0, core_1.requestBuilder)(input, context);
532
435
  const headers = {
533
436
  "content-type": "application/json",
534
437
  };
535
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
438
+ b.bp("/projects");
536
439
  let body;
537
440
  body = JSON.stringify((0, smithy_client_1.take)(input, {
538
441
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -548,24 +451,18 @@ const se_CreateProjectCommand = async (input, context) => {
548
451
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
549
452
  }
550
453
  }
551
- return new protocol_http_1.HttpRequest({
552
- protocol,
553
- hostname: resolvedHostname,
554
- port,
555
- method: "POST",
556
- headers,
557
- path: resolvedPath,
558
- body,
559
- });
454
+ b.hn(resolvedHostname);
455
+ b.m("POST").h(headers).b(body);
456
+ return b.build();
560
457
  };
561
458
  exports.se_CreateProjectCommand = se_CreateProjectCommand;
562
459
  const se_DeleteAccessPolicyCommand = async (input, context) => {
563
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
460
+ const b = (0, core_1.requestBuilder)(input, context);
564
461
  const headers = {};
565
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
566
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
462
+ b.bp("/access-policies/{accessPolicyId}");
463
+ b.p("accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
567
464
  const query = (0, smithy_client_1.map)({
568
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
465
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
569
466
  });
570
467
  let body;
571
468
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -575,25 +472,18 @@ const se_DeleteAccessPolicyCommand = async (input, context) => {
575
472
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
576
473
  }
577
474
  }
578
- return new protocol_http_1.HttpRequest({
579
- protocol,
580
- hostname: resolvedHostname,
581
- port,
582
- method: "DELETE",
583
- headers,
584
- path: resolvedPath,
585
- query,
586
- body,
587
- });
475
+ b.hn(resolvedHostname);
476
+ b.m("DELETE").h(headers).q(query).b(body);
477
+ return b.build();
588
478
  };
589
479
  exports.se_DeleteAccessPolicyCommand = se_DeleteAccessPolicyCommand;
590
480
  const se_DeleteAssetCommand = async (input, context) => {
591
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
481
+ const b = (0, core_1.requestBuilder)(input, context);
592
482
  const headers = {};
593
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
594
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
483
+ b.bp("/assets/{assetId}");
484
+ b.p("assetId", () => input.assetId, "{assetId}", false);
595
485
  const query = (0, smithy_client_1.map)({
596
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
486
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
597
487
  });
598
488
  let body;
599
489
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -603,25 +493,18 @@ const se_DeleteAssetCommand = async (input, context) => {
603
493
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
604
494
  }
605
495
  }
606
- return new protocol_http_1.HttpRequest({
607
- protocol,
608
- hostname: resolvedHostname,
609
- port,
610
- method: "DELETE",
611
- headers,
612
- path: resolvedPath,
613
- query,
614
- body,
615
- });
496
+ b.hn(resolvedHostname);
497
+ b.m("DELETE").h(headers).q(query).b(body);
498
+ return b.build();
616
499
  };
617
500
  exports.se_DeleteAssetCommand = se_DeleteAssetCommand;
618
501
  const se_DeleteAssetModelCommand = async (input, context) => {
619
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
502
+ const b = (0, core_1.requestBuilder)(input, context);
620
503
  const headers = {};
621
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
622
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
504
+ b.bp("/asset-models/{assetModelId}");
505
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
623
506
  const query = (0, smithy_client_1.map)({
624
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
507
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
625
508
  });
626
509
  let body;
627
510
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -631,27 +514,19 @@ const se_DeleteAssetModelCommand = async (input, context) => {
631
514
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
632
515
  }
633
516
  }
634
- return new protocol_http_1.HttpRequest({
635
- protocol,
636
- hostname: resolvedHostname,
637
- port,
638
- method: "DELETE",
639
- headers,
640
- path: resolvedPath,
641
- query,
642
- body,
643
- });
517
+ b.hn(resolvedHostname);
518
+ b.m("DELETE").h(headers).q(query).b(body);
519
+ return b.build();
644
520
  };
645
521
  exports.se_DeleteAssetModelCommand = se_DeleteAssetModelCommand;
646
522
  const se_DeleteAssetModelCompositeModelCommand = async (input, context) => {
647
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
523
+ const b = (0, core_1.requestBuilder)(input, context);
648
524
  const headers = {};
649
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
650
- "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
651
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
652
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
525
+ b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}");
526
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
527
+ b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
653
528
  const query = (0, smithy_client_1.map)({
654
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
529
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
655
530
  });
656
531
  let body;
657
532
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -661,25 +536,18 @@ const se_DeleteAssetModelCompositeModelCommand = async (input, context) => {
661
536
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
662
537
  }
663
538
  }
664
- return new protocol_http_1.HttpRequest({
665
- protocol,
666
- hostname: resolvedHostname,
667
- port,
668
- method: "DELETE",
669
- headers,
670
- path: resolvedPath,
671
- query,
672
- body,
673
- });
539
+ b.hn(resolvedHostname);
540
+ b.m("DELETE").h(headers).q(query).b(body);
541
+ return b.build();
674
542
  };
675
543
  exports.se_DeleteAssetModelCompositeModelCommand = se_DeleteAssetModelCompositeModelCommand;
676
544
  const se_DeleteDashboardCommand = async (input, context) => {
677
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
545
+ const b = (0, core_1.requestBuilder)(input, context);
678
546
  const headers = {};
679
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
680
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
547
+ b.bp("/dashboards/{dashboardId}");
548
+ b.p("dashboardId", () => input.dashboardId, "{dashboardId}", false);
681
549
  const query = (0, smithy_client_1.map)({
682
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
550
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
683
551
  });
684
552
  let body;
685
553
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -689,23 +557,16 @@ const se_DeleteDashboardCommand = async (input, context) => {
689
557
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
690
558
  }
691
559
  }
692
- return new protocol_http_1.HttpRequest({
693
- protocol,
694
- hostname: resolvedHostname,
695
- port,
696
- method: "DELETE",
697
- headers,
698
- path: resolvedPath,
699
- query,
700
- body,
701
- });
560
+ b.hn(resolvedHostname);
561
+ b.m("DELETE").h(headers).q(query).b(body);
562
+ return b.build();
702
563
  };
703
564
  exports.se_DeleteDashboardCommand = se_DeleteDashboardCommand;
704
565
  const se_DeleteGatewayCommand = async (input, context) => {
705
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
566
+ const b = (0, core_1.requestBuilder)(input, context);
706
567
  const headers = {};
707
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
708
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
568
+ b.bp("/20200301/gateways/{gatewayId}");
569
+ b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
709
570
  let body;
710
571
  let { hostname: resolvedHostname } = await context.endpoint();
711
572
  if (context.disableHostPrefix !== true) {
@@ -714,24 +575,18 @@ const se_DeleteGatewayCommand = async (input, context) => {
714
575
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
715
576
  }
716
577
  }
717
- return new protocol_http_1.HttpRequest({
718
- protocol,
719
- hostname: resolvedHostname,
720
- port,
721
- method: "DELETE",
722
- headers,
723
- path: resolvedPath,
724
- body,
725
- });
578
+ b.hn(resolvedHostname);
579
+ b.m("DELETE").h(headers).b(body);
580
+ return b.build();
726
581
  };
727
582
  exports.se_DeleteGatewayCommand = se_DeleteGatewayCommand;
728
583
  const se_DeletePortalCommand = async (input, context) => {
729
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
584
+ const b = (0, core_1.requestBuilder)(input, context);
730
585
  const headers = {};
731
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
732
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
586
+ b.bp("/portals/{portalId}");
587
+ b.p("portalId", () => input.portalId, "{portalId}", false);
733
588
  const query = (0, smithy_client_1.map)({
734
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
589
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
735
590
  });
736
591
  let body;
737
592
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -741,25 +596,18 @@ const se_DeletePortalCommand = async (input, context) => {
741
596
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
742
597
  }
743
598
  }
744
- return new protocol_http_1.HttpRequest({
745
- protocol,
746
- hostname: resolvedHostname,
747
- port,
748
- method: "DELETE",
749
- headers,
750
- path: resolvedPath,
751
- query,
752
- body,
753
- });
599
+ b.hn(resolvedHostname);
600
+ b.m("DELETE").h(headers).q(query).b(body);
601
+ return b.build();
754
602
  };
755
603
  exports.se_DeletePortalCommand = se_DeletePortalCommand;
756
604
  const se_DeleteProjectCommand = async (input, context) => {
757
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
605
+ const b = (0, core_1.requestBuilder)(input, context);
758
606
  const headers = {};
759
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
760
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
607
+ b.bp("/projects/{projectId}");
608
+ b.p("projectId", () => input.projectId, "{projectId}", false);
761
609
  const query = (0, smithy_client_1.map)({
762
- clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
610
+ [_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
763
611
  });
764
612
  let body;
765
613
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -769,28 +617,21 @@ const se_DeleteProjectCommand = async (input, context) => {
769
617
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
770
618
  }
771
619
  }
772
- return new protocol_http_1.HttpRequest({
773
- protocol,
774
- hostname: resolvedHostname,
775
- port,
776
- method: "DELETE",
777
- headers,
778
- path: resolvedPath,
779
- query,
780
- body,
781
- });
620
+ b.hn(resolvedHostname);
621
+ b.m("DELETE").h(headers).q(query).b(body);
622
+ return b.build();
782
623
  };
783
624
  exports.se_DeleteProjectCommand = se_DeleteProjectCommand;
784
625
  const se_DeleteTimeSeriesCommand = async (input, context) => {
785
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
626
+ const b = (0, core_1.requestBuilder)(input, context);
786
627
  const headers = {
787
628
  "content-type": "application/json",
788
629
  };
789
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/delete";
630
+ b.bp("/timeseries/delete");
790
631
  const query = (0, smithy_client_1.map)({
791
- alias: [, input.alias],
792
- assetId: [, input.assetId],
793
- propertyId: [, input.propertyId],
632
+ [_a]: [, input[_a]],
633
+ [_aI]: [, input[_aI]],
634
+ [_pI]: [, input[_pI]],
794
635
  });
795
636
  let body;
796
637
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -803,23 +644,16 @@ const se_DeleteTimeSeriesCommand = async (input, context) => {
803
644
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
804
645
  }
805
646
  }
806
- return new protocol_http_1.HttpRequest({
807
- protocol,
808
- hostname: resolvedHostname,
809
- port,
810
- method: "POST",
811
- headers,
812
- path: resolvedPath,
813
- query,
814
- body,
815
- });
647
+ b.hn(resolvedHostname);
648
+ b.m("POST").h(headers).q(query).b(body);
649
+ return b.build();
816
650
  };
817
651
  exports.se_DeleteTimeSeriesCommand = se_DeleteTimeSeriesCommand;
818
652
  const se_DescribeAccessPolicyCommand = async (input, context) => {
819
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
653
+ const b = (0, core_1.requestBuilder)(input, context);
820
654
  const headers = {};
821
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
822
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
655
+ b.bp("/access-policies/{accessPolicyId}");
656
+ b.p("accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
823
657
  let body;
824
658
  let { hostname: resolvedHostname } = await context.endpoint();
825
659
  if (context.disableHostPrefix !== true) {
@@ -828,22 +662,16 @@ const se_DescribeAccessPolicyCommand = async (input, context) => {
828
662
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
829
663
  }
830
664
  }
831
- return new protocol_http_1.HttpRequest({
832
- protocol,
833
- hostname: resolvedHostname,
834
- port,
835
- method: "GET",
836
- headers,
837
- path: resolvedPath,
838
- body,
839
- });
665
+ b.hn(resolvedHostname);
666
+ b.m("GET").h(headers).b(body);
667
+ return b.build();
840
668
  };
841
669
  exports.se_DescribeAccessPolicyCommand = se_DescribeAccessPolicyCommand;
842
670
  const se_DescribeActionCommand = async (input, context) => {
843
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
671
+ const b = (0, core_1.requestBuilder)(input, context);
844
672
  const headers = {};
845
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions/{actionId}";
846
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "actionId", () => input.actionId, "{actionId}", false);
673
+ b.bp("/actions/{actionId}");
674
+ b.p("actionId", () => input.actionId, "{actionId}", false);
847
675
  let body;
848
676
  let { hostname: resolvedHostname } = await context.endpoint();
849
677
  if (context.disableHostPrefix !== true) {
@@ -852,24 +680,18 @@ const se_DescribeActionCommand = async (input, context) => {
852
680
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
853
681
  }
854
682
  }
855
- return new protocol_http_1.HttpRequest({
856
- protocol,
857
- hostname: resolvedHostname,
858
- port,
859
- method: "GET",
860
- headers,
861
- path: resolvedPath,
862
- body,
863
- });
683
+ b.hn(resolvedHostname);
684
+ b.m("GET").h(headers).b(body);
685
+ return b.build();
864
686
  };
865
687
  exports.se_DescribeActionCommand = se_DescribeActionCommand;
866
688
  const se_DescribeAssetCommand = async (input, context) => {
867
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
689
+ const b = (0, core_1.requestBuilder)(input, context);
868
690
  const headers = {};
869
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
870
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
691
+ b.bp("/assets/{assetId}");
692
+ b.p("assetId", () => input.assetId, "{assetId}", false);
871
693
  const query = (0, smithy_client_1.map)({
872
- excludeProperties: [() => input.excludeProperties !== void 0, () => input.excludeProperties.toString()],
694
+ [_eP]: [() => input.excludeProperties !== void 0, () => input[_eP].toString()],
873
695
  });
874
696
  let body;
875
697
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -879,25 +701,17 @@ const se_DescribeAssetCommand = async (input, context) => {
879
701
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
880
702
  }
881
703
  }
882
- return new protocol_http_1.HttpRequest({
883
- protocol,
884
- hostname: resolvedHostname,
885
- port,
886
- method: "GET",
887
- headers,
888
- path: resolvedPath,
889
- query,
890
- body,
891
- });
704
+ b.hn(resolvedHostname);
705
+ b.m("GET").h(headers).q(query).b(body);
706
+ return b.build();
892
707
  };
893
708
  exports.se_DescribeAssetCommand = se_DescribeAssetCommand;
894
709
  const se_DescribeAssetCompositeModelCommand = async (input, context) => {
895
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
710
+ const b = (0, core_1.requestBuilder)(input, context);
896
711
  const headers = {};
897
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
898
- "/assets/{assetId}/composite-models/{assetCompositeModelId}";
899
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
900
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetCompositeModelId", () => input.assetCompositeModelId, "{assetCompositeModelId}", false);
712
+ b.bp("/assets/{assetId}/composite-models/{assetCompositeModelId}");
713
+ b.p("assetId", () => input.assetId, "{assetId}", false);
714
+ b.p("assetCompositeModelId", () => input.assetCompositeModelId, "{assetCompositeModelId}", false);
901
715
  let body;
902
716
  let { hostname: resolvedHostname } = await context.endpoint();
903
717
  if (context.disableHostPrefix !== true) {
@@ -906,24 +720,18 @@ const se_DescribeAssetCompositeModelCommand = async (input, context) => {
906
720
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
907
721
  }
908
722
  }
909
- return new protocol_http_1.HttpRequest({
910
- protocol,
911
- hostname: resolvedHostname,
912
- port,
913
- method: "GET",
914
- headers,
915
- path: resolvedPath,
916
- body,
917
- });
723
+ b.hn(resolvedHostname);
724
+ b.m("GET").h(headers).b(body);
725
+ return b.build();
918
726
  };
919
727
  exports.se_DescribeAssetCompositeModelCommand = se_DescribeAssetCompositeModelCommand;
920
728
  const se_DescribeAssetModelCommand = async (input, context) => {
921
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
729
+ const b = (0, core_1.requestBuilder)(input, context);
922
730
  const headers = {};
923
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
924
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
731
+ b.bp("/asset-models/{assetModelId}");
732
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
925
733
  const query = (0, smithy_client_1.map)({
926
- excludeProperties: [() => input.excludeProperties !== void 0, () => input.excludeProperties.toString()],
734
+ [_eP]: [() => input.excludeProperties !== void 0, () => input[_eP].toString()],
927
735
  });
928
736
  let body;
929
737
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -933,25 +741,17 @@ const se_DescribeAssetModelCommand = async (input, context) => {
933
741
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
934
742
  }
935
743
  }
936
- return new protocol_http_1.HttpRequest({
937
- protocol,
938
- hostname: resolvedHostname,
939
- port,
940
- method: "GET",
941
- headers,
942
- path: resolvedPath,
943
- query,
944
- body,
945
- });
744
+ b.hn(resolvedHostname);
745
+ b.m("GET").h(headers).q(query).b(body);
746
+ return b.build();
946
747
  };
947
748
  exports.se_DescribeAssetModelCommand = se_DescribeAssetModelCommand;
948
749
  const se_DescribeAssetModelCompositeModelCommand = async (input, context) => {
949
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
750
+ const b = (0, core_1.requestBuilder)(input, context);
950
751
  const headers = {};
951
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
952
- "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
953
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
954
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
752
+ b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}");
753
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
754
+ b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
955
755
  let body;
956
756
  let { hostname: resolvedHostname } = await context.endpoint();
957
757
  if (context.disableHostPrefix !== true) {
@@ -960,23 +760,17 @@ const se_DescribeAssetModelCompositeModelCommand = async (input, context) => {
960
760
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
961
761
  }
962
762
  }
963
- return new protocol_http_1.HttpRequest({
964
- protocol,
965
- hostname: resolvedHostname,
966
- port,
967
- method: "GET",
968
- headers,
969
- path: resolvedPath,
970
- body,
971
- });
763
+ b.hn(resolvedHostname);
764
+ b.m("GET").h(headers).b(body);
765
+ return b.build();
972
766
  };
973
767
  exports.se_DescribeAssetModelCompositeModelCommand = se_DescribeAssetModelCompositeModelCommand;
974
768
  const se_DescribeAssetPropertyCommand = async (input, context) => {
975
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
769
+ const b = (0, core_1.requestBuilder)(input, context);
976
770
  const headers = {};
977
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
978
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
979
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
771
+ b.bp("/assets/{assetId}/properties/{propertyId}");
772
+ b.p("assetId", () => input.assetId, "{assetId}", false);
773
+ b.p("propertyId", () => input.propertyId, "{propertyId}", false);
980
774
  let body;
981
775
  let { hostname: resolvedHostname } = await context.endpoint();
982
776
  if (context.disableHostPrefix !== true) {
@@ -985,22 +779,16 @@ const se_DescribeAssetPropertyCommand = async (input, context) => {
985
779
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
986
780
  }
987
781
  }
988
- return new protocol_http_1.HttpRequest({
989
- protocol,
990
- hostname: resolvedHostname,
991
- port,
992
- method: "GET",
993
- headers,
994
- path: resolvedPath,
995
- body,
996
- });
782
+ b.hn(resolvedHostname);
783
+ b.m("GET").h(headers).b(body);
784
+ return b.build();
997
785
  };
998
786
  exports.se_DescribeAssetPropertyCommand = se_DescribeAssetPropertyCommand;
999
787
  const se_DescribeBulkImportJobCommand = async (input, context) => {
1000
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
788
+ const b = (0, core_1.requestBuilder)(input, context);
1001
789
  const headers = {};
1002
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
1003
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "jobId", () => input.jobId, "{jobId}", false);
790
+ b.bp("/jobs/{jobId}");
791
+ b.p("jobId", () => input.jobId, "{jobId}", false);
1004
792
  let body;
1005
793
  let { hostname: resolvedHostname } = await context.endpoint();
1006
794
  if (context.disableHostPrefix !== true) {
@@ -1009,22 +797,16 @@ const se_DescribeBulkImportJobCommand = async (input, context) => {
1009
797
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1010
798
  }
1011
799
  }
1012
- return new protocol_http_1.HttpRequest({
1013
- protocol,
1014
- hostname: resolvedHostname,
1015
- port,
1016
- method: "GET",
1017
- headers,
1018
- path: resolvedPath,
1019
- body,
1020
- });
800
+ b.hn(resolvedHostname);
801
+ b.m("GET").h(headers).b(body);
802
+ return b.build();
1021
803
  };
1022
804
  exports.se_DescribeBulkImportJobCommand = se_DescribeBulkImportJobCommand;
1023
805
  const se_DescribeDashboardCommand = async (input, context) => {
1024
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
806
+ const b = (0, core_1.requestBuilder)(input, context);
1025
807
  const headers = {};
1026
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
1027
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
808
+ b.bp("/dashboards/{dashboardId}");
809
+ b.p("dashboardId", () => input.dashboardId, "{dashboardId}", false);
1028
810
  let body;
1029
811
  let { hostname: resolvedHostname } = await context.endpoint();
1030
812
  if (context.disableHostPrefix !== true) {
@@ -1033,23 +815,17 @@ const se_DescribeDashboardCommand = async (input, context) => {
1033
815
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1034
816
  }
1035
817
  }
1036
- return new protocol_http_1.HttpRequest({
1037
- protocol,
1038
- hostname: resolvedHostname,
1039
- port,
1040
- method: "GET",
1041
- headers,
1042
- path: resolvedPath,
1043
- body,
1044
- });
818
+ b.hn(resolvedHostname);
819
+ b.m("GET").h(headers).b(body);
820
+ return b.build();
1045
821
  };
1046
822
  exports.se_DescribeDashboardCommand = se_DescribeDashboardCommand;
1047
823
  const se_DescribeDefaultEncryptionConfigurationCommand = async (input, context) => {
1048
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
824
+ const b = (0, core_1.requestBuilder)(input, context);
1049
825
  const headers = {
1050
826
  "content-type": "application/json",
1051
827
  };
1052
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
828
+ b.bp("/configuration/account/encryption");
1053
829
  let body;
1054
830
  body = "";
1055
831
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1059,22 +835,16 @@ const se_DescribeDefaultEncryptionConfigurationCommand = async (input, context)
1059
835
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1060
836
  }
1061
837
  }
1062
- return new protocol_http_1.HttpRequest({
1063
- protocol,
1064
- hostname: resolvedHostname,
1065
- port,
1066
- method: "GET",
1067
- headers,
1068
- path: resolvedPath,
1069
- body,
1070
- });
838
+ b.hn(resolvedHostname);
839
+ b.m("GET").h(headers).b(body);
840
+ return b.build();
1071
841
  };
1072
842
  exports.se_DescribeDefaultEncryptionConfigurationCommand = se_DescribeDefaultEncryptionConfigurationCommand;
1073
843
  const se_DescribeGatewayCommand = async (input, context) => {
1074
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
844
+ const b = (0, core_1.requestBuilder)(input, context);
1075
845
  const headers = {};
1076
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
1077
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
846
+ b.bp("/20200301/gateways/{gatewayId}");
847
+ b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
1078
848
  let body;
1079
849
  let { hostname: resolvedHostname } = await context.endpoint();
1080
850
  if (context.disableHostPrefix !== true) {
@@ -1083,24 +853,17 @@ const se_DescribeGatewayCommand = async (input, context) => {
1083
853
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1084
854
  }
1085
855
  }
1086
- return new protocol_http_1.HttpRequest({
1087
- protocol,
1088
- hostname: resolvedHostname,
1089
- port,
1090
- method: "GET",
1091
- headers,
1092
- path: resolvedPath,
1093
- body,
1094
- });
856
+ b.hn(resolvedHostname);
857
+ b.m("GET").h(headers).b(body);
858
+ return b.build();
1095
859
  };
1096
860
  exports.se_DescribeGatewayCommand = se_DescribeGatewayCommand;
1097
861
  const se_DescribeGatewayCapabilityConfigurationCommand = async (input, context) => {
1098
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
862
+ const b = (0, core_1.requestBuilder)(input, context);
1099
863
  const headers = {};
1100
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1101
- "/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}";
1102
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
1103
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "capabilityNamespace", () => input.capabilityNamespace, "{capabilityNamespace}", false);
864
+ b.bp("/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}");
865
+ b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
866
+ b.p("capabilityNamespace", () => input.capabilityNamespace, "{capabilityNamespace}", false);
1104
867
  let body;
1105
868
  let { hostname: resolvedHostname } = await context.endpoint();
1106
869
  if (context.disableHostPrefix !== true) {
@@ -1109,23 +872,17 @@ const se_DescribeGatewayCapabilityConfigurationCommand = async (input, context)
1109
872
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1110
873
  }
1111
874
  }
1112
- return new protocol_http_1.HttpRequest({
1113
- protocol,
1114
- hostname: resolvedHostname,
1115
- port,
1116
- method: "GET",
1117
- headers,
1118
- path: resolvedPath,
1119
- body,
1120
- });
875
+ b.hn(resolvedHostname);
876
+ b.m("GET").h(headers).b(body);
877
+ return b.build();
1121
878
  };
1122
879
  exports.se_DescribeGatewayCapabilityConfigurationCommand = se_DescribeGatewayCapabilityConfigurationCommand;
1123
880
  const se_DescribeLoggingOptionsCommand = async (input, context) => {
1124
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
881
+ const b = (0, core_1.requestBuilder)(input, context);
1125
882
  const headers = {
1126
883
  "content-type": "application/json",
1127
884
  };
1128
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
885
+ b.bp("/logging");
1129
886
  let body;
1130
887
  body = "";
1131
888
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1135,22 +892,16 @@ const se_DescribeLoggingOptionsCommand = async (input, context) => {
1135
892
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1136
893
  }
1137
894
  }
1138
- return new protocol_http_1.HttpRequest({
1139
- protocol,
1140
- hostname: resolvedHostname,
1141
- port,
1142
- method: "GET",
1143
- headers,
1144
- path: resolvedPath,
1145
- body,
1146
- });
895
+ b.hn(resolvedHostname);
896
+ b.m("GET").h(headers).b(body);
897
+ return b.build();
1147
898
  };
1148
899
  exports.se_DescribeLoggingOptionsCommand = se_DescribeLoggingOptionsCommand;
1149
900
  const se_DescribePortalCommand = async (input, context) => {
1150
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
901
+ const b = (0, core_1.requestBuilder)(input, context);
1151
902
  const headers = {};
1152
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
1153
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
903
+ b.bp("/portals/{portalId}");
904
+ b.p("portalId", () => input.portalId, "{portalId}", false);
1154
905
  let body;
1155
906
  let { hostname: resolvedHostname } = await context.endpoint();
1156
907
  if (context.disableHostPrefix !== true) {
@@ -1159,22 +910,16 @@ const se_DescribePortalCommand = async (input, context) => {
1159
910
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1160
911
  }
1161
912
  }
1162
- return new protocol_http_1.HttpRequest({
1163
- protocol,
1164
- hostname: resolvedHostname,
1165
- port,
1166
- method: "GET",
1167
- headers,
1168
- path: resolvedPath,
1169
- body,
1170
- });
913
+ b.hn(resolvedHostname);
914
+ b.m("GET").h(headers).b(body);
915
+ return b.build();
1171
916
  };
1172
917
  exports.se_DescribePortalCommand = se_DescribePortalCommand;
1173
918
  const se_DescribeProjectCommand = async (input, context) => {
1174
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
919
+ const b = (0, core_1.requestBuilder)(input, context);
1175
920
  const headers = {};
1176
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
1177
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
921
+ b.bp("/projects/{projectId}");
922
+ b.p("projectId", () => input.projectId, "{projectId}", false);
1178
923
  let body;
1179
924
  let { hostname: resolvedHostname } = await context.endpoint();
1180
925
  if (context.disableHostPrefix !== true) {
@@ -1183,23 +928,17 @@ const se_DescribeProjectCommand = async (input, context) => {
1183
928
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1184
929
  }
1185
930
  }
1186
- return new protocol_http_1.HttpRequest({
1187
- protocol,
1188
- hostname: resolvedHostname,
1189
- port,
1190
- method: "GET",
1191
- headers,
1192
- path: resolvedPath,
1193
- body,
1194
- });
931
+ b.hn(resolvedHostname);
932
+ b.m("GET").h(headers).b(body);
933
+ return b.build();
1195
934
  };
1196
935
  exports.se_DescribeProjectCommand = se_DescribeProjectCommand;
1197
936
  const se_DescribeStorageConfigurationCommand = async (input, context) => {
1198
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
937
+ const b = (0, core_1.requestBuilder)(input, context);
1199
938
  const headers = {
1200
939
  "content-type": "application/json",
1201
940
  };
1202
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
941
+ b.bp("/configuration/account/storage");
1203
942
  let body;
1204
943
  body = "";
1205
944
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1209,25 +948,19 @@ const se_DescribeStorageConfigurationCommand = async (input, context) => {
1209
948
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1210
949
  }
1211
950
  }
1212
- return new protocol_http_1.HttpRequest({
1213
- protocol,
1214
- hostname: resolvedHostname,
1215
- port,
1216
- method: "GET",
1217
- headers,
1218
- path: resolvedPath,
1219
- body,
1220
- });
951
+ b.hn(resolvedHostname);
952
+ b.m("GET").h(headers).b(body);
953
+ return b.build();
1221
954
  };
1222
955
  exports.se_DescribeStorageConfigurationCommand = se_DescribeStorageConfigurationCommand;
1223
956
  const se_DescribeTimeSeriesCommand = async (input, context) => {
1224
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
957
+ const b = (0, core_1.requestBuilder)(input, context);
1225
958
  const headers = {};
1226
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/describe";
959
+ b.bp("/timeseries/describe");
1227
960
  const query = (0, smithy_client_1.map)({
1228
- alias: [, input.alias],
1229
- assetId: [, input.assetId],
1230
- propertyId: [, input.propertyId],
961
+ [_a]: [, input[_a]],
962
+ [_aI]: [, input[_aI]],
963
+ [_pI]: [, input[_pI]],
1231
964
  });
1232
965
  let body;
1233
966
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1237,25 +970,18 @@ const se_DescribeTimeSeriesCommand = async (input, context) => {
1237
970
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1238
971
  }
1239
972
  }
1240
- return new protocol_http_1.HttpRequest({
1241
- protocol,
1242
- hostname: resolvedHostname,
1243
- port,
1244
- method: "GET",
1245
- headers,
1246
- path: resolvedPath,
1247
- query,
1248
- body,
1249
- });
973
+ b.hn(resolvedHostname);
974
+ b.m("GET").h(headers).q(query).b(body);
975
+ return b.build();
1250
976
  };
1251
977
  exports.se_DescribeTimeSeriesCommand = se_DescribeTimeSeriesCommand;
1252
978
  const se_DisassociateAssetsCommand = async (input, context) => {
1253
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
979
+ const b = (0, core_1.requestBuilder)(input, context);
1254
980
  const headers = {
1255
981
  "content-type": "application/json",
1256
982
  };
1257
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/disassociate";
1258
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
983
+ b.bp("/assets/{assetId}/disassociate");
984
+ b.p("assetId", () => input.assetId, "{assetId}", false);
1259
985
  let body;
1260
986
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1261
987
  childAssetId: [],
@@ -1269,27 +995,21 @@ const se_DisassociateAssetsCommand = async (input, context) => {
1269
995
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1270
996
  }
1271
997
  }
1272
- return new protocol_http_1.HttpRequest({
1273
- protocol,
1274
- hostname: resolvedHostname,
1275
- port,
1276
- method: "POST",
1277
- headers,
1278
- path: resolvedPath,
1279
- body,
1280
- });
998
+ b.hn(resolvedHostname);
999
+ b.m("POST").h(headers).b(body);
1000
+ return b.build();
1281
1001
  };
1282
1002
  exports.se_DisassociateAssetsCommand = se_DisassociateAssetsCommand;
1283
1003
  const se_DisassociateTimeSeriesFromAssetPropertyCommand = async (input, context) => {
1284
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1004
+ const b = (0, core_1.requestBuilder)(input, context);
1285
1005
  const headers = {
1286
1006
  "content-type": "application/json",
1287
1007
  };
1288
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries/disassociate";
1008
+ b.bp("/timeseries/disassociate");
1289
1009
  const query = (0, smithy_client_1.map)({
1290
- alias: [, (0, smithy_client_1.expectNonNull)(input.alias, `alias`)],
1291
- assetId: [, (0, smithy_client_1.expectNonNull)(input.assetId, `assetId`)],
1292
- propertyId: [, (0, smithy_client_1.expectNonNull)(input.propertyId, `propertyId`)],
1010
+ [_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `alias`)],
1011
+ [_aI]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `assetId`)],
1012
+ [_pI]: [, (0, smithy_client_1.expectNonNull)(input[_pI], `propertyId`)],
1293
1013
  });
1294
1014
  let body;
1295
1015
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -1302,24 +1022,17 @@ const se_DisassociateTimeSeriesFromAssetPropertyCommand = async (input, context)
1302
1022
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1303
1023
  }
1304
1024
  }
1305
- return new protocol_http_1.HttpRequest({
1306
- protocol,
1307
- hostname: resolvedHostname,
1308
- port,
1309
- method: "POST",
1310
- headers,
1311
- path: resolvedPath,
1312
- query,
1313
- body,
1314
- });
1025
+ b.hn(resolvedHostname);
1026
+ b.m("POST").h(headers).q(query).b(body);
1027
+ return b.build();
1315
1028
  };
1316
1029
  exports.se_DisassociateTimeSeriesFromAssetPropertyCommand = se_DisassociateTimeSeriesFromAssetPropertyCommand;
1317
1030
  const se_ExecuteActionCommand = async (input, context) => {
1318
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1031
+ const b = (0, core_1.requestBuilder)(input, context);
1319
1032
  const headers = {
1320
1033
  "content-type": "application/json",
1321
1034
  };
1322
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
1035
+ b.bp("/actions");
1323
1036
  let body;
1324
1037
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1325
1038
  actionDefinitionId: [],
@@ -1334,23 +1047,17 @@ const se_ExecuteActionCommand = async (input, context) => {
1334
1047
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1335
1048
  }
1336
1049
  }
1337
- return new protocol_http_1.HttpRequest({
1338
- protocol,
1339
- hostname: resolvedHostname,
1340
- port,
1341
- method: "POST",
1342
- headers,
1343
- path: resolvedPath,
1344
- body,
1345
- });
1050
+ b.hn(resolvedHostname);
1051
+ b.m("POST").h(headers).b(body);
1052
+ return b.build();
1346
1053
  };
1347
1054
  exports.se_ExecuteActionCommand = se_ExecuteActionCommand;
1348
1055
  const se_ExecuteQueryCommand = async (input, context) => {
1349
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1056
+ const b = (0, core_1.requestBuilder)(input, context);
1350
1057
  const headers = {
1351
1058
  "content-type": "application/json",
1352
1059
  };
1353
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queries/execution";
1060
+ b.bp("/queries/execution");
1354
1061
  let body;
1355
1062
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1356
1063
  maxResults: [],
@@ -1364,42 +1071,36 @@ const se_ExecuteQueryCommand = async (input, context) => {
1364
1071
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1365
1072
  }
1366
1073
  }
1367
- return new protocol_http_1.HttpRequest({
1368
- protocol,
1369
- hostname: resolvedHostname,
1370
- port,
1371
- method: "POST",
1372
- headers,
1373
- path: resolvedPath,
1374
- body,
1375
- });
1074
+ b.hn(resolvedHostname);
1075
+ b.m("POST").h(headers).b(body);
1076
+ return b.build();
1376
1077
  };
1377
1078
  exports.se_ExecuteQueryCommand = se_ExecuteQueryCommand;
1378
1079
  const se_GetAssetPropertyAggregatesCommand = async (input, context) => {
1379
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1080
+ const b = (0, core_1.requestBuilder)(input, context);
1380
1081
  const headers = {};
1381
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/aggregates";
1082
+ b.bp("/properties/aggregates");
1382
1083
  const query = (0, smithy_client_1.map)({
1383
- assetId: [, input.assetId],
1384
- propertyId: [, input.propertyId],
1385
- propertyAlias: [, input.propertyAlias],
1386
- aggregateTypes: [
1084
+ [_aI]: [, input[_aI]],
1085
+ [_pI]: [, input[_pI]],
1086
+ [_pA]: [, input[_pA]],
1087
+ [_aT]: [
1387
1088
  (0, smithy_client_1.expectNonNull)(input.aggregateTypes, `aggregateTypes`) != null,
1388
- () => (input.aggregateTypes || []).map((_entry) => _entry),
1089
+ () => (input[_aT] || []).map((_entry) => _entry),
1389
1090
  ],
1390
- resolution: [, (0, smithy_client_1.expectNonNull)(input.resolution, `resolution`)],
1391
- qualities: [() => input.qualities !== void 0, () => (input.qualities || []).map((_entry) => _entry)],
1392
- startDate: [
1091
+ [_r]: [, (0, smithy_client_1.expectNonNull)(input[_r], `resolution`)],
1092
+ [_q]: [() => input.qualities !== void 0, () => (input[_q] || []).map((_entry) => _entry)],
1093
+ [_sD]: [
1393
1094
  (0, smithy_client_1.expectNonNull)(input.startDate, `startDate`) != null,
1394
- () => (input.startDate.toISOString().split(".")[0] + "Z").toString(),
1095
+ () => (input[_sD].toISOString().split(".")[0] + "Z").toString(),
1395
1096
  ],
1396
- endDate: [
1097
+ [_eD]: [
1397
1098
  (0, smithy_client_1.expectNonNull)(input.endDate, `endDate`) != null,
1398
- () => (input.endDate.toISOString().split(".")[0] + "Z").toString(),
1099
+ () => (input[_eD].toISOString().split(".")[0] + "Z").toString(),
1399
1100
  ],
1400
- timeOrdering: [, input.timeOrdering],
1401
- nextToken: [, input.nextToken],
1402
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1101
+ [_tO]: [, input[_tO]],
1102
+ [_nT]: [, input[_nT]],
1103
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1403
1104
  });
1404
1105
  let body;
1405
1106
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1409,26 +1110,19 @@ const se_GetAssetPropertyAggregatesCommand = async (input, context) => {
1409
1110
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1410
1111
  }
1411
1112
  }
1412
- return new protocol_http_1.HttpRequest({
1413
- protocol,
1414
- hostname: resolvedHostname,
1415
- port,
1416
- method: "GET",
1417
- headers,
1418
- path: resolvedPath,
1419
- query,
1420
- body,
1421
- });
1113
+ b.hn(resolvedHostname);
1114
+ b.m("GET").h(headers).q(query).b(body);
1115
+ return b.build();
1422
1116
  };
1423
1117
  exports.se_GetAssetPropertyAggregatesCommand = se_GetAssetPropertyAggregatesCommand;
1424
1118
  const se_GetAssetPropertyValueCommand = async (input, context) => {
1425
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1119
+ const b = (0, core_1.requestBuilder)(input, context);
1426
1120
  const headers = {};
1427
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/latest";
1121
+ b.bp("/properties/latest");
1428
1122
  const query = (0, smithy_client_1.map)({
1429
- assetId: [, input.assetId],
1430
- propertyId: [, input.propertyId],
1431
- propertyAlias: [, input.propertyAlias],
1123
+ [_aI]: [, input[_aI]],
1124
+ [_pI]: [, input[_pI]],
1125
+ [_pA]: [, input[_pA]],
1432
1126
  });
1433
1127
  let body;
1434
1128
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1438,35 +1132,25 @@ const se_GetAssetPropertyValueCommand = async (input, context) => {
1438
1132
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1439
1133
  }
1440
1134
  }
1441
- return new protocol_http_1.HttpRequest({
1442
- protocol,
1443
- hostname: resolvedHostname,
1444
- port,
1445
- method: "GET",
1446
- headers,
1447
- path: resolvedPath,
1448
- query,
1449
- body,
1450
- });
1135
+ b.hn(resolvedHostname);
1136
+ b.m("GET").h(headers).q(query).b(body);
1137
+ return b.build();
1451
1138
  };
1452
1139
  exports.se_GetAssetPropertyValueCommand = se_GetAssetPropertyValueCommand;
1453
1140
  const se_GetAssetPropertyValueHistoryCommand = async (input, context) => {
1454
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1141
+ const b = (0, core_1.requestBuilder)(input, context);
1455
1142
  const headers = {};
1456
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/history";
1143
+ b.bp("/properties/history");
1457
1144
  const query = (0, smithy_client_1.map)({
1458
- assetId: [, input.assetId],
1459
- propertyId: [, input.propertyId],
1460
- propertyAlias: [, input.propertyAlias],
1461
- startDate: [
1462
- () => input.startDate !== void 0,
1463
- () => (input.startDate.toISOString().split(".")[0] + "Z").toString(),
1464
- ],
1465
- endDate: [() => input.endDate !== void 0, () => (input.endDate.toISOString().split(".")[0] + "Z").toString()],
1466
- qualities: [() => input.qualities !== void 0, () => (input.qualities || []).map((_entry) => _entry)],
1467
- timeOrdering: [, input.timeOrdering],
1468
- nextToken: [, input.nextToken],
1469
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1145
+ [_aI]: [, input[_aI]],
1146
+ [_pI]: [, input[_pI]],
1147
+ [_pA]: [, input[_pA]],
1148
+ [_sD]: [() => input.startDate !== void 0, () => (input[_sD].toISOString().split(".")[0] + "Z").toString()],
1149
+ [_eD]: [() => input.endDate !== void 0, () => (input[_eD].toISOString().split(".")[0] + "Z").toString()],
1150
+ [_q]: [() => input.qualities !== void 0, () => (input[_q] || []).map((_entry) => _entry)],
1151
+ [_tO]: [, input[_tO]],
1152
+ [_nT]: [, input[_nT]],
1153
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1470
1154
  });
1471
1155
  let body;
1472
1156
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1476,51 +1160,29 @@ const se_GetAssetPropertyValueHistoryCommand = async (input, context) => {
1476
1160
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1477
1161
  }
1478
1162
  }
1479
- return new protocol_http_1.HttpRequest({
1480
- protocol,
1481
- hostname: resolvedHostname,
1482
- port,
1483
- method: "GET",
1484
- headers,
1485
- path: resolvedPath,
1486
- query,
1487
- body,
1488
- });
1163
+ b.hn(resolvedHostname);
1164
+ b.m("GET").h(headers).q(query).b(body);
1165
+ return b.build();
1489
1166
  };
1490
1167
  exports.se_GetAssetPropertyValueHistoryCommand = se_GetAssetPropertyValueHistoryCommand;
1491
1168
  const se_GetInterpolatedAssetPropertyValuesCommand = async (input, context) => {
1492
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1169
+ const b = (0, core_1.requestBuilder)(input, context);
1493
1170
  const headers = {};
1494
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/properties/interpolated";
1171
+ b.bp("/properties/interpolated");
1495
1172
  const query = (0, smithy_client_1.map)({
1496
- assetId: [, input.assetId],
1497
- propertyId: [, input.propertyId],
1498
- propertyAlias: [, input.propertyAlias],
1499
- startTimeInSeconds: [
1500
- (0, smithy_client_1.expectNonNull)(input.startTimeInSeconds, `startTimeInSeconds`) != null,
1501
- () => input.startTimeInSeconds.toString(),
1502
- ],
1503
- startTimeOffsetInNanos: [
1504
- () => input.startTimeOffsetInNanos !== void 0,
1505
- () => input.startTimeOffsetInNanos.toString(),
1506
- ],
1507
- endTimeInSeconds: [
1508
- (0, smithy_client_1.expectNonNull)(input.endTimeInSeconds, `endTimeInSeconds`) != null,
1509
- () => input.endTimeInSeconds.toString(),
1510
- ],
1511
- endTimeOffsetInNanos: [() => input.endTimeOffsetInNanos !== void 0, () => input.endTimeOffsetInNanos.toString()],
1512
- quality: [, (0, smithy_client_1.expectNonNull)(input.quality, `quality`)],
1513
- intervalInSeconds: [
1514
- (0, smithy_client_1.expectNonNull)(input.intervalInSeconds, `intervalInSeconds`) != null,
1515
- () => input.intervalInSeconds.toString(),
1516
- ],
1517
- nextToken: [, input.nextToken],
1518
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1519
- type: [, (0, smithy_client_1.expectNonNull)(input.type, `type`)],
1520
- intervalWindowInSeconds: [
1521
- () => input.intervalWindowInSeconds !== void 0,
1522
- () => input.intervalWindowInSeconds.toString(),
1523
- ],
1173
+ [_aI]: [, input[_aI]],
1174
+ [_pI]: [, input[_pI]],
1175
+ [_pA]: [, input[_pA]],
1176
+ [_sTIS]: [(0, smithy_client_1.expectNonNull)(input.startTimeInSeconds, `startTimeInSeconds`) != null, () => input[_sTIS].toString()],
1177
+ [_sTOIN]: [() => input.startTimeOffsetInNanos !== void 0, () => input[_sTOIN].toString()],
1178
+ [_eTIS]: [(0, smithy_client_1.expectNonNull)(input.endTimeInSeconds, `endTimeInSeconds`) != null, () => input[_eTIS].toString()],
1179
+ [_eTOIN]: [() => input.endTimeOffsetInNanos !== void 0, () => input[_eTOIN].toString()],
1180
+ [_qu]: [, (0, smithy_client_1.expectNonNull)(input[_qu], `quality`)],
1181
+ [_iIS]: [(0, smithy_client_1.expectNonNull)(input.intervalInSeconds, `intervalInSeconds`) != null, () => input[_iIS].toString()],
1182
+ [_nT]: [, input[_nT]],
1183
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1184
+ [_t]: [, (0, smithy_client_1.expectNonNull)(input[_t], `type`)],
1185
+ [_iWIS]: [() => input.intervalWindowInSeconds !== void 0, () => input[_iWIS].toString()],
1524
1186
  });
1525
1187
  let body;
1526
1188
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1530,30 +1192,23 @@ const se_GetInterpolatedAssetPropertyValuesCommand = async (input, context) => {
1530
1192
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1531
1193
  }
1532
1194
  }
1533
- return new protocol_http_1.HttpRequest({
1534
- protocol,
1535
- hostname: resolvedHostname,
1536
- port,
1537
- method: "GET",
1538
- headers,
1539
- path: resolvedPath,
1540
- query,
1541
- body,
1542
- });
1195
+ b.hn(resolvedHostname);
1196
+ b.m("GET").h(headers).q(query).b(body);
1197
+ return b.build();
1543
1198
  };
1544
1199
  exports.se_GetInterpolatedAssetPropertyValuesCommand = se_GetInterpolatedAssetPropertyValuesCommand;
1545
1200
  const se_ListAccessPoliciesCommand = async (input, context) => {
1546
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1201
+ const b = (0, core_1.requestBuilder)(input, context);
1547
1202
  const headers = {};
1548
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies";
1203
+ b.bp("/access-policies");
1549
1204
  const query = (0, smithy_client_1.map)({
1550
- identityType: [, input.identityType],
1551
- identityId: [, input.identityId],
1552
- resourceType: [, input.resourceType],
1553
- resourceId: [, input.resourceId],
1554
- iamArn: [, input.iamArn],
1555
- nextToken: [, input.nextToken],
1556
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1205
+ [_iT]: [, input[_iT]],
1206
+ [_iI]: [, input[_iI]],
1207
+ [_rT]: [, input[_rT]],
1208
+ [_rI]: [, input[_rI]],
1209
+ [_iA]: [, input[_iA]],
1210
+ [_nT]: [, input[_nT]],
1211
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1557
1212
  });
1558
1213
  let body;
1559
1214
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1563,27 +1218,20 @@ const se_ListAccessPoliciesCommand = async (input, context) => {
1563
1218
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1564
1219
  }
1565
1220
  }
1566
- return new protocol_http_1.HttpRequest({
1567
- protocol,
1568
- hostname: resolvedHostname,
1569
- port,
1570
- method: "GET",
1571
- headers,
1572
- path: resolvedPath,
1573
- query,
1574
- body,
1575
- });
1221
+ b.hn(resolvedHostname);
1222
+ b.m("GET").h(headers).q(query).b(body);
1223
+ return b.build();
1576
1224
  };
1577
1225
  exports.se_ListAccessPoliciesCommand = se_ListAccessPoliciesCommand;
1578
1226
  const se_ListActionsCommand = async (input, context) => {
1579
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1227
+ const b = (0, core_1.requestBuilder)(input, context);
1580
1228
  const headers = {};
1581
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
1229
+ b.bp("/actions");
1582
1230
  const query = (0, smithy_client_1.map)({
1583
- targetResourceType: [, (0, smithy_client_1.expectNonNull)(input.targetResourceType, `targetResourceType`)],
1584
- targetResourceId: [, (0, smithy_client_1.expectNonNull)(input.targetResourceId, `targetResourceId`)],
1585
- nextToken: [, input.nextToken],
1586
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1231
+ [_tRT]: [, (0, smithy_client_1.expectNonNull)(input[_tRT], `targetResourceType`)],
1232
+ [_tRI]: [, (0, smithy_client_1.expectNonNull)(input[_tRI], `targetResourceId`)],
1233
+ [_nT]: [, input[_nT]],
1234
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1587
1235
  });
1588
1236
  let body;
1589
1237
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1593,27 +1241,19 @@ const se_ListActionsCommand = async (input, context) => {
1593
1241
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1594
1242
  }
1595
1243
  }
1596
- return new protocol_http_1.HttpRequest({
1597
- protocol,
1598
- hostname: resolvedHostname,
1599
- port,
1600
- method: "GET",
1601
- headers,
1602
- path: resolvedPath,
1603
- query,
1604
- body,
1605
- });
1244
+ b.hn(resolvedHostname);
1245
+ b.m("GET").h(headers).q(query).b(body);
1246
+ return b.build();
1606
1247
  };
1607
1248
  exports.se_ListActionsCommand = se_ListActionsCommand;
1608
1249
  const se_ListAssetModelCompositeModelsCommand = async (input, context) => {
1609
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1250
+ const b = (0, core_1.requestBuilder)(input, context);
1610
1251
  const headers = {};
1611
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1612
- "/asset-models/{assetModelId}/composite-models";
1613
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1252
+ b.bp("/asset-models/{assetModelId}/composite-models");
1253
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
1614
1254
  const query = (0, smithy_client_1.map)({
1615
- nextToken: [, input.nextToken],
1616
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1255
+ [_nT]: [, input[_nT]],
1256
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1617
1257
  });
1618
1258
  let body;
1619
1259
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1623,27 +1263,20 @@ const se_ListAssetModelCompositeModelsCommand = async (input, context) => {
1623
1263
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1624
1264
  }
1625
1265
  }
1626
- return new protocol_http_1.HttpRequest({
1627
- protocol,
1628
- hostname: resolvedHostname,
1629
- port,
1630
- method: "GET",
1631
- headers,
1632
- path: resolvedPath,
1633
- query,
1634
- body,
1635
- });
1266
+ b.hn(resolvedHostname);
1267
+ b.m("GET").h(headers).q(query).b(body);
1268
+ return b.build();
1636
1269
  };
1637
1270
  exports.se_ListAssetModelCompositeModelsCommand = se_ListAssetModelCompositeModelsCommand;
1638
1271
  const se_ListAssetModelPropertiesCommand = async (input, context) => {
1639
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1272
+ const b = (0, core_1.requestBuilder)(input, context);
1640
1273
  const headers = {};
1641
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}/properties";
1642
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1274
+ b.bp("/asset-models/{assetModelId}/properties");
1275
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
1643
1276
  const query = (0, smithy_client_1.map)({
1644
- nextToken: [, input.nextToken],
1645
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1646
- filter: [, input.filter],
1277
+ [_nT]: [, input[_nT]],
1278
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1279
+ [_f]: [, input[_f]],
1647
1280
  });
1648
1281
  let body;
1649
1282
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1653,29 +1286,19 @@ const se_ListAssetModelPropertiesCommand = async (input, context) => {
1653
1286
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1654
1287
  }
1655
1288
  }
1656
- return new protocol_http_1.HttpRequest({
1657
- protocol,
1658
- hostname: resolvedHostname,
1659
- port,
1660
- method: "GET",
1661
- headers,
1662
- path: resolvedPath,
1663
- query,
1664
- body,
1665
- });
1289
+ b.hn(resolvedHostname);
1290
+ b.m("GET").h(headers).q(query).b(body);
1291
+ return b.build();
1666
1292
  };
1667
1293
  exports.se_ListAssetModelPropertiesCommand = se_ListAssetModelPropertiesCommand;
1668
1294
  const se_ListAssetModelsCommand = async (input, context) => {
1669
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1295
+ const b = (0, core_1.requestBuilder)(input, context);
1670
1296
  const headers = {};
1671
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models";
1297
+ b.bp("/asset-models");
1672
1298
  const query = (0, smithy_client_1.map)({
1673
- nextToken: [, input.nextToken],
1674
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1675
- assetModelTypes: [
1676
- () => input.assetModelTypes !== void 0,
1677
- () => (input.assetModelTypes || []).map((_entry) => _entry),
1678
- ],
1299
+ [_nT]: [, input[_nT]],
1300
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1301
+ [_aMT]: [() => input.assetModelTypes !== void 0, () => (input[_aMT] || []).map((_entry) => _entry)],
1679
1302
  });
1680
1303
  let body;
1681
1304
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1685,27 +1308,20 @@ const se_ListAssetModelsCommand = async (input, context) => {
1685
1308
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1686
1309
  }
1687
1310
  }
1688
- return new protocol_http_1.HttpRequest({
1689
- protocol,
1690
- hostname: resolvedHostname,
1691
- port,
1692
- method: "GET",
1693
- headers,
1694
- path: resolvedPath,
1695
- query,
1696
- body,
1697
- });
1311
+ b.hn(resolvedHostname);
1312
+ b.m("GET").h(headers).q(query).b(body);
1313
+ return b.build();
1698
1314
  };
1699
1315
  exports.se_ListAssetModelsCommand = se_ListAssetModelsCommand;
1700
1316
  const se_ListAssetPropertiesCommand = async (input, context) => {
1701
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1317
+ const b = (0, core_1.requestBuilder)(input, context);
1702
1318
  const headers = {};
1703
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties";
1704
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1319
+ b.bp("/assets/{assetId}/properties");
1320
+ b.p("assetId", () => input.assetId, "{assetId}", false);
1705
1321
  const query = (0, smithy_client_1.map)({
1706
- nextToken: [, input.nextToken],
1707
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1708
- filter: [, input.filter],
1322
+ [_nT]: [, input[_nT]],
1323
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1324
+ [_f]: [, input[_f]],
1709
1325
  });
1710
1326
  let body;
1711
1327
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1715,27 +1331,20 @@ const se_ListAssetPropertiesCommand = async (input, context) => {
1715
1331
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1716
1332
  }
1717
1333
  }
1718
- return new protocol_http_1.HttpRequest({
1719
- protocol,
1720
- hostname: resolvedHostname,
1721
- port,
1722
- method: "GET",
1723
- headers,
1724
- path: resolvedPath,
1725
- query,
1726
- body,
1727
- });
1334
+ b.hn(resolvedHostname);
1335
+ b.m("GET").h(headers).q(query).b(body);
1336
+ return b.build();
1728
1337
  };
1729
1338
  exports.se_ListAssetPropertiesCommand = se_ListAssetPropertiesCommand;
1730
1339
  const se_ListAssetRelationshipsCommand = async (input, context) => {
1731
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1340
+ const b = (0, core_1.requestBuilder)(input, context);
1732
1341
  const headers = {};
1733
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/assetRelationships";
1734
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1342
+ b.bp("/assets/{assetId}/assetRelationships");
1343
+ b.p("assetId", () => input.assetId, "{assetId}", false);
1735
1344
  const query = (0, smithy_client_1.map)({
1736
- traversalType: [, (0, smithy_client_1.expectNonNull)(input.traversalType, `traversalType`)],
1737
- nextToken: [, input.nextToken],
1738
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1345
+ [_tT]: [, (0, smithy_client_1.expectNonNull)(input[_tT], `traversalType`)],
1346
+ [_nT]: [, input[_nT]],
1347
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1739
1348
  });
1740
1349
  let body;
1741
1350
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1745,27 +1354,20 @@ const se_ListAssetRelationshipsCommand = async (input, context) => {
1745
1354
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1746
1355
  }
1747
1356
  }
1748
- return new protocol_http_1.HttpRequest({
1749
- protocol,
1750
- hostname: resolvedHostname,
1751
- port,
1752
- method: "GET",
1753
- headers,
1754
- path: resolvedPath,
1755
- query,
1756
- body,
1757
- });
1357
+ b.hn(resolvedHostname);
1358
+ b.m("GET").h(headers).q(query).b(body);
1359
+ return b.build();
1758
1360
  };
1759
1361
  exports.se_ListAssetRelationshipsCommand = se_ListAssetRelationshipsCommand;
1760
1362
  const se_ListAssetsCommand = async (input, context) => {
1761
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1363
+ const b = (0, core_1.requestBuilder)(input, context);
1762
1364
  const headers = {};
1763
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
1365
+ b.bp("/assets");
1764
1366
  const query = (0, smithy_client_1.map)({
1765
- nextToken: [, input.nextToken],
1766
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1767
- assetModelId: [, input.assetModelId],
1768
- filter: [, input.filter],
1367
+ [_nT]: [, input[_nT]],
1368
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1369
+ [_aMI]: [, input[_aMI]],
1370
+ [_f]: [, input[_f]],
1769
1371
  });
1770
1372
  let body;
1771
1373
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1775,28 +1377,21 @@ const se_ListAssetsCommand = async (input, context) => {
1775
1377
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1776
1378
  }
1777
1379
  }
1778
- return new protocol_http_1.HttpRequest({
1779
- protocol,
1780
- hostname: resolvedHostname,
1781
- port,
1782
- method: "GET",
1783
- headers,
1784
- path: resolvedPath,
1785
- query,
1786
- body,
1787
- });
1380
+ b.hn(resolvedHostname);
1381
+ b.m("GET").h(headers).q(query).b(body);
1382
+ return b.build();
1788
1383
  };
1789
1384
  exports.se_ListAssetsCommand = se_ListAssetsCommand;
1790
1385
  const se_ListAssociatedAssetsCommand = async (input, context) => {
1791
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1386
+ const b = (0, core_1.requestBuilder)(input, context);
1792
1387
  const headers = {};
1793
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/hierarchies";
1794
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1388
+ b.bp("/assets/{assetId}/hierarchies");
1389
+ b.p("assetId", () => input.assetId, "{assetId}", false);
1795
1390
  const query = (0, smithy_client_1.map)({
1796
- hierarchyId: [, input.hierarchyId],
1797
- traversalDirection: [, input.traversalDirection],
1798
- nextToken: [, input.nextToken],
1799
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1391
+ [_hI]: [, input[_hI]],
1392
+ [_tD]: [, input[_tD]],
1393
+ [_nT]: [, input[_nT]],
1394
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1800
1395
  });
1801
1396
  let body;
1802
1397
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1806,26 +1401,19 @@ const se_ListAssociatedAssetsCommand = async (input, context) => {
1806
1401
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1807
1402
  }
1808
1403
  }
1809
- return new protocol_http_1.HttpRequest({
1810
- protocol,
1811
- hostname: resolvedHostname,
1812
- port,
1813
- method: "GET",
1814
- headers,
1815
- path: resolvedPath,
1816
- query,
1817
- body,
1818
- });
1404
+ b.hn(resolvedHostname);
1405
+ b.m("GET").h(headers).q(query).b(body);
1406
+ return b.build();
1819
1407
  };
1820
1408
  exports.se_ListAssociatedAssetsCommand = se_ListAssociatedAssetsCommand;
1821
1409
  const se_ListBulkImportJobsCommand = async (input, context) => {
1822
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1410
+ const b = (0, core_1.requestBuilder)(input, context);
1823
1411
  const headers = {};
1824
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
1412
+ b.bp("/jobs");
1825
1413
  const query = (0, smithy_client_1.map)({
1826
- nextToken: [, input.nextToken],
1827
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1828
- filter: [, input.filter],
1414
+ [_nT]: [, input[_nT]],
1415
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1416
+ [_f]: [, input[_f]],
1829
1417
  });
1830
1418
  let body;
1831
1419
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1835,27 +1423,19 @@ const se_ListBulkImportJobsCommand = async (input, context) => {
1835
1423
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1836
1424
  }
1837
1425
  }
1838
- return new protocol_http_1.HttpRequest({
1839
- protocol,
1840
- hostname: resolvedHostname,
1841
- port,
1842
- method: "GET",
1843
- headers,
1844
- path: resolvedPath,
1845
- query,
1846
- body,
1847
- });
1426
+ b.hn(resolvedHostname);
1427
+ b.m("GET").h(headers).q(query).b(body);
1428
+ return b.build();
1848
1429
  };
1849
1430
  exports.se_ListBulkImportJobsCommand = se_ListBulkImportJobsCommand;
1850
1431
  const se_ListCompositionRelationshipsCommand = async (input, context) => {
1851
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1432
+ const b = (0, core_1.requestBuilder)(input, context);
1852
1433
  const headers = {};
1853
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1854
- "/asset-models/{assetModelId}/composition-relationships";
1855
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1434
+ b.bp("/asset-models/{assetModelId}/composition-relationships");
1435
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
1856
1436
  const query = (0, smithy_client_1.map)({
1857
- nextToken: [, input.nextToken],
1858
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1437
+ [_nT]: [, input[_nT]],
1438
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1859
1439
  });
1860
1440
  let body;
1861
1441
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1865,26 +1445,19 @@ const se_ListCompositionRelationshipsCommand = async (input, context) => {
1865
1445
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1866
1446
  }
1867
1447
  }
1868
- return new protocol_http_1.HttpRequest({
1869
- protocol,
1870
- hostname: resolvedHostname,
1871
- port,
1872
- method: "GET",
1873
- headers,
1874
- path: resolvedPath,
1875
- query,
1876
- body,
1877
- });
1448
+ b.hn(resolvedHostname);
1449
+ b.m("GET").h(headers).q(query).b(body);
1450
+ return b.build();
1878
1451
  };
1879
1452
  exports.se_ListCompositionRelationshipsCommand = se_ListCompositionRelationshipsCommand;
1880
1453
  const se_ListDashboardsCommand = async (input, context) => {
1881
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1454
+ const b = (0, core_1.requestBuilder)(input, context);
1882
1455
  const headers = {};
1883
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards";
1456
+ b.bp("/dashboards");
1884
1457
  const query = (0, smithy_client_1.map)({
1885
- projectId: [, (0, smithy_client_1.expectNonNull)(input.projectId, `projectId`)],
1886
- nextToken: [, input.nextToken],
1887
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1458
+ [_pIr]: [, (0, smithy_client_1.expectNonNull)(input[_pIr], `projectId`)],
1459
+ [_nT]: [, input[_nT]],
1460
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1888
1461
  });
1889
1462
  let body;
1890
1463
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1894,25 +1467,18 @@ const se_ListDashboardsCommand = async (input, context) => {
1894
1467
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1895
1468
  }
1896
1469
  }
1897
- return new protocol_http_1.HttpRequest({
1898
- protocol,
1899
- hostname: resolvedHostname,
1900
- port,
1901
- method: "GET",
1902
- headers,
1903
- path: resolvedPath,
1904
- query,
1905
- body,
1906
- });
1470
+ b.hn(resolvedHostname);
1471
+ b.m("GET").h(headers).q(query).b(body);
1472
+ return b.build();
1907
1473
  };
1908
1474
  exports.se_ListDashboardsCommand = se_ListDashboardsCommand;
1909
1475
  const se_ListGatewaysCommand = async (input, context) => {
1910
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1476
+ const b = (0, core_1.requestBuilder)(input, context);
1911
1477
  const headers = {};
1912
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways";
1478
+ b.bp("/20200301/gateways");
1913
1479
  const query = (0, smithy_client_1.map)({
1914
- nextToken: [, input.nextToken],
1915
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1480
+ [_nT]: [, input[_nT]],
1481
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1916
1482
  });
1917
1483
  let body;
1918
1484
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1922,25 +1488,18 @@ const se_ListGatewaysCommand = async (input, context) => {
1922
1488
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1923
1489
  }
1924
1490
  }
1925
- return new protocol_http_1.HttpRequest({
1926
- protocol,
1927
- hostname: resolvedHostname,
1928
- port,
1929
- method: "GET",
1930
- headers,
1931
- path: resolvedPath,
1932
- query,
1933
- body,
1934
- });
1491
+ b.hn(resolvedHostname);
1492
+ b.m("GET").h(headers).q(query).b(body);
1493
+ return b.build();
1935
1494
  };
1936
1495
  exports.se_ListGatewaysCommand = se_ListGatewaysCommand;
1937
1496
  const se_ListPortalsCommand = async (input, context) => {
1938
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1497
+ const b = (0, core_1.requestBuilder)(input, context);
1939
1498
  const headers = {};
1940
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals";
1499
+ b.bp("/portals");
1941
1500
  const query = (0, smithy_client_1.map)({
1942
- nextToken: [, input.nextToken],
1943
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1501
+ [_nT]: [, input[_nT]],
1502
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1944
1503
  });
1945
1504
  let body;
1946
1505
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1950,26 +1509,19 @@ const se_ListPortalsCommand = async (input, context) => {
1950
1509
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1951
1510
  }
1952
1511
  }
1953
- return new protocol_http_1.HttpRequest({
1954
- protocol,
1955
- hostname: resolvedHostname,
1956
- port,
1957
- method: "GET",
1958
- headers,
1959
- path: resolvedPath,
1960
- query,
1961
- body,
1962
- });
1512
+ b.hn(resolvedHostname);
1513
+ b.m("GET").h(headers).q(query).b(body);
1514
+ return b.build();
1963
1515
  };
1964
1516
  exports.se_ListPortalsCommand = se_ListPortalsCommand;
1965
1517
  const se_ListProjectAssetsCommand = async (input, context) => {
1966
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1518
+ const b = (0, core_1.requestBuilder)(input, context);
1967
1519
  const headers = {};
1968
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}/assets";
1969
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
1520
+ b.bp("/projects/{projectId}/assets");
1521
+ b.p("projectId", () => input.projectId, "{projectId}", false);
1970
1522
  const query = (0, smithy_client_1.map)({
1971
- nextToken: [, input.nextToken],
1972
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1523
+ [_nT]: [, input[_nT]],
1524
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1973
1525
  });
1974
1526
  let body;
1975
1527
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1979,26 +1531,19 @@ const se_ListProjectAssetsCommand = async (input, context) => {
1979
1531
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1980
1532
  }
1981
1533
  }
1982
- return new protocol_http_1.HttpRequest({
1983
- protocol,
1984
- hostname: resolvedHostname,
1985
- port,
1986
- method: "GET",
1987
- headers,
1988
- path: resolvedPath,
1989
- query,
1990
- body,
1991
- });
1534
+ b.hn(resolvedHostname);
1535
+ b.m("GET").h(headers).q(query).b(body);
1536
+ return b.build();
1992
1537
  };
1993
1538
  exports.se_ListProjectAssetsCommand = se_ListProjectAssetsCommand;
1994
1539
  const se_ListProjectsCommand = async (input, context) => {
1995
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1540
+ const b = (0, core_1.requestBuilder)(input, context);
1996
1541
  const headers = {};
1997
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
1542
+ b.bp("/projects");
1998
1543
  const query = (0, smithy_client_1.map)({
1999
- portalId: [, (0, smithy_client_1.expectNonNull)(input.portalId, `portalId`)],
2000
- nextToken: [, input.nextToken],
2001
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1544
+ [_pIo]: [, (0, smithy_client_1.expectNonNull)(input[_pIo], `portalId`)],
1545
+ [_nT]: [, input[_nT]],
1546
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
2002
1547
  });
2003
1548
  let body;
2004
1549
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -2008,24 +1553,17 @@ const se_ListProjectsCommand = async (input, context) => {
2008
1553
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2009
1554
  }
2010
1555
  }
2011
- return new protocol_http_1.HttpRequest({
2012
- protocol,
2013
- hostname: resolvedHostname,
2014
- port,
2015
- method: "GET",
2016
- headers,
2017
- path: resolvedPath,
2018
- query,
2019
- body,
2020
- });
1556
+ b.hn(resolvedHostname);
1557
+ b.m("GET").h(headers).q(query).b(body);
1558
+ return b.build();
2021
1559
  };
2022
1560
  exports.se_ListProjectsCommand = se_ListProjectsCommand;
2023
1561
  const se_ListTagsForResourceCommand = async (input, context) => {
2024
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1562
+ const b = (0, core_1.requestBuilder)(input, context);
2025
1563
  const headers = {};
2026
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1564
+ b.bp("/tags");
2027
1565
  const query = (0, smithy_client_1.map)({
2028
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
1566
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
2029
1567
  });
2030
1568
  let body;
2031
1569
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -2035,28 +1573,21 @@ const se_ListTagsForResourceCommand = async (input, context) => {
2035
1573
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2036
1574
  }
2037
1575
  }
2038
- return new protocol_http_1.HttpRequest({
2039
- protocol,
2040
- hostname: resolvedHostname,
2041
- port,
2042
- method: "GET",
2043
- headers,
2044
- path: resolvedPath,
2045
- query,
2046
- body,
2047
- });
1576
+ b.hn(resolvedHostname);
1577
+ b.m("GET").h(headers).q(query).b(body);
1578
+ return b.build();
2048
1579
  };
2049
1580
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
2050
1581
  const se_ListTimeSeriesCommand = async (input, context) => {
2051
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1582
+ const b = (0, core_1.requestBuilder)(input, context);
2052
1583
  const headers = {};
2053
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/timeseries";
1584
+ b.bp("/timeseries");
2054
1585
  const query = (0, smithy_client_1.map)({
2055
- nextToken: [, input.nextToken],
2056
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
2057
- assetId: [, input.assetId],
2058
- aliasPrefix: [, input.aliasPrefix],
2059
- timeSeriesType: [, input.timeSeriesType],
1586
+ [_nT]: [, input[_nT]],
1587
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
1588
+ [_aI]: [, input[_aI]],
1589
+ [_aP]: [, input[_aP]],
1590
+ [_tST]: [, input[_tST]],
2060
1591
  });
2061
1592
  let body;
2062
1593
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -2066,24 +1597,17 @@ const se_ListTimeSeriesCommand = async (input, context) => {
2066
1597
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2067
1598
  }
2068
1599
  }
2069
- return new protocol_http_1.HttpRequest({
2070
- protocol,
2071
- hostname: resolvedHostname,
2072
- port,
2073
- method: "GET",
2074
- headers,
2075
- path: resolvedPath,
2076
- query,
2077
- body,
2078
- });
1600
+ b.hn(resolvedHostname);
1601
+ b.m("GET").h(headers).q(query).b(body);
1602
+ return b.build();
2079
1603
  };
2080
1604
  exports.se_ListTimeSeriesCommand = se_ListTimeSeriesCommand;
2081
1605
  const se_PutDefaultEncryptionConfigurationCommand = async (input, context) => {
2082
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1606
+ const b = (0, core_1.requestBuilder)(input, context);
2083
1607
  const headers = {
2084
1608
  "content-type": "application/json",
2085
1609
  };
2086
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/encryption";
1610
+ b.bp("/configuration/account/encryption");
2087
1611
  let body;
2088
1612
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2089
1613
  encryptionType: [],
@@ -2096,23 +1620,17 @@ const se_PutDefaultEncryptionConfigurationCommand = async (input, context) => {
2096
1620
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2097
1621
  }
2098
1622
  }
2099
- return new protocol_http_1.HttpRequest({
2100
- protocol,
2101
- hostname: resolvedHostname,
2102
- port,
2103
- method: "POST",
2104
- headers,
2105
- path: resolvedPath,
2106
- body,
2107
- });
1623
+ b.hn(resolvedHostname);
1624
+ b.m("POST").h(headers).b(body);
1625
+ return b.build();
2108
1626
  };
2109
1627
  exports.se_PutDefaultEncryptionConfigurationCommand = se_PutDefaultEncryptionConfigurationCommand;
2110
1628
  const se_PutLoggingOptionsCommand = async (input, context) => {
2111
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1629
+ const b = (0, core_1.requestBuilder)(input, context);
2112
1630
  const headers = {
2113
1631
  "content-type": "application/json",
2114
1632
  };
2115
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
1633
+ b.bp("/logging");
2116
1634
  let body;
2117
1635
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2118
1636
  loggingOptions: (_) => (0, smithy_client_1._json)(_),
@@ -2124,23 +1642,17 @@ const se_PutLoggingOptionsCommand = async (input, context) => {
2124
1642
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2125
1643
  }
2126
1644
  }
2127
- return new protocol_http_1.HttpRequest({
2128
- protocol,
2129
- hostname: resolvedHostname,
2130
- port,
2131
- method: "PUT",
2132
- headers,
2133
- path: resolvedPath,
2134
- body,
2135
- });
1645
+ b.hn(resolvedHostname);
1646
+ b.m("PUT").h(headers).b(body);
1647
+ return b.build();
2136
1648
  };
2137
1649
  exports.se_PutLoggingOptionsCommand = se_PutLoggingOptionsCommand;
2138
1650
  const se_PutStorageConfigurationCommand = async (input, context) => {
2139
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1651
+ const b = (0, core_1.requestBuilder)(input, context);
2140
1652
  const headers = {
2141
1653
  "content-type": "application/json",
2142
1654
  };
2143
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration/account/storage";
1655
+ b.bp("/configuration/account/storage");
2144
1656
  let body;
2145
1657
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2146
1658
  disassociatedDataStorage: [],
@@ -2157,25 +1669,19 @@ const se_PutStorageConfigurationCommand = async (input, context) => {
2157
1669
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2158
1670
  }
2159
1671
  }
2160
- return new protocol_http_1.HttpRequest({
2161
- protocol,
2162
- hostname: resolvedHostname,
2163
- port,
2164
- method: "POST",
2165
- headers,
2166
- path: resolvedPath,
2167
- body,
2168
- });
1672
+ b.hn(resolvedHostname);
1673
+ b.m("POST").h(headers).b(body);
1674
+ return b.build();
2169
1675
  };
2170
1676
  exports.se_PutStorageConfigurationCommand = se_PutStorageConfigurationCommand;
2171
1677
  const se_TagResourceCommand = async (input, context) => {
2172
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1678
+ const b = (0, core_1.requestBuilder)(input, context);
2173
1679
  const headers = {
2174
1680
  "content-type": "application/json",
2175
1681
  };
2176
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1682
+ b.bp("/tags");
2177
1683
  const query = (0, smithy_client_1.map)({
2178
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
1684
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
2179
1685
  });
2180
1686
  let body;
2181
1687
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -2188,27 +1694,20 @@ const se_TagResourceCommand = async (input, context) => {
2188
1694
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2189
1695
  }
2190
1696
  }
2191
- return new protocol_http_1.HttpRequest({
2192
- protocol,
2193
- hostname: resolvedHostname,
2194
- port,
2195
- method: "POST",
2196
- headers,
2197
- path: resolvedPath,
2198
- query,
2199
- body,
2200
- });
1697
+ b.hn(resolvedHostname);
1698
+ b.m("POST").h(headers).q(query).b(body);
1699
+ return b.build();
2201
1700
  };
2202
1701
  exports.se_TagResourceCommand = se_TagResourceCommand;
2203
1702
  const se_UntagResourceCommand = async (input, context) => {
2204
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1703
+ const b = (0, core_1.requestBuilder)(input, context);
2205
1704
  const headers = {};
2206
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1705
+ b.bp("/tags");
2207
1706
  const query = (0, smithy_client_1.map)({
2208
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
2209
- tagKeys: [
1707
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
1708
+ [_tK]: [
2210
1709
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
2211
- () => (input.tagKeys || []).map((_entry) => _entry),
1710
+ () => (input[_tK] || []).map((_entry) => _entry),
2212
1711
  ],
2213
1712
  });
2214
1713
  let body;
@@ -2219,25 +1718,18 @@ const se_UntagResourceCommand = async (input, context) => {
2219
1718
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2220
1719
  }
2221
1720
  }
2222
- return new protocol_http_1.HttpRequest({
2223
- protocol,
2224
- hostname: resolvedHostname,
2225
- port,
2226
- method: "DELETE",
2227
- headers,
2228
- path: resolvedPath,
2229
- query,
2230
- body,
2231
- });
1721
+ b.hn(resolvedHostname);
1722
+ b.m("DELETE").h(headers).q(query).b(body);
1723
+ return b.build();
2232
1724
  };
2233
1725
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
2234
1726
  const se_UpdateAccessPolicyCommand = async (input, context) => {
2235
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1727
+ const b = (0, core_1.requestBuilder)(input, context);
2236
1728
  const headers = {
2237
1729
  "content-type": "application/json",
2238
1730
  };
2239
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-policies/{accessPolicyId}";
2240
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
1731
+ b.bp("/access-policies/{accessPolicyId}");
1732
+ b.p("accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
2241
1733
  let body;
2242
1734
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2243
1735
  accessPolicyIdentity: (_) => (0, smithy_client_1._json)(_),
@@ -2252,24 +1744,18 @@ const se_UpdateAccessPolicyCommand = async (input, context) => {
2252
1744
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2253
1745
  }
2254
1746
  }
2255
- return new protocol_http_1.HttpRequest({
2256
- protocol,
2257
- hostname: resolvedHostname,
2258
- port,
2259
- method: "PUT",
2260
- headers,
2261
- path: resolvedPath,
2262
- body,
2263
- });
1747
+ b.hn(resolvedHostname);
1748
+ b.m("PUT").h(headers).b(body);
1749
+ return b.build();
2264
1750
  };
2265
1751
  exports.se_UpdateAccessPolicyCommand = se_UpdateAccessPolicyCommand;
2266
1752
  const se_UpdateAssetCommand = async (input, context) => {
2267
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1753
+ const b = (0, core_1.requestBuilder)(input, context);
2268
1754
  const headers = {
2269
1755
  "content-type": "application/json",
2270
1756
  };
2271
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}";
2272
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
1757
+ b.bp("/assets/{assetId}");
1758
+ b.p("assetId", () => input.assetId, "{assetId}", false);
2273
1759
  let body;
2274
1760
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2275
1761
  assetDescription: [],
@@ -2284,24 +1770,18 @@ const se_UpdateAssetCommand = async (input, context) => {
2284
1770
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2285
1771
  }
2286
1772
  }
2287
- return new protocol_http_1.HttpRequest({
2288
- protocol,
2289
- hostname: resolvedHostname,
2290
- port,
2291
- method: "PUT",
2292
- headers,
2293
- path: resolvedPath,
2294
- body,
2295
- });
1773
+ b.hn(resolvedHostname);
1774
+ b.m("PUT").h(headers).b(body);
1775
+ return b.build();
2296
1776
  };
2297
1777
  exports.se_UpdateAssetCommand = se_UpdateAssetCommand;
2298
1778
  const se_UpdateAssetModelCommand = async (input, context) => {
2299
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1779
+ const b = (0, core_1.requestBuilder)(input, context);
2300
1780
  const headers = {
2301
1781
  "content-type": "application/json",
2302
1782
  };
2303
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/asset-models/{assetModelId}";
2304
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
1783
+ b.bp("/asset-models/{assetModelId}");
1784
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
2305
1785
  let body;
2306
1786
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2307
1787
  assetModelCompositeModels: (_) => se_AssetModelCompositeModels(_, context),
@@ -2319,26 +1799,19 @@ const se_UpdateAssetModelCommand = async (input, context) => {
2319
1799
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2320
1800
  }
2321
1801
  }
2322
- return new protocol_http_1.HttpRequest({
2323
- protocol,
2324
- hostname: resolvedHostname,
2325
- port,
2326
- method: "PUT",
2327
- headers,
2328
- path: resolvedPath,
2329
- body,
2330
- });
1802
+ b.hn(resolvedHostname);
1803
+ b.m("PUT").h(headers).b(body);
1804
+ return b.build();
2331
1805
  };
2332
1806
  exports.se_UpdateAssetModelCommand = se_UpdateAssetModelCommand;
2333
1807
  const se_UpdateAssetModelCompositeModelCommand = async (input, context) => {
2334
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1808
+ const b = (0, core_1.requestBuilder)(input, context);
2335
1809
  const headers = {
2336
1810
  "content-type": "application/json",
2337
1811
  };
2338
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2339
- "/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}";
2340
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
2341
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
1812
+ b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}");
1813
+ b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
1814
+ b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
2342
1815
  let body;
2343
1816
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2344
1817
  assetModelCompositeModelDescription: [],
@@ -2354,25 +1827,19 @@ const se_UpdateAssetModelCompositeModelCommand = async (input, context) => {
2354
1827
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2355
1828
  }
2356
1829
  }
2357
- return new protocol_http_1.HttpRequest({
2358
- protocol,
2359
- hostname: resolvedHostname,
2360
- port,
2361
- method: "PUT",
2362
- headers,
2363
- path: resolvedPath,
2364
- body,
2365
- });
1830
+ b.hn(resolvedHostname);
1831
+ b.m("PUT").h(headers).b(body);
1832
+ return b.build();
2366
1833
  };
2367
1834
  exports.se_UpdateAssetModelCompositeModelCommand = se_UpdateAssetModelCompositeModelCommand;
2368
1835
  const se_UpdateAssetPropertyCommand = async (input, context) => {
2369
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1836
+ const b = (0, core_1.requestBuilder)(input, context);
2370
1837
  const headers = {
2371
1838
  "content-type": "application/json",
2372
1839
  };
2373
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets/{assetId}/properties/{propertyId}";
2374
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "assetId", () => input.assetId, "{assetId}", false);
2375
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "propertyId", () => input.propertyId, "{propertyId}", false);
1840
+ b.bp("/assets/{assetId}/properties/{propertyId}");
1841
+ b.p("assetId", () => input.assetId, "{assetId}", false);
1842
+ b.p("propertyId", () => input.propertyId, "{propertyId}", false);
2376
1843
  let body;
2377
1844
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2378
1845
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -2387,24 +1854,18 @@ const se_UpdateAssetPropertyCommand = async (input, context) => {
2387
1854
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2388
1855
  }
2389
1856
  }
2390
- return new protocol_http_1.HttpRequest({
2391
- protocol,
2392
- hostname: resolvedHostname,
2393
- port,
2394
- method: "PUT",
2395
- headers,
2396
- path: resolvedPath,
2397
- body,
2398
- });
1857
+ b.hn(resolvedHostname);
1858
+ b.m("PUT").h(headers).b(body);
1859
+ return b.build();
2399
1860
  };
2400
1861
  exports.se_UpdateAssetPropertyCommand = se_UpdateAssetPropertyCommand;
2401
1862
  const se_UpdateDashboardCommand = async (input, context) => {
2402
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1863
+ const b = (0, core_1.requestBuilder)(input, context);
2403
1864
  const headers = {
2404
1865
  "content-type": "application/json",
2405
1866
  };
2406
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dashboards/{dashboardId}";
2407
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "dashboardId", () => input.dashboardId, "{dashboardId}", false);
1867
+ b.bp("/dashboards/{dashboardId}");
1868
+ b.p("dashboardId", () => input.dashboardId, "{dashboardId}", false);
2408
1869
  let body;
2409
1870
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2410
1871
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -2419,24 +1880,18 @@ const se_UpdateDashboardCommand = async (input, context) => {
2419
1880
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2420
1881
  }
2421
1882
  }
2422
- return new protocol_http_1.HttpRequest({
2423
- protocol,
2424
- hostname: resolvedHostname,
2425
- port,
2426
- method: "PUT",
2427
- headers,
2428
- path: resolvedPath,
2429
- body,
2430
- });
1883
+ b.hn(resolvedHostname);
1884
+ b.m("PUT").h(headers).b(body);
1885
+ return b.build();
2431
1886
  };
2432
1887
  exports.se_UpdateDashboardCommand = se_UpdateDashboardCommand;
2433
1888
  const se_UpdateGatewayCommand = async (input, context) => {
2434
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1889
+ const b = (0, core_1.requestBuilder)(input, context);
2435
1890
  const headers = {
2436
1891
  "content-type": "application/json",
2437
1892
  };
2438
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}";
2439
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
1893
+ b.bp("/20200301/gateways/{gatewayId}");
1894
+ b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
2440
1895
  let body;
2441
1896
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2442
1897
  gatewayName: [],
@@ -2448,24 +1903,18 @@ const se_UpdateGatewayCommand = async (input, context) => {
2448
1903
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2449
1904
  }
2450
1905
  }
2451
- return new protocol_http_1.HttpRequest({
2452
- protocol,
2453
- hostname: resolvedHostname,
2454
- port,
2455
- method: "PUT",
2456
- headers,
2457
- path: resolvedPath,
2458
- body,
2459
- });
1906
+ b.hn(resolvedHostname);
1907
+ b.m("PUT").h(headers).b(body);
1908
+ return b.build();
2460
1909
  };
2461
1910
  exports.se_UpdateGatewayCommand = se_UpdateGatewayCommand;
2462
1911
  const se_UpdateGatewayCapabilityConfigurationCommand = async (input, context) => {
2463
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1912
+ const b = (0, core_1.requestBuilder)(input, context);
2464
1913
  const headers = {
2465
1914
  "content-type": "application/json",
2466
1915
  };
2467
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/20200301/gateways/{gatewayId}/capability";
2468
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "gatewayId", () => input.gatewayId, "{gatewayId}", false);
1916
+ b.bp("/20200301/gateways/{gatewayId}/capability");
1917
+ b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
2469
1918
  let body;
2470
1919
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2471
1920
  capabilityConfiguration: [],
@@ -2478,24 +1927,18 @@ const se_UpdateGatewayCapabilityConfigurationCommand = async (input, context) =>
2478
1927
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2479
1928
  }
2480
1929
  }
2481
- return new protocol_http_1.HttpRequest({
2482
- protocol,
2483
- hostname: resolvedHostname,
2484
- port,
2485
- method: "POST",
2486
- headers,
2487
- path: resolvedPath,
2488
- body,
2489
- });
1930
+ b.hn(resolvedHostname);
1931
+ b.m("POST").h(headers).b(body);
1932
+ return b.build();
2490
1933
  };
2491
1934
  exports.se_UpdateGatewayCapabilityConfigurationCommand = se_UpdateGatewayCapabilityConfigurationCommand;
2492
1935
  const se_UpdatePortalCommand = async (input, context) => {
2493
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1936
+ const b = (0, core_1.requestBuilder)(input, context);
2494
1937
  const headers = {
2495
1938
  "content-type": "application/json",
2496
1939
  };
2497
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/portals/{portalId}";
2498
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "portalId", () => input.portalId, "{portalId}", false);
1940
+ b.bp("/portals/{portalId}");
1941
+ b.p("portalId", () => input.portalId, "{portalId}", false);
2499
1942
  let body;
2500
1943
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2501
1944
  alarms: (_) => (0, smithy_client_1._json)(_),
@@ -2514,24 +1957,18 @@ const se_UpdatePortalCommand = async (input, context) => {
2514
1957
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2515
1958
  }
2516
1959
  }
2517
- return new protocol_http_1.HttpRequest({
2518
- protocol,
2519
- hostname: resolvedHostname,
2520
- port,
2521
- method: "PUT",
2522
- headers,
2523
- path: resolvedPath,
2524
- body,
2525
- });
1960
+ b.hn(resolvedHostname);
1961
+ b.m("PUT").h(headers).b(body);
1962
+ return b.build();
2526
1963
  };
2527
1964
  exports.se_UpdatePortalCommand = se_UpdatePortalCommand;
2528
1965
  const se_UpdateProjectCommand = async (input, context) => {
2529
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1966
+ const b = (0, core_1.requestBuilder)(input, context);
2530
1967
  const headers = {
2531
1968
  "content-type": "application/json",
2532
1969
  };
2533
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/projects/{projectId}";
2534
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectId", () => input.projectId, "{projectId}", false);
1970
+ b.bp("/projects/{projectId}");
1971
+ b.p("projectId", () => input.projectId, "{projectId}", false);
2535
1972
  let body;
2536
1973
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2537
1974
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -2545,15 +1982,9 @@ const se_UpdateProjectCommand = async (input, context) => {
2545
1982
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2546
1983
  }
2547
1984
  }
2548
- return new protocol_http_1.HttpRequest({
2549
- protocol,
2550
- hostname: resolvedHostname,
2551
- port,
2552
- method: "PUT",
2553
- headers,
2554
- path: resolvedPath,
2555
- body,
2556
- });
1985
+ b.hn(resolvedHostname);
1986
+ b.m("PUT").h(headers).b(body);
1987
+ return b.build();
2557
1988
  };
2558
1989
  exports.se_UpdateProjectCommand = se_UpdateProjectCommand;
2559
1990
  const de_AssociateAssetsCommand = async (output, context) => {
@@ -7138,6 +6569,47 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
7138
6569
  value !== "" &&
7139
6570
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
7140
6571
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
6572
+ const _a = "alias";
6573
+ const _aI = "assetId";
6574
+ const _aMI = "assetModelId";
6575
+ const _aMT = "assetModelTypes";
6576
+ const _aP = "aliasPrefix";
6577
+ const _aT = "aggregateTypes";
6578
+ const _cT = "clientToken";
6579
+ const _eD = "endDate";
6580
+ const _eP = "excludeProperties";
6581
+ const _eTIS = "endTimeInSeconds";
6582
+ const _eTOIN = "endTimeOffsetInNanos";
6583
+ const _f = "filter";
6584
+ const _hI = "hierarchyId";
6585
+ const _iA = "iamArn";
6586
+ const _iI = "identityId";
6587
+ const _iIS = "intervalInSeconds";
6588
+ const _iT = "identityType";
6589
+ const _iWIS = "intervalWindowInSeconds";
6590
+ const _mR = "maxResults";
6591
+ const _nT = "nextToken";
6592
+ const _pA = "propertyAlias";
6593
+ const _pI = "propertyId";
6594
+ const _pIo = "portalId";
6595
+ const _pIr = "projectId";
6596
+ const _q = "qualities";
6597
+ const _qu = "quality";
6598
+ const _r = "resolution";
6599
+ const _rA = "resourceArn";
6600
+ const _rI = "resourceId";
6601
+ const _rT = "resourceType";
6602
+ const _sD = "startDate";
6603
+ const _sTIS = "startTimeInSeconds";
6604
+ const _sTOIN = "startTimeOffsetInNanos";
6605
+ const _t = "type";
6606
+ const _tD = "traversalDirection";
6607
+ const _tK = "tagKeys";
6608
+ const _tO = "timeOrdering";
6609
+ const _tRI = "targetResourceId";
6610
+ const _tRT = "targetResourceType";
6611
+ const _tST = "timeSeriesType";
6612
+ const _tT = "traversalType";
7141
6613
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
7142
6614
  if (encoded.length) {
7143
6615
  return JSON.parse(encoded);