@aws-sdk/client-greengrass 3.476.0 → 3.477.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,323 +4,227 @@ exports.se_GetResourceDefinitionCommand = exports.se_GetLoggerDefinitionVersionC
4
4
  exports.de_CreateDeviceDefinitionCommand = exports.de_CreateDeploymentCommand = exports.de_CreateCoreDefinitionVersionCommand = exports.de_CreateCoreDefinitionCommand = exports.de_CreateConnectorDefinitionVersionCommand = exports.de_CreateConnectorDefinitionCommand = exports.de_AssociateServiceRoleToAccountCommand = exports.de_AssociateRoleToGroupCommand = exports.se_UpdateThingRuntimeConfigurationCommand = exports.se_UpdateSubscriptionDefinitionCommand = exports.se_UpdateResourceDefinitionCommand = exports.se_UpdateLoggerDefinitionCommand = exports.se_UpdateGroupCertificateConfigurationCommand = exports.se_UpdateGroupCommand = exports.se_UpdateFunctionDefinitionCommand = exports.se_UpdateDeviceDefinitionCommand = exports.se_UpdateCoreDefinitionCommand = exports.se_UpdateConnectorDefinitionCommand = exports.se_UpdateConnectivityInfoCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopBulkDeploymentCommand = exports.se_StartBulkDeploymentCommand = exports.se_ResetDeploymentsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubscriptionDefinitionVersionsCommand = exports.se_ListSubscriptionDefinitionsCommand = exports.se_ListResourceDefinitionVersionsCommand = exports.se_ListResourceDefinitionsCommand = exports.se_ListLoggerDefinitionVersionsCommand = exports.se_ListLoggerDefinitionsCommand = exports.se_ListGroupVersionsCommand = exports.se_ListGroupsCommand = exports.se_ListGroupCertificateAuthoritiesCommand = exports.se_ListFunctionDefinitionVersionsCommand = exports.se_ListFunctionDefinitionsCommand = exports.se_ListDeviceDefinitionVersionsCommand = exports.se_ListDeviceDefinitionsCommand = exports.se_ListDeploymentsCommand = exports.se_ListCoreDefinitionVersionsCommand = exports.se_ListCoreDefinitionsCommand = exports.se_ListConnectorDefinitionVersionsCommand = exports.se_ListConnectorDefinitionsCommand = exports.se_ListBulkDeploymentsCommand = exports.se_ListBulkDeploymentDetailedReportsCommand = exports.se_GetThingRuntimeConfigurationCommand = exports.se_GetSubscriptionDefinitionVersionCommand = exports.se_GetSubscriptionDefinitionCommand = exports.se_GetServiceRoleForAccountCommand = exports.se_GetResourceDefinitionVersionCommand = void 0;
5
5
  exports.de_ListConnectorDefinitionsCommand = exports.de_ListBulkDeploymentsCommand = exports.de_ListBulkDeploymentDetailedReportsCommand = exports.de_GetThingRuntimeConfigurationCommand = exports.de_GetSubscriptionDefinitionVersionCommand = exports.de_GetSubscriptionDefinitionCommand = exports.de_GetServiceRoleForAccountCommand = exports.de_GetResourceDefinitionVersionCommand = exports.de_GetResourceDefinitionCommand = exports.de_GetLoggerDefinitionVersionCommand = exports.de_GetLoggerDefinitionCommand = exports.de_GetGroupVersionCommand = exports.de_GetGroupCertificateConfigurationCommand = exports.de_GetGroupCertificateAuthorityCommand = exports.de_GetGroupCommand = exports.de_GetFunctionDefinitionVersionCommand = exports.de_GetFunctionDefinitionCommand = exports.de_GetDeviceDefinitionVersionCommand = exports.de_GetDeviceDefinitionCommand = exports.de_GetDeploymentStatusCommand = exports.de_GetCoreDefinitionVersionCommand = exports.de_GetCoreDefinitionCommand = exports.de_GetConnectorDefinitionVersionCommand = exports.de_GetConnectorDefinitionCommand = exports.de_GetConnectivityInfoCommand = exports.de_GetBulkDeploymentStatusCommand = exports.de_GetAssociatedRoleCommand = exports.de_DisassociateServiceRoleFromAccountCommand = exports.de_DisassociateRoleFromGroupCommand = exports.de_DeleteSubscriptionDefinitionCommand = exports.de_DeleteResourceDefinitionCommand = exports.de_DeleteLoggerDefinitionCommand = exports.de_DeleteGroupCommand = exports.de_DeleteFunctionDefinitionCommand = exports.de_DeleteDeviceDefinitionCommand = exports.de_DeleteCoreDefinitionCommand = exports.de_DeleteConnectorDefinitionCommand = exports.de_CreateSubscriptionDefinitionVersionCommand = exports.de_CreateSubscriptionDefinitionCommand = exports.de_CreateSoftwareUpdateJobCommand = exports.de_CreateResourceDefinitionVersionCommand = exports.de_CreateResourceDefinitionCommand = exports.de_CreateLoggerDefinitionVersionCommand = exports.de_CreateLoggerDefinitionCommand = exports.de_CreateGroupVersionCommand = exports.de_CreateGroupCertificateAuthorityCommand = exports.de_CreateGroupCommand = exports.de_CreateFunctionDefinitionVersionCommand = exports.de_CreateFunctionDefinitionCommand = exports.de_CreateDeviceDefinitionVersionCommand = void 0;
6
6
  exports.de_UpdateThingRuntimeConfigurationCommand = exports.de_UpdateSubscriptionDefinitionCommand = exports.de_UpdateResourceDefinitionCommand = exports.de_UpdateLoggerDefinitionCommand = exports.de_UpdateGroupCertificateConfigurationCommand = exports.de_UpdateGroupCommand = exports.de_UpdateFunctionDefinitionCommand = exports.de_UpdateDeviceDefinitionCommand = exports.de_UpdateCoreDefinitionCommand = exports.de_UpdateConnectorDefinitionCommand = exports.de_UpdateConnectivityInfoCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopBulkDeploymentCommand = exports.de_StartBulkDeploymentCommand = exports.de_ResetDeploymentsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubscriptionDefinitionVersionsCommand = exports.de_ListSubscriptionDefinitionsCommand = exports.de_ListResourceDefinitionVersionsCommand = exports.de_ListResourceDefinitionsCommand = exports.de_ListLoggerDefinitionVersionsCommand = exports.de_ListLoggerDefinitionsCommand = exports.de_ListGroupVersionsCommand = exports.de_ListGroupsCommand = exports.de_ListGroupCertificateAuthoritiesCommand = exports.de_ListFunctionDefinitionVersionsCommand = exports.de_ListFunctionDefinitionsCommand = exports.de_ListDeviceDefinitionVersionsCommand = exports.de_ListDeviceDefinitionsCommand = exports.de_ListDeploymentsCommand = exports.de_ListCoreDefinitionVersionsCommand = exports.de_ListCoreDefinitionsCommand = exports.de_ListConnectorDefinitionVersionsCommand = void 0;
7
- const protocol_http_1 = require("@smithy/protocol-http");
7
+ const core_1 = require("@smithy/core");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  const GreengrassServiceException_1 = require("../models/GreengrassServiceException");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const se_AssociateRoleToGroupCommand = async (input, context) => {
12
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12
+ const b = (0, core_1.requestBuilder)(input, context);
13
13
  const headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/role";
17
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
16
+ b.bp("/greengrass/groups/{GroupId}/role");
17
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
18
18
  let body;
19
19
  body = JSON.stringify((0, smithy_client_1.take)(input, {
20
20
  RoleArn: [],
21
21
  }));
22
- return new protocol_http_1.HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "PUT",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
22
+ b.m("PUT").h(headers).b(body);
23
+ return b.build();
31
24
  };
32
25
  exports.se_AssociateRoleToGroupCommand = se_AssociateRoleToGroupCommand;
33
26
  const se_AssociateServiceRoleToAccountCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = (0, core_1.requestBuilder)(input, context);
35
28
  const headers = {
36
29
  "content-type": "application/json",
37
30
  };
38
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole";
31
+ b.bp("/greengrass/servicerole");
39
32
  let body;
40
33
  body = JSON.stringify((0, smithy_client_1.take)(input, {
41
34
  RoleArn: [],
42
35
  }));
43
- return new protocol_http_1.HttpRequest({
44
- protocol,
45
- hostname,
46
- port,
47
- method: "PUT",
48
- headers,
49
- path: resolvedPath,
50
- body,
51
- });
36
+ b.m("PUT").h(headers).b(body);
37
+ return b.build();
52
38
  };
53
39
  exports.se_AssociateServiceRoleToAccountCommand = se_AssociateServiceRoleToAccountCommand;
54
40
  const se_CreateConnectorDefinitionCommand = async (input, context) => {
55
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
41
+ const b = (0, core_1.requestBuilder)(input, context);
56
42
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
57
43
  "content-type": "application/json",
58
- "x-amzn-client-token": input.AmznClientToken,
44
+ [_xact]: input[_ACT],
59
45
  });
60
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/connectors";
46
+ b.bp("/greengrass/definition/connectors");
61
47
  let body;
62
48
  body = JSON.stringify((0, smithy_client_1.take)(input, {
63
49
  InitialVersion: (_) => (0, smithy_client_1._json)(_),
64
50
  Name: [],
65
51
  tags: (_) => (0, smithy_client_1._json)(_),
66
52
  }));
67
- return new protocol_http_1.HttpRequest({
68
- protocol,
69
- hostname,
70
- port,
71
- method: "POST",
72
- headers,
73
- path: resolvedPath,
74
- body,
75
- });
53
+ b.m("POST").h(headers).b(body);
54
+ return b.build();
76
55
  };
77
56
  exports.se_CreateConnectorDefinitionCommand = se_CreateConnectorDefinitionCommand;
78
57
  const se_CreateConnectorDefinitionVersionCommand = async (input, context) => {
79
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
58
+ const b = (0, core_1.requestBuilder)(input, context);
80
59
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
81
60
  "content-type": "application/json",
82
- "x-amzn-client-token": input.AmznClientToken,
61
+ [_xact]: input[_ACT],
83
62
  });
84
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
85
- "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions";
86
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
63
+ b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}/versions");
64
+ b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
87
65
  let body;
88
66
  body = JSON.stringify((0, smithy_client_1.take)(input, {
89
67
  Connectors: (_) => (0, smithy_client_1._json)(_),
90
68
  }));
91
- return new protocol_http_1.HttpRequest({
92
- protocol,
93
- hostname,
94
- port,
95
- method: "POST",
96
- headers,
97
- path: resolvedPath,
98
- body,
99
- });
69
+ b.m("POST").h(headers).b(body);
70
+ return b.build();
100
71
  };
101
72
  exports.se_CreateConnectorDefinitionVersionCommand = se_CreateConnectorDefinitionVersionCommand;
102
73
  const se_CreateCoreDefinitionCommand = async (input, context) => {
103
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
74
+ const b = (0, core_1.requestBuilder)(input, context);
104
75
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
105
76
  "content-type": "application/json",
106
- "x-amzn-client-token": input.AmznClientToken,
77
+ [_xact]: input[_ACT],
107
78
  });
108
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/cores";
79
+ b.bp("/greengrass/definition/cores");
109
80
  let body;
110
81
  body = JSON.stringify((0, smithy_client_1.take)(input, {
111
82
  InitialVersion: (_) => (0, smithy_client_1._json)(_),
112
83
  Name: [],
113
84
  tags: (_) => (0, smithy_client_1._json)(_),
114
85
  }));
115
- return new protocol_http_1.HttpRequest({
116
- protocol,
117
- hostname,
118
- port,
119
- method: "POST",
120
- headers,
121
- path: resolvedPath,
122
- body,
123
- });
86
+ b.m("POST").h(headers).b(body);
87
+ return b.build();
124
88
  };
125
89
  exports.se_CreateCoreDefinitionCommand = se_CreateCoreDefinitionCommand;
126
90
  const se_CreateCoreDefinitionVersionCommand = async (input, context) => {
127
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
91
+ const b = (0, core_1.requestBuilder)(input, context);
128
92
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
129
93
  "content-type": "application/json",
130
- "x-amzn-client-token": input.AmznClientToken,
94
+ [_xact]: input[_ACT],
131
95
  });
132
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
133
- "/greengrass/definition/cores/{CoreDefinitionId}/versions";
134
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
96
+ b.bp("/greengrass/definition/cores/{CoreDefinitionId}/versions");
97
+ b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
135
98
  let body;
136
99
  body = JSON.stringify((0, smithy_client_1.take)(input, {
137
100
  Cores: (_) => (0, smithy_client_1._json)(_),
138
101
  }));
139
- return new protocol_http_1.HttpRequest({
140
- protocol,
141
- hostname,
142
- port,
143
- method: "POST",
144
- headers,
145
- path: resolvedPath,
146
- body,
147
- });
102
+ b.m("POST").h(headers).b(body);
103
+ return b.build();
148
104
  };
149
105
  exports.se_CreateCoreDefinitionVersionCommand = se_CreateCoreDefinitionVersionCommand;
150
106
  const se_CreateDeploymentCommand = async (input, context) => {
151
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = (0, core_1.requestBuilder)(input, context);
152
108
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
153
109
  "content-type": "application/json",
154
- "x-amzn-client-token": input.AmznClientToken,
110
+ [_xact]: input[_ACT],
155
111
  });
156
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/deployments";
157
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
112
+ b.bp("/greengrass/groups/{GroupId}/deployments");
113
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
158
114
  let body;
159
115
  body = JSON.stringify((0, smithy_client_1.take)(input, {
160
116
  DeploymentId: [],
161
117
  DeploymentType: [],
162
118
  GroupVersionId: [],
163
119
  }));
164
- return new protocol_http_1.HttpRequest({
165
- protocol,
166
- hostname,
167
- port,
168
- method: "POST",
169
- headers,
170
- path: resolvedPath,
171
- body,
172
- });
120
+ b.m("POST").h(headers).b(body);
121
+ return b.build();
173
122
  };
174
123
  exports.se_CreateDeploymentCommand = se_CreateDeploymentCommand;
175
124
  const se_CreateDeviceDefinitionCommand = async (input, context) => {
176
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
125
+ const b = (0, core_1.requestBuilder)(input, context);
177
126
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
178
127
  "content-type": "application/json",
179
- "x-amzn-client-token": input.AmznClientToken,
128
+ [_xact]: input[_ACT],
180
129
  });
181
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/devices";
130
+ b.bp("/greengrass/definition/devices");
182
131
  let body;
183
132
  body = JSON.stringify((0, smithy_client_1.take)(input, {
184
133
  InitialVersion: (_) => (0, smithy_client_1._json)(_),
185
134
  Name: [],
186
135
  tags: (_) => (0, smithy_client_1._json)(_),
187
136
  }));
188
- return new protocol_http_1.HttpRequest({
189
- protocol,
190
- hostname,
191
- port,
192
- method: "POST",
193
- headers,
194
- path: resolvedPath,
195
- body,
196
- });
137
+ b.m("POST").h(headers).b(body);
138
+ return b.build();
197
139
  };
198
140
  exports.se_CreateDeviceDefinitionCommand = se_CreateDeviceDefinitionCommand;
199
141
  const se_CreateDeviceDefinitionVersionCommand = async (input, context) => {
200
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
142
+ const b = (0, core_1.requestBuilder)(input, context);
201
143
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
202
144
  "content-type": "application/json",
203
- "x-amzn-client-token": input.AmznClientToken,
145
+ [_xact]: input[_ACT],
204
146
  });
205
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
206
- "/greengrass/definition/devices/{DeviceDefinitionId}/versions";
207
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
147
+ b.bp("/greengrass/definition/devices/{DeviceDefinitionId}/versions");
148
+ b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
208
149
  let body;
209
150
  body = JSON.stringify((0, smithy_client_1.take)(input, {
210
151
  Devices: (_) => (0, smithy_client_1._json)(_),
211
152
  }));
212
- return new protocol_http_1.HttpRequest({
213
- protocol,
214
- hostname,
215
- port,
216
- method: "POST",
217
- headers,
218
- path: resolvedPath,
219
- body,
220
- });
153
+ b.m("POST").h(headers).b(body);
154
+ return b.build();
221
155
  };
222
156
  exports.se_CreateDeviceDefinitionVersionCommand = se_CreateDeviceDefinitionVersionCommand;
223
157
  const se_CreateFunctionDefinitionCommand = async (input, context) => {
224
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
+ const b = (0, core_1.requestBuilder)(input, context);
225
159
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
226
160
  "content-type": "application/json",
227
- "x-amzn-client-token": input.AmznClientToken,
161
+ [_xact]: input[_ACT],
228
162
  });
229
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/functions";
163
+ b.bp("/greengrass/definition/functions");
230
164
  let body;
231
165
  body = JSON.stringify((0, smithy_client_1.take)(input, {
232
166
  InitialVersion: (_) => (0, smithy_client_1._json)(_),
233
167
  Name: [],
234
168
  tags: (_) => (0, smithy_client_1._json)(_),
235
169
  }));
236
- return new protocol_http_1.HttpRequest({
237
- protocol,
238
- hostname,
239
- port,
240
- method: "POST",
241
- headers,
242
- path: resolvedPath,
243
- body,
244
- });
170
+ b.m("POST").h(headers).b(body);
171
+ return b.build();
245
172
  };
246
173
  exports.se_CreateFunctionDefinitionCommand = se_CreateFunctionDefinitionCommand;
247
174
  const se_CreateFunctionDefinitionVersionCommand = async (input, context) => {
248
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
+ const b = (0, core_1.requestBuilder)(input, context);
249
176
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
250
177
  "content-type": "application/json",
251
- "x-amzn-client-token": input.AmznClientToken,
178
+ [_xact]: input[_ACT],
252
179
  });
253
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
254
- "/greengrass/definition/functions/{FunctionDefinitionId}/versions";
255
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
180
+ b.bp("/greengrass/definition/functions/{FunctionDefinitionId}/versions");
181
+ b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
256
182
  let body;
257
183
  body = JSON.stringify((0, smithy_client_1.take)(input, {
258
184
  DefaultConfig: (_) => (0, smithy_client_1._json)(_),
259
185
  Functions: (_) => (0, smithy_client_1._json)(_),
260
186
  }));
261
- return new protocol_http_1.HttpRequest({
262
- protocol,
263
- hostname,
264
- port,
265
- method: "POST",
266
- headers,
267
- path: resolvedPath,
268
- body,
269
- });
187
+ b.m("POST").h(headers).b(body);
188
+ return b.build();
270
189
  };
271
190
  exports.se_CreateFunctionDefinitionVersionCommand = se_CreateFunctionDefinitionVersionCommand;
272
191
  const se_CreateGroupCommand = async (input, context) => {
273
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
192
+ const b = (0, core_1.requestBuilder)(input, context);
274
193
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
275
194
  "content-type": "application/json",
276
- "x-amzn-client-token": input.AmznClientToken,
195
+ [_xact]: input[_ACT],
277
196
  });
278
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups";
197
+ b.bp("/greengrass/groups");
279
198
  let body;
280
199
  body = JSON.stringify((0, smithy_client_1.take)(input, {
281
200
  InitialVersion: (_) => (0, smithy_client_1._json)(_),
282
201
  Name: [],
283
202
  tags: (_) => (0, smithy_client_1._json)(_),
284
203
  }));
285
- return new protocol_http_1.HttpRequest({
286
- protocol,
287
- hostname,
288
- port,
289
- method: "POST",
290
- headers,
291
- path: resolvedPath,
292
- body,
293
- });
204
+ b.m("POST").h(headers).b(body);
205
+ return b.build();
294
206
  };
295
207
  exports.se_CreateGroupCommand = se_CreateGroupCommand;
296
208
  const se_CreateGroupCertificateAuthorityCommand = async (input, context) => {
297
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
209
+ const b = (0, core_1.requestBuilder)(input, context);
298
210
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
299
- "x-amzn-client-token": input.AmznClientToken,
211
+ [_xact]: input[_ACT],
300
212
  });
301
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
302
- "/greengrass/groups/{GroupId}/certificateauthorities";
303
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
213
+ b.bp("/greengrass/groups/{GroupId}/certificateauthorities");
214
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
304
215
  let body;
305
- return new protocol_http_1.HttpRequest({
306
- protocol,
307
- hostname,
308
- port,
309
- method: "POST",
310
- headers,
311
- path: resolvedPath,
312
- body,
313
- });
216
+ b.m("POST").h(headers).b(body);
217
+ return b.build();
314
218
  };
315
219
  exports.se_CreateGroupCertificateAuthorityCommand = se_CreateGroupCertificateAuthorityCommand;
316
220
  const se_CreateGroupVersionCommand = async (input, context) => {
317
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
221
+ const b = (0, core_1.requestBuilder)(input, context);
318
222
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
319
223
  "content-type": "application/json",
320
- "x-amzn-client-token": input.AmznClientToken,
224
+ [_xact]: input[_ACT],
321
225
  });
322
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/versions";
323
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
226
+ b.bp("/greengrass/groups/{GroupId}/versions");
227
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
324
228
  let body;
325
229
  body = JSON.stringify((0, smithy_client_1.take)(input, {
326
230
  ConnectorDefinitionVersionArn: [],
@@ -331,120 +235,83 @@ const se_CreateGroupVersionCommand = async (input, context) => {
331
235
  ResourceDefinitionVersionArn: [],
332
236
  SubscriptionDefinitionVersionArn: [],
333
237
  }));
334
- return new protocol_http_1.HttpRequest({
335
- protocol,
336
- hostname,
337
- port,
338
- method: "POST",
339
- headers,
340
- path: resolvedPath,
341
- body,
342
- });
238
+ b.m("POST").h(headers).b(body);
239
+ return b.build();
343
240
  };
344
241
  exports.se_CreateGroupVersionCommand = se_CreateGroupVersionCommand;
345
242
  const se_CreateLoggerDefinitionCommand = async (input, context) => {
346
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
243
+ const b = (0, core_1.requestBuilder)(input, context);
347
244
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
348
245
  "content-type": "application/json",
349
- "x-amzn-client-token": input.AmznClientToken,
246
+ [_xact]: input[_ACT],
350
247
  });
351
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/loggers";
248
+ b.bp("/greengrass/definition/loggers");
352
249
  let body;
353
250
  body = JSON.stringify((0, smithy_client_1.take)(input, {
354
251
  InitialVersion: (_) => (0, smithy_client_1._json)(_),
355
252
  Name: [],
356
253
  tags: (_) => (0, smithy_client_1._json)(_),
357
254
  }));
358
- return new protocol_http_1.HttpRequest({
359
- protocol,
360
- hostname,
361
- port,
362
- method: "POST",
363
- headers,
364
- path: resolvedPath,
365
- body,
366
- });
255
+ b.m("POST").h(headers).b(body);
256
+ return b.build();
367
257
  };
368
258
  exports.se_CreateLoggerDefinitionCommand = se_CreateLoggerDefinitionCommand;
369
259
  const se_CreateLoggerDefinitionVersionCommand = async (input, context) => {
370
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
260
+ const b = (0, core_1.requestBuilder)(input, context);
371
261
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
372
262
  "content-type": "application/json",
373
- "x-amzn-client-token": input.AmznClientToken,
263
+ [_xact]: input[_ACT],
374
264
  });
375
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
376
- "/greengrass/definition/loggers/{LoggerDefinitionId}/versions";
377
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
265
+ b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}/versions");
266
+ b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
378
267
  let body;
379
268
  body = JSON.stringify((0, smithy_client_1.take)(input, {
380
269
  Loggers: (_) => (0, smithy_client_1._json)(_),
381
270
  }));
382
- return new protocol_http_1.HttpRequest({
383
- protocol,
384
- hostname,
385
- port,
386
- method: "POST",
387
- headers,
388
- path: resolvedPath,
389
- body,
390
- });
271
+ b.m("POST").h(headers).b(body);
272
+ return b.build();
391
273
  };
392
274
  exports.se_CreateLoggerDefinitionVersionCommand = se_CreateLoggerDefinitionVersionCommand;
393
275
  const se_CreateResourceDefinitionCommand = async (input, context) => {
394
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
276
+ const b = (0, core_1.requestBuilder)(input, context);
395
277
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
396
278
  "content-type": "application/json",
397
- "x-amzn-client-token": input.AmznClientToken,
279
+ [_xact]: input[_ACT],
398
280
  });
399
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/resources";
281
+ b.bp("/greengrass/definition/resources");
400
282
  let body;
401
283
  body = JSON.stringify((0, smithy_client_1.take)(input, {
402
284
  InitialVersion: (_) => (0, smithy_client_1._json)(_),
403
285
  Name: [],
404
286
  tags: (_) => (0, smithy_client_1._json)(_),
405
287
  }));
406
- return new protocol_http_1.HttpRequest({
407
- protocol,
408
- hostname,
409
- port,
410
- method: "POST",
411
- headers,
412
- path: resolvedPath,
413
- body,
414
- });
288
+ b.m("POST").h(headers).b(body);
289
+ return b.build();
415
290
  };
416
291
  exports.se_CreateResourceDefinitionCommand = se_CreateResourceDefinitionCommand;
417
292
  const se_CreateResourceDefinitionVersionCommand = async (input, context) => {
418
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
293
+ const b = (0, core_1.requestBuilder)(input, context);
419
294
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
420
295
  "content-type": "application/json",
421
- "x-amzn-client-token": input.AmznClientToken,
296
+ [_xact]: input[_ACT],
422
297
  });
423
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
424
- "/greengrass/definition/resources/{ResourceDefinitionId}/versions";
425
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
298
+ b.bp("/greengrass/definition/resources/{ResourceDefinitionId}/versions");
299
+ b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
426
300
  let body;
427
301
  body = JSON.stringify((0, smithy_client_1.take)(input, {
428
302
  Resources: (_) => (0, smithy_client_1._json)(_),
429
303
  }));
430
- return new protocol_http_1.HttpRequest({
431
- protocol,
432
- hostname,
433
- port,
434
- method: "POST",
435
- headers,
436
- path: resolvedPath,
437
- body,
438
- });
304
+ b.m("POST").h(headers).b(body);
305
+ return b.build();
439
306
  };
440
307
  exports.se_CreateResourceDefinitionVersionCommand = se_CreateResourceDefinitionVersionCommand;
441
308
  const se_CreateSoftwareUpdateJobCommand = async (input, context) => {
442
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
309
+ const b = (0, core_1.requestBuilder)(input, context);
443
310
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
444
311
  "content-type": "application/json",
445
- "x-amzn-client-token": input.AmznClientToken,
312
+ [_xact]: input[_ACT],
446
313
  });
447
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/updates";
314
+ b.bp("/greengrass/updates");
448
315
  let body;
449
316
  body = JSON.stringify((0, smithy_client_1.take)(input, {
450
317
  S3UrlSignerRole: [],
@@ -454,1519 +321,926 @@ const se_CreateSoftwareUpdateJobCommand = async (input, context) => {
454
321
  UpdateTargetsArchitecture: [],
455
322
  UpdateTargetsOperatingSystem: [],
456
323
  }));
457
- return new protocol_http_1.HttpRequest({
458
- protocol,
459
- hostname,
460
- port,
461
- method: "POST",
462
- headers,
463
- path: resolvedPath,
464
- body,
465
- });
324
+ b.m("POST").h(headers).b(body);
325
+ return b.build();
466
326
  };
467
327
  exports.se_CreateSoftwareUpdateJobCommand = se_CreateSoftwareUpdateJobCommand;
468
328
  const se_CreateSubscriptionDefinitionCommand = async (input, context) => {
469
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
329
+ const b = (0, core_1.requestBuilder)(input, context);
470
330
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
471
331
  "content-type": "application/json",
472
- "x-amzn-client-token": input.AmznClientToken,
332
+ [_xact]: input[_ACT],
473
333
  });
474
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/subscriptions";
334
+ b.bp("/greengrass/definition/subscriptions");
475
335
  let body;
476
336
  body = JSON.stringify((0, smithy_client_1.take)(input, {
477
337
  InitialVersion: (_) => (0, smithy_client_1._json)(_),
478
338
  Name: [],
479
339
  tags: (_) => (0, smithy_client_1._json)(_),
480
340
  }));
481
- return new protocol_http_1.HttpRequest({
482
- protocol,
483
- hostname,
484
- port,
485
- method: "POST",
486
- headers,
487
- path: resolvedPath,
488
- body,
489
- });
341
+ b.m("POST").h(headers).b(body);
342
+ return b.build();
490
343
  };
491
344
  exports.se_CreateSubscriptionDefinitionCommand = se_CreateSubscriptionDefinitionCommand;
492
345
  const se_CreateSubscriptionDefinitionVersionCommand = async (input, context) => {
493
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
346
+ const b = (0, core_1.requestBuilder)(input, context);
494
347
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
495
348
  "content-type": "application/json",
496
- "x-amzn-client-token": input.AmznClientToken,
349
+ [_xact]: input[_ACT],
497
350
  });
498
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
499
- "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions";
500
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
351
+ b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions");
352
+ b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
501
353
  let body;
502
354
  body = JSON.stringify((0, smithy_client_1.take)(input, {
503
355
  Subscriptions: (_) => (0, smithy_client_1._json)(_),
504
356
  }));
505
- return new protocol_http_1.HttpRequest({
506
- protocol,
507
- hostname,
508
- port,
509
- method: "POST",
510
- headers,
511
- path: resolvedPath,
512
- body,
513
- });
357
+ b.m("POST").h(headers).b(body);
358
+ return b.build();
514
359
  };
515
360
  exports.se_CreateSubscriptionDefinitionVersionCommand = se_CreateSubscriptionDefinitionVersionCommand;
516
361
  const se_DeleteConnectorDefinitionCommand = async (input, context) => {
517
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
362
+ const b = (0, core_1.requestBuilder)(input, context);
518
363
  const headers = {};
519
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
520
- "/greengrass/definition/connectors/{ConnectorDefinitionId}";
521
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
364
+ b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}");
365
+ b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
522
366
  let body;
523
- return new protocol_http_1.HttpRequest({
524
- protocol,
525
- hostname,
526
- port,
527
- method: "DELETE",
528
- headers,
529
- path: resolvedPath,
530
- body,
531
- });
367
+ b.m("DELETE").h(headers).b(body);
368
+ return b.build();
532
369
  };
533
370
  exports.se_DeleteConnectorDefinitionCommand = se_DeleteConnectorDefinitionCommand;
534
371
  const se_DeleteCoreDefinitionCommand = async (input, context) => {
535
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
372
+ const b = (0, core_1.requestBuilder)(input, context);
536
373
  const headers = {};
537
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
538
- "/greengrass/definition/cores/{CoreDefinitionId}";
539
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
374
+ b.bp("/greengrass/definition/cores/{CoreDefinitionId}");
375
+ b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
540
376
  let body;
541
- return new protocol_http_1.HttpRequest({
542
- protocol,
543
- hostname,
544
- port,
545
- method: "DELETE",
546
- headers,
547
- path: resolvedPath,
548
- body,
549
- });
377
+ b.m("DELETE").h(headers).b(body);
378
+ return b.build();
550
379
  };
551
380
  exports.se_DeleteCoreDefinitionCommand = se_DeleteCoreDefinitionCommand;
552
381
  const se_DeleteDeviceDefinitionCommand = async (input, context) => {
553
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
382
+ const b = (0, core_1.requestBuilder)(input, context);
554
383
  const headers = {};
555
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
556
- "/greengrass/definition/devices/{DeviceDefinitionId}";
557
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
384
+ b.bp("/greengrass/definition/devices/{DeviceDefinitionId}");
385
+ b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
558
386
  let body;
559
- return new protocol_http_1.HttpRequest({
560
- protocol,
561
- hostname,
562
- port,
563
- method: "DELETE",
564
- headers,
565
- path: resolvedPath,
566
- body,
567
- });
387
+ b.m("DELETE").h(headers).b(body);
388
+ return b.build();
568
389
  };
569
390
  exports.se_DeleteDeviceDefinitionCommand = se_DeleteDeviceDefinitionCommand;
570
391
  const se_DeleteFunctionDefinitionCommand = async (input, context) => {
571
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
392
+ const b = (0, core_1.requestBuilder)(input, context);
572
393
  const headers = {};
573
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
574
- "/greengrass/definition/functions/{FunctionDefinitionId}";
575
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
394
+ b.bp("/greengrass/definition/functions/{FunctionDefinitionId}");
395
+ b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
576
396
  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
- });
397
+ b.m("DELETE").h(headers).b(body);
398
+ return b.build();
586
399
  };
587
400
  exports.se_DeleteFunctionDefinitionCommand = se_DeleteFunctionDefinitionCommand;
588
401
  const se_DeleteGroupCommand = async (input, context) => {
589
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
402
+ const b = (0, core_1.requestBuilder)(input, context);
590
403
  const headers = {};
591
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}";
592
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
404
+ b.bp("/greengrass/groups/{GroupId}");
405
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
593
406
  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
- });
407
+ b.m("DELETE").h(headers).b(body);
408
+ return b.build();
603
409
  };
604
410
  exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
605
411
  const se_DeleteLoggerDefinitionCommand = async (input, context) => {
606
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
412
+ const b = (0, core_1.requestBuilder)(input, context);
607
413
  const headers = {};
608
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
609
- "/greengrass/definition/loggers/{LoggerDefinitionId}";
610
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
414
+ b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}");
415
+ b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
611
416
  let body;
612
- return new protocol_http_1.HttpRequest({
613
- protocol,
614
- hostname,
615
- port,
616
- method: "DELETE",
617
- headers,
618
- path: resolvedPath,
619
- body,
620
- });
417
+ b.m("DELETE").h(headers).b(body);
418
+ return b.build();
621
419
  };
622
420
  exports.se_DeleteLoggerDefinitionCommand = se_DeleteLoggerDefinitionCommand;
623
421
  const se_DeleteResourceDefinitionCommand = async (input, context) => {
624
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
422
+ const b = (0, core_1.requestBuilder)(input, context);
625
423
  const headers = {};
626
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
627
- "/greengrass/definition/resources/{ResourceDefinitionId}";
628
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
424
+ b.bp("/greengrass/definition/resources/{ResourceDefinitionId}");
425
+ b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
629
426
  let body;
630
- return new protocol_http_1.HttpRequest({
631
- protocol,
632
- hostname,
633
- port,
634
- method: "DELETE",
635
- headers,
636
- path: resolvedPath,
637
- body,
638
- });
427
+ b.m("DELETE").h(headers).b(body);
428
+ return b.build();
639
429
  };
640
430
  exports.se_DeleteResourceDefinitionCommand = se_DeleteResourceDefinitionCommand;
641
431
  const se_DeleteSubscriptionDefinitionCommand = async (input, context) => {
642
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
432
+ const b = (0, core_1.requestBuilder)(input, context);
643
433
  const headers = {};
644
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
645
- "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}";
646
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
434
+ b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}");
435
+ b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
647
436
  let body;
648
- return new protocol_http_1.HttpRequest({
649
- protocol,
650
- hostname,
651
- port,
652
- method: "DELETE",
653
- headers,
654
- path: resolvedPath,
655
- body,
656
- });
437
+ b.m("DELETE").h(headers).b(body);
438
+ return b.build();
657
439
  };
658
440
  exports.se_DeleteSubscriptionDefinitionCommand = se_DeleteSubscriptionDefinitionCommand;
659
441
  const se_DisassociateRoleFromGroupCommand = async (input, context) => {
660
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
442
+ const b = (0, core_1.requestBuilder)(input, context);
661
443
  const headers = {};
662
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/role";
663
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
444
+ b.bp("/greengrass/groups/{GroupId}/role");
445
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
664
446
  let body;
665
- return new protocol_http_1.HttpRequest({
666
- protocol,
667
- hostname,
668
- port,
669
- method: "DELETE",
670
- headers,
671
- path: resolvedPath,
672
- body,
673
- });
447
+ b.m("DELETE").h(headers).b(body);
448
+ return b.build();
674
449
  };
675
450
  exports.se_DisassociateRoleFromGroupCommand = se_DisassociateRoleFromGroupCommand;
676
451
  const se_DisassociateServiceRoleFromAccountCommand = async (input, context) => {
677
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
452
+ const b = (0, core_1.requestBuilder)(input, context);
678
453
  const headers = {
679
454
  "content-type": "application/json",
680
455
  };
681
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole";
456
+ b.bp("/greengrass/servicerole");
682
457
  let body;
683
458
  body = "";
684
- return new protocol_http_1.HttpRequest({
685
- protocol,
686
- hostname,
687
- port,
688
- method: "DELETE",
689
- headers,
690
- path: resolvedPath,
691
- body,
692
- });
459
+ b.m("DELETE").h(headers).b(body);
460
+ return b.build();
693
461
  };
694
462
  exports.se_DisassociateServiceRoleFromAccountCommand = se_DisassociateServiceRoleFromAccountCommand;
695
463
  const se_GetAssociatedRoleCommand = async (input, context) => {
696
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
464
+ const b = (0, core_1.requestBuilder)(input, context);
697
465
  const headers = {};
698
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/role";
699
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
466
+ b.bp("/greengrass/groups/{GroupId}/role");
467
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
700
468
  let body;
701
- return new protocol_http_1.HttpRequest({
702
- protocol,
703
- hostname,
704
- port,
705
- method: "GET",
706
- headers,
707
- path: resolvedPath,
708
- body,
709
- });
469
+ b.m("GET").h(headers).b(body);
470
+ return b.build();
710
471
  };
711
472
  exports.se_GetAssociatedRoleCommand = se_GetAssociatedRoleCommand;
712
473
  const se_GetBulkDeploymentStatusCommand = async (input, context) => {
713
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
474
+ const b = (0, core_1.requestBuilder)(input, context);
714
475
  const headers = {};
715
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
716
- "/greengrass/bulk/deployments/{BulkDeploymentId}/status";
717
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BulkDeploymentId", () => input.BulkDeploymentId, "{BulkDeploymentId}", false);
476
+ b.bp("/greengrass/bulk/deployments/{BulkDeploymentId}/status");
477
+ b.p("BulkDeploymentId", () => input.BulkDeploymentId, "{BulkDeploymentId}", false);
718
478
  let body;
719
- return new protocol_http_1.HttpRequest({
720
- protocol,
721
- hostname,
722
- port,
723
- method: "GET",
724
- headers,
725
- path: resolvedPath,
726
- body,
727
- });
479
+ b.m("GET").h(headers).b(body);
480
+ return b.build();
728
481
  };
729
482
  exports.se_GetBulkDeploymentStatusCommand = se_GetBulkDeploymentStatusCommand;
730
483
  const se_GetConnectivityInfoCommand = async (input, context) => {
731
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
484
+ const b = (0, core_1.requestBuilder)(input, context);
732
485
  const headers = {};
733
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
734
- "/greengrass/things/{ThingName}/connectivityInfo";
735
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ThingName", () => input.ThingName, "{ThingName}", false);
486
+ b.bp("/greengrass/things/{ThingName}/connectivityInfo");
487
+ b.p("ThingName", () => input.ThingName, "{ThingName}", false);
736
488
  let body;
737
- return new protocol_http_1.HttpRequest({
738
- protocol,
739
- hostname,
740
- port,
741
- method: "GET",
742
- headers,
743
- path: resolvedPath,
744
- body,
745
- });
489
+ b.m("GET").h(headers).b(body);
490
+ return b.build();
746
491
  };
747
492
  exports.se_GetConnectivityInfoCommand = se_GetConnectivityInfoCommand;
748
493
  const se_GetConnectorDefinitionCommand = async (input, context) => {
749
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
494
+ const b = (0, core_1.requestBuilder)(input, context);
750
495
  const headers = {};
751
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
752
- "/greengrass/definition/connectors/{ConnectorDefinitionId}";
753
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
496
+ b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}");
497
+ b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
754
498
  let body;
755
- return new protocol_http_1.HttpRequest({
756
- protocol,
757
- hostname,
758
- port,
759
- method: "GET",
760
- headers,
761
- path: resolvedPath,
762
- body,
763
- });
499
+ b.m("GET").h(headers).b(body);
500
+ return b.build();
764
501
  };
765
502
  exports.se_GetConnectorDefinitionCommand = se_GetConnectorDefinitionCommand;
766
503
  const se_GetConnectorDefinitionVersionCommand = async (input, context) => {
767
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
504
+ const b = (0, core_1.requestBuilder)(input, context);
768
505
  const headers = {};
769
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
770
- "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions/{ConnectorDefinitionVersionId}";
771
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
772
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectorDefinitionVersionId", () => input.ConnectorDefinitionVersionId, "{ConnectorDefinitionVersionId}", false);
506
+ b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}/versions/{ConnectorDefinitionVersionId}");
507
+ b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
508
+ b.p("ConnectorDefinitionVersionId", () => input.ConnectorDefinitionVersionId, "{ConnectorDefinitionVersionId}", false);
773
509
  const query = (0, smithy_client_1.map)({
774
- NextToken: [, input.NextToken],
510
+ [_NT]: [, input[_NT]],
775
511
  });
776
512
  let body;
777
- return new protocol_http_1.HttpRequest({
778
- protocol,
779
- hostname,
780
- port,
781
- method: "GET",
782
- headers,
783
- path: resolvedPath,
784
- query,
785
- body,
786
- });
513
+ b.m("GET").h(headers).q(query).b(body);
514
+ return b.build();
787
515
  };
788
516
  exports.se_GetConnectorDefinitionVersionCommand = se_GetConnectorDefinitionVersionCommand;
789
517
  const se_GetCoreDefinitionCommand = async (input, context) => {
790
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
518
+ const b = (0, core_1.requestBuilder)(input, context);
791
519
  const headers = {};
792
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
793
- "/greengrass/definition/cores/{CoreDefinitionId}";
794
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
520
+ b.bp("/greengrass/definition/cores/{CoreDefinitionId}");
521
+ b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
795
522
  let body;
796
- return new protocol_http_1.HttpRequest({
797
- protocol,
798
- hostname,
799
- port,
800
- method: "GET",
801
- headers,
802
- path: resolvedPath,
803
- body,
804
- });
523
+ b.m("GET").h(headers).b(body);
524
+ return b.build();
805
525
  };
806
526
  exports.se_GetCoreDefinitionCommand = se_GetCoreDefinitionCommand;
807
527
  const se_GetCoreDefinitionVersionCommand = async (input, context) => {
808
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
528
+ const b = (0, core_1.requestBuilder)(input, context);
809
529
  const headers = {};
810
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
811
- "/greengrass/definition/cores/{CoreDefinitionId}/versions/{CoreDefinitionVersionId}";
812
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
813
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreDefinitionVersionId", () => input.CoreDefinitionVersionId, "{CoreDefinitionVersionId}", false);
530
+ b.bp("/greengrass/definition/cores/{CoreDefinitionId}/versions/{CoreDefinitionVersionId}");
531
+ b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
532
+ b.p("CoreDefinitionVersionId", () => input.CoreDefinitionVersionId, "{CoreDefinitionVersionId}", false);
814
533
  let body;
815
- return new protocol_http_1.HttpRequest({
816
- protocol,
817
- hostname,
818
- port,
819
- method: "GET",
820
- headers,
821
- path: resolvedPath,
822
- body,
823
- });
534
+ b.m("GET").h(headers).b(body);
535
+ return b.build();
824
536
  };
825
537
  exports.se_GetCoreDefinitionVersionCommand = se_GetCoreDefinitionVersionCommand;
826
538
  const se_GetDeploymentStatusCommand = async (input, context) => {
827
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
539
+ const b = (0, core_1.requestBuilder)(input, context);
828
540
  const headers = {};
829
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
830
- "/greengrass/groups/{GroupId}/deployments/{DeploymentId}/status";
831
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
832
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
541
+ b.bp("/greengrass/groups/{GroupId}/deployments/{DeploymentId}/status");
542
+ b.p("DeploymentId", () => input.DeploymentId, "{DeploymentId}", false);
543
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
833
544
  let body;
834
- return new protocol_http_1.HttpRequest({
835
- protocol,
836
- hostname,
837
- port,
838
- method: "GET",
839
- headers,
840
- path: resolvedPath,
841
- body,
842
- });
545
+ b.m("GET").h(headers).b(body);
546
+ return b.build();
843
547
  };
844
548
  exports.se_GetDeploymentStatusCommand = se_GetDeploymentStatusCommand;
845
549
  const se_GetDeviceDefinitionCommand = async (input, context) => {
846
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
550
+ const b = (0, core_1.requestBuilder)(input, context);
847
551
  const headers = {};
848
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
849
- "/greengrass/definition/devices/{DeviceDefinitionId}";
850
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
552
+ b.bp("/greengrass/definition/devices/{DeviceDefinitionId}");
553
+ b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
851
554
  let body;
852
- return new protocol_http_1.HttpRequest({
853
- protocol,
854
- hostname,
855
- port,
856
- method: "GET",
857
- headers,
858
- path: resolvedPath,
859
- body,
860
- });
555
+ b.m("GET").h(headers).b(body);
556
+ return b.build();
861
557
  };
862
558
  exports.se_GetDeviceDefinitionCommand = se_GetDeviceDefinitionCommand;
863
559
  const se_GetDeviceDefinitionVersionCommand = async (input, context) => {
864
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
560
+ const b = (0, core_1.requestBuilder)(input, context);
865
561
  const headers = {};
866
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
867
- "/greengrass/definition/devices/{DeviceDefinitionId}/versions/{DeviceDefinitionVersionId}";
868
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
869
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceDefinitionVersionId", () => input.DeviceDefinitionVersionId, "{DeviceDefinitionVersionId}", false);
562
+ b.bp("/greengrass/definition/devices/{DeviceDefinitionId}/versions/{DeviceDefinitionVersionId}");
563
+ b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
564
+ b.p("DeviceDefinitionVersionId", () => input.DeviceDefinitionVersionId, "{DeviceDefinitionVersionId}", false);
870
565
  const query = (0, smithy_client_1.map)({
871
- NextToken: [, input.NextToken],
566
+ [_NT]: [, input[_NT]],
872
567
  });
873
568
  let body;
874
- return new protocol_http_1.HttpRequest({
875
- protocol,
876
- hostname,
877
- port,
878
- method: "GET",
879
- headers,
880
- path: resolvedPath,
881
- query,
882
- body,
883
- });
569
+ b.m("GET").h(headers).q(query).b(body);
570
+ return b.build();
884
571
  };
885
572
  exports.se_GetDeviceDefinitionVersionCommand = se_GetDeviceDefinitionVersionCommand;
886
573
  const se_GetFunctionDefinitionCommand = async (input, context) => {
887
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
574
+ const b = (0, core_1.requestBuilder)(input, context);
888
575
  const headers = {};
889
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
890
- "/greengrass/definition/functions/{FunctionDefinitionId}";
891
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
576
+ b.bp("/greengrass/definition/functions/{FunctionDefinitionId}");
577
+ b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
892
578
  let body;
893
- return new protocol_http_1.HttpRequest({
894
- protocol,
895
- hostname,
896
- port,
897
- method: "GET",
898
- headers,
899
- path: resolvedPath,
900
- body,
901
- });
579
+ b.m("GET").h(headers).b(body);
580
+ return b.build();
902
581
  };
903
582
  exports.se_GetFunctionDefinitionCommand = se_GetFunctionDefinitionCommand;
904
583
  const se_GetFunctionDefinitionVersionCommand = async (input, context) => {
905
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
584
+ const b = (0, core_1.requestBuilder)(input, context);
906
585
  const headers = {};
907
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
908
- "/greengrass/definition/functions/{FunctionDefinitionId}/versions/{FunctionDefinitionVersionId}";
909
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
910
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionDefinitionVersionId", () => input.FunctionDefinitionVersionId, "{FunctionDefinitionVersionId}", false);
586
+ b.bp("/greengrass/definition/functions/{FunctionDefinitionId}/versions/{FunctionDefinitionVersionId}");
587
+ b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
588
+ b.p("FunctionDefinitionVersionId", () => input.FunctionDefinitionVersionId, "{FunctionDefinitionVersionId}", false);
911
589
  const query = (0, smithy_client_1.map)({
912
- NextToken: [, input.NextToken],
590
+ [_NT]: [, input[_NT]],
913
591
  });
914
592
  let body;
915
- return new protocol_http_1.HttpRequest({
916
- protocol,
917
- hostname,
918
- port,
919
- method: "GET",
920
- headers,
921
- path: resolvedPath,
922
- query,
923
- body,
924
- });
593
+ b.m("GET").h(headers).q(query).b(body);
594
+ return b.build();
925
595
  };
926
596
  exports.se_GetFunctionDefinitionVersionCommand = se_GetFunctionDefinitionVersionCommand;
927
597
  const se_GetGroupCommand = async (input, context) => {
928
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
598
+ const b = (0, core_1.requestBuilder)(input, context);
929
599
  const headers = {};
930
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}";
931
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
600
+ b.bp("/greengrass/groups/{GroupId}");
601
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
932
602
  let body;
933
- return new protocol_http_1.HttpRequest({
934
- protocol,
935
- hostname,
936
- port,
937
- method: "GET",
938
- headers,
939
- path: resolvedPath,
940
- body,
941
- });
603
+ b.m("GET").h(headers).b(body);
604
+ return b.build();
942
605
  };
943
606
  exports.se_GetGroupCommand = se_GetGroupCommand;
944
607
  const se_GetGroupCertificateAuthorityCommand = async (input, context) => {
945
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
608
+ const b = (0, core_1.requestBuilder)(input, context);
946
609
  const headers = {};
947
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
948
- "/greengrass/groups/{GroupId}/certificateauthorities/{CertificateAuthorityId}";
949
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CertificateAuthorityId", () => input.CertificateAuthorityId, "{CertificateAuthorityId}", false);
950
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
610
+ b.bp("/greengrass/groups/{GroupId}/certificateauthorities/{CertificateAuthorityId}");
611
+ b.p("CertificateAuthorityId", () => input.CertificateAuthorityId, "{CertificateAuthorityId}", false);
612
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
951
613
  let body;
952
- return new protocol_http_1.HttpRequest({
953
- protocol,
954
- hostname,
955
- port,
956
- method: "GET",
957
- headers,
958
- path: resolvedPath,
959
- body,
960
- });
614
+ b.m("GET").h(headers).b(body);
615
+ return b.build();
961
616
  };
962
617
  exports.se_GetGroupCertificateAuthorityCommand = se_GetGroupCertificateAuthorityCommand;
963
618
  const se_GetGroupCertificateConfigurationCommand = async (input, context) => {
964
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
619
+ const b = (0, core_1.requestBuilder)(input, context);
965
620
  const headers = {};
966
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
967
- "/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry";
968
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
621
+ b.bp("/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry");
622
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
969
623
  let body;
970
- return new protocol_http_1.HttpRequest({
971
- protocol,
972
- hostname,
973
- port,
974
- method: "GET",
975
- headers,
976
- path: resolvedPath,
977
- body,
978
- });
624
+ b.m("GET").h(headers).b(body);
625
+ return b.build();
979
626
  };
980
627
  exports.se_GetGroupCertificateConfigurationCommand = se_GetGroupCertificateConfigurationCommand;
981
628
  const se_GetGroupVersionCommand = async (input, context) => {
982
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
629
+ const b = (0, core_1.requestBuilder)(input, context);
983
630
  const headers = {};
984
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
985
- "/greengrass/groups/{GroupId}/versions/{GroupVersionId}";
986
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
987
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupVersionId", () => input.GroupVersionId, "{GroupVersionId}", false);
631
+ b.bp("/greengrass/groups/{GroupId}/versions/{GroupVersionId}");
632
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
633
+ b.p("GroupVersionId", () => input.GroupVersionId, "{GroupVersionId}", false);
988
634
  let body;
989
- return new protocol_http_1.HttpRequest({
990
- protocol,
991
- hostname,
992
- port,
993
- method: "GET",
994
- headers,
995
- path: resolvedPath,
996
- body,
997
- });
635
+ b.m("GET").h(headers).b(body);
636
+ return b.build();
998
637
  };
999
638
  exports.se_GetGroupVersionCommand = se_GetGroupVersionCommand;
1000
639
  const se_GetLoggerDefinitionCommand = async (input, context) => {
1001
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
640
+ const b = (0, core_1.requestBuilder)(input, context);
1002
641
  const headers = {};
1003
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1004
- "/greengrass/definition/loggers/{LoggerDefinitionId}";
1005
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
642
+ b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}");
643
+ b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
1006
644
  let body;
1007
- return new protocol_http_1.HttpRequest({
1008
- protocol,
1009
- hostname,
1010
- port,
1011
- method: "GET",
1012
- headers,
1013
- path: resolvedPath,
1014
- body,
1015
- });
645
+ b.m("GET").h(headers).b(body);
646
+ return b.build();
1016
647
  };
1017
648
  exports.se_GetLoggerDefinitionCommand = se_GetLoggerDefinitionCommand;
1018
649
  const se_GetLoggerDefinitionVersionCommand = async (input, context) => {
1019
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
650
+ const b = (0, core_1.requestBuilder)(input, context);
1020
651
  const headers = {};
1021
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1022
- "/greengrass/definition/loggers/{LoggerDefinitionId}/versions/{LoggerDefinitionVersionId}";
1023
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
1024
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LoggerDefinitionVersionId", () => input.LoggerDefinitionVersionId, "{LoggerDefinitionVersionId}", false);
652
+ b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}/versions/{LoggerDefinitionVersionId}");
653
+ b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
654
+ b.p("LoggerDefinitionVersionId", () => input.LoggerDefinitionVersionId, "{LoggerDefinitionVersionId}", false);
1025
655
  const query = (0, smithy_client_1.map)({
1026
- NextToken: [, input.NextToken],
656
+ [_NT]: [, input[_NT]],
1027
657
  });
1028
658
  let body;
1029
- return new protocol_http_1.HttpRequest({
1030
- protocol,
1031
- hostname,
1032
- port,
1033
- method: "GET",
1034
- headers,
1035
- path: resolvedPath,
1036
- query,
1037
- body,
1038
- });
659
+ b.m("GET").h(headers).q(query).b(body);
660
+ return b.build();
1039
661
  };
1040
662
  exports.se_GetLoggerDefinitionVersionCommand = se_GetLoggerDefinitionVersionCommand;
1041
663
  const se_GetResourceDefinitionCommand = async (input, context) => {
1042
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
664
+ const b = (0, core_1.requestBuilder)(input, context);
1043
665
  const headers = {};
1044
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1045
- "/greengrass/definition/resources/{ResourceDefinitionId}";
1046
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
666
+ b.bp("/greengrass/definition/resources/{ResourceDefinitionId}");
667
+ b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
1047
668
  let body;
1048
- return new protocol_http_1.HttpRequest({
1049
- protocol,
1050
- hostname,
1051
- port,
1052
- method: "GET",
1053
- headers,
1054
- path: resolvedPath,
1055
- body,
1056
- });
669
+ b.m("GET").h(headers).b(body);
670
+ return b.build();
1057
671
  };
1058
672
  exports.se_GetResourceDefinitionCommand = se_GetResourceDefinitionCommand;
1059
673
  const se_GetResourceDefinitionVersionCommand = async (input, context) => {
1060
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
674
+ const b = (0, core_1.requestBuilder)(input, context);
1061
675
  const headers = {};
1062
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1063
- "/greengrass/definition/resources/{ResourceDefinitionId}/versions/{ResourceDefinitionVersionId}";
1064
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
1065
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceDefinitionVersionId", () => input.ResourceDefinitionVersionId, "{ResourceDefinitionVersionId}", false);
676
+ b.bp("/greengrass/definition/resources/{ResourceDefinitionId}/versions/{ResourceDefinitionVersionId}");
677
+ b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
678
+ b.p("ResourceDefinitionVersionId", () => input.ResourceDefinitionVersionId, "{ResourceDefinitionVersionId}", false);
1066
679
  let body;
1067
- return new protocol_http_1.HttpRequest({
1068
- protocol,
1069
- hostname,
1070
- port,
1071
- method: "GET",
1072
- headers,
1073
- path: resolvedPath,
1074
- body,
1075
- });
680
+ b.m("GET").h(headers).b(body);
681
+ return b.build();
1076
682
  };
1077
683
  exports.se_GetResourceDefinitionVersionCommand = se_GetResourceDefinitionVersionCommand;
1078
684
  const se_GetServiceRoleForAccountCommand = async (input, context) => {
1079
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
685
+ const b = (0, core_1.requestBuilder)(input, context);
1080
686
  const headers = {
1081
687
  "content-type": "application/json",
1082
688
  };
1083
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/servicerole";
689
+ b.bp("/greengrass/servicerole");
1084
690
  let body;
1085
691
  body = "";
1086
- return new protocol_http_1.HttpRequest({
1087
- protocol,
1088
- hostname,
1089
- port,
1090
- method: "GET",
1091
- headers,
1092
- path: resolvedPath,
1093
- body,
1094
- });
692
+ b.m("GET").h(headers).b(body);
693
+ return b.build();
1095
694
  };
1096
695
  exports.se_GetServiceRoleForAccountCommand = se_GetServiceRoleForAccountCommand;
1097
696
  const se_GetSubscriptionDefinitionCommand = async (input, context) => {
1098
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
697
+ const b = (0, core_1.requestBuilder)(input, context);
1099
698
  const headers = {};
1100
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1101
- "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}";
1102
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
699
+ b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}");
700
+ b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
1103
701
  let body;
1104
- return new protocol_http_1.HttpRequest({
1105
- protocol,
1106
- hostname,
1107
- port,
1108
- method: "GET",
1109
- headers,
1110
- path: resolvedPath,
1111
- body,
1112
- });
702
+ b.m("GET").h(headers).b(body);
703
+ return b.build();
1113
704
  };
1114
705
  exports.se_GetSubscriptionDefinitionCommand = se_GetSubscriptionDefinitionCommand;
1115
706
  const se_GetSubscriptionDefinitionVersionCommand = async (input, context) => {
1116
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
707
+ const b = (0, core_1.requestBuilder)(input, context);
1117
708
  const headers = {};
1118
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1119
- "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions/{SubscriptionDefinitionVersionId}";
1120
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
1121
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscriptionDefinitionVersionId", () => input.SubscriptionDefinitionVersionId, "{SubscriptionDefinitionVersionId}", false);
709
+ b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions/{SubscriptionDefinitionVersionId}");
710
+ b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
711
+ b.p("SubscriptionDefinitionVersionId", () => input.SubscriptionDefinitionVersionId, "{SubscriptionDefinitionVersionId}", false);
1122
712
  const query = (0, smithy_client_1.map)({
1123
- NextToken: [, input.NextToken],
713
+ [_NT]: [, input[_NT]],
1124
714
  });
1125
715
  let body;
1126
- return new protocol_http_1.HttpRequest({
1127
- protocol,
1128
- hostname,
1129
- port,
1130
- method: "GET",
1131
- headers,
1132
- path: resolvedPath,
1133
- query,
1134
- body,
1135
- });
716
+ b.m("GET").h(headers).q(query).b(body);
717
+ return b.build();
1136
718
  };
1137
719
  exports.se_GetSubscriptionDefinitionVersionCommand = se_GetSubscriptionDefinitionVersionCommand;
1138
720
  const se_GetThingRuntimeConfigurationCommand = async (input, context) => {
1139
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
721
+ const b = (0, core_1.requestBuilder)(input, context);
1140
722
  const headers = {};
1141
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1142
- "/greengrass/things/{ThingName}/runtimeconfig";
1143
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ThingName", () => input.ThingName, "{ThingName}", false);
723
+ b.bp("/greengrass/things/{ThingName}/runtimeconfig");
724
+ b.p("ThingName", () => input.ThingName, "{ThingName}", false);
1144
725
  let body;
1145
- return new protocol_http_1.HttpRequest({
1146
- protocol,
1147
- hostname,
1148
- port,
1149
- method: "GET",
1150
- headers,
1151
- path: resolvedPath,
1152
- body,
1153
- });
726
+ b.m("GET").h(headers).b(body);
727
+ return b.build();
1154
728
  };
1155
729
  exports.se_GetThingRuntimeConfigurationCommand = se_GetThingRuntimeConfigurationCommand;
1156
730
  const se_ListBulkDeploymentDetailedReportsCommand = async (input, context) => {
1157
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
731
+ const b = (0, core_1.requestBuilder)(input, context);
1158
732
  const headers = {};
1159
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1160
- "/greengrass/bulk/deployments/{BulkDeploymentId}/detailed-reports";
1161
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BulkDeploymentId", () => input.BulkDeploymentId, "{BulkDeploymentId}", false);
733
+ b.bp("/greengrass/bulk/deployments/{BulkDeploymentId}/detailed-reports");
734
+ b.p("BulkDeploymentId", () => input.BulkDeploymentId, "{BulkDeploymentId}", false);
1162
735
  const query = (0, smithy_client_1.map)({
1163
- MaxResults: [, input.MaxResults],
1164
- NextToken: [, input.NextToken],
736
+ [_MR]: [, input[_MR]],
737
+ [_NT]: [, input[_NT]],
1165
738
  });
1166
739
  let body;
1167
- return new protocol_http_1.HttpRequest({
1168
- protocol,
1169
- hostname,
1170
- port,
1171
- method: "GET",
1172
- headers,
1173
- path: resolvedPath,
1174
- query,
1175
- body,
1176
- });
740
+ b.m("GET").h(headers).q(query).b(body);
741
+ return b.build();
1177
742
  };
1178
743
  exports.se_ListBulkDeploymentDetailedReportsCommand = se_ListBulkDeploymentDetailedReportsCommand;
1179
744
  const se_ListBulkDeploymentsCommand = async (input, context) => {
1180
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
745
+ const b = (0, core_1.requestBuilder)(input, context);
1181
746
  const headers = {};
1182
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/bulk/deployments";
747
+ b.bp("/greengrass/bulk/deployments");
1183
748
  const query = (0, smithy_client_1.map)({
1184
- MaxResults: [, input.MaxResults],
1185
- NextToken: [, input.NextToken],
749
+ [_MR]: [, input[_MR]],
750
+ [_NT]: [, input[_NT]],
1186
751
  });
1187
752
  let body;
1188
- return new protocol_http_1.HttpRequest({
1189
- protocol,
1190
- hostname,
1191
- port,
1192
- method: "GET",
1193
- headers,
1194
- path: resolvedPath,
1195
- query,
1196
- body,
1197
- });
753
+ b.m("GET").h(headers).q(query).b(body);
754
+ return b.build();
1198
755
  };
1199
756
  exports.se_ListBulkDeploymentsCommand = se_ListBulkDeploymentsCommand;
1200
757
  const se_ListConnectorDefinitionsCommand = async (input, context) => {
1201
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
758
+ const b = (0, core_1.requestBuilder)(input, context);
1202
759
  const headers = {};
1203
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/connectors";
760
+ b.bp("/greengrass/definition/connectors");
1204
761
  const query = (0, smithy_client_1.map)({
1205
- MaxResults: [, input.MaxResults],
1206
- NextToken: [, input.NextToken],
762
+ [_MR]: [, input[_MR]],
763
+ [_NT]: [, input[_NT]],
1207
764
  });
1208
765
  let body;
1209
- return new protocol_http_1.HttpRequest({
1210
- protocol,
1211
- hostname,
1212
- port,
1213
- method: "GET",
1214
- headers,
1215
- path: resolvedPath,
1216
- query,
1217
- body,
1218
- });
766
+ b.m("GET").h(headers).q(query).b(body);
767
+ return b.build();
1219
768
  };
1220
769
  exports.se_ListConnectorDefinitionsCommand = se_ListConnectorDefinitionsCommand;
1221
770
  const se_ListConnectorDefinitionVersionsCommand = async (input, context) => {
1222
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
771
+ const b = (0, core_1.requestBuilder)(input, context);
1223
772
  const headers = {};
1224
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1225
- "/greengrass/definition/connectors/{ConnectorDefinitionId}/versions";
1226
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
773
+ b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}/versions");
774
+ b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
1227
775
  const query = (0, smithy_client_1.map)({
1228
- MaxResults: [, input.MaxResults],
1229
- NextToken: [, input.NextToken],
776
+ [_MR]: [, input[_MR]],
777
+ [_NT]: [, input[_NT]],
1230
778
  });
1231
779
  let body;
1232
- return new protocol_http_1.HttpRequest({
1233
- protocol,
1234
- hostname,
1235
- port,
1236
- method: "GET",
1237
- headers,
1238
- path: resolvedPath,
1239
- query,
1240
- body,
1241
- });
780
+ b.m("GET").h(headers).q(query).b(body);
781
+ return b.build();
1242
782
  };
1243
783
  exports.se_ListConnectorDefinitionVersionsCommand = se_ListConnectorDefinitionVersionsCommand;
1244
784
  const se_ListCoreDefinitionsCommand = async (input, context) => {
1245
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
785
+ const b = (0, core_1.requestBuilder)(input, context);
1246
786
  const headers = {};
1247
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/cores";
787
+ b.bp("/greengrass/definition/cores");
1248
788
  const query = (0, smithy_client_1.map)({
1249
- MaxResults: [, input.MaxResults],
1250
- NextToken: [, input.NextToken],
789
+ [_MR]: [, input[_MR]],
790
+ [_NT]: [, input[_NT]],
1251
791
  });
1252
792
  let body;
1253
- return new protocol_http_1.HttpRequest({
1254
- protocol,
1255
- hostname,
1256
- port,
1257
- method: "GET",
1258
- headers,
1259
- path: resolvedPath,
1260
- query,
1261
- body,
1262
- });
793
+ b.m("GET").h(headers).q(query).b(body);
794
+ return b.build();
1263
795
  };
1264
796
  exports.se_ListCoreDefinitionsCommand = se_ListCoreDefinitionsCommand;
1265
797
  const se_ListCoreDefinitionVersionsCommand = async (input, context) => {
1266
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
798
+ const b = (0, core_1.requestBuilder)(input, context);
1267
799
  const headers = {};
1268
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1269
- "/greengrass/definition/cores/{CoreDefinitionId}/versions";
1270
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
800
+ b.bp("/greengrass/definition/cores/{CoreDefinitionId}/versions");
801
+ b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
1271
802
  const query = (0, smithy_client_1.map)({
1272
- MaxResults: [, input.MaxResults],
1273
- NextToken: [, input.NextToken],
803
+ [_MR]: [, input[_MR]],
804
+ [_NT]: [, input[_NT]],
1274
805
  });
1275
806
  let body;
1276
- return new protocol_http_1.HttpRequest({
1277
- protocol,
1278
- hostname,
1279
- port,
1280
- method: "GET",
1281
- headers,
1282
- path: resolvedPath,
1283
- query,
1284
- body,
1285
- });
807
+ b.m("GET").h(headers).q(query).b(body);
808
+ return b.build();
1286
809
  };
1287
810
  exports.se_ListCoreDefinitionVersionsCommand = se_ListCoreDefinitionVersionsCommand;
1288
811
  const se_ListDeploymentsCommand = async (input, context) => {
1289
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
812
+ const b = (0, core_1.requestBuilder)(input, context);
1290
813
  const headers = {};
1291
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/deployments";
1292
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
814
+ b.bp("/greengrass/groups/{GroupId}/deployments");
815
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
1293
816
  const query = (0, smithy_client_1.map)({
1294
- MaxResults: [, input.MaxResults],
1295
- NextToken: [, input.NextToken],
817
+ [_MR]: [, input[_MR]],
818
+ [_NT]: [, input[_NT]],
1296
819
  });
1297
820
  let body;
1298
- return new protocol_http_1.HttpRequest({
1299
- protocol,
1300
- hostname,
1301
- port,
1302
- method: "GET",
1303
- headers,
1304
- path: resolvedPath,
1305
- query,
1306
- body,
1307
- });
821
+ b.m("GET").h(headers).q(query).b(body);
822
+ return b.build();
1308
823
  };
1309
824
  exports.se_ListDeploymentsCommand = se_ListDeploymentsCommand;
1310
825
  const se_ListDeviceDefinitionsCommand = async (input, context) => {
1311
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
826
+ const b = (0, core_1.requestBuilder)(input, context);
1312
827
  const headers = {};
1313
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/devices";
828
+ b.bp("/greengrass/definition/devices");
1314
829
  const query = (0, smithy_client_1.map)({
1315
- MaxResults: [, input.MaxResults],
1316
- NextToken: [, input.NextToken],
830
+ [_MR]: [, input[_MR]],
831
+ [_NT]: [, input[_NT]],
1317
832
  });
1318
833
  let body;
1319
- return new protocol_http_1.HttpRequest({
1320
- protocol,
1321
- hostname,
1322
- port,
1323
- method: "GET",
1324
- headers,
1325
- path: resolvedPath,
1326
- query,
1327
- body,
1328
- });
834
+ b.m("GET").h(headers).q(query).b(body);
835
+ return b.build();
1329
836
  };
1330
837
  exports.se_ListDeviceDefinitionsCommand = se_ListDeviceDefinitionsCommand;
1331
838
  const se_ListDeviceDefinitionVersionsCommand = async (input, context) => {
1332
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
839
+ const b = (0, core_1.requestBuilder)(input, context);
1333
840
  const headers = {};
1334
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1335
- "/greengrass/definition/devices/{DeviceDefinitionId}/versions";
1336
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
841
+ b.bp("/greengrass/definition/devices/{DeviceDefinitionId}/versions");
842
+ b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
1337
843
  const query = (0, smithy_client_1.map)({
1338
- MaxResults: [, input.MaxResults],
1339
- NextToken: [, input.NextToken],
844
+ [_MR]: [, input[_MR]],
845
+ [_NT]: [, input[_NT]],
1340
846
  });
1341
847
  let body;
1342
- return new protocol_http_1.HttpRequest({
1343
- protocol,
1344
- hostname,
1345
- port,
1346
- method: "GET",
1347
- headers,
1348
- path: resolvedPath,
1349
- query,
1350
- body,
1351
- });
848
+ b.m("GET").h(headers).q(query).b(body);
849
+ return b.build();
1352
850
  };
1353
851
  exports.se_ListDeviceDefinitionVersionsCommand = se_ListDeviceDefinitionVersionsCommand;
1354
852
  const se_ListFunctionDefinitionsCommand = async (input, context) => {
1355
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
853
+ const b = (0, core_1.requestBuilder)(input, context);
1356
854
  const headers = {};
1357
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/functions";
855
+ b.bp("/greengrass/definition/functions");
1358
856
  const query = (0, smithy_client_1.map)({
1359
- MaxResults: [, input.MaxResults],
1360
- NextToken: [, input.NextToken],
857
+ [_MR]: [, input[_MR]],
858
+ [_NT]: [, input[_NT]],
1361
859
  });
1362
860
  let body;
1363
- return new protocol_http_1.HttpRequest({
1364
- protocol,
1365
- hostname,
1366
- port,
1367
- method: "GET",
1368
- headers,
1369
- path: resolvedPath,
1370
- query,
1371
- body,
1372
- });
861
+ b.m("GET").h(headers).q(query).b(body);
862
+ return b.build();
1373
863
  };
1374
864
  exports.se_ListFunctionDefinitionsCommand = se_ListFunctionDefinitionsCommand;
1375
865
  const se_ListFunctionDefinitionVersionsCommand = async (input, context) => {
1376
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
866
+ const b = (0, core_1.requestBuilder)(input, context);
1377
867
  const headers = {};
1378
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1379
- "/greengrass/definition/functions/{FunctionDefinitionId}/versions";
1380
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
868
+ b.bp("/greengrass/definition/functions/{FunctionDefinitionId}/versions");
869
+ b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
1381
870
  const query = (0, smithy_client_1.map)({
1382
- MaxResults: [, input.MaxResults],
1383
- NextToken: [, input.NextToken],
871
+ [_MR]: [, input[_MR]],
872
+ [_NT]: [, input[_NT]],
1384
873
  });
1385
874
  let body;
1386
- return new protocol_http_1.HttpRequest({
1387
- protocol,
1388
- hostname,
1389
- port,
1390
- method: "GET",
1391
- headers,
1392
- path: resolvedPath,
1393
- query,
1394
- body,
1395
- });
875
+ b.m("GET").h(headers).q(query).b(body);
876
+ return b.build();
1396
877
  };
1397
878
  exports.se_ListFunctionDefinitionVersionsCommand = se_ListFunctionDefinitionVersionsCommand;
1398
879
  const se_ListGroupCertificateAuthoritiesCommand = async (input, context) => {
1399
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
880
+ const b = (0, core_1.requestBuilder)(input, context);
1400
881
  const headers = {};
1401
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1402
- "/greengrass/groups/{GroupId}/certificateauthorities";
1403
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
882
+ b.bp("/greengrass/groups/{GroupId}/certificateauthorities");
883
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
1404
884
  let body;
1405
- return new protocol_http_1.HttpRequest({
1406
- protocol,
1407
- hostname,
1408
- port,
1409
- method: "GET",
1410
- headers,
1411
- path: resolvedPath,
1412
- body,
1413
- });
885
+ b.m("GET").h(headers).b(body);
886
+ return b.build();
1414
887
  };
1415
888
  exports.se_ListGroupCertificateAuthoritiesCommand = se_ListGroupCertificateAuthoritiesCommand;
1416
889
  const se_ListGroupsCommand = async (input, context) => {
1417
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
890
+ const b = (0, core_1.requestBuilder)(input, context);
1418
891
  const headers = {};
1419
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups";
892
+ b.bp("/greengrass/groups");
1420
893
  const query = (0, smithy_client_1.map)({
1421
- MaxResults: [, input.MaxResults],
1422
- NextToken: [, input.NextToken],
894
+ [_MR]: [, input[_MR]],
895
+ [_NT]: [, input[_NT]],
1423
896
  });
1424
897
  let body;
1425
- return new protocol_http_1.HttpRequest({
1426
- protocol,
1427
- hostname,
1428
- port,
1429
- method: "GET",
1430
- headers,
1431
- path: resolvedPath,
1432
- query,
1433
- body,
1434
- });
898
+ b.m("GET").h(headers).q(query).b(body);
899
+ return b.build();
1435
900
  };
1436
901
  exports.se_ListGroupsCommand = se_ListGroupsCommand;
1437
902
  const se_ListGroupVersionsCommand = async (input, context) => {
1438
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
903
+ const b = (0, core_1.requestBuilder)(input, context);
1439
904
  const headers = {};
1440
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}/versions";
1441
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
905
+ b.bp("/greengrass/groups/{GroupId}/versions");
906
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
1442
907
  const query = (0, smithy_client_1.map)({
1443
- MaxResults: [, input.MaxResults],
1444
- NextToken: [, input.NextToken],
908
+ [_MR]: [, input[_MR]],
909
+ [_NT]: [, input[_NT]],
1445
910
  });
1446
911
  let body;
1447
- return new protocol_http_1.HttpRequest({
1448
- protocol,
1449
- hostname,
1450
- port,
1451
- method: "GET",
1452
- headers,
1453
- path: resolvedPath,
1454
- query,
1455
- body,
1456
- });
912
+ b.m("GET").h(headers).q(query).b(body);
913
+ return b.build();
1457
914
  };
1458
915
  exports.se_ListGroupVersionsCommand = se_ListGroupVersionsCommand;
1459
916
  const se_ListLoggerDefinitionsCommand = async (input, context) => {
1460
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
917
+ const b = (0, core_1.requestBuilder)(input, context);
1461
918
  const headers = {};
1462
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/loggers";
919
+ b.bp("/greengrass/definition/loggers");
1463
920
  const query = (0, smithy_client_1.map)({
1464
- MaxResults: [, input.MaxResults],
1465
- NextToken: [, input.NextToken],
921
+ [_MR]: [, input[_MR]],
922
+ [_NT]: [, input[_NT]],
1466
923
  });
1467
924
  let body;
1468
- return new protocol_http_1.HttpRequest({
1469
- protocol,
1470
- hostname,
1471
- port,
1472
- method: "GET",
1473
- headers,
1474
- path: resolvedPath,
1475
- query,
1476
- body,
1477
- });
925
+ b.m("GET").h(headers).q(query).b(body);
926
+ return b.build();
1478
927
  };
1479
928
  exports.se_ListLoggerDefinitionsCommand = se_ListLoggerDefinitionsCommand;
1480
929
  const se_ListLoggerDefinitionVersionsCommand = async (input, context) => {
1481
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
930
+ const b = (0, core_1.requestBuilder)(input, context);
1482
931
  const headers = {};
1483
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1484
- "/greengrass/definition/loggers/{LoggerDefinitionId}/versions";
1485
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
932
+ b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}/versions");
933
+ b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
1486
934
  const query = (0, smithy_client_1.map)({
1487
- MaxResults: [, input.MaxResults],
1488
- NextToken: [, input.NextToken],
935
+ [_MR]: [, input[_MR]],
936
+ [_NT]: [, input[_NT]],
1489
937
  });
1490
938
  let body;
1491
- return new protocol_http_1.HttpRequest({
1492
- protocol,
1493
- hostname,
1494
- port,
1495
- method: "GET",
1496
- headers,
1497
- path: resolvedPath,
1498
- query,
1499
- body,
1500
- });
939
+ b.m("GET").h(headers).q(query).b(body);
940
+ return b.build();
1501
941
  };
1502
942
  exports.se_ListLoggerDefinitionVersionsCommand = se_ListLoggerDefinitionVersionsCommand;
1503
943
  const se_ListResourceDefinitionsCommand = async (input, context) => {
1504
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
944
+ const b = (0, core_1.requestBuilder)(input, context);
1505
945
  const headers = {};
1506
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/resources";
946
+ b.bp("/greengrass/definition/resources");
1507
947
  const query = (0, smithy_client_1.map)({
1508
- MaxResults: [, input.MaxResults],
1509
- NextToken: [, input.NextToken],
948
+ [_MR]: [, input[_MR]],
949
+ [_NT]: [, input[_NT]],
1510
950
  });
1511
951
  let body;
1512
- return new protocol_http_1.HttpRequest({
1513
- protocol,
1514
- hostname,
1515
- port,
1516
- method: "GET",
1517
- headers,
1518
- path: resolvedPath,
1519
- query,
1520
- body,
1521
- });
952
+ b.m("GET").h(headers).q(query).b(body);
953
+ return b.build();
1522
954
  };
1523
955
  exports.se_ListResourceDefinitionsCommand = se_ListResourceDefinitionsCommand;
1524
956
  const se_ListResourceDefinitionVersionsCommand = async (input, context) => {
1525
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
957
+ const b = (0, core_1.requestBuilder)(input, context);
1526
958
  const headers = {};
1527
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1528
- "/greengrass/definition/resources/{ResourceDefinitionId}/versions";
1529
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
959
+ b.bp("/greengrass/definition/resources/{ResourceDefinitionId}/versions");
960
+ b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
1530
961
  const query = (0, smithy_client_1.map)({
1531
- MaxResults: [, input.MaxResults],
1532
- NextToken: [, input.NextToken],
962
+ [_MR]: [, input[_MR]],
963
+ [_NT]: [, input[_NT]],
1533
964
  });
1534
965
  let body;
1535
- return new protocol_http_1.HttpRequest({
1536
- protocol,
1537
- hostname,
1538
- port,
1539
- method: "GET",
1540
- headers,
1541
- path: resolvedPath,
1542
- query,
1543
- body,
1544
- });
966
+ b.m("GET").h(headers).q(query).b(body);
967
+ return b.build();
1545
968
  };
1546
969
  exports.se_ListResourceDefinitionVersionsCommand = se_ListResourceDefinitionVersionsCommand;
1547
970
  const se_ListSubscriptionDefinitionsCommand = async (input, context) => {
1548
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
971
+ const b = (0, core_1.requestBuilder)(input, context);
1549
972
  const headers = {};
1550
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/definition/subscriptions";
973
+ b.bp("/greengrass/definition/subscriptions");
1551
974
  const query = (0, smithy_client_1.map)({
1552
- MaxResults: [, input.MaxResults],
1553
- NextToken: [, input.NextToken],
975
+ [_MR]: [, input[_MR]],
976
+ [_NT]: [, input[_NT]],
1554
977
  });
1555
978
  let body;
1556
- return new protocol_http_1.HttpRequest({
1557
- protocol,
1558
- hostname,
1559
- port,
1560
- method: "GET",
1561
- headers,
1562
- path: resolvedPath,
1563
- query,
1564
- body,
1565
- });
979
+ b.m("GET").h(headers).q(query).b(body);
980
+ return b.build();
1566
981
  };
1567
982
  exports.se_ListSubscriptionDefinitionsCommand = se_ListSubscriptionDefinitionsCommand;
1568
983
  const se_ListSubscriptionDefinitionVersionsCommand = async (input, context) => {
1569
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
984
+ const b = (0, core_1.requestBuilder)(input, context);
1570
985
  const headers = {};
1571
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1572
- "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions";
1573
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
986
+ b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions");
987
+ b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
1574
988
  const query = (0, smithy_client_1.map)({
1575
- MaxResults: [, input.MaxResults],
1576
- NextToken: [, input.NextToken],
989
+ [_MR]: [, input[_MR]],
990
+ [_NT]: [, input[_NT]],
1577
991
  });
1578
992
  let body;
1579
- return new protocol_http_1.HttpRequest({
1580
- protocol,
1581
- hostname,
1582
- port,
1583
- method: "GET",
1584
- headers,
1585
- path: resolvedPath,
1586
- query,
1587
- body,
1588
- });
993
+ b.m("GET").h(headers).q(query).b(body);
994
+ return b.build();
1589
995
  };
1590
996
  exports.se_ListSubscriptionDefinitionVersionsCommand = se_ListSubscriptionDefinitionVersionsCommand;
1591
997
  const se_ListTagsForResourceCommand = async (input, context) => {
1592
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
998
+ const b = (0, core_1.requestBuilder)(input, context);
1593
999
  const headers = {};
1594
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1595
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1000
+ b.bp("/tags/{ResourceArn}");
1001
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1596
1002
  let body;
1597
- return new protocol_http_1.HttpRequest({
1598
- protocol,
1599
- hostname,
1600
- port,
1601
- method: "GET",
1602
- headers,
1603
- path: resolvedPath,
1604
- body,
1605
- });
1003
+ b.m("GET").h(headers).b(body);
1004
+ return b.build();
1606
1005
  };
1607
1006
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1608
1007
  const se_ResetDeploymentsCommand = async (input, context) => {
1609
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1008
+ const b = (0, core_1.requestBuilder)(input, context);
1610
1009
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1611
1010
  "content-type": "application/json",
1612
- "x-amzn-client-token": input.AmznClientToken,
1011
+ [_xact]: input[_ACT],
1613
1012
  });
1614
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1615
- "/greengrass/groups/{GroupId}/deployments/$reset";
1616
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
1013
+ b.bp("/greengrass/groups/{GroupId}/deployments/$reset");
1014
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
1617
1015
  let body;
1618
1016
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1619
1017
  Force: [],
1620
1018
  }));
1621
- return new protocol_http_1.HttpRequest({
1622
- protocol,
1623
- hostname,
1624
- port,
1625
- method: "POST",
1626
- headers,
1627
- path: resolvedPath,
1628
- body,
1629
- });
1019
+ b.m("POST").h(headers).b(body);
1020
+ return b.build();
1630
1021
  };
1631
1022
  exports.se_ResetDeploymentsCommand = se_ResetDeploymentsCommand;
1632
1023
  const se_StartBulkDeploymentCommand = async (input, context) => {
1633
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1024
+ const b = (0, core_1.requestBuilder)(input, context);
1634
1025
  const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
1635
1026
  "content-type": "application/json",
1636
- "x-amzn-client-token": input.AmznClientToken,
1027
+ [_xact]: input[_ACT],
1637
1028
  });
1638
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/bulk/deployments";
1029
+ b.bp("/greengrass/bulk/deployments");
1639
1030
  let body;
1640
1031
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1641
1032
  ExecutionRoleArn: [],
1642
1033
  InputFileUri: [],
1643
1034
  tags: (_) => (0, smithy_client_1._json)(_),
1644
1035
  }));
1645
- return new protocol_http_1.HttpRequest({
1646
- protocol,
1647
- hostname,
1648
- port,
1649
- method: "POST",
1650
- headers,
1651
- path: resolvedPath,
1652
- body,
1653
- });
1036
+ b.m("POST").h(headers).b(body);
1037
+ return b.build();
1654
1038
  };
1655
1039
  exports.se_StartBulkDeploymentCommand = se_StartBulkDeploymentCommand;
1656
1040
  const se_StopBulkDeploymentCommand = async (input, context) => {
1657
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1041
+ const b = (0, core_1.requestBuilder)(input, context);
1658
1042
  const headers = {};
1659
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1660
- "/greengrass/bulk/deployments/{BulkDeploymentId}/$stop";
1661
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BulkDeploymentId", () => input.BulkDeploymentId, "{BulkDeploymentId}", false);
1043
+ b.bp("/greengrass/bulk/deployments/{BulkDeploymentId}/$stop");
1044
+ b.p("BulkDeploymentId", () => input.BulkDeploymentId, "{BulkDeploymentId}", false);
1662
1045
  let body;
1663
- return new protocol_http_1.HttpRequest({
1664
- protocol,
1665
- hostname,
1666
- port,
1667
- method: "PUT",
1668
- headers,
1669
- path: resolvedPath,
1670
- body,
1671
- });
1046
+ b.m("PUT").h(headers).b(body);
1047
+ return b.build();
1672
1048
  };
1673
1049
  exports.se_StopBulkDeploymentCommand = se_StopBulkDeploymentCommand;
1674
1050
  const se_TagResourceCommand = async (input, context) => {
1675
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1051
+ const b = (0, core_1.requestBuilder)(input, context);
1676
1052
  const headers = {
1677
1053
  "content-type": "application/json",
1678
1054
  };
1679
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1680
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1055
+ b.bp("/tags/{ResourceArn}");
1056
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1681
1057
  let body;
1682
1058
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1683
1059
  tags: (_) => (0, smithy_client_1._json)(_),
1684
1060
  }));
1685
- return new protocol_http_1.HttpRequest({
1686
- protocol,
1687
- hostname,
1688
- port,
1689
- method: "POST",
1690
- headers,
1691
- path: resolvedPath,
1692
- body,
1693
- });
1061
+ b.m("POST").h(headers).b(body);
1062
+ return b.build();
1694
1063
  };
1695
1064
  exports.se_TagResourceCommand = se_TagResourceCommand;
1696
1065
  const se_UntagResourceCommand = async (input, context) => {
1697
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1066
+ const b = (0, core_1.requestBuilder)(input, context);
1698
1067
  const headers = {};
1699
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1700
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1068
+ b.bp("/tags/{ResourceArn}");
1069
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1701
1070
  const query = (0, smithy_client_1.map)({
1702
- tagKeys: [
1071
+ [_tK]: [
1703
1072
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
1704
- () => (input.TagKeys || []).map((_entry) => _entry),
1073
+ () => (input[_TK] || []).map((_entry) => _entry),
1705
1074
  ],
1706
1075
  });
1707
1076
  let body;
1708
- return new protocol_http_1.HttpRequest({
1709
- protocol,
1710
- hostname,
1711
- port,
1712
- method: "DELETE",
1713
- headers,
1714
- path: resolvedPath,
1715
- query,
1716
- body,
1717
- });
1077
+ b.m("DELETE").h(headers).q(query).b(body);
1078
+ return b.build();
1718
1079
  };
1719
1080
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1720
1081
  const se_UpdateConnectivityInfoCommand = async (input, context) => {
1721
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1082
+ const b = (0, core_1.requestBuilder)(input, context);
1722
1083
  const headers = {
1723
1084
  "content-type": "application/json",
1724
1085
  };
1725
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1726
- "/greengrass/things/{ThingName}/connectivityInfo";
1727
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ThingName", () => input.ThingName, "{ThingName}", false);
1086
+ b.bp("/greengrass/things/{ThingName}/connectivityInfo");
1087
+ b.p("ThingName", () => input.ThingName, "{ThingName}", false);
1728
1088
  let body;
1729
1089
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1730
1090
  ConnectivityInfo: (_) => (0, smithy_client_1._json)(_),
1731
1091
  }));
1732
- return new protocol_http_1.HttpRequest({
1733
- protocol,
1734
- hostname,
1735
- port,
1736
- method: "PUT",
1737
- headers,
1738
- path: resolvedPath,
1739
- body,
1740
- });
1092
+ b.m("PUT").h(headers).b(body);
1093
+ return b.build();
1741
1094
  };
1742
1095
  exports.se_UpdateConnectivityInfoCommand = se_UpdateConnectivityInfoCommand;
1743
1096
  const se_UpdateConnectorDefinitionCommand = async (input, context) => {
1744
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1097
+ const b = (0, core_1.requestBuilder)(input, context);
1745
1098
  const headers = {
1746
1099
  "content-type": "application/json",
1747
1100
  };
1748
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1749
- "/greengrass/definition/connectors/{ConnectorDefinitionId}";
1750
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
1101
+ b.bp("/greengrass/definition/connectors/{ConnectorDefinitionId}");
1102
+ b.p("ConnectorDefinitionId", () => input.ConnectorDefinitionId, "{ConnectorDefinitionId}", false);
1751
1103
  let body;
1752
1104
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1753
1105
  Name: [],
1754
1106
  }));
1755
- return new protocol_http_1.HttpRequest({
1756
- protocol,
1757
- hostname,
1758
- port,
1759
- method: "PUT",
1760
- headers,
1761
- path: resolvedPath,
1762
- body,
1763
- });
1107
+ b.m("PUT").h(headers).b(body);
1108
+ return b.build();
1764
1109
  };
1765
1110
  exports.se_UpdateConnectorDefinitionCommand = se_UpdateConnectorDefinitionCommand;
1766
1111
  const se_UpdateCoreDefinitionCommand = async (input, context) => {
1767
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1112
+ const b = (0, core_1.requestBuilder)(input, context);
1768
1113
  const headers = {
1769
1114
  "content-type": "application/json",
1770
1115
  };
1771
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1772
- "/greengrass/definition/cores/{CoreDefinitionId}";
1773
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
1116
+ b.bp("/greengrass/definition/cores/{CoreDefinitionId}");
1117
+ b.p("CoreDefinitionId", () => input.CoreDefinitionId, "{CoreDefinitionId}", false);
1774
1118
  let body;
1775
1119
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1776
1120
  Name: [],
1777
1121
  }));
1778
- return new protocol_http_1.HttpRequest({
1779
- protocol,
1780
- hostname,
1781
- port,
1782
- method: "PUT",
1783
- headers,
1784
- path: resolvedPath,
1785
- body,
1786
- });
1122
+ b.m("PUT").h(headers).b(body);
1123
+ return b.build();
1787
1124
  };
1788
1125
  exports.se_UpdateCoreDefinitionCommand = se_UpdateCoreDefinitionCommand;
1789
1126
  const se_UpdateDeviceDefinitionCommand = async (input, context) => {
1790
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1127
+ const b = (0, core_1.requestBuilder)(input, context);
1791
1128
  const headers = {
1792
1129
  "content-type": "application/json",
1793
1130
  };
1794
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1795
- "/greengrass/definition/devices/{DeviceDefinitionId}";
1796
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
1131
+ b.bp("/greengrass/definition/devices/{DeviceDefinitionId}");
1132
+ b.p("DeviceDefinitionId", () => input.DeviceDefinitionId, "{DeviceDefinitionId}", false);
1797
1133
  let body;
1798
1134
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1799
1135
  Name: [],
1800
1136
  }));
1801
- return new protocol_http_1.HttpRequest({
1802
- protocol,
1803
- hostname,
1804
- port,
1805
- method: "PUT",
1806
- headers,
1807
- path: resolvedPath,
1808
- body,
1809
- });
1137
+ b.m("PUT").h(headers).b(body);
1138
+ return b.build();
1810
1139
  };
1811
1140
  exports.se_UpdateDeviceDefinitionCommand = se_UpdateDeviceDefinitionCommand;
1812
1141
  const se_UpdateFunctionDefinitionCommand = async (input, context) => {
1813
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1142
+ const b = (0, core_1.requestBuilder)(input, context);
1814
1143
  const headers = {
1815
1144
  "content-type": "application/json",
1816
1145
  };
1817
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1818
- "/greengrass/definition/functions/{FunctionDefinitionId}";
1819
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
1146
+ b.bp("/greengrass/definition/functions/{FunctionDefinitionId}");
1147
+ b.p("FunctionDefinitionId", () => input.FunctionDefinitionId, "{FunctionDefinitionId}", false);
1820
1148
  let body;
1821
1149
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1822
1150
  Name: [],
1823
1151
  }));
1824
- return new protocol_http_1.HttpRequest({
1825
- protocol,
1826
- hostname,
1827
- port,
1828
- method: "PUT",
1829
- headers,
1830
- path: resolvedPath,
1831
- body,
1832
- });
1152
+ b.m("PUT").h(headers).b(body);
1153
+ return b.build();
1833
1154
  };
1834
1155
  exports.se_UpdateFunctionDefinitionCommand = se_UpdateFunctionDefinitionCommand;
1835
1156
  const se_UpdateGroupCommand = async (input, context) => {
1836
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1157
+ const b = (0, core_1.requestBuilder)(input, context);
1837
1158
  const headers = {
1838
1159
  "content-type": "application/json",
1839
1160
  };
1840
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/greengrass/groups/{GroupId}";
1841
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
1161
+ b.bp("/greengrass/groups/{GroupId}");
1162
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
1842
1163
  let body;
1843
1164
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1844
1165
  Name: [],
1845
1166
  }));
1846
- return new protocol_http_1.HttpRequest({
1847
- protocol,
1848
- hostname,
1849
- port,
1850
- method: "PUT",
1851
- headers,
1852
- path: resolvedPath,
1853
- body,
1854
- });
1167
+ b.m("PUT").h(headers).b(body);
1168
+ return b.build();
1855
1169
  };
1856
1170
  exports.se_UpdateGroupCommand = se_UpdateGroupCommand;
1857
1171
  const se_UpdateGroupCertificateConfigurationCommand = async (input, context) => {
1858
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1172
+ const b = (0, core_1.requestBuilder)(input, context);
1859
1173
  const headers = {
1860
1174
  "content-type": "application/json",
1861
1175
  };
1862
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1863
- "/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry";
1864
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GroupId", () => input.GroupId, "{GroupId}", false);
1176
+ b.bp("/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry");
1177
+ b.p("GroupId", () => input.GroupId, "{GroupId}", false);
1865
1178
  let body;
1866
1179
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1867
1180
  CertificateExpiryInMilliseconds: [],
1868
1181
  }));
1869
- return new protocol_http_1.HttpRequest({
1870
- protocol,
1871
- hostname,
1872
- port,
1873
- method: "PUT",
1874
- headers,
1875
- path: resolvedPath,
1876
- body,
1877
- });
1182
+ b.m("PUT").h(headers).b(body);
1183
+ return b.build();
1878
1184
  };
1879
1185
  exports.se_UpdateGroupCertificateConfigurationCommand = se_UpdateGroupCertificateConfigurationCommand;
1880
1186
  const se_UpdateLoggerDefinitionCommand = async (input, context) => {
1881
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1187
+ const b = (0, core_1.requestBuilder)(input, context);
1882
1188
  const headers = {
1883
1189
  "content-type": "application/json",
1884
1190
  };
1885
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1886
- "/greengrass/definition/loggers/{LoggerDefinitionId}";
1887
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
1191
+ b.bp("/greengrass/definition/loggers/{LoggerDefinitionId}");
1192
+ b.p("LoggerDefinitionId", () => input.LoggerDefinitionId, "{LoggerDefinitionId}", false);
1888
1193
  let body;
1889
1194
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1890
1195
  Name: [],
1891
1196
  }));
1892
- return new protocol_http_1.HttpRequest({
1893
- protocol,
1894
- hostname,
1895
- port,
1896
- method: "PUT",
1897
- headers,
1898
- path: resolvedPath,
1899
- body,
1900
- });
1197
+ b.m("PUT").h(headers).b(body);
1198
+ return b.build();
1901
1199
  };
1902
1200
  exports.se_UpdateLoggerDefinitionCommand = se_UpdateLoggerDefinitionCommand;
1903
1201
  const se_UpdateResourceDefinitionCommand = async (input, context) => {
1904
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1202
+ const b = (0, core_1.requestBuilder)(input, context);
1905
1203
  const headers = {
1906
1204
  "content-type": "application/json",
1907
1205
  };
1908
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1909
- "/greengrass/definition/resources/{ResourceDefinitionId}";
1910
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
1206
+ b.bp("/greengrass/definition/resources/{ResourceDefinitionId}");
1207
+ b.p("ResourceDefinitionId", () => input.ResourceDefinitionId, "{ResourceDefinitionId}", false);
1911
1208
  let body;
1912
1209
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1913
1210
  Name: [],
1914
1211
  }));
1915
- return new protocol_http_1.HttpRequest({
1916
- protocol,
1917
- hostname,
1918
- port,
1919
- method: "PUT",
1920
- headers,
1921
- path: resolvedPath,
1922
- body,
1923
- });
1212
+ b.m("PUT").h(headers).b(body);
1213
+ return b.build();
1924
1214
  };
1925
1215
  exports.se_UpdateResourceDefinitionCommand = se_UpdateResourceDefinitionCommand;
1926
1216
  const se_UpdateSubscriptionDefinitionCommand = async (input, context) => {
1927
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1217
+ const b = (0, core_1.requestBuilder)(input, context);
1928
1218
  const headers = {
1929
1219
  "content-type": "application/json",
1930
1220
  };
1931
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1932
- "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}";
1933
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
1221
+ b.bp("/greengrass/definition/subscriptions/{SubscriptionDefinitionId}");
1222
+ b.p("SubscriptionDefinitionId", () => input.SubscriptionDefinitionId, "{SubscriptionDefinitionId}", false);
1934
1223
  let body;
1935
1224
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1936
1225
  Name: [],
1937
1226
  }));
1938
- return new protocol_http_1.HttpRequest({
1939
- protocol,
1940
- hostname,
1941
- port,
1942
- method: "PUT",
1943
- headers,
1944
- path: resolvedPath,
1945
- body,
1946
- });
1227
+ b.m("PUT").h(headers).b(body);
1228
+ return b.build();
1947
1229
  };
1948
1230
  exports.se_UpdateSubscriptionDefinitionCommand = se_UpdateSubscriptionDefinitionCommand;
1949
1231
  const se_UpdateThingRuntimeConfigurationCommand = async (input, context) => {
1950
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1232
+ const b = (0, core_1.requestBuilder)(input, context);
1951
1233
  const headers = {
1952
1234
  "content-type": "application/json",
1953
1235
  };
1954
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1955
- "/greengrass/things/{ThingName}/runtimeconfig";
1956
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ThingName", () => input.ThingName, "{ThingName}", false);
1236
+ b.bp("/greengrass/things/{ThingName}/runtimeconfig");
1237
+ b.p("ThingName", () => input.ThingName, "{ThingName}", false);
1957
1238
  let body;
1958
1239
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1959
1240
  TelemetryConfiguration: (_) => (0, smithy_client_1._json)(_),
1960
1241
  }));
1961
- return new protocol_http_1.HttpRequest({
1962
- protocol,
1963
- hostname,
1964
- port,
1965
- method: "PUT",
1966
- headers,
1967
- path: resolvedPath,
1968
- body,
1969
- });
1242
+ b.m("PUT").h(headers).b(body);
1243
+ return b.build();
1970
1244
  };
1971
1245
  exports.se_UpdateThingRuntimeConfigurationCommand = se_UpdateThingRuntimeConfigurationCommand;
1972
1246
  const de_AssociateRoleToGroupCommand = async (output, context) => {
@@ -5280,6 +4554,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
5280
4554
  value !== "" &&
5281
4555
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
5282
4556
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
4557
+ const _ACT = "AmznClientToken";
4558
+ const _MR = "MaxResults";
4559
+ const _NT = "NextToken";
4560
+ const _TK = "TagKeys";
4561
+ const _tK = "tagKeys";
4562
+ const _xact = "x-amzn-client-token";
5283
4563
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5284
4564
  if (encoded.length) {
5285
4565
  return JSON.parse(encoded);