@aws-sdk/client-iot-wireless 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist-cjs/pagination/ListDestinationsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListDeviceProfilesPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListFuotaTasksPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListMulticastGroupsByFuotaTaskPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListMulticastGroupsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListNetworkAnalyzerConfigurationsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListPositionConfigurationsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListQueuedMessagesPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListServiceProfilesPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListWirelessDevicesPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListWirelessGatewaysPaginator.js +2 -24
  12. package/dist-cjs/protocols/Aws_restJson1.js +623 -1397
  13. package/dist-es/pagination/ListDestinationsPaginator.js +2 -23
  14. package/dist-es/pagination/ListDeviceProfilesPaginator.js +2 -23
  15. package/dist-es/pagination/ListFuotaTasksPaginator.js +2 -23
  16. package/dist-es/pagination/ListMulticastGroupsByFuotaTaskPaginator.js +2 -23
  17. package/dist-es/pagination/ListMulticastGroupsPaginator.js +2 -23
  18. package/dist-es/pagination/ListNetworkAnalyzerConfigurationsPaginator.js +2 -23
  19. package/dist-es/pagination/ListPositionConfigurationsPaginator.js +2 -23
  20. package/dist-es/pagination/ListQueuedMessagesPaginator.js +2 -23
  21. package/dist-es/pagination/ListServiceProfilesPaginator.js +2 -23
  22. package/dist-es/pagination/ListWirelessDevicesPaginator.js +2 -23
  23. package/dist-es/pagination/ListWirelessGatewaysPaginator.js +2 -23
  24. package/dist-es/protocols/Aws_restJson1.js +624 -1398
  25. package/dist-types/pagination/ListDestinationsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListDeviceProfilesPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListFuotaTasksPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListMulticastGroupsByFuotaTaskPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListMulticastGroupsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListNetworkAnalyzerConfigurationsPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListPositionConfigurationsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ListQueuedMessagesPaginator.d.ts +1 -1
  33. package/dist-types/pagination/ListServiceProfilesPaginator.d.ts +1 -1
  34. package/dist-types/pagination/ListWirelessDevicesPaginator.d.ts +1 -1
  35. package/dist-types/pagination/ListWirelessGatewaysPaginator.d.ts +1 -1
  36. package/dist-types/ts3.4/pagination/ListDestinationsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListDeviceProfilesPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListFuotaTasksPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListMulticastGroupsByFuotaTaskPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListMulticastGroupsPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/ListNetworkAnalyzerConfigurationsPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ListPositionConfigurationsPaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/ListQueuedMessagesPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/ListServiceProfilesPaginator.d.ts +3 -3
  45. package/dist-types/ts3.4/pagination/ListWirelessDevicesPaginator.d.ts +3 -3
  46. package/dist-types/ts3.4/pagination/ListWirelessGatewaysPaginator.d.ts +3 -3
  47. package/package.json +7 -6
@@ -5,190 +5,134 @@ exports.se_UpdateLogLevelsByResourceTypesCommand = exports.se_UpdateFuotaTaskCom
5
5
  exports.de_GetEventConfigurationByResourceTypesCommand = exports.de_GetDeviceProfileCommand = exports.de_GetDestinationCommand = exports.de_DisassociateWirelessGatewayFromThingCommand = exports.de_DisassociateWirelessGatewayFromCertificateCommand = exports.de_DisassociateWirelessDeviceFromThingCommand = exports.de_DisassociateWirelessDeviceFromMulticastGroupCommand = exports.de_DisassociateWirelessDeviceFromFuotaTaskCommand = exports.de_DisassociateMulticastGroupFromFuotaTaskCommand = exports.de_DisassociateAwsAccountFromPartnerAccountCommand = exports.de_DeregisterWirelessDeviceCommand = exports.de_DeleteWirelessGatewayTaskDefinitionCommand = exports.de_DeleteWirelessGatewayTaskCommand = exports.de_DeleteWirelessGatewayCommand = exports.de_DeleteWirelessDeviceImportTaskCommand = exports.de_DeleteWirelessDeviceCommand = exports.de_DeleteServiceProfileCommand = exports.de_DeleteQueuedMessagesCommand = exports.de_DeleteNetworkAnalyzerConfigurationCommand = exports.de_DeleteMulticastGroupCommand = exports.de_DeleteFuotaTaskCommand = exports.de_DeleteDeviceProfileCommand = exports.de_DeleteDestinationCommand = exports.de_CreateWirelessGatewayTaskDefinitionCommand = exports.de_CreateWirelessGatewayTaskCommand = exports.de_CreateWirelessGatewayCommand = exports.de_CreateWirelessDeviceCommand = exports.de_CreateServiceProfileCommand = exports.de_CreateNetworkAnalyzerConfigurationCommand = exports.de_CreateMulticastGroupCommand = exports.de_CreateFuotaTaskCommand = exports.de_CreateDeviceProfileCommand = exports.de_CreateDestinationCommand = exports.de_CancelMulticastGroupSessionCommand = exports.de_AssociateWirelessGatewayWithThingCommand = exports.de_AssociateWirelessGatewayWithCertificateCommand = exports.de_AssociateWirelessDeviceWithThingCommand = exports.de_AssociateWirelessDeviceWithMulticastGroupCommand = exports.de_AssociateWirelessDeviceWithFuotaTaskCommand = exports.de_AssociateMulticastGroupWithFuotaTaskCommand = exports.de_AssociateAwsAccountWithPartnerAccountCommand = exports.se_UpdateWirelessGatewayCommand = exports.se_UpdateWirelessDeviceImportTaskCommand = exports.se_UpdateWirelessDeviceCommand = exports.se_UpdateResourcePositionCommand = exports.se_UpdateResourceEventConfigurationCommand = exports.se_UpdatePositionCommand = exports.se_UpdatePartnerAccountCommand = exports.se_UpdateNetworkAnalyzerConfigurationCommand = exports.se_UpdateMulticastGroupCommand = void 0;
6
6
  exports.de_StartMulticastGroupSessionCommand = exports.de_StartFuotaTaskCommand = exports.de_StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = exports.de_StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = exports.de_SendDataToWirelessDeviceCommand = exports.de_SendDataToMulticastGroupCommand = exports.de_ResetResourceLogLevelCommand = exports.de_ResetAllResourceLogLevelsCommand = exports.de_PutResourceLogLevelCommand = exports.de_PutPositionConfigurationCommand = exports.de_ListWirelessGatewayTaskDefinitionsCommand = exports.de_ListWirelessGatewaysCommand = exports.de_ListWirelessDevicesCommand = exports.de_ListWirelessDeviceImportTasksCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServiceProfilesCommand = exports.de_ListQueuedMessagesCommand = exports.de_ListPositionConfigurationsCommand = exports.de_ListPartnerAccountsCommand = exports.de_ListNetworkAnalyzerConfigurationsCommand = exports.de_ListMulticastGroupsByFuotaTaskCommand = exports.de_ListMulticastGroupsCommand = exports.de_ListFuotaTasksCommand = exports.de_ListEventConfigurationsCommand = exports.de_ListDevicesForWirelessDeviceImportTaskCommand = exports.de_ListDeviceProfilesCommand = exports.de_ListDestinationsCommand = exports.de_GetWirelessGatewayTaskDefinitionCommand = exports.de_GetWirelessGatewayTaskCommand = exports.de_GetWirelessGatewayStatisticsCommand = exports.de_GetWirelessGatewayFirmwareInformationCommand = exports.de_GetWirelessGatewayCertificateCommand = exports.de_GetWirelessGatewayCommand = exports.de_GetWirelessDeviceStatisticsCommand = exports.de_GetWirelessDeviceImportTaskCommand = exports.de_GetWirelessDeviceCommand = exports.de_GetServiceProfileCommand = exports.de_GetServiceEndpointCommand = exports.de_GetResourcePositionCommand = exports.de_GetResourceLogLevelCommand = exports.de_GetResourceEventConfigurationCommand = exports.de_GetPositionEstimateCommand = exports.de_GetPositionConfigurationCommand = exports.de_GetPositionCommand = exports.de_GetPartnerAccountCommand = exports.de_GetNetworkAnalyzerConfigurationCommand = exports.de_GetMulticastGroupSessionCommand = exports.de_GetMulticastGroupCommand = exports.de_GetLogLevelsByResourceTypesCommand = exports.de_GetFuotaTaskCommand = void 0;
7
7
  exports.de_UpdateWirelessGatewayCommand = exports.de_UpdateWirelessDeviceImportTaskCommand = exports.de_UpdateWirelessDeviceCommand = exports.de_UpdateResourcePositionCommand = exports.de_UpdateResourceEventConfigurationCommand = exports.de_UpdatePositionCommand = exports.de_UpdatePartnerAccountCommand = exports.de_UpdateNetworkAnalyzerConfigurationCommand = exports.de_UpdateMulticastGroupCommand = exports.de_UpdateLogLevelsByResourceTypesCommand = exports.de_UpdateFuotaTaskCommand = exports.de_UpdateEventConfigurationByResourceTypesCommand = exports.de_UpdateDestinationCommand = exports.de_UntagResourceCommand = exports.de_TestWirelessDeviceCommand = exports.de_TagResourceCommand = exports.de_StartWirelessDeviceImportTaskCommand = exports.de_StartSingleWirelessDeviceImportTaskCommand = void 0;
8
- const protocol_http_1 = require("@smithy/protocol-http");
8
+ const core_1 = require("@smithy/core");
9
9
  const smithy_client_1 = require("@smithy/smithy-client");
10
10
  const uuid_1 = require("uuid");
11
11
  const IoTWirelessServiceException_1 = require("../models/IoTWirelessServiceException");
12
12
  const models_0_1 = require("../models/models_0");
13
13
  const models_1_1 = require("../models/models_1");
14
14
  const se_AssociateAwsAccountWithPartnerAccountCommand = async (input, context) => {
15
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
15
+ const b = (0, core_1.requestBuilder)(input, context);
16
16
  const headers = {
17
17
  "content-type": "application/json",
18
18
  };
19
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts";
19
+ b.bp("/partner-accounts");
20
20
  let body;
21
21
  body = JSON.stringify((0, smithy_client_1.take)(input, {
22
22
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
23
23
  Sidewalk: (_) => (0, smithy_client_1._json)(_),
24
24
  Tags: (_) => (0, smithy_client_1._json)(_),
25
25
  }));
26
- return new protocol_http_1.HttpRequest({
27
- protocol,
28
- hostname,
29
- port,
30
- method: "POST",
31
- headers,
32
- path: resolvedPath,
33
- body,
34
- });
26
+ b.m("POST").h(headers).b(body);
27
+ return b.build();
35
28
  };
36
29
  exports.se_AssociateAwsAccountWithPartnerAccountCommand = se_AssociateAwsAccountWithPartnerAccountCommand;
37
30
  const se_AssociateMulticastGroupWithFuotaTaskCommand = async (input, context) => {
38
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
31
+ const b = (0, core_1.requestBuilder)(input, context);
39
32
  const headers = {
40
33
  "content-type": "application/json",
41
34
  };
42
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}/multicast-group";
43
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
35
+ b.bp("/fuota-tasks/{Id}/multicast-group");
36
+ b.p("Id", () => input.Id, "{Id}", false);
44
37
  let body;
45
38
  body = JSON.stringify((0, smithy_client_1.take)(input, {
46
39
  MulticastGroupId: [],
47
40
  }));
48
- return new protocol_http_1.HttpRequest({
49
- protocol,
50
- hostname,
51
- port,
52
- method: "PUT",
53
- headers,
54
- path: resolvedPath,
55
- body,
56
- });
41
+ b.m("PUT").h(headers).b(body);
42
+ return b.build();
57
43
  };
58
44
  exports.se_AssociateMulticastGroupWithFuotaTaskCommand = se_AssociateMulticastGroupWithFuotaTaskCommand;
59
45
  const se_AssociateWirelessDeviceWithFuotaTaskCommand = async (input, context) => {
60
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
46
+ const b = (0, core_1.requestBuilder)(input, context);
61
47
  const headers = {
62
48
  "content-type": "application/json",
63
49
  };
64
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}/wireless-device";
65
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
50
+ b.bp("/fuota-tasks/{Id}/wireless-device");
51
+ b.p("Id", () => input.Id, "{Id}", false);
66
52
  let body;
67
53
  body = JSON.stringify((0, smithy_client_1.take)(input, {
68
54
  WirelessDeviceId: [],
69
55
  }));
70
- return new protocol_http_1.HttpRequest({
71
- protocol,
72
- hostname,
73
- port,
74
- method: "PUT",
75
- headers,
76
- path: resolvedPath,
77
- body,
78
- });
56
+ b.m("PUT").h(headers).b(body);
57
+ return b.build();
79
58
  };
80
59
  exports.se_AssociateWirelessDeviceWithFuotaTaskCommand = se_AssociateWirelessDeviceWithFuotaTaskCommand;
81
60
  const se_AssociateWirelessDeviceWithMulticastGroupCommand = async (input, context) => {
82
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
61
+ const b = (0, core_1.requestBuilder)(input, context);
83
62
  const headers = {
84
63
  "content-type": "application/json",
85
64
  };
86
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/wireless-device";
87
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
65
+ b.bp("/multicast-groups/{Id}/wireless-device");
66
+ b.p("Id", () => input.Id, "{Id}", false);
88
67
  let body;
89
68
  body = JSON.stringify((0, smithy_client_1.take)(input, {
90
69
  WirelessDeviceId: [],
91
70
  }));
92
- return new protocol_http_1.HttpRequest({
93
- protocol,
94
- hostname,
95
- port,
96
- method: "PUT",
97
- headers,
98
- path: resolvedPath,
99
- body,
100
- });
71
+ b.m("PUT").h(headers).b(body);
72
+ return b.build();
101
73
  };
102
74
  exports.se_AssociateWirelessDeviceWithMulticastGroupCommand = se_AssociateWirelessDeviceWithMulticastGroupCommand;
103
75
  const se_AssociateWirelessDeviceWithThingCommand = async (input, context) => {
104
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
76
+ const b = (0, core_1.requestBuilder)(input, context);
105
77
  const headers = {
106
78
  "content-type": "application/json",
107
79
  };
108
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/thing";
109
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
80
+ b.bp("/wireless-devices/{Id}/thing");
81
+ b.p("Id", () => input.Id, "{Id}", false);
110
82
  let body;
111
83
  body = JSON.stringify((0, smithy_client_1.take)(input, {
112
84
  ThingArn: [],
113
85
  }));
114
- return new protocol_http_1.HttpRequest({
115
- protocol,
116
- hostname,
117
- port,
118
- method: "PUT",
119
- headers,
120
- path: resolvedPath,
121
- body,
122
- });
86
+ b.m("PUT").h(headers).b(body);
87
+ return b.build();
123
88
  };
124
89
  exports.se_AssociateWirelessDeviceWithThingCommand = se_AssociateWirelessDeviceWithThingCommand;
125
90
  const se_AssociateWirelessGatewayWithCertificateCommand = async (input, context) => {
126
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const b = (0, core_1.requestBuilder)(input, context);
127
92
  const headers = {
128
93
  "content-type": "application/json",
129
94
  };
130
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/certificate";
131
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
95
+ b.bp("/wireless-gateways/{Id}/certificate");
96
+ b.p("Id", () => input.Id, "{Id}", false);
132
97
  let body;
133
98
  body = JSON.stringify((0, smithy_client_1.take)(input, {
134
99
  IotCertificateId: [],
135
100
  }));
136
- return new protocol_http_1.HttpRequest({
137
- protocol,
138
- hostname,
139
- port,
140
- method: "PUT",
141
- headers,
142
- path: resolvedPath,
143
- body,
144
- });
101
+ b.m("PUT").h(headers).b(body);
102
+ return b.build();
145
103
  };
146
104
  exports.se_AssociateWirelessGatewayWithCertificateCommand = se_AssociateWirelessGatewayWithCertificateCommand;
147
105
  const se_AssociateWirelessGatewayWithThingCommand = async (input, context) => {
148
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
106
+ const b = (0, core_1.requestBuilder)(input, context);
149
107
  const headers = {
150
108
  "content-type": "application/json",
151
109
  };
152
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/thing";
153
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
110
+ b.bp("/wireless-gateways/{Id}/thing");
111
+ b.p("Id", () => input.Id, "{Id}", false);
154
112
  let body;
155
113
  body = JSON.stringify((0, smithy_client_1.take)(input, {
156
114
  ThingArn: [],
157
115
  }));
158
- return new protocol_http_1.HttpRequest({
159
- protocol,
160
- hostname,
161
- port,
162
- method: "PUT",
163
- headers,
164
- path: resolvedPath,
165
- body,
166
- });
116
+ b.m("PUT").h(headers).b(body);
117
+ return b.build();
167
118
  };
168
119
  exports.se_AssociateWirelessGatewayWithThingCommand = se_AssociateWirelessGatewayWithThingCommand;
169
120
  const se_CancelMulticastGroupSessionCommand = async (input, context) => {
170
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
121
+ const b = (0, core_1.requestBuilder)(input, context);
171
122
  const headers = {};
172
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/session";
173
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
123
+ b.bp("/multicast-groups/{Id}/session");
124
+ b.p("Id", () => input.Id, "{Id}", false);
174
125
  let body;
175
- return new protocol_http_1.HttpRequest({
176
- protocol,
177
- hostname,
178
- port,
179
- method: "DELETE",
180
- headers,
181
- path: resolvedPath,
182
- body,
183
- });
126
+ b.m("DELETE").h(headers).b(body);
127
+ return b.build();
184
128
  };
185
129
  exports.se_CancelMulticastGroupSessionCommand = se_CancelMulticastGroupSessionCommand;
186
130
  const se_CreateDestinationCommand = async (input, context) => {
187
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
131
+ const b = (0, core_1.requestBuilder)(input, context);
188
132
  const headers = {
189
133
  "content-type": "application/json",
190
134
  };
191
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations";
135
+ b.bp("/destinations");
192
136
  let body;
193
137
  body = JSON.stringify((0, smithy_client_1.take)(input, {
194
138
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -199,23 +143,16 @@ const se_CreateDestinationCommand = async (input, context) => {
199
143
  RoleArn: [],
200
144
  Tags: (_) => (0, smithy_client_1._json)(_),
201
145
  }));
202
- return new protocol_http_1.HttpRequest({
203
- protocol,
204
- hostname,
205
- port,
206
- method: "POST",
207
- headers,
208
- path: resolvedPath,
209
- body,
210
- });
146
+ b.m("POST").h(headers).b(body);
147
+ return b.build();
211
148
  };
212
149
  exports.se_CreateDestinationCommand = se_CreateDestinationCommand;
213
150
  const se_CreateDeviceProfileCommand = async (input, context) => {
214
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
151
+ const b = (0, core_1.requestBuilder)(input, context);
215
152
  const headers = {
216
153
  "content-type": "application/json",
217
154
  };
218
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles";
155
+ b.bp("/device-profiles");
219
156
  let body;
220
157
  body = JSON.stringify((0, smithy_client_1.take)(input, {
221
158
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -224,23 +161,16 @@ const se_CreateDeviceProfileCommand = async (input, context) => {
224
161
  Sidewalk: (_) => (0, smithy_client_1._json)(_),
225
162
  Tags: (_) => (0, smithy_client_1._json)(_),
226
163
  }));
227
- return new protocol_http_1.HttpRequest({
228
- protocol,
229
- hostname,
230
- port,
231
- method: "POST",
232
- headers,
233
- path: resolvedPath,
234
- body,
235
- });
164
+ b.m("POST").h(headers).b(body);
165
+ return b.build();
236
166
  };
237
167
  exports.se_CreateDeviceProfileCommand = se_CreateDeviceProfileCommand;
238
168
  const se_CreateFuotaTaskCommand = async (input, context) => {
239
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
169
+ const b = (0, core_1.requestBuilder)(input, context);
240
170
  const headers = {
241
171
  "content-type": "application/json",
242
172
  };
243
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks";
173
+ b.bp("/fuota-tasks");
244
174
  let body;
245
175
  body = JSON.stringify((0, smithy_client_1.take)(input, {
246
176
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -254,23 +184,16 @@ const se_CreateFuotaTaskCommand = async (input, context) => {
254
184
  RedundancyPercent: [],
255
185
  Tags: (_) => (0, smithy_client_1._json)(_),
256
186
  }));
257
- return new protocol_http_1.HttpRequest({
258
- protocol,
259
- hostname,
260
- port,
261
- method: "POST",
262
- headers,
263
- path: resolvedPath,
264
- body,
265
- });
187
+ b.m("POST").h(headers).b(body);
188
+ return b.build();
266
189
  };
267
190
  exports.se_CreateFuotaTaskCommand = se_CreateFuotaTaskCommand;
268
191
  const se_CreateMulticastGroupCommand = async (input, context) => {
269
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
192
+ const b = (0, core_1.requestBuilder)(input, context);
270
193
  const headers = {
271
194
  "content-type": "application/json",
272
195
  };
273
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups";
196
+ b.bp("/multicast-groups");
274
197
  let body;
275
198
  body = JSON.stringify((0, smithy_client_1.take)(input, {
276
199
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -279,23 +202,16 @@ const se_CreateMulticastGroupCommand = async (input, context) => {
279
202
  Name: [],
280
203
  Tags: (_) => (0, smithy_client_1._json)(_),
281
204
  }));
282
- return new protocol_http_1.HttpRequest({
283
- protocol,
284
- hostname,
285
- port,
286
- method: "POST",
287
- headers,
288
- path: resolvedPath,
289
- body,
290
- });
205
+ b.m("POST").h(headers).b(body);
206
+ return b.build();
291
207
  };
292
208
  exports.se_CreateMulticastGroupCommand = se_CreateMulticastGroupCommand;
293
209
  const se_CreateNetworkAnalyzerConfigurationCommand = async (input, context) => {
294
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
210
+ const b = (0, core_1.requestBuilder)(input, context);
295
211
  const headers = {
296
212
  "content-type": "application/json",
297
213
  };
298
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/network-analyzer-configurations";
214
+ b.bp("/network-analyzer-configurations");
299
215
  let body;
300
216
  body = JSON.stringify((0, smithy_client_1.take)(input, {
301
217
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -307,23 +223,16 @@ const se_CreateNetworkAnalyzerConfigurationCommand = async (input, context) => {
307
223
  WirelessDevices: (_) => (0, smithy_client_1._json)(_),
308
224
  WirelessGateways: (_) => (0, smithy_client_1._json)(_),
309
225
  }));
310
- return new protocol_http_1.HttpRequest({
311
- protocol,
312
- hostname,
313
- port,
314
- method: "POST",
315
- headers,
316
- path: resolvedPath,
317
- body,
318
- });
226
+ b.m("POST").h(headers).b(body);
227
+ return b.build();
319
228
  };
320
229
  exports.se_CreateNetworkAnalyzerConfigurationCommand = se_CreateNetworkAnalyzerConfigurationCommand;
321
230
  const se_CreateServiceProfileCommand = async (input, context) => {
322
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
231
+ const b = (0, core_1.requestBuilder)(input, context);
323
232
  const headers = {
324
233
  "content-type": "application/json",
325
234
  };
326
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles";
235
+ b.bp("/service-profiles");
327
236
  let body;
328
237
  body = JSON.stringify((0, smithy_client_1.take)(input, {
329
238
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -331,23 +240,16 @@ const se_CreateServiceProfileCommand = async (input, context) => {
331
240
  Name: [],
332
241
  Tags: (_) => (0, smithy_client_1._json)(_),
333
242
  }));
334
- return new protocol_http_1.HttpRequest({
335
- protocol,
336
- hostname,
337
- port,
338
- method: "POST",
339
- headers,
340
- path: resolvedPath,
341
- body,
342
- });
243
+ b.m("POST").h(headers).b(body);
244
+ return b.build();
343
245
  };
344
246
  exports.se_CreateServiceProfileCommand = se_CreateServiceProfileCommand;
345
247
  const se_CreateWirelessDeviceCommand = async (input, context) => {
346
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
248
+ const b = (0, core_1.requestBuilder)(input, context);
347
249
  const headers = {
348
250
  "content-type": "application/json",
349
251
  };
350
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices";
252
+ b.bp("/wireless-devices");
351
253
  let body;
352
254
  body = JSON.stringify((0, smithy_client_1.take)(input, {
353
255
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -360,23 +262,16 @@ const se_CreateWirelessDeviceCommand = async (input, context) => {
360
262
  Tags: (_) => (0, smithy_client_1._json)(_),
361
263
  Type: [],
362
264
  }));
363
- return new protocol_http_1.HttpRequest({
364
- protocol,
365
- hostname,
366
- port,
367
- method: "POST",
368
- headers,
369
- path: resolvedPath,
370
- body,
371
- });
265
+ b.m("POST").h(headers).b(body);
266
+ return b.build();
372
267
  };
373
268
  exports.se_CreateWirelessDeviceCommand = se_CreateWirelessDeviceCommand;
374
269
  const se_CreateWirelessGatewayCommand = async (input, context) => {
375
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
270
+ const b = (0, core_1.requestBuilder)(input, context);
376
271
  const headers = {
377
272
  "content-type": "application/json",
378
273
  };
379
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways";
274
+ b.bp("/wireless-gateways");
380
275
  let body;
381
276
  body = JSON.stringify((0, smithy_client_1.take)(input, {
382
277
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -385,45 +280,31 @@ const se_CreateWirelessGatewayCommand = async (input, context) => {
385
280
  Name: [],
386
281
  Tags: (_) => (0, smithy_client_1._json)(_),
387
282
  }));
388
- return new protocol_http_1.HttpRequest({
389
- protocol,
390
- hostname,
391
- port,
392
- method: "POST",
393
- headers,
394
- path: resolvedPath,
395
- body,
396
- });
283
+ b.m("POST").h(headers).b(body);
284
+ return b.build();
397
285
  };
398
286
  exports.se_CreateWirelessGatewayCommand = se_CreateWirelessGatewayCommand;
399
287
  const se_CreateWirelessGatewayTaskCommand = async (input, context) => {
400
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
288
+ const b = (0, core_1.requestBuilder)(input, context);
401
289
  const headers = {
402
290
  "content-type": "application/json",
403
291
  };
404
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/tasks";
405
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
292
+ b.bp("/wireless-gateways/{Id}/tasks");
293
+ b.p("Id", () => input.Id, "{Id}", false);
406
294
  let body;
407
295
  body = JSON.stringify((0, smithy_client_1.take)(input, {
408
296
  WirelessGatewayTaskDefinitionId: [],
409
297
  }));
410
- return new protocol_http_1.HttpRequest({
411
- protocol,
412
- hostname,
413
- port,
414
- method: "POST",
415
- headers,
416
- path: resolvedPath,
417
- body,
418
- });
298
+ b.m("POST").h(headers).b(body);
299
+ return b.build();
419
300
  };
420
301
  exports.se_CreateWirelessGatewayTaskCommand = se_CreateWirelessGatewayTaskCommand;
421
302
  const se_CreateWirelessGatewayTaskDefinitionCommand = async (input, context) => {
422
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
303
+ const b = (0, core_1.requestBuilder)(input, context);
423
304
  const headers = {
424
305
  "content-type": "application/json",
425
306
  };
426
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions";
307
+ b.bp("/wireless-gateway-task-definitions");
427
308
  let body;
428
309
  body = JSON.stringify((0, smithy_client_1.take)(input, {
429
310
  AutoCreateTasks: [],
@@ -432,588 +313,352 @@ const se_CreateWirelessGatewayTaskDefinitionCommand = async (input, context) =>
432
313
  Tags: (_) => (0, smithy_client_1._json)(_),
433
314
  Update: (_) => (0, smithy_client_1._json)(_),
434
315
  }));
435
- return new protocol_http_1.HttpRequest({
436
- protocol,
437
- hostname,
438
- port,
439
- method: "POST",
440
- headers,
441
- path: resolvedPath,
442
- body,
443
- });
316
+ b.m("POST").h(headers).b(body);
317
+ return b.build();
444
318
  };
445
319
  exports.se_CreateWirelessGatewayTaskDefinitionCommand = se_CreateWirelessGatewayTaskDefinitionCommand;
446
320
  const se_DeleteDestinationCommand = async (input, context) => {
447
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
321
+ const b = (0, core_1.requestBuilder)(input, context);
448
322
  const headers = {};
449
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{Name}";
450
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
323
+ b.bp("/destinations/{Name}");
324
+ b.p("Name", () => input.Name, "{Name}", false);
451
325
  let body;
452
- return new protocol_http_1.HttpRequest({
453
- protocol,
454
- hostname,
455
- port,
456
- method: "DELETE",
457
- headers,
458
- path: resolvedPath,
459
- body,
460
- });
326
+ b.m("DELETE").h(headers).b(body);
327
+ return b.build();
461
328
  };
462
329
  exports.se_DeleteDestinationCommand = se_DeleteDestinationCommand;
463
330
  const se_DeleteDeviceProfileCommand = async (input, context) => {
464
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
331
+ const b = (0, core_1.requestBuilder)(input, context);
465
332
  const headers = {};
466
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles/{Id}";
467
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
333
+ b.bp("/device-profiles/{Id}");
334
+ b.p("Id", () => input.Id, "{Id}", false);
468
335
  let body;
469
- return new protocol_http_1.HttpRequest({
470
- protocol,
471
- hostname,
472
- port,
473
- method: "DELETE",
474
- headers,
475
- path: resolvedPath,
476
- body,
477
- });
336
+ b.m("DELETE").h(headers).b(body);
337
+ return b.build();
478
338
  };
479
339
  exports.se_DeleteDeviceProfileCommand = se_DeleteDeviceProfileCommand;
480
340
  const se_DeleteFuotaTaskCommand = async (input, context) => {
481
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
341
+ const b = (0, core_1.requestBuilder)(input, context);
482
342
  const headers = {};
483
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}";
484
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
343
+ b.bp("/fuota-tasks/{Id}");
344
+ b.p("Id", () => input.Id, "{Id}", false);
485
345
  let body;
486
- return new protocol_http_1.HttpRequest({
487
- protocol,
488
- hostname,
489
- port,
490
- method: "DELETE",
491
- headers,
492
- path: resolvedPath,
493
- body,
494
- });
346
+ b.m("DELETE").h(headers).b(body);
347
+ return b.build();
495
348
  };
496
349
  exports.se_DeleteFuotaTaskCommand = se_DeleteFuotaTaskCommand;
497
350
  const se_DeleteMulticastGroupCommand = async (input, context) => {
498
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
351
+ const b = (0, core_1.requestBuilder)(input, context);
499
352
  const headers = {};
500
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}";
501
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
353
+ b.bp("/multicast-groups/{Id}");
354
+ b.p("Id", () => input.Id, "{Id}", false);
502
355
  let body;
503
- return new protocol_http_1.HttpRequest({
504
- protocol,
505
- hostname,
506
- port,
507
- method: "DELETE",
508
- headers,
509
- path: resolvedPath,
510
- body,
511
- });
356
+ b.m("DELETE").h(headers).b(body);
357
+ return b.build();
512
358
  };
513
359
  exports.se_DeleteMulticastGroupCommand = se_DeleteMulticastGroupCommand;
514
360
  const se_DeleteNetworkAnalyzerConfigurationCommand = async (input, context) => {
515
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
361
+ const b = (0, core_1.requestBuilder)(input, context);
516
362
  const headers = {};
517
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
518
- "/network-analyzer-configurations/{ConfigurationName}";
519
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationName", () => input.ConfigurationName, "{ConfigurationName}", false);
363
+ b.bp("/network-analyzer-configurations/{ConfigurationName}");
364
+ b.p("ConfigurationName", () => input.ConfigurationName, "{ConfigurationName}", false);
520
365
  let body;
521
- return new protocol_http_1.HttpRequest({
522
- protocol,
523
- hostname,
524
- port,
525
- method: "DELETE",
526
- headers,
527
- path: resolvedPath,
528
- body,
529
- });
366
+ b.m("DELETE").h(headers).b(body);
367
+ return b.build();
530
368
  };
531
369
  exports.se_DeleteNetworkAnalyzerConfigurationCommand = se_DeleteNetworkAnalyzerConfigurationCommand;
532
370
  const se_DeleteQueuedMessagesCommand = async (input, context) => {
533
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
371
+ const b = (0, core_1.requestBuilder)(input, context);
534
372
  const headers = {};
535
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data";
536
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
373
+ b.bp("/wireless-devices/{Id}/data");
374
+ b.p("Id", () => input.Id, "{Id}", false);
537
375
  const query = (0, smithy_client_1.map)({
538
- messageId: [, (0, smithy_client_1.expectNonNull)(input.MessageId, `MessageId`)],
539
- WirelessDeviceType: [, input.WirelessDeviceType],
376
+ [_mI]: [, (0, smithy_client_1.expectNonNull)(input[_MI], `MessageId`)],
377
+ [_WDT]: [, input[_WDT]],
540
378
  });
541
379
  let body;
542
- return new protocol_http_1.HttpRequest({
543
- protocol,
544
- hostname,
545
- port,
546
- method: "DELETE",
547
- headers,
548
- path: resolvedPath,
549
- query,
550
- body,
551
- });
380
+ b.m("DELETE").h(headers).q(query).b(body);
381
+ return b.build();
552
382
  };
553
383
  exports.se_DeleteQueuedMessagesCommand = se_DeleteQueuedMessagesCommand;
554
384
  const se_DeleteServiceProfileCommand = async (input, context) => {
555
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
385
+ const b = (0, core_1.requestBuilder)(input, context);
556
386
  const headers = {};
557
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles/{Id}";
558
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
387
+ b.bp("/service-profiles/{Id}");
388
+ b.p("Id", () => input.Id, "{Id}", false);
559
389
  let body;
560
- return new protocol_http_1.HttpRequest({
561
- protocol,
562
- hostname,
563
- port,
564
- method: "DELETE",
565
- headers,
566
- path: resolvedPath,
567
- body,
568
- });
390
+ b.m("DELETE").h(headers).b(body);
391
+ return b.build();
569
392
  };
570
393
  exports.se_DeleteServiceProfileCommand = se_DeleteServiceProfileCommand;
571
394
  const se_DeleteWirelessDeviceCommand = async (input, context) => {
572
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
395
+ const b = (0, core_1.requestBuilder)(input, context);
573
396
  const headers = {};
574
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}";
575
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
397
+ b.bp("/wireless-devices/{Id}");
398
+ b.p("Id", () => input.Id, "{Id}", false);
576
399
  let body;
577
- return new protocol_http_1.HttpRequest({
578
- protocol,
579
- hostname,
580
- port,
581
- method: "DELETE",
582
- headers,
583
- path: resolvedPath,
584
- body,
585
- });
400
+ b.m("DELETE").h(headers).b(body);
401
+ return b.build();
586
402
  };
587
403
  exports.se_DeleteWirelessDeviceCommand = se_DeleteWirelessDeviceCommand;
588
404
  const se_DeleteWirelessDeviceImportTaskCommand = async (input, context) => {
589
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
405
+ const b = (0, core_1.requestBuilder)(input, context);
590
406
  const headers = {};
591
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task/{Id}";
592
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
407
+ b.bp("/wireless_device_import_task/{Id}");
408
+ b.p("Id", () => input.Id, "{Id}", false);
593
409
  let body;
594
- return new protocol_http_1.HttpRequest({
595
- protocol,
596
- hostname,
597
- port,
598
- method: "DELETE",
599
- headers,
600
- path: resolvedPath,
601
- body,
602
- });
410
+ b.m("DELETE").h(headers).b(body);
411
+ return b.build();
603
412
  };
604
413
  exports.se_DeleteWirelessDeviceImportTaskCommand = se_DeleteWirelessDeviceImportTaskCommand;
605
414
  const se_DeleteWirelessGatewayCommand = async (input, context) => {
606
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
415
+ const b = (0, core_1.requestBuilder)(input, context);
607
416
  const headers = {};
608
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}";
609
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
417
+ b.bp("/wireless-gateways/{Id}");
418
+ b.p("Id", () => input.Id, "{Id}", false);
610
419
  let body;
611
- return new protocol_http_1.HttpRequest({
612
- protocol,
613
- hostname,
614
- port,
615
- method: "DELETE",
616
- headers,
617
- path: resolvedPath,
618
- body,
619
- });
420
+ b.m("DELETE").h(headers).b(body);
421
+ return b.build();
620
422
  };
621
423
  exports.se_DeleteWirelessGatewayCommand = se_DeleteWirelessGatewayCommand;
622
424
  const se_DeleteWirelessGatewayTaskCommand = async (input, context) => {
623
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
425
+ const b = (0, core_1.requestBuilder)(input, context);
624
426
  const headers = {};
625
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/tasks";
626
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
427
+ b.bp("/wireless-gateways/{Id}/tasks");
428
+ b.p("Id", () => input.Id, "{Id}", false);
627
429
  let body;
628
- return new protocol_http_1.HttpRequest({
629
- protocol,
630
- hostname,
631
- port,
632
- method: "DELETE",
633
- headers,
634
- path: resolvedPath,
635
- body,
636
- });
430
+ b.m("DELETE").h(headers).b(body);
431
+ return b.build();
637
432
  };
638
433
  exports.se_DeleteWirelessGatewayTaskCommand = se_DeleteWirelessGatewayTaskCommand;
639
434
  const se_DeleteWirelessGatewayTaskDefinitionCommand = async (input, context) => {
640
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
435
+ const b = (0, core_1.requestBuilder)(input, context);
641
436
  const headers = {};
642
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions/{Id}";
643
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
437
+ b.bp("/wireless-gateway-task-definitions/{Id}");
438
+ b.p("Id", () => input.Id, "{Id}", false);
644
439
  let body;
645
- return new protocol_http_1.HttpRequest({
646
- protocol,
647
- hostname,
648
- port,
649
- method: "DELETE",
650
- headers,
651
- path: resolvedPath,
652
- body,
653
- });
440
+ b.m("DELETE").h(headers).b(body);
441
+ return b.build();
654
442
  };
655
443
  exports.se_DeleteWirelessGatewayTaskDefinitionCommand = se_DeleteWirelessGatewayTaskDefinitionCommand;
656
444
  const se_DeregisterWirelessDeviceCommand = async (input, context) => {
657
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
445
+ const b = (0, core_1.requestBuilder)(input, context);
658
446
  const headers = {};
659
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Identifier}/deregister";
660
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
447
+ b.bp("/wireless-devices/{Identifier}/deregister");
448
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
661
449
  const query = (0, smithy_client_1.map)({
662
- WirelessDeviceType: [, input.WirelessDeviceType],
450
+ [_WDT]: [, input[_WDT]],
663
451
  });
664
452
  let body;
665
- return new protocol_http_1.HttpRequest({
666
- protocol,
667
- hostname,
668
- port,
669
- method: "PATCH",
670
- headers,
671
- path: resolvedPath,
672
- query,
673
- body,
674
- });
453
+ b.m("PATCH").h(headers).q(query).b(body);
454
+ return b.build();
675
455
  };
676
456
  exports.se_DeregisterWirelessDeviceCommand = se_DeregisterWirelessDeviceCommand;
677
457
  const se_DisassociateAwsAccountFromPartnerAccountCommand = async (input, context) => {
678
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
458
+ const b = (0, core_1.requestBuilder)(input, context);
679
459
  const headers = {};
680
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
681
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
460
+ b.bp("/partner-accounts/{PartnerAccountId}");
461
+ b.p("PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
682
462
  const query = (0, smithy_client_1.map)({
683
- partnerType: [, (0, smithy_client_1.expectNonNull)(input.PartnerType, `PartnerType`)],
463
+ [_pT]: [, (0, smithy_client_1.expectNonNull)(input[_PT], `PartnerType`)],
684
464
  });
685
465
  let body;
686
- return new protocol_http_1.HttpRequest({
687
- protocol,
688
- hostname,
689
- port,
690
- method: "DELETE",
691
- headers,
692
- path: resolvedPath,
693
- query,
694
- body,
695
- });
466
+ b.m("DELETE").h(headers).q(query).b(body);
467
+ return b.build();
696
468
  };
697
469
  exports.se_DisassociateAwsAccountFromPartnerAccountCommand = se_DisassociateAwsAccountFromPartnerAccountCommand;
698
470
  const se_DisassociateMulticastGroupFromFuotaTaskCommand = async (input, context) => {
699
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
471
+ const b = (0, core_1.requestBuilder)(input, context);
700
472
  const headers = {};
701
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
702
- "/fuota-tasks/{Id}/multicast-groups/{MulticastGroupId}";
703
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
704
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MulticastGroupId", () => input.MulticastGroupId, "{MulticastGroupId}", false);
473
+ b.bp("/fuota-tasks/{Id}/multicast-groups/{MulticastGroupId}");
474
+ b.p("Id", () => input.Id, "{Id}", false);
475
+ b.p("MulticastGroupId", () => input.MulticastGroupId, "{MulticastGroupId}", false);
705
476
  let body;
706
- return new protocol_http_1.HttpRequest({
707
- protocol,
708
- hostname,
709
- port,
710
- method: "DELETE",
711
- headers,
712
- path: resolvedPath,
713
- body,
714
- });
477
+ b.m("DELETE").h(headers).b(body);
478
+ return b.build();
715
479
  };
716
480
  exports.se_DisassociateMulticastGroupFromFuotaTaskCommand = se_DisassociateMulticastGroupFromFuotaTaskCommand;
717
481
  const se_DisassociateWirelessDeviceFromFuotaTaskCommand = async (input, context) => {
718
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
482
+ const b = (0, core_1.requestBuilder)(input, context);
719
483
  const headers = {};
720
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
721
- "/fuota-tasks/{Id}/wireless-devices/{WirelessDeviceId}";
722
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
723
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WirelessDeviceId", () => input.WirelessDeviceId, "{WirelessDeviceId}", false);
484
+ b.bp("/fuota-tasks/{Id}/wireless-devices/{WirelessDeviceId}");
485
+ b.p("Id", () => input.Id, "{Id}", false);
486
+ b.p("WirelessDeviceId", () => input.WirelessDeviceId, "{WirelessDeviceId}", false);
724
487
  let body;
725
- return new protocol_http_1.HttpRequest({
726
- protocol,
727
- hostname,
728
- port,
729
- method: "DELETE",
730
- headers,
731
- path: resolvedPath,
732
- body,
733
- });
488
+ b.m("DELETE").h(headers).b(body);
489
+ return b.build();
734
490
  };
735
491
  exports.se_DisassociateWirelessDeviceFromFuotaTaskCommand = se_DisassociateWirelessDeviceFromFuotaTaskCommand;
736
492
  const se_DisassociateWirelessDeviceFromMulticastGroupCommand = async (input, context) => {
737
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
493
+ const b = (0, core_1.requestBuilder)(input, context);
738
494
  const headers = {};
739
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
740
- "/multicast-groups/{Id}/wireless-devices/{WirelessDeviceId}";
741
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
742
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WirelessDeviceId", () => input.WirelessDeviceId, "{WirelessDeviceId}", false);
495
+ b.bp("/multicast-groups/{Id}/wireless-devices/{WirelessDeviceId}");
496
+ b.p("Id", () => input.Id, "{Id}", false);
497
+ b.p("WirelessDeviceId", () => input.WirelessDeviceId, "{WirelessDeviceId}", false);
743
498
  let body;
744
- return new protocol_http_1.HttpRequest({
745
- protocol,
746
- hostname,
747
- port,
748
- method: "DELETE",
749
- headers,
750
- path: resolvedPath,
751
- body,
752
- });
499
+ b.m("DELETE").h(headers).b(body);
500
+ return b.build();
753
501
  };
754
502
  exports.se_DisassociateWirelessDeviceFromMulticastGroupCommand = se_DisassociateWirelessDeviceFromMulticastGroupCommand;
755
503
  const se_DisassociateWirelessDeviceFromThingCommand = async (input, context) => {
756
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
504
+ const b = (0, core_1.requestBuilder)(input, context);
757
505
  const headers = {};
758
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/thing";
759
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
506
+ b.bp("/wireless-devices/{Id}/thing");
507
+ b.p("Id", () => input.Id, "{Id}", false);
760
508
  let body;
761
- return new protocol_http_1.HttpRequest({
762
- protocol,
763
- hostname,
764
- port,
765
- method: "DELETE",
766
- headers,
767
- path: resolvedPath,
768
- body,
769
- });
509
+ b.m("DELETE").h(headers).b(body);
510
+ return b.build();
770
511
  };
771
512
  exports.se_DisassociateWirelessDeviceFromThingCommand = se_DisassociateWirelessDeviceFromThingCommand;
772
513
  const se_DisassociateWirelessGatewayFromCertificateCommand = async (input, context) => {
773
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
514
+ const b = (0, core_1.requestBuilder)(input, context);
774
515
  const headers = {};
775
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/certificate";
776
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
516
+ b.bp("/wireless-gateways/{Id}/certificate");
517
+ b.p("Id", () => input.Id, "{Id}", false);
777
518
  let body;
778
- return new protocol_http_1.HttpRequest({
779
- protocol,
780
- hostname,
781
- port,
782
- method: "DELETE",
783
- headers,
784
- path: resolvedPath,
785
- body,
786
- });
519
+ b.m("DELETE").h(headers).b(body);
520
+ return b.build();
787
521
  };
788
522
  exports.se_DisassociateWirelessGatewayFromCertificateCommand = se_DisassociateWirelessGatewayFromCertificateCommand;
789
523
  const se_DisassociateWirelessGatewayFromThingCommand = async (input, context) => {
790
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
524
+ const b = (0, core_1.requestBuilder)(input, context);
791
525
  const headers = {};
792
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/thing";
793
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
526
+ b.bp("/wireless-gateways/{Id}/thing");
527
+ b.p("Id", () => input.Id, "{Id}", false);
794
528
  let body;
795
- return new protocol_http_1.HttpRequest({
796
- protocol,
797
- hostname,
798
- port,
799
- method: "DELETE",
800
- headers,
801
- path: resolvedPath,
802
- body,
803
- });
529
+ b.m("DELETE").h(headers).b(body);
530
+ return b.build();
804
531
  };
805
532
  exports.se_DisassociateWirelessGatewayFromThingCommand = se_DisassociateWirelessGatewayFromThingCommand;
806
533
  const se_GetDestinationCommand = async (input, context) => {
807
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
534
+ const b = (0, core_1.requestBuilder)(input, context);
808
535
  const headers = {};
809
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{Name}";
810
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
536
+ b.bp("/destinations/{Name}");
537
+ b.p("Name", () => input.Name, "{Name}", false);
811
538
  let body;
812
- return new protocol_http_1.HttpRequest({
813
- protocol,
814
- hostname,
815
- port,
816
- method: "GET",
817
- headers,
818
- path: resolvedPath,
819
- body,
820
- });
539
+ b.m("GET").h(headers).b(body);
540
+ return b.build();
821
541
  };
822
542
  exports.se_GetDestinationCommand = se_GetDestinationCommand;
823
543
  const se_GetDeviceProfileCommand = async (input, context) => {
824
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
544
+ const b = (0, core_1.requestBuilder)(input, context);
825
545
  const headers = {};
826
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles/{Id}";
827
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
546
+ b.bp("/device-profiles/{Id}");
547
+ b.p("Id", () => input.Id, "{Id}", false);
828
548
  let body;
829
- return new protocol_http_1.HttpRequest({
830
- protocol,
831
- hostname,
832
- port,
833
- method: "GET",
834
- headers,
835
- path: resolvedPath,
836
- body,
837
- });
549
+ b.m("GET").h(headers).b(body);
550
+ return b.build();
838
551
  };
839
552
  exports.se_GetDeviceProfileCommand = se_GetDeviceProfileCommand;
840
553
  const se_GetEventConfigurationByResourceTypesCommand = async (input, context) => {
841
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
554
+ const b = (0, core_1.requestBuilder)(input, context);
842
555
  const headers = {
843
556
  "content-type": "application/json",
844
557
  };
845
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations-resource-types";
558
+ b.bp("/event-configurations-resource-types");
846
559
  let body;
847
560
  body = "";
848
- return new protocol_http_1.HttpRequest({
849
- protocol,
850
- hostname,
851
- port,
852
- method: "GET",
853
- headers,
854
- path: resolvedPath,
855
- body,
856
- });
561
+ b.m("GET").h(headers).b(body);
562
+ return b.build();
857
563
  };
858
564
  exports.se_GetEventConfigurationByResourceTypesCommand = se_GetEventConfigurationByResourceTypesCommand;
859
565
  const se_GetFuotaTaskCommand = async (input, context) => {
860
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
566
+ const b = (0, core_1.requestBuilder)(input, context);
861
567
  const headers = {};
862
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}";
863
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
568
+ b.bp("/fuota-tasks/{Id}");
569
+ b.p("Id", () => input.Id, "{Id}", false);
864
570
  let body;
865
- return new protocol_http_1.HttpRequest({
866
- protocol,
867
- hostname,
868
- port,
869
- method: "GET",
870
- headers,
871
- path: resolvedPath,
872
- body,
873
- });
571
+ b.m("GET").h(headers).b(body);
572
+ return b.build();
874
573
  };
875
574
  exports.se_GetFuotaTaskCommand = se_GetFuotaTaskCommand;
876
575
  const se_GetLogLevelsByResourceTypesCommand = async (input, context) => {
877
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
576
+ const b = (0, core_1.requestBuilder)(input, context);
878
577
  const headers = {
879
578
  "content-type": "application/json",
880
579
  };
881
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels";
580
+ b.bp("/log-levels");
882
581
  let body;
883
582
  body = "";
884
- return new protocol_http_1.HttpRequest({
885
- protocol,
886
- hostname,
887
- port,
888
- method: "GET",
889
- headers,
890
- path: resolvedPath,
891
- body,
892
- });
583
+ b.m("GET").h(headers).b(body);
584
+ return b.build();
893
585
  };
894
586
  exports.se_GetLogLevelsByResourceTypesCommand = se_GetLogLevelsByResourceTypesCommand;
895
587
  const se_GetMulticastGroupCommand = async (input, context) => {
896
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
588
+ const b = (0, core_1.requestBuilder)(input, context);
897
589
  const headers = {};
898
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}";
899
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
590
+ b.bp("/multicast-groups/{Id}");
591
+ b.p("Id", () => input.Id, "{Id}", false);
900
592
  let body;
901
- return new protocol_http_1.HttpRequest({
902
- protocol,
903
- hostname,
904
- port,
905
- method: "GET",
906
- headers,
907
- path: resolvedPath,
908
- body,
909
- });
593
+ b.m("GET").h(headers).b(body);
594
+ return b.build();
910
595
  };
911
596
  exports.se_GetMulticastGroupCommand = se_GetMulticastGroupCommand;
912
597
  const se_GetMulticastGroupSessionCommand = async (input, context) => {
913
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
598
+ const b = (0, core_1.requestBuilder)(input, context);
914
599
  const headers = {};
915
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/session";
916
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
600
+ b.bp("/multicast-groups/{Id}/session");
601
+ b.p("Id", () => input.Id, "{Id}", false);
917
602
  let body;
918
- return new protocol_http_1.HttpRequest({
919
- protocol,
920
- hostname,
921
- port,
922
- method: "GET",
923
- headers,
924
- path: resolvedPath,
925
- body,
926
- });
603
+ b.m("GET").h(headers).b(body);
604
+ return b.build();
927
605
  };
928
606
  exports.se_GetMulticastGroupSessionCommand = se_GetMulticastGroupSessionCommand;
929
607
  const se_GetNetworkAnalyzerConfigurationCommand = async (input, context) => {
930
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
608
+ const b = (0, core_1.requestBuilder)(input, context);
931
609
  const headers = {};
932
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
933
- "/network-analyzer-configurations/{ConfigurationName}";
934
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationName", () => input.ConfigurationName, "{ConfigurationName}", false);
610
+ b.bp("/network-analyzer-configurations/{ConfigurationName}");
611
+ b.p("ConfigurationName", () => input.ConfigurationName, "{ConfigurationName}", false);
935
612
  let body;
936
- return new protocol_http_1.HttpRequest({
937
- protocol,
938
- hostname,
939
- port,
940
- method: "GET",
941
- headers,
942
- path: resolvedPath,
943
- body,
944
- });
613
+ b.m("GET").h(headers).b(body);
614
+ return b.build();
945
615
  };
946
616
  exports.se_GetNetworkAnalyzerConfigurationCommand = se_GetNetworkAnalyzerConfigurationCommand;
947
617
  const se_GetPartnerAccountCommand = async (input, context) => {
948
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
618
+ const b = (0, core_1.requestBuilder)(input, context);
949
619
  const headers = {};
950
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
951
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
620
+ b.bp("/partner-accounts/{PartnerAccountId}");
621
+ b.p("PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
952
622
  const query = (0, smithy_client_1.map)({
953
- partnerType: [, (0, smithy_client_1.expectNonNull)(input.PartnerType, `PartnerType`)],
623
+ [_pT]: [, (0, smithy_client_1.expectNonNull)(input[_PT], `PartnerType`)],
954
624
  });
955
625
  let body;
956
- return new protocol_http_1.HttpRequest({
957
- protocol,
958
- hostname,
959
- port,
960
- method: "GET",
961
- headers,
962
- path: resolvedPath,
963
- query,
964
- body,
965
- });
626
+ b.m("GET").h(headers).q(query).b(body);
627
+ return b.build();
966
628
  };
967
629
  exports.se_GetPartnerAccountCommand = se_GetPartnerAccountCommand;
968
630
  const se_GetPositionCommand = async (input, context) => {
969
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
631
+ const b = (0, core_1.requestBuilder)(input, context);
970
632
  const headers = {};
971
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
972
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
633
+ b.bp("/positions/{ResourceIdentifier}");
634
+ b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
973
635
  const query = (0, smithy_client_1.map)({
974
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
636
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_RT], `ResourceType`)],
975
637
  });
976
638
  let body;
977
- return new protocol_http_1.HttpRequest({
978
- protocol,
979
- hostname,
980
- port,
981
- method: "GET",
982
- headers,
983
- path: resolvedPath,
984
- query,
985
- body,
986
- });
639
+ b.m("GET").h(headers).q(query).b(body);
640
+ return b.build();
987
641
  };
988
642
  exports.se_GetPositionCommand = se_GetPositionCommand;
989
643
  const se_GetPositionConfigurationCommand = async (input, context) => {
990
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
644
+ const b = (0, core_1.requestBuilder)(input, context);
991
645
  const headers = {};
992
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
993
- "/position-configurations/{ResourceIdentifier}";
994
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
646
+ b.bp("/position-configurations/{ResourceIdentifier}");
647
+ b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
995
648
  const query = (0, smithy_client_1.map)({
996
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
649
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_RT], `ResourceType`)],
997
650
  });
998
651
  let body;
999
- return new protocol_http_1.HttpRequest({
1000
- protocol,
1001
- hostname,
1002
- port,
1003
- method: "GET",
1004
- headers,
1005
- path: resolvedPath,
1006
- query,
1007
- body,
1008
- });
652
+ b.m("GET").h(headers).q(query).b(body);
653
+ return b.build();
1009
654
  };
1010
655
  exports.se_GetPositionConfigurationCommand = se_GetPositionConfigurationCommand;
1011
656
  const se_GetPositionEstimateCommand = async (input, context) => {
1012
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
657
+ const b = (0, core_1.requestBuilder)(input, context);
1013
658
  const headers = {
1014
659
  "content-type": "application/json",
1015
660
  };
1016
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/position-estimate";
661
+ b.bp("/position-estimate");
1017
662
  let body;
1018
663
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1019
664
  CellTowers: (_) => se_CellTowers(_, context),
@@ -1022,890 +667,566 @@ const se_GetPositionEstimateCommand = async (input, context) => {
1022
667
  Timestamp: (_) => Math.round(_.getTime() / 1000),
1023
668
  WiFiAccessPoints: (_) => (0, smithy_client_1._json)(_),
1024
669
  }));
1025
- return new protocol_http_1.HttpRequest({
1026
- protocol,
1027
- hostname,
1028
- port,
1029
- method: "POST",
1030
- headers,
1031
- path: resolvedPath,
1032
- body,
1033
- });
670
+ b.m("POST").h(headers).b(body);
671
+ return b.build();
1034
672
  };
1035
673
  exports.se_GetPositionEstimateCommand = se_GetPositionEstimateCommand;
1036
674
  const se_GetResourceEventConfigurationCommand = async (input, context) => {
1037
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
675
+ const b = (0, core_1.requestBuilder)(input, context);
1038
676
  const headers = {};
1039
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations/{Identifier}";
1040
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
677
+ b.bp("/event-configurations/{Identifier}");
678
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
1041
679
  const query = (0, smithy_client_1.map)({
1042
- identifierType: [, (0, smithy_client_1.expectNonNull)(input.IdentifierType, `IdentifierType`)],
1043
- partnerType: [, input.PartnerType],
680
+ [_iT]: [, (0, smithy_client_1.expectNonNull)(input[_IT], `IdentifierType`)],
681
+ [_pT]: [, input[_PT]],
1044
682
  });
1045
683
  let body;
1046
- return new protocol_http_1.HttpRequest({
1047
- protocol,
1048
- hostname,
1049
- port,
1050
- method: "GET",
1051
- headers,
1052
- path: resolvedPath,
1053
- query,
1054
- body,
1055
- });
684
+ b.m("GET").h(headers).q(query).b(body);
685
+ return b.build();
1056
686
  };
1057
687
  exports.se_GetResourceEventConfigurationCommand = se_GetResourceEventConfigurationCommand;
1058
688
  const se_GetResourceLogLevelCommand = async (input, context) => {
1059
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
689
+ const b = (0, core_1.requestBuilder)(input, context);
1060
690
  const headers = {};
1061
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
1062
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
691
+ b.bp("/log-levels/{ResourceIdentifier}");
692
+ b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1063
693
  const query = (0, smithy_client_1.map)({
1064
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
694
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_RT], `ResourceType`)],
1065
695
  });
1066
696
  let body;
1067
- return new protocol_http_1.HttpRequest({
1068
- protocol,
1069
- hostname,
1070
- port,
1071
- method: "GET",
1072
- headers,
1073
- path: resolvedPath,
1074
- query,
1075
- body,
1076
- });
697
+ b.m("GET").h(headers).q(query).b(body);
698
+ return b.build();
1077
699
  };
1078
700
  exports.se_GetResourceLogLevelCommand = se_GetResourceLogLevelCommand;
1079
701
  const se_GetResourcePositionCommand = async (input, context) => {
1080
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
702
+ const b = (0, core_1.requestBuilder)(input, context);
1081
703
  const headers = {};
1082
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-positions/{ResourceIdentifier}";
1083
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
704
+ b.bp("/resource-positions/{ResourceIdentifier}");
705
+ b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1084
706
  const query = (0, smithy_client_1.map)({
1085
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
707
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_RT], `ResourceType`)],
1086
708
  });
1087
709
  let body;
1088
- return new protocol_http_1.HttpRequest({
1089
- protocol,
1090
- hostname,
1091
- port,
1092
- method: "GET",
1093
- headers,
1094
- path: resolvedPath,
1095
- query,
1096
- body,
1097
- });
710
+ b.m("GET").h(headers).q(query).b(body);
711
+ return b.build();
1098
712
  };
1099
713
  exports.se_GetResourcePositionCommand = se_GetResourcePositionCommand;
1100
714
  const se_GetServiceEndpointCommand = async (input, context) => {
1101
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
715
+ const b = (0, core_1.requestBuilder)(input, context);
1102
716
  const headers = {};
1103
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-endpoint";
717
+ b.bp("/service-endpoint");
1104
718
  const query = (0, smithy_client_1.map)({
1105
- serviceType: [, input.ServiceType],
719
+ [_sT]: [, input[_ST]],
1106
720
  });
1107
721
  let body;
1108
- return new protocol_http_1.HttpRequest({
1109
- protocol,
1110
- hostname,
1111
- port,
1112
- method: "GET",
1113
- headers,
1114
- path: resolvedPath,
1115
- query,
1116
- body,
1117
- });
722
+ b.m("GET").h(headers).q(query).b(body);
723
+ return b.build();
1118
724
  };
1119
725
  exports.se_GetServiceEndpointCommand = se_GetServiceEndpointCommand;
1120
726
  const se_GetServiceProfileCommand = async (input, context) => {
1121
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
727
+ const b = (0, core_1.requestBuilder)(input, context);
1122
728
  const headers = {};
1123
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles/{Id}";
1124
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
729
+ b.bp("/service-profiles/{Id}");
730
+ b.p("Id", () => input.Id, "{Id}", false);
1125
731
  let body;
1126
- return new protocol_http_1.HttpRequest({
1127
- protocol,
1128
- hostname,
1129
- port,
1130
- method: "GET",
1131
- headers,
1132
- path: resolvedPath,
1133
- body,
1134
- });
732
+ b.m("GET").h(headers).b(body);
733
+ return b.build();
1135
734
  };
1136
735
  exports.se_GetServiceProfileCommand = se_GetServiceProfileCommand;
1137
736
  const se_GetWirelessDeviceCommand = async (input, context) => {
1138
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
737
+ const b = (0, core_1.requestBuilder)(input, context);
1139
738
  const headers = {};
1140
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Identifier}";
1141
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
739
+ b.bp("/wireless-devices/{Identifier}");
740
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
1142
741
  const query = (0, smithy_client_1.map)({
1143
- identifierType: [, (0, smithy_client_1.expectNonNull)(input.IdentifierType, `IdentifierType`)],
742
+ [_iT]: [, (0, smithy_client_1.expectNonNull)(input[_IT], `IdentifierType`)],
1144
743
  });
1145
744
  let body;
1146
- return new protocol_http_1.HttpRequest({
1147
- protocol,
1148
- hostname,
1149
- port,
1150
- method: "GET",
1151
- headers,
1152
- path: resolvedPath,
1153
- query,
1154
- body,
1155
- });
745
+ b.m("GET").h(headers).q(query).b(body);
746
+ return b.build();
1156
747
  };
1157
748
  exports.se_GetWirelessDeviceCommand = se_GetWirelessDeviceCommand;
1158
749
  const se_GetWirelessDeviceImportTaskCommand = async (input, context) => {
1159
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
750
+ const b = (0, core_1.requestBuilder)(input, context);
1160
751
  const headers = {};
1161
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task/{Id}";
1162
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
752
+ b.bp("/wireless_device_import_task/{Id}");
753
+ b.p("Id", () => input.Id, "{Id}", false);
1163
754
  let body;
1164
- return new protocol_http_1.HttpRequest({
1165
- protocol,
1166
- hostname,
1167
- port,
1168
- method: "GET",
1169
- headers,
1170
- path: resolvedPath,
1171
- body,
1172
- });
755
+ b.m("GET").h(headers).b(body);
756
+ return b.build();
1173
757
  };
1174
758
  exports.se_GetWirelessDeviceImportTaskCommand = se_GetWirelessDeviceImportTaskCommand;
1175
759
  const se_GetWirelessDeviceStatisticsCommand = async (input, context) => {
1176
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
760
+ const b = (0, core_1.requestBuilder)(input, context);
1177
761
  const headers = {};
1178
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1179
- "/wireless-devices/{WirelessDeviceId}/statistics";
1180
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WirelessDeviceId", () => input.WirelessDeviceId, "{WirelessDeviceId}", false);
762
+ b.bp("/wireless-devices/{WirelessDeviceId}/statistics");
763
+ b.p("WirelessDeviceId", () => input.WirelessDeviceId, "{WirelessDeviceId}", false);
1181
764
  let body;
1182
- return new protocol_http_1.HttpRequest({
1183
- protocol,
1184
- hostname,
1185
- port,
1186
- method: "GET",
1187
- headers,
1188
- path: resolvedPath,
1189
- body,
1190
- });
765
+ b.m("GET").h(headers).b(body);
766
+ return b.build();
1191
767
  };
1192
768
  exports.se_GetWirelessDeviceStatisticsCommand = se_GetWirelessDeviceStatisticsCommand;
1193
769
  const se_GetWirelessGatewayCommand = async (input, context) => {
1194
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
770
+ const b = (0, core_1.requestBuilder)(input, context);
1195
771
  const headers = {};
1196
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Identifier}";
1197
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
772
+ b.bp("/wireless-gateways/{Identifier}");
773
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
1198
774
  const query = (0, smithy_client_1.map)({
1199
- identifierType: [, (0, smithy_client_1.expectNonNull)(input.IdentifierType, `IdentifierType`)],
775
+ [_iT]: [, (0, smithy_client_1.expectNonNull)(input[_IT], `IdentifierType`)],
1200
776
  });
1201
777
  let body;
1202
- return new protocol_http_1.HttpRequest({
1203
- protocol,
1204
- hostname,
1205
- port,
1206
- method: "GET",
1207
- headers,
1208
- path: resolvedPath,
1209
- query,
1210
- body,
1211
- });
778
+ b.m("GET").h(headers).q(query).b(body);
779
+ return b.build();
1212
780
  };
1213
781
  exports.se_GetWirelessGatewayCommand = se_GetWirelessGatewayCommand;
1214
782
  const se_GetWirelessGatewayCertificateCommand = async (input, context) => {
1215
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
783
+ const b = (0, core_1.requestBuilder)(input, context);
1216
784
  const headers = {};
1217
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/certificate";
1218
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
785
+ b.bp("/wireless-gateways/{Id}/certificate");
786
+ b.p("Id", () => input.Id, "{Id}", false);
1219
787
  let body;
1220
- return new protocol_http_1.HttpRequest({
1221
- protocol,
1222
- hostname,
1223
- port,
1224
- method: "GET",
1225
- headers,
1226
- path: resolvedPath,
1227
- body,
1228
- });
788
+ b.m("GET").h(headers).b(body);
789
+ return b.build();
1229
790
  };
1230
791
  exports.se_GetWirelessGatewayCertificateCommand = se_GetWirelessGatewayCertificateCommand;
1231
792
  const se_GetWirelessGatewayFirmwareInformationCommand = async (input, context) => {
1232
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
793
+ const b = (0, core_1.requestBuilder)(input, context);
1233
794
  const headers = {};
1234
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1235
- "/wireless-gateways/{Id}/firmware-information";
1236
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
795
+ b.bp("/wireless-gateways/{Id}/firmware-information");
796
+ b.p("Id", () => input.Id, "{Id}", false);
1237
797
  let body;
1238
- return new protocol_http_1.HttpRequest({
1239
- protocol,
1240
- hostname,
1241
- port,
1242
- method: "GET",
1243
- headers,
1244
- path: resolvedPath,
1245
- body,
1246
- });
798
+ b.m("GET").h(headers).b(body);
799
+ return b.build();
1247
800
  };
1248
801
  exports.se_GetWirelessGatewayFirmwareInformationCommand = se_GetWirelessGatewayFirmwareInformationCommand;
1249
802
  const se_GetWirelessGatewayStatisticsCommand = async (input, context) => {
1250
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
803
+ const b = (0, core_1.requestBuilder)(input, context);
1251
804
  const headers = {};
1252
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1253
- "/wireless-gateways/{WirelessGatewayId}/statistics";
1254
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "WirelessGatewayId", () => input.WirelessGatewayId, "{WirelessGatewayId}", false);
805
+ b.bp("/wireless-gateways/{WirelessGatewayId}/statistics");
806
+ b.p("WirelessGatewayId", () => input.WirelessGatewayId, "{WirelessGatewayId}", false);
1255
807
  let body;
1256
- return new protocol_http_1.HttpRequest({
1257
- protocol,
1258
- hostname,
1259
- port,
1260
- method: "GET",
1261
- headers,
1262
- path: resolvedPath,
1263
- body,
1264
- });
808
+ b.m("GET").h(headers).b(body);
809
+ return b.build();
1265
810
  };
1266
811
  exports.se_GetWirelessGatewayStatisticsCommand = se_GetWirelessGatewayStatisticsCommand;
1267
812
  const se_GetWirelessGatewayTaskCommand = async (input, context) => {
1268
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
813
+ const b = (0, core_1.requestBuilder)(input, context);
1269
814
  const headers = {};
1270
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}/tasks";
1271
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
815
+ b.bp("/wireless-gateways/{Id}/tasks");
816
+ b.p("Id", () => input.Id, "{Id}", false);
1272
817
  let body;
1273
- return new protocol_http_1.HttpRequest({
1274
- protocol,
1275
- hostname,
1276
- port,
1277
- method: "GET",
1278
- headers,
1279
- path: resolvedPath,
1280
- body,
1281
- });
818
+ b.m("GET").h(headers).b(body);
819
+ return b.build();
1282
820
  };
1283
821
  exports.se_GetWirelessGatewayTaskCommand = se_GetWirelessGatewayTaskCommand;
1284
822
  const se_GetWirelessGatewayTaskDefinitionCommand = async (input, context) => {
1285
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
823
+ const b = (0, core_1.requestBuilder)(input, context);
1286
824
  const headers = {};
1287
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions/{Id}";
1288
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
825
+ b.bp("/wireless-gateway-task-definitions/{Id}");
826
+ b.p("Id", () => input.Id, "{Id}", false);
1289
827
  let body;
1290
- return new protocol_http_1.HttpRequest({
1291
- protocol,
1292
- hostname,
1293
- port,
1294
- method: "GET",
1295
- headers,
1296
- path: resolvedPath,
1297
- body,
1298
- });
828
+ b.m("GET").h(headers).b(body);
829
+ return b.build();
1299
830
  };
1300
831
  exports.se_GetWirelessGatewayTaskDefinitionCommand = se_GetWirelessGatewayTaskDefinitionCommand;
1301
832
  const se_ListDestinationsCommand = async (input, context) => {
1302
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
833
+ const b = (0, core_1.requestBuilder)(input, context);
1303
834
  const headers = {};
1304
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations";
835
+ b.bp("/destinations");
1305
836
  const query = (0, smithy_client_1.map)({
1306
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1307
- nextToken: [, input.NextToken],
837
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
838
+ [_nT]: [, input[_NT]],
1308
839
  });
1309
840
  let body;
1310
- return new protocol_http_1.HttpRequest({
1311
- protocol,
1312
- hostname,
1313
- port,
1314
- method: "GET",
1315
- headers,
1316
- path: resolvedPath,
1317
- query,
1318
- body,
1319
- });
841
+ b.m("GET").h(headers).q(query).b(body);
842
+ return b.build();
1320
843
  };
1321
844
  exports.se_ListDestinationsCommand = se_ListDestinationsCommand;
1322
845
  const se_ListDeviceProfilesCommand = async (input, context) => {
1323
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
846
+ const b = (0, core_1.requestBuilder)(input, context);
1324
847
  const headers = {};
1325
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/device-profiles";
848
+ b.bp("/device-profiles");
1326
849
  const query = (0, smithy_client_1.map)({
1327
- nextToken: [, input.NextToken],
1328
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1329
- deviceProfileType: [, input.DeviceProfileType],
850
+ [_nT]: [, input[_NT]],
851
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
852
+ [_dPT]: [, input[_DPT]],
1330
853
  });
1331
854
  let body;
1332
- return new protocol_http_1.HttpRequest({
1333
- protocol,
1334
- hostname,
1335
- port,
1336
- method: "GET",
1337
- headers,
1338
- path: resolvedPath,
1339
- query,
1340
- body,
1341
- });
855
+ b.m("GET").h(headers).q(query).b(body);
856
+ return b.build();
1342
857
  };
1343
858
  exports.se_ListDeviceProfilesCommand = se_ListDeviceProfilesCommand;
1344
859
  const se_ListDevicesForWirelessDeviceImportTaskCommand = async (input, context) => {
1345
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
860
+ const b = (0, core_1.requestBuilder)(input, context);
1346
861
  const headers = {};
1347
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task";
862
+ b.bp("/wireless_device_import_task");
1348
863
  const query = (0, smithy_client_1.map)({
1349
- id: [, (0, smithy_client_1.expectNonNull)(input.Id, `Id`)],
1350
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1351
- nextToken: [, input.NextToken],
1352
- status: [, input.Status],
864
+ [_i]: [, (0, smithy_client_1.expectNonNull)(input[_I], `Id`)],
865
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
866
+ [_nT]: [, input[_NT]],
867
+ [_s]: [, input[_S]],
1353
868
  });
1354
869
  let body;
1355
- return new protocol_http_1.HttpRequest({
1356
- protocol,
1357
- hostname,
1358
- port,
1359
- method: "GET",
1360
- headers,
1361
- path: resolvedPath,
1362
- query,
1363
- body,
1364
- });
870
+ b.m("GET").h(headers).q(query).b(body);
871
+ return b.build();
1365
872
  };
1366
873
  exports.se_ListDevicesForWirelessDeviceImportTaskCommand = se_ListDevicesForWirelessDeviceImportTaskCommand;
1367
874
  const se_ListEventConfigurationsCommand = async (input, context) => {
1368
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
875
+ const b = (0, core_1.requestBuilder)(input, context);
1369
876
  const headers = {};
1370
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations";
877
+ b.bp("/event-configurations");
1371
878
  const query = (0, smithy_client_1.map)({
1372
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
1373
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1374
- nextToken: [, input.NextToken],
879
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_RT], `ResourceType`)],
880
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
881
+ [_nT]: [, input[_NT]],
1375
882
  });
1376
883
  let body;
1377
- return new protocol_http_1.HttpRequest({
1378
- protocol,
1379
- hostname,
1380
- port,
1381
- method: "GET",
1382
- headers,
1383
- path: resolvedPath,
1384
- query,
1385
- body,
1386
- });
884
+ b.m("GET").h(headers).q(query).b(body);
885
+ return b.build();
1387
886
  };
1388
887
  exports.se_ListEventConfigurationsCommand = se_ListEventConfigurationsCommand;
1389
888
  const se_ListFuotaTasksCommand = async (input, context) => {
1390
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
889
+ const b = (0, core_1.requestBuilder)(input, context);
1391
890
  const headers = {};
1392
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks";
891
+ b.bp("/fuota-tasks");
1393
892
  const query = (0, smithy_client_1.map)({
1394
- nextToken: [, input.NextToken],
1395
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
893
+ [_nT]: [, input[_NT]],
894
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1396
895
  });
1397
896
  let body;
1398
- return new protocol_http_1.HttpRequest({
1399
- protocol,
1400
- hostname,
1401
- port,
1402
- method: "GET",
1403
- headers,
1404
- path: resolvedPath,
1405
- query,
1406
- body,
1407
- });
897
+ b.m("GET").h(headers).q(query).b(body);
898
+ return b.build();
1408
899
  };
1409
900
  exports.se_ListFuotaTasksCommand = se_ListFuotaTasksCommand;
1410
901
  const se_ListMulticastGroupsCommand = async (input, context) => {
1411
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
902
+ const b = (0, core_1.requestBuilder)(input, context);
1412
903
  const headers = {};
1413
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups";
904
+ b.bp("/multicast-groups");
1414
905
  const query = (0, smithy_client_1.map)({
1415
- nextToken: [, input.NextToken],
1416
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
906
+ [_nT]: [, input[_NT]],
907
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1417
908
  });
1418
909
  let body;
1419
- return new protocol_http_1.HttpRequest({
1420
- protocol,
1421
- hostname,
1422
- port,
1423
- method: "GET",
1424
- headers,
1425
- path: resolvedPath,
1426
- query,
1427
- body,
1428
- });
910
+ b.m("GET").h(headers).q(query).b(body);
911
+ return b.build();
1429
912
  };
1430
913
  exports.se_ListMulticastGroupsCommand = se_ListMulticastGroupsCommand;
1431
914
  const se_ListMulticastGroupsByFuotaTaskCommand = async (input, context) => {
1432
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
915
+ const b = (0, core_1.requestBuilder)(input, context);
1433
916
  const headers = {};
1434
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}/multicast-groups";
1435
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
917
+ b.bp("/fuota-tasks/{Id}/multicast-groups");
918
+ b.p("Id", () => input.Id, "{Id}", false);
1436
919
  const query = (0, smithy_client_1.map)({
1437
- nextToken: [, input.NextToken],
1438
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
920
+ [_nT]: [, input[_NT]],
921
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1439
922
  });
1440
923
  let body;
1441
- return new protocol_http_1.HttpRequest({
1442
- protocol,
1443
- hostname,
1444
- port,
1445
- method: "GET",
1446
- headers,
1447
- path: resolvedPath,
1448
- query,
1449
- body,
1450
- });
924
+ b.m("GET").h(headers).q(query).b(body);
925
+ return b.build();
1451
926
  };
1452
927
  exports.se_ListMulticastGroupsByFuotaTaskCommand = se_ListMulticastGroupsByFuotaTaskCommand;
1453
928
  const se_ListNetworkAnalyzerConfigurationsCommand = async (input, context) => {
1454
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
929
+ const b = (0, core_1.requestBuilder)(input, context);
1455
930
  const headers = {};
1456
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/network-analyzer-configurations";
931
+ b.bp("/network-analyzer-configurations");
1457
932
  const query = (0, smithy_client_1.map)({
1458
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1459
- nextToken: [, input.NextToken],
933
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
934
+ [_nT]: [, input[_NT]],
1460
935
  });
1461
936
  let body;
1462
- return new protocol_http_1.HttpRequest({
1463
- protocol,
1464
- hostname,
1465
- port,
1466
- method: "GET",
1467
- headers,
1468
- path: resolvedPath,
1469
- query,
1470
- body,
1471
- });
937
+ b.m("GET").h(headers).q(query).b(body);
938
+ return b.build();
1472
939
  };
1473
940
  exports.se_ListNetworkAnalyzerConfigurationsCommand = se_ListNetworkAnalyzerConfigurationsCommand;
1474
941
  const se_ListPartnerAccountsCommand = async (input, context) => {
1475
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
942
+ const b = (0, core_1.requestBuilder)(input, context);
1476
943
  const headers = {};
1477
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts";
944
+ b.bp("/partner-accounts");
1478
945
  const query = (0, smithy_client_1.map)({
1479
- nextToken: [, input.NextToken],
1480
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
946
+ [_nT]: [, input[_NT]],
947
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1481
948
  });
1482
949
  let body;
1483
- return new protocol_http_1.HttpRequest({
1484
- protocol,
1485
- hostname,
1486
- port,
1487
- method: "GET",
1488
- headers,
1489
- path: resolvedPath,
1490
- query,
1491
- body,
1492
- });
950
+ b.m("GET").h(headers).q(query).b(body);
951
+ return b.build();
1493
952
  };
1494
953
  exports.se_ListPartnerAccountsCommand = se_ListPartnerAccountsCommand;
1495
954
  const se_ListPositionConfigurationsCommand = async (input, context) => {
1496
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
955
+ const b = (0, core_1.requestBuilder)(input, context);
1497
956
  const headers = {};
1498
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/position-configurations";
957
+ b.bp("/position-configurations");
1499
958
  const query = (0, smithy_client_1.map)({
1500
- resourceType: [, input.ResourceType],
1501
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1502
- nextToken: [, input.NextToken],
959
+ [_rT]: [, input[_RT]],
960
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
961
+ [_nT]: [, input[_NT]],
1503
962
  });
1504
963
  let body;
1505
- return new protocol_http_1.HttpRequest({
1506
- protocol,
1507
- hostname,
1508
- port,
1509
- method: "GET",
1510
- headers,
1511
- path: resolvedPath,
1512
- query,
1513
- body,
1514
- });
964
+ b.m("GET").h(headers).q(query).b(body);
965
+ return b.build();
1515
966
  };
1516
967
  exports.se_ListPositionConfigurationsCommand = se_ListPositionConfigurationsCommand;
1517
968
  const se_ListQueuedMessagesCommand = async (input, context) => {
1518
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
969
+ const b = (0, core_1.requestBuilder)(input, context);
1519
970
  const headers = {};
1520
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data";
1521
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
971
+ b.bp("/wireless-devices/{Id}/data");
972
+ b.p("Id", () => input.Id, "{Id}", false);
1522
973
  const query = (0, smithy_client_1.map)({
1523
- nextToken: [, input.NextToken],
1524
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1525
- WirelessDeviceType: [, input.WirelessDeviceType],
974
+ [_nT]: [, input[_NT]],
975
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
976
+ [_WDT]: [, input[_WDT]],
1526
977
  });
1527
978
  let body;
1528
- return new protocol_http_1.HttpRequest({
1529
- protocol,
1530
- hostname,
1531
- port,
1532
- method: "GET",
1533
- headers,
1534
- path: resolvedPath,
1535
- query,
1536
- body,
1537
- });
979
+ b.m("GET").h(headers).q(query).b(body);
980
+ return b.build();
1538
981
  };
1539
982
  exports.se_ListQueuedMessagesCommand = se_ListQueuedMessagesCommand;
1540
983
  const se_ListServiceProfilesCommand = async (input, context) => {
1541
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
984
+ const b = (0, core_1.requestBuilder)(input, context);
1542
985
  const headers = {};
1543
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/service-profiles";
986
+ b.bp("/service-profiles");
1544
987
  const query = (0, smithy_client_1.map)({
1545
- nextToken: [, input.NextToken],
1546
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
988
+ [_nT]: [, input[_NT]],
989
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1547
990
  });
1548
991
  let body;
1549
- return new protocol_http_1.HttpRequest({
1550
- protocol,
1551
- hostname,
1552
- port,
1553
- method: "GET",
1554
- headers,
1555
- path: resolvedPath,
1556
- query,
1557
- body,
1558
- });
992
+ b.m("GET").h(headers).q(query).b(body);
993
+ return b.build();
1559
994
  };
1560
995
  exports.se_ListServiceProfilesCommand = se_ListServiceProfilesCommand;
1561
996
  const se_ListTagsForResourceCommand = async (input, context) => {
1562
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
997
+ const b = (0, core_1.requestBuilder)(input, context);
1563
998
  const headers = {};
1564
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
999
+ b.bp("/tags");
1565
1000
  const query = (0, smithy_client_1.map)({
1566
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
1001
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
1567
1002
  });
1568
1003
  let body;
1569
- return new protocol_http_1.HttpRequest({
1570
- protocol,
1571
- hostname,
1572
- port,
1573
- method: "GET",
1574
- headers,
1575
- path: resolvedPath,
1576
- query,
1577
- body,
1578
- });
1004
+ b.m("GET").h(headers).q(query).b(body);
1005
+ return b.build();
1579
1006
  };
1580
1007
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1581
1008
  const se_ListWirelessDeviceImportTasksCommand = async (input, context) => {
1582
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1009
+ const b = (0, core_1.requestBuilder)(input, context);
1583
1010
  const headers = {};
1584
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_tasks";
1011
+ b.bp("/wireless_device_import_tasks");
1585
1012
  const query = (0, smithy_client_1.map)({
1586
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1587
- nextToken: [, input.NextToken],
1013
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1014
+ [_nT]: [, input[_NT]],
1588
1015
  });
1589
1016
  let body;
1590
- return new protocol_http_1.HttpRequest({
1591
- protocol,
1592
- hostname,
1593
- port,
1594
- method: "GET",
1595
- headers,
1596
- path: resolvedPath,
1597
- query,
1598
- body,
1599
- });
1017
+ b.m("GET").h(headers).q(query).b(body);
1018
+ return b.build();
1600
1019
  };
1601
1020
  exports.se_ListWirelessDeviceImportTasksCommand = se_ListWirelessDeviceImportTasksCommand;
1602
1021
  const se_ListWirelessDevicesCommand = async (input, context) => {
1603
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1022
+ const b = (0, core_1.requestBuilder)(input, context);
1604
1023
  const headers = {};
1605
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices";
1024
+ b.bp("/wireless-devices");
1606
1025
  const query = (0, smithy_client_1.map)({
1607
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1608
- nextToken: [, input.NextToken],
1609
- destinationName: [, input.DestinationName],
1610
- deviceProfileId: [, input.DeviceProfileId],
1611
- serviceProfileId: [, input.ServiceProfileId],
1612
- wirelessDeviceType: [, input.WirelessDeviceType],
1613
- fuotaTaskId: [, input.FuotaTaskId],
1614
- multicastGroupId: [, input.MulticastGroupId],
1026
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1027
+ [_nT]: [, input[_NT]],
1028
+ [_dN]: [, input[_DN]],
1029
+ [_dPI]: [, input[_DPI]],
1030
+ [_sPI]: [, input[_SPI]],
1031
+ [_wDT]: [, input[_WDT]],
1032
+ [_fTI]: [, input[_FTI]],
1033
+ [_mGI]: [, input[_MGI]],
1615
1034
  });
1616
1035
  let body;
1617
- return new protocol_http_1.HttpRequest({
1618
- protocol,
1619
- hostname,
1620
- port,
1621
- method: "GET",
1622
- headers,
1623
- path: resolvedPath,
1624
- query,
1625
- body,
1626
- });
1036
+ b.m("GET").h(headers).q(query).b(body);
1037
+ return b.build();
1627
1038
  };
1628
1039
  exports.se_ListWirelessDevicesCommand = se_ListWirelessDevicesCommand;
1629
1040
  const se_ListWirelessGatewaysCommand = async (input, context) => {
1630
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1041
+ const b = (0, core_1.requestBuilder)(input, context);
1631
1042
  const headers = {};
1632
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways";
1043
+ b.bp("/wireless-gateways");
1633
1044
  const query = (0, smithy_client_1.map)({
1634
- nextToken: [, input.NextToken],
1635
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1045
+ [_nT]: [, input[_NT]],
1046
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1636
1047
  });
1637
1048
  let body;
1638
- return new protocol_http_1.HttpRequest({
1639
- protocol,
1640
- hostname,
1641
- port,
1642
- method: "GET",
1643
- headers,
1644
- path: resolvedPath,
1645
- query,
1646
- body,
1647
- });
1049
+ b.m("GET").h(headers).q(query).b(body);
1050
+ return b.build();
1648
1051
  };
1649
1052
  exports.se_ListWirelessGatewaysCommand = se_ListWirelessGatewaysCommand;
1650
1053
  const se_ListWirelessGatewayTaskDefinitionsCommand = async (input, context) => {
1651
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1054
+ const b = (0, core_1.requestBuilder)(input, context);
1652
1055
  const headers = {};
1653
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateway-task-definitions";
1056
+ b.bp("/wireless-gateway-task-definitions");
1654
1057
  const query = (0, smithy_client_1.map)({
1655
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1656
- nextToken: [, input.NextToken],
1657
- taskDefinitionType: [, input.TaskDefinitionType],
1058
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1059
+ [_nT]: [, input[_NT]],
1060
+ [_tDT]: [, input[_TDT]],
1658
1061
  });
1659
1062
  let body;
1660
- return new protocol_http_1.HttpRequest({
1661
- protocol,
1662
- hostname,
1663
- port,
1664
- method: "GET",
1665
- headers,
1666
- path: resolvedPath,
1667
- query,
1668
- body,
1669
- });
1063
+ b.m("GET").h(headers).q(query).b(body);
1064
+ return b.build();
1670
1065
  };
1671
1066
  exports.se_ListWirelessGatewayTaskDefinitionsCommand = se_ListWirelessGatewayTaskDefinitionsCommand;
1672
1067
  const se_PutPositionConfigurationCommand = async (input, context) => {
1673
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1068
+ const b = (0, core_1.requestBuilder)(input, context);
1674
1069
  const headers = {
1675
1070
  "content-type": "application/json",
1676
1071
  };
1677
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1678
- "/position-configurations/{ResourceIdentifier}";
1679
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1072
+ b.bp("/position-configurations/{ResourceIdentifier}");
1073
+ b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1680
1074
  const query = (0, smithy_client_1.map)({
1681
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
1075
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_RT], `ResourceType`)],
1682
1076
  });
1683
1077
  let body;
1684
1078
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1685
1079
  Destination: [],
1686
1080
  Solvers: (_) => (0, smithy_client_1._json)(_),
1687
1081
  }));
1688
- return new protocol_http_1.HttpRequest({
1689
- protocol,
1690
- hostname,
1691
- port,
1692
- method: "PUT",
1693
- headers,
1694
- path: resolvedPath,
1695
- query,
1696
- body,
1697
- });
1082
+ b.m("PUT").h(headers).q(query).b(body);
1083
+ return b.build();
1698
1084
  };
1699
1085
  exports.se_PutPositionConfigurationCommand = se_PutPositionConfigurationCommand;
1700
1086
  const se_PutResourceLogLevelCommand = async (input, context) => {
1701
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1087
+ const b = (0, core_1.requestBuilder)(input, context);
1702
1088
  const headers = {
1703
1089
  "content-type": "application/json",
1704
1090
  };
1705
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
1706
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1091
+ b.bp("/log-levels/{ResourceIdentifier}");
1092
+ b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1707
1093
  const query = (0, smithy_client_1.map)({
1708
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
1094
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_RT], `ResourceType`)],
1709
1095
  });
1710
1096
  let body;
1711
1097
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1712
1098
  LogLevel: [],
1713
1099
  }));
1714
- return new protocol_http_1.HttpRequest({
1715
- protocol,
1716
- hostname,
1717
- port,
1718
- method: "PUT",
1719
- headers,
1720
- path: resolvedPath,
1721
- query,
1722
- body,
1723
- });
1100
+ b.m("PUT").h(headers).q(query).b(body);
1101
+ return b.build();
1724
1102
  };
1725
1103
  exports.se_PutResourceLogLevelCommand = se_PutResourceLogLevelCommand;
1726
1104
  const se_ResetAllResourceLogLevelsCommand = async (input, context) => {
1727
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1105
+ const b = (0, core_1.requestBuilder)(input, context);
1728
1106
  const headers = {
1729
1107
  "content-type": "application/json",
1730
1108
  };
1731
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels";
1109
+ b.bp("/log-levels");
1732
1110
  let body;
1733
1111
  body = "";
1734
- return new protocol_http_1.HttpRequest({
1735
- protocol,
1736
- hostname,
1737
- port,
1738
- method: "DELETE",
1739
- headers,
1740
- path: resolvedPath,
1741
- body,
1742
- });
1112
+ b.m("DELETE").h(headers).b(body);
1113
+ return b.build();
1743
1114
  };
1744
1115
  exports.se_ResetAllResourceLogLevelsCommand = se_ResetAllResourceLogLevelsCommand;
1745
1116
  const se_ResetResourceLogLevelCommand = async (input, context) => {
1746
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1117
+ const b = (0, core_1.requestBuilder)(input, context);
1747
1118
  const headers = {};
1748
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels/{ResourceIdentifier}";
1749
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1119
+ b.bp("/log-levels/{ResourceIdentifier}");
1120
+ b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1750
1121
  const query = (0, smithy_client_1.map)({
1751
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
1122
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_RT], `ResourceType`)],
1752
1123
  });
1753
1124
  let body;
1754
- return new protocol_http_1.HttpRequest({
1755
- protocol,
1756
- hostname,
1757
- port,
1758
- method: "DELETE",
1759
- headers,
1760
- path: resolvedPath,
1761
- query,
1762
- body,
1763
- });
1125
+ b.m("DELETE").h(headers).q(query).b(body);
1126
+ return b.build();
1764
1127
  };
1765
1128
  exports.se_ResetResourceLogLevelCommand = se_ResetResourceLogLevelCommand;
1766
1129
  const se_SendDataToMulticastGroupCommand = async (input, context) => {
1767
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1130
+ const b = (0, core_1.requestBuilder)(input, context);
1768
1131
  const headers = {
1769
1132
  "content-type": "application/json",
1770
1133
  };
1771
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/data";
1772
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1134
+ b.bp("/multicast-groups/{Id}/data");
1135
+ b.p("Id", () => input.Id, "{Id}", false);
1773
1136
  let body;
1774
1137
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1775
1138
  PayloadData: [],
1776
1139
  WirelessMetadata: (_) => (0, smithy_client_1._json)(_),
1777
1140
  }));
1778
- return new protocol_http_1.HttpRequest({
1779
- protocol,
1780
- hostname,
1781
- port,
1782
- method: "POST",
1783
- headers,
1784
- path: resolvedPath,
1785
- body,
1786
- });
1141
+ b.m("POST").h(headers).b(body);
1142
+ return b.build();
1787
1143
  };
1788
1144
  exports.se_SendDataToMulticastGroupCommand = se_SendDataToMulticastGroupCommand;
1789
1145
  const se_SendDataToWirelessDeviceCommand = async (input, context) => {
1790
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1146
+ const b = (0, core_1.requestBuilder)(input, context);
1791
1147
  const headers = {
1792
1148
  "content-type": "application/json",
1793
1149
  };
1794
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/data";
1795
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1150
+ b.bp("/wireless-devices/{Id}/data");
1151
+ b.p("Id", () => input.Id, "{Id}", false);
1796
1152
  let body;
1797
1153
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1798
1154
  PayloadData: [],
1799
1155
  TransmitMode: [],
1800
1156
  WirelessMetadata: (_) => (0, smithy_client_1._json)(_),
1801
1157
  }));
1802
- return new protocol_http_1.HttpRequest({
1803
- protocol,
1804
- hostname,
1805
- port,
1806
- method: "POST",
1807
- headers,
1808
- path: resolvedPath,
1809
- body,
1810
- });
1158
+ b.m("POST").h(headers).b(body);
1159
+ return b.build();
1811
1160
  };
1812
1161
  exports.se_SendDataToWirelessDeviceCommand = se_SendDataToWirelessDeviceCommand;
1813
1162
  const se_StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = async (input, context) => {
1814
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1163
+ const b = (0, core_1.requestBuilder)(input, context);
1815
1164
  const headers = {
1816
1165
  "content-type": "application/json",
1817
1166
  };
1818
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/bulk";
1819
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1167
+ b.bp("/multicast-groups/{Id}/bulk");
1168
+ b.p("Id", () => input.Id, "{Id}", false);
1820
1169
  let body;
1821
1170
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1822
1171
  QueryString: [],
1823
1172
  Tags: (_) => (0, smithy_client_1._json)(_),
1824
1173
  }));
1825
- return new protocol_http_1.HttpRequest({
1826
- protocol,
1827
- hostname,
1828
- port,
1829
- method: "PATCH",
1830
- headers,
1831
- path: resolvedPath,
1832
- body,
1833
- });
1174
+ b.m("PATCH").h(headers).b(body);
1175
+ return b.build();
1834
1176
  };
1835
1177
  exports.se_StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = se_StartBulkAssociateWirelessDeviceWithMulticastGroupCommand;
1836
1178
  const se_StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = async (input, context) => {
1837
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1179
+ const b = (0, core_1.requestBuilder)(input, context);
1838
1180
  const headers = {
1839
1181
  "content-type": "application/json",
1840
1182
  };
1841
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/bulk";
1842
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1183
+ b.bp("/multicast-groups/{Id}/bulk");
1184
+ b.p("Id", () => input.Id, "{Id}", false);
1843
1185
  let body;
1844
1186
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1845
1187
  QueryString: [],
1846
1188
  Tags: (_) => (0, smithy_client_1._json)(_),
1847
1189
  }));
1848
- return new protocol_http_1.HttpRequest({
1849
- protocol,
1850
- hostname,
1851
- port,
1852
- method: "POST",
1853
- headers,
1854
- path: resolvedPath,
1855
- body,
1856
- });
1190
+ b.m("POST").h(headers).b(body);
1191
+ return b.build();
1857
1192
  };
1858
1193
  exports.se_StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = se_StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand;
1859
1194
  const se_StartFuotaTaskCommand = async (input, context) => {
1860
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1195
+ const b = (0, core_1.requestBuilder)(input, context);
1861
1196
  const headers = {
1862
1197
  "content-type": "application/json",
1863
1198
  };
1864
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}";
1865
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1199
+ b.bp("/fuota-tasks/{Id}");
1200
+ b.p("Id", () => input.Id, "{Id}", false);
1866
1201
  let body;
1867
1202
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1868
1203
  LoRaWAN: (_) => se_LoRaWANStartFuotaTask(_, context),
1869
1204
  }));
1870
- return new protocol_http_1.HttpRequest({
1871
- protocol,
1872
- hostname,
1873
- port,
1874
- method: "PUT",
1875
- headers,
1876
- path: resolvedPath,
1877
- body,
1878
- });
1205
+ b.m("PUT").h(headers).b(body);
1206
+ return b.build();
1879
1207
  };
1880
1208
  exports.se_StartFuotaTaskCommand = se_StartFuotaTaskCommand;
1881
1209
  const se_StartMulticastGroupSessionCommand = async (input, context) => {
1882
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1210
+ const b = (0, core_1.requestBuilder)(input, context);
1883
1211
  const headers = {
1884
1212
  "content-type": "application/json",
1885
1213
  };
1886
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}/session";
1887
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1214
+ b.bp("/multicast-groups/{Id}/session");
1215
+ b.p("Id", () => input.Id, "{Id}", false);
1888
1216
  let body;
1889
1217
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1890
1218
  LoRaWAN: (_) => se_LoRaWANMulticastSession(_, context),
1891
1219
  }));
1892
- return new protocol_http_1.HttpRequest({
1893
- protocol,
1894
- hostname,
1895
- port,
1896
- method: "PUT",
1897
- headers,
1898
- path: resolvedPath,
1899
- body,
1900
- });
1220
+ b.m("PUT").h(headers).b(body);
1221
+ return b.build();
1901
1222
  };
1902
1223
  exports.se_StartMulticastGroupSessionCommand = se_StartMulticastGroupSessionCommand;
1903
1224
  const se_StartSingleWirelessDeviceImportTaskCommand = async (input, context) => {
1904
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1225
+ const b = (0, core_1.requestBuilder)(input, context);
1905
1226
  const headers = {
1906
1227
  "content-type": "application/json",
1907
1228
  };
1908
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_single_device_import_task";
1229
+ b.bp("/wireless_single_device_import_task");
1909
1230
  let body;
1910
1231
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1911
1232
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1914,23 +1235,16 @@ const se_StartSingleWirelessDeviceImportTaskCommand = async (input, context) =>
1914
1235
  Sidewalk: (_) => (0, smithy_client_1._json)(_),
1915
1236
  Tags: (_) => (0, smithy_client_1._json)(_),
1916
1237
  }));
1917
- return new protocol_http_1.HttpRequest({
1918
- protocol,
1919
- hostname,
1920
- port,
1921
- method: "POST",
1922
- headers,
1923
- path: resolvedPath,
1924
- body,
1925
- });
1238
+ b.m("POST").h(headers).b(body);
1239
+ return b.build();
1926
1240
  };
1927
1241
  exports.se_StartSingleWirelessDeviceImportTaskCommand = se_StartSingleWirelessDeviceImportTaskCommand;
1928
1242
  const se_StartWirelessDeviceImportTaskCommand = async (input, context) => {
1929
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1243
+ const b = (0, core_1.requestBuilder)(input, context);
1930
1244
  const headers = {
1931
1245
  "content-type": "application/json",
1932
1246
  };
1933
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task";
1247
+ b.bp("/wireless_device_import_task");
1934
1248
  let body;
1935
1249
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1936
1250
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1938,90 +1252,60 @@ const se_StartWirelessDeviceImportTaskCommand = async (input, context) => {
1938
1252
  Sidewalk: (_) => (0, smithy_client_1._json)(_),
1939
1253
  Tags: (_) => (0, smithy_client_1._json)(_),
1940
1254
  }));
1941
- return new protocol_http_1.HttpRequest({
1942
- protocol,
1943
- hostname,
1944
- port,
1945
- method: "POST",
1946
- headers,
1947
- path: resolvedPath,
1948
- body,
1949
- });
1255
+ b.m("POST").h(headers).b(body);
1256
+ return b.build();
1950
1257
  };
1951
1258
  exports.se_StartWirelessDeviceImportTaskCommand = se_StartWirelessDeviceImportTaskCommand;
1952
1259
  const se_TagResourceCommand = async (input, context) => {
1953
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1260
+ const b = (0, core_1.requestBuilder)(input, context);
1954
1261
  const headers = {
1955
1262
  "content-type": "application/json",
1956
1263
  };
1957
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1264
+ b.bp("/tags");
1958
1265
  const query = (0, smithy_client_1.map)({
1959
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
1266
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
1960
1267
  });
1961
1268
  let body;
1962
1269
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1963
1270
  Tags: (_) => (0, smithy_client_1._json)(_),
1964
1271
  }));
1965
- return new protocol_http_1.HttpRequest({
1966
- protocol,
1967
- hostname,
1968
- port,
1969
- method: "POST",
1970
- headers,
1971
- path: resolvedPath,
1972
- query,
1973
- body,
1974
- });
1272
+ b.m("POST").h(headers).q(query).b(body);
1273
+ return b.build();
1975
1274
  };
1976
1275
  exports.se_TagResourceCommand = se_TagResourceCommand;
1977
1276
  const se_TestWirelessDeviceCommand = async (input, context) => {
1978
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1277
+ const b = (0, core_1.requestBuilder)(input, context);
1979
1278
  const headers = {};
1980
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}/test";
1981
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1279
+ b.bp("/wireless-devices/{Id}/test");
1280
+ b.p("Id", () => input.Id, "{Id}", false);
1982
1281
  let body;
1983
- return new protocol_http_1.HttpRequest({
1984
- protocol,
1985
- hostname,
1986
- port,
1987
- method: "POST",
1988
- headers,
1989
- path: resolvedPath,
1990
- body,
1991
- });
1282
+ b.m("POST").h(headers).b(body);
1283
+ return b.build();
1992
1284
  };
1993
1285
  exports.se_TestWirelessDeviceCommand = se_TestWirelessDeviceCommand;
1994
1286
  const se_UntagResourceCommand = async (input, context) => {
1995
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1287
+ const b = (0, core_1.requestBuilder)(input, context);
1996
1288
  const headers = {};
1997
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
1289
+ b.bp("/tags");
1998
1290
  const query = (0, smithy_client_1.map)({
1999
- resourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
2000
- tagKeys: [
1291
+ [_rA]: [, (0, smithy_client_1.expectNonNull)(input[_RA], `ResourceArn`)],
1292
+ [_tK]: [
2001
1293
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
2002
- () => (input.TagKeys || []).map((_entry) => _entry),
1294
+ () => (input[_TK] || []).map((_entry) => _entry),
2003
1295
  ],
2004
1296
  });
2005
1297
  let body;
2006
- return new protocol_http_1.HttpRequest({
2007
- protocol,
2008
- hostname,
2009
- port,
2010
- method: "DELETE",
2011
- headers,
2012
- path: resolvedPath,
2013
- query,
2014
- body,
2015
- });
1298
+ b.m("DELETE").h(headers).q(query).b(body);
1299
+ return b.build();
2016
1300
  };
2017
1301
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
2018
1302
  const se_UpdateDestinationCommand = async (input, context) => {
2019
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1303
+ const b = (0, core_1.requestBuilder)(input, context);
2020
1304
  const headers = {
2021
1305
  "content-type": "application/json",
2022
1306
  };
2023
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/destinations/{Name}";
2024
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
1307
+ b.bp("/destinations/{Name}");
1308
+ b.p("Name", () => input.Name, "{Name}", false);
2025
1309
  let body;
2026
1310
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2027
1311
  Description: [],
@@ -2029,23 +1313,16 @@ const se_UpdateDestinationCommand = async (input, context) => {
2029
1313
  ExpressionType: [],
2030
1314
  RoleArn: [],
2031
1315
  }));
2032
- return new protocol_http_1.HttpRequest({
2033
- protocol,
2034
- hostname,
2035
- port,
2036
- method: "PATCH",
2037
- headers,
2038
- path: resolvedPath,
2039
- body,
2040
- });
1316
+ b.m("PATCH").h(headers).b(body);
1317
+ return b.build();
2041
1318
  };
2042
1319
  exports.se_UpdateDestinationCommand = se_UpdateDestinationCommand;
2043
1320
  const se_UpdateEventConfigurationByResourceTypesCommand = async (input, context) => {
2044
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1321
+ const b = (0, core_1.requestBuilder)(input, context);
2045
1322
  const headers = {
2046
1323
  "content-type": "application/json",
2047
1324
  };
2048
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations-resource-types";
1325
+ b.bp("/event-configurations-resource-types");
2049
1326
  let body;
2050
1327
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2051
1328
  ConnectionStatus: (_) => (0, smithy_client_1._json)(_),
@@ -2054,24 +1331,17 @@ const se_UpdateEventConfigurationByResourceTypesCommand = async (input, context)
2054
1331
  MessageDeliveryStatus: (_) => (0, smithy_client_1._json)(_),
2055
1332
  Proximity: (_) => (0, smithy_client_1._json)(_),
2056
1333
  }));
2057
- return new protocol_http_1.HttpRequest({
2058
- protocol,
2059
- hostname,
2060
- port,
2061
- method: "PATCH",
2062
- headers,
2063
- path: resolvedPath,
2064
- body,
2065
- });
1334
+ b.m("PATCH").h(headers).b(body);
1335
+ return b.build();
2066
1336
  };
2067
1337
  exports.se_UpdateEventConfigurationByResourceTypesCommand = se_UpdateEventConfigurationByResourceTypesCommand;
2068
1338
  const se_UpdateFuotaTaskCommand = async (input, context) => {
2069
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1339
+ const b = (0, core_1.requestBuilder)(input, context);
2070
1340
  const headers = {
2071
1341
  "content-type": "application/json",
2072
1342
  };
2073
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/fuota-tasks/{Id}";
2074
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1343
+ b.bp("/fuota-tasks/{Id}");
1344
+ b.p("Id", () => input.Id, "{Id}", false);
2075
1345
  let body;
2076
1346
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2077
1347
  Description: [],
@@ -2083,72 +1353,50 @@ const se_UpdateFuotaTaskCommand = async (input, context) => {
2083
1353
  Name: [],
2084
1354
  RedundancyPercent: [],
2085
1355
  }));
2086
- return new protocol_http_1.HttpRequest({
2087
- protocol,
2088
- hostname,
2089
- port,
2090
- method: "PATCH",
2091
- headers,
2092
- path: resolvedPath,
2093
- body,
2094
- });
1356
+ b.m("PATCH").h(headers).b(body);
1357
+ return b.build();
2095
1358
  };
2096
1359
  exports.se_UpdateFuotaTaskCommand = se_UpdateFuotaTaskCommand;
2097
1360
  const se_UpdateLogLevelsByResourceTypesCommand = async (input, context) => {
2098
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1361
+ const b = (0, core_1.requestBuilder)(input, context);
2099
1362
  const headers = {
2100
1363
  "content-type": "application/json",
2101
1364
  };
2102
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/log-levels";
1365
+ b.bp("/log-levels");
2103
1366
  let body;
2104
1367
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2105
1368
  DefaultLogLevel: [],
2106
1369
  WirelessDeviceLogOptions: (_) => (0, smithy_client_1._json)(_),
2107
1370
  WirelessGatewayLogOptions: (_) => (0, smithy_client_1._json)(_),
2108
1371
  }));
2109
- return new protocol_http_1.HttpRequest({
2110
- protocol,
2111
- hostname,
2112
- port,
2113
- method: "POST",
2114
- headers,
2115
- path: resolvedPath,
2116
- body,
2117
- });
1372
+ b.m("POST").h(headers).b(body);
1373
+ return b.build();
2118
1374
  };
2119
1375
  exports.se_UpdateLogLevelsByResourceTypesCommand = se_UpdateLogLevelsByResourceTypesCommand;
2120
1376
  const se_UpdateMulticastGroupCommand = async (input, context) => {
2121
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1377
+ const b = (0, core_1.requestBuilder)(input, context);
2122
1378
  const headers = {
2123
1379
  "content-type": "application/json",
2124
1380
  };
2125
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/multicast-groups/{Id}";
2126
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1381
+ b.bp("/multicast-groups/{Id}");
1382
+ b.p("Id", () => input.Id, "{Id}", false);
2127
1383
  let body;
2128
1384
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2129
1385
  Description: [],
2130
1386
  LoRaWAN: (_) => (0, smithy_client_1._json)(_),
2131
1387
  Name: [],
2132
1388
  }));
2133
- return new protocol_http_1.HttpRequest({
2134
- protocol,
2135
- hostname,
2136
- port,
2137
- method: "PATCH",
2138
- headers,
2139
- path: resolvedPath,
2140
- body,
2141
- });
1389
+ b.m("PATCH").h(headers).b(body);
1390
+ return b.build();
2142
1391
  };
2143
1392
  exports.se_UpdateMulticastGroupCommand = se_UpdateMulticastGroupCommand;
2144
1393
  const se_UpdateNetworkAnalyzerConfigurationCommand = async (input, context) => {
2145
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1394
+ const b = (0, core_1.requestBuilder)(input, context);
2146
1395
  const headers = {
2147
1396
  "content-type": "application/json",
2148
1397
  };
2149
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2150
- "/network-analyzer-configurations/{ConfigurationName}";
2151
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConfigurationName", () => input.ConfigurationName, "{ConfigurationName}", false);
1398
+ b.bp("/network-analyzer-configurations/{ConfigurationName}");
1399
+ b.p("ConfigurationName", () => input.ConfigurationName, "{ConfigurationName}", false);
2152
1400
  let body;
2153
1401
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2154
1402
  Description: [],
@@ -2160,79 +1408,56 @@ const se_UpdateNetworkAnalyzerConfigurationCommand = async (input, context) => {
2160
1408
  WirelessGatewaysToAdd: (_) => (0, smithy_client_1._json)(_),
2161
1409
  WirelessGatewaysToRemove: (_) => (0, smithy_client_1._json)(_),
2162
1410
  }));
2163
- return new protocol_http_1.HttpRequest({
2164
- protocol,
2165
- hostname,
2166
- port,
2167
- method: "PATCH",
2168
- headers,
2169
- path: resolvedPath,
2170
- body,
2171
- });
1411
+ b.m("PATCH").h(headers).b(body);
1412
+ return b.build();
2172
1413
  };
2173
1414
  exports.se_UpdateNetworkAnalyzerConfigurationCommand = se_UpdateNetworkAnalyzerConfigurationCommand;
2174
1415
  const se_UpdatePartnerAccountCommand = async (input, context) => {
2175
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1416
+ const b = (0, core_1.requestBuilder)(input, context);
2176
1417
  const headers = {
2177
1418
  "content-type": "application/json",
2178
1419
  };
2179
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/partner-accounts/{PartnerAccountId}";
2180
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
1420
+ b.bp("/partner-accounts/{PartnerAccountId}");
1421
+ b.p("PartnerAccountId", () => input.PartnerAccountId, "{PartnerAccountId}", false);
2181
1422
  const query = (0, smithy_client_1.map)({
2182
- partnerType: [, (0, smithy_client_1.expectNonNull)(input.PartnerType, `PartnerType`)],
1423
+ [_pT]: [, (0, smithy_client_1.expectNonNull)(input[_PT], `PartnerType`)],
2183
1424
  });
2184
1425
  let body;
2185
1426
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2186
1427
  Sidewalk: (_) => (0, smithy_client_1._json)(_),
2187
1428
  }));
2188
- return new protocol_http_1.HttpRequest({
2189
- protocol,
2190
- hostname,
2191
- port,
2192
- method: "PATCH",
2193
- headers,
2194
- path: resolvedPath,
2195
- query,
2196
- body,
2197
- });
1429
+ b.m("PATCH").h(headers).q(query).b(body);
1430
+ return b.build();
2198
1431
  };
2199
1432
  exports.se_UpdatePartnerAccountCommand = se_UpdatePartnerAccountCommand;
2200
1433
  const se_UpdatePositionCommand = async (input, context) => {
2201
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1434
+ const b = (0, core_1.requestBuilder)(input, context);
2202
1435
  const headers = {
2203
1436
  "content-type": "application/json",
2204
1437
  };
2205
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/positions/{ResourceIdentifier}";
2206
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1438
+ b.bp("/positions/{ResourceIdentifier}");
1439
+ b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
2207
1440
  const query = (0, smithy_client_1.map)({
2208
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
1441
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_RT], `ResourceType`)],
2209
1442
  });
2210
1443
  let body;
2211
1444
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2212
1445
  Position: (_) => se_PositionCoordinate(_, context),
2213
1446
  }));
2214
- return new protocol_http_1.HttpRequest({
2215
- protocol,
2216
- hostname,
2217
- port,
2218
- method: "PATCH",
2219
- headers,
2220
- path: resolvedPath,
2221
- query,
2222
- body,
2223
- });
1447
+ b.m("PATCH").h(headers).q(query).b(body);
1448
+ return b.build();
2224
1449
  };
2225
1450
  exports.se_UpdatePositionCommand = se_UpdatePositionCommand;
2226
1451
  const se_UpdateResourceEventConfigurationCommand = async (input, context) => {
2227
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1452
+ const b = (0, core_1.requestBuilder)(input, context);
2228
1453
  const headers = {
2229
1454
  "content-type": "application/json",
2230
1455
  };
2231
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations/{Identifier}";
2232
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
1456
+ b.bp("/event-configurations/{Identifier}");
1457
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
2233
1458
  const query = (0, smithy_client_1.map)({
2234
- identifierType: [, (0, smithy_client_1.expectNonNull)(input.IdentifierType, `IdentifierType`)],
2235
- partnerType: [, input.PartnerType],
1459
+ [_iT]: [, (0, smithy_client_1.expectNonNull)(input[_IT], `IdentifierType`)],
1460
+ [_pT]: [, input[_PT]],
2236
1461
  });
2237
1462
  let body;
2238
1463
  body = JSON.stringify((0, smithy_client_1.take)(input, {
@@ -2242,51 +1467,35 @@ const se_UpdateResourceEventConfigurationCommand = async (input, context) => {
2242
1467
  MessageDeliveryStatus: (_) => (0, smithy_client_1._json)(_),
2243
1468
  Proximity: (_) => (0, smithy_client_1._json)(_),
2244
1469
  }));
2245
- return new protocol_http_1.HttpRequest({
2246
- protocol,
2247
- hostname,
2248
- port,
2249
- method: "PATCH",
2250
- headers,
2251
- path: resolvedPath,
2252
- query,
2253
- body,
2254
- });
1470
+ b.m("PATCH").h(headers).q(query).b(body);
1471
+ return b.build();
2255
1472
  };
2256
1473
  exports.se_UpdateResourceEventConfigurationCommand = se_UpdateResourceEventConfigurationCommand;
2257
1474
  const se_UpdateResourcePositionCommand = async (input, context) => {
2258
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1475
+ const b = (0, core_1.requestBuilder)(input, context);
2259
1476
  const headers = {
2260
1477
  "content-type": "application/octet-stream",
2261
1478
  };
2262
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-positions/{ResourceIdentifier}";
2263
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
1479
+ b.bp("/resource-positions/{ResourceIdentifier}");
1480
+ b.p("ResourceIdentifier", () => input.ResourceIdentifier, "{ResourceIdentifier}", false);
2264
1481
  const query = (0, smithy_client_1.map)({
2265
- resourceType: [, (0, smithy_client_1.expectNonNull)(input.ResourceType, `ResourceType`)],
1482
+ [_rT]: [, (0, smithy_client_1.expectNonNull)(input[_RT], `ResourceType`)],
2266
1483
  });
2267
1484
  let body;
2268
1485
  if (input.GeoJsonPayload !== undefined) {
2269
1486
  body = input.GeoJsonPayload;
2270
1487
  }
2271
- return new protocol_http_1.HttpRequest({
2272
- protocol,
2273
- hostname,
2274
- port,
2275
- method: "PATCH",
2276
- headers,
2277
- path: resolvedPath,
2278
- query,
2279
- body,
2280
- });
1488
+ b.m("PATCH").h(headers).q(query).b(body);
1489
+ return b.build();
2281
1490
  };
2282
1491
  exports.se_UpdateResourcePositionCommand = se_UpdateResourcePositionCommand;
2283
1492
  const se_UpdateWirelessDeviceCommand = async (input, context) => {
2284
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1493
+ const b = (0, core_1.requestBuilder)(input, context);
2285
1494
  const headers = {
2286
1495
  "content-type": "application/json",
2287
1496
  };
2288
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-devices/{Id}";
2289
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1497
+ b.bp("/wireless-devices/{Id}");
1498
+ b.p("Id", () => input.Id, "{Id}", false);
2290
1499
  let body;
2291
1500
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2292
1501
  Description: [],
@@ -2295,46 +1504,32 @@ const se_UpdateWirelessDeviceCommand = async (input, context) => {
2295
1504
  Name: [],
2296
1505
  Positioning: [],
2297
1506
  }));
2298
- return new protocol_http_1.HttpRequest({
2299
- protocol,
2300
- hostname,
2301
- port,
2302
- method: "PATCH",
2303
- headers,
2304
- path: resolvedPath,
2305
- body,
2306
- });
1507
+ b.m("PATCH").h(headers).b(body);
1508
+ return b.build();
2307
1509
  };
2308
1510
  exports.se_UpdateWirelessDeviceCommand = se_UpdateWirelessDeviceCommand;
2309
1511
  const se_UpdateWirelessDeviceImportTaskCommand = async (input, context) => {
2310
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1512
+ const b = (0, core_1.requestBuilder)(input, context);
2311
1513
  const headers = {
2312
1514
  "content-type": "application/json",
2313
1515
  };
2314
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless_device_import_task/{Id}";
2315
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1516
+ b.bp("/wireless_device_import_task/{Id}");
1517
+ b.p("Id", () => input.Id, "{Id}", false);
2316
1518
  let body;
2317
1519
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2318
1520
  Sidewalk: (_) => (0, smithy_client_1._json)(_),
2319
1521
  }));
2320
- return new protocol_http_1.HttpRequest({
2321
- protocol,
2322
- hostname,
2323
- port,
2324
- method: "PATCH",
2325
- headers,
2326
- path: resolvedPath,
2327
- body,
2328
- });
1522
+ b.m("PATCH").h(headers).b(body);
1523
+ return b.build();
2329
1524
  };
2330
1525
  exports.se_UpdateWirelessDeviceImportTaskCommand = se_UpdateWirelessDeviceImportTaskCommand;
2331
1526
  const se_UpdateWirelessGatewayCommand = async (input, context) => {
2332
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1527
+ const b = (0, core_1.requestBuilder)(input, context);
2333
1528
  const headers = {
2334
1529
  "content-type": "application/json",
2335
1530
  };
2336
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/wireless-gateways/{Id}";
2337
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
1531
+ b.bp("/wireless-gateways/{Id}");
1532
+ b.p("Id", () => input.Id, "{Id}", false);
2338
1533
  let body;
2339
1534
  body = JSON.stringify((0, smithy_client_1.take)(input, {
2340
1535
  Description: [],
@@ -2343,15 +1538,8 @@ const se_UpdateWirelessGatewayCommand = async (input, context) => {
2343
1538
  Name: [],
2344
1539
  NetIdFilters: (_) => (0, smithy_client_1._json)(_),
2345
1540
  }));
2346
- return new protocol_http_1.HttpRequest({
2347
- protocol,
2348
- hostname,
2349
- port,
2350
- method: "PATCH",
2351
- headers,
2352
- path: resolvedPath,
2353
- body,
2354
- });
1541
+ b.m("PATCH").h(headers).b(body);
1542
+ return b.build();
2355
1543
  };
2356
1544
  exports.se_UpdateWirelessGatewayCommand = se_UpdateWirelessGatewayCommand;
2357
1545
  const de_AssociateAwsAccountWithPartnerAccountCommand = async (output, context) => {
@@ -7688,6 +6876,44 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
7688
6876
  value !== "" &&
7689
6877
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
7690
6878
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
6879
+ const _DN = "DestinationName";
6880
+ const _DPI = "DeviceProfileId";
6881
+ const _DPT = "DeviceProfileType";
6882
+ const _FTI = "FuotaTaskId";
6883
+ const _I = "Id";
6884
+ const _IT = "IdentifierType";
6885
+ const _MGI = "MulticastGroupId";
6886
+ const _MI = "MessageId";
6887
+ const _MR = "MaxResults";
6888
+ const _NT = "NextToken";
6889
+ const _PT = "PartnerType";
6890
+ const _RA = "ResourceArn";
6891
+ const _RT = "ResourceType";
6892
+ const _S = "Status";
6893
+ const _SPI = "ServiceProfileId";
6894
+ const _ST = "ServiceType";
6895
+ const _TDT = "TaskDefinitionType";
6896
+ const _TK = "TagKeys";
6897
+ const _WDT = "WirelessDeviceType";
6898
+ const _dN = "destinationName";
6899
+ const _dPI = "deviceProfileId";
6900
+ const _dPT = "deviceProfileType";
6901
+ const _fTI = "fuotaTaskId";
6902
+ const _i = "id";
6903
+ const _iT = "identifierType";
6904
+ const _mGI = "multicastGroupId";
6905
+ const _mI = "messageId";
6906
+ const _mR = "maxResults";
6907
+ const _nT = "nextToken";
6908
+ const _pT = "partnerType";
6909
+ const _rA = "resourceArn";
6910
+ const _rT = "resourceType";
6911
+ const _s = "status";
6912
+ const _sPI = "serviceProfileId";
6913
+ const _sT = "serviceType";
6914
+ const _tDT = "taskDefinitionType";
6915
+ const _tK = "tagKeys";
6916
+ const _wDT = "wirelessDeviceType";
7691
6917
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
7692
6918
  if (encoded.length) {
7693
6919
  return JSON.parse(encoded);