@aws-sdk/client-networkmanager 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,133 +4,94 @@ exports.se_GetNetworkResourcesCommand = exports.se_GetNetworkResourceRelationshi
4
4
  exports.de_CreateTransitGatewayPeeringCommand = exports.de_CreateSiteToSiteVpnAttachmentCommand = exports.de_CreateSiteCommand = exports.de_CreateLinkCommand = exports.de_CreateGlobalNetworkCommand = exports.de_CreateDeviceCommand = exports.de_CreateCoreNetworkCommand = exports.de_CreateConnectPeerCommand = exports.de_CreateConnectionCommand = exports.de_CreateConnectAttachmentCommand = exports.de_AssociateTransitGatewayConnectPeerCommand = exports.de_AssociateLinkCommand = exports.de_AssociateCustomerGatewayCommand = exports.de_AssociateConnectPeerCommand = exports.de_AcceptAttachmentCommand = exports.se_UpdateVpcAttachmentCommand = exports.se_UpdateSiteCommand = exports.se_UpdateNetworkResourceMetadataCommand = exports.se_UpdateLinkCommand = exports.se_UpdateGlobalNetworkCommand = exports.se_UpdateDeviceCommand = exports.se_UpdateCoreNetworkCommand = exports.se_UpdateConnectionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartRouteAnalysisCommand = exports.se_StartOrganizationServiceAccessUpdateCommand = exports.se_RestoreCoreNetworkPolicyVersionCommand = exports.se_RejectAttachmentCommand = exports.se_RegisterTransitGatewayCommand = exports.se_PutResourcePolicyCommand = exports.se_PutCoreNetworkPolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListPeeringsCommand = exports.se_ListOrganizationServiceAccessStatusCommand = exports.se_ListCoreNetworksCommand = exports.se_ListCoreNetworkPolicyVersionsCommand = exports.se_ListConnectPeersCommand = exports.se_ListAttachmentsCommand = exports.se_GetVpcAttachmentCommand = exports.se_GetTransitGatewayRouteTableAttachmentCommand = exports.se_GetTransitGatewayRegistrationsCommand = exports.se_GetTransitGatewayPeeringCommand = exports.se_GetTransitGatewayConnectPeerAssociationsCommand = exports.se_GetSiteToSiteVpnAttachmentCommand = exports.se_GetSitesCommand = exports.se_GetRouteAnalysisCommand = exports.se_GetResourcePolicyCommand = exports.se_GetNetworkTelemetryCommand = exports.se_GetNetworkRoutesCommand = void 0;
5
5
  exports.de_ListCoreNetworksCommand = exports.de_ListCoreNetworkPolicyVersionsCommand = exports.de_ListConnectPeersCommand = exports.de_ListAttachmentsCommand = exports.de_GetVpcAttachmentCommand = exports.de_GetTransitGatewayRouteTableAttachmentCommand = exports.de_GetTransitGatewayRegistrationsCommand = exports.de_GetTransitGatewayPeeringCommand = exports.de_GetTransitGatewayConnectPeerAssociationsCommand = exports.de_GetSiteToSiteVpnAttachmentCommand = exports.de_GetSitesCommand = exports.de_GetRouteAnalysisCommand = exports.de_GetResourcePolicyCommand = exports.de_GetNetworkTelemetryCommand = exports.de_GetNetworkRoutesCommand = exports.de_GetNetworkResourcesCommand = exports.de_GetNetworkResourceRelationshipsCommand = exports.de_GetNetworkResourceCountsCommand = exports.de_GetLinksCommand = exports.de_GetLinkAssociationsCommand = exports.de_GetDevicesCommand = exports.de_GetCustomerGatewayAssociationsCommand = exports.de_GetCoreNetworkPolicyCommand = exports.de_GetCoreNetworkChangeSetCommand = exports.de_GetCoreNetworkChangeEventsCommand = exports.de_GetCoreNetworkCommand = exports.de_GetConnectPeerAssociationsCommand = exports.de_GetConnectPeerCommand = exports.de_GetConnectionsCommand = exports.de_GetConnectAttachmentCommand = exports.de_ExecuteCoreNetworkChangeSetCommand = exports.de_DisassociateTransitGatewayConnectPeerCommand = exports.de_DisassociateLinkCommand = exports.de_DisassociateCustomerGatewayCommand = exports.de_DisassociateConnectPeerCommand = exports.de_DescribeGlobalNetworksCommand = exports.de_DeregisterTransitGatewayCommand = exports.de_DeleteSiteCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeletePeeringCommand = exports.de_DeleteLinkCommand = exports.de_DeleteGlobalNetworkCommand = exports.de_DeleteDeviceCommand = exports.de_DeleteCoreNetworkPolicyVersionCommand = exports.de_DeleteCoreNetworkCommand = exports.de_DeleteConnectPeerCommand = exports.de_DeleteConnectionCommand = exports.de_DeleteAttachmentCommand = exports.de_CreateVpcAttachmentCommand = exports.de_CreateTransitGatewayRouteTableAttachmentCommand = void 0;
6
6
  exports.de_UpdateVpcAttachmentCommand = exports.de_UpdateSiteCommand = exports.de_UpdateNetworkResourceMetadataCommand = exports.de_UpdateLinkCommand = exports.de_UpdateGlobalNetworkCommand = exports.de_UpdateDeviceCommand = exports.de_UpdateCoreNetworkCommand = exports.de_UpdateConnectionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartRouteAnalysisCommand = exports.de_StartOrganizationServiceAccessUpdateCommand = exports.de_RestoreCoreNetworkPolicyVersionCommand = exports.de_RejectAttachmentCommand = exports.de_RegisterTransitGatewayCommand = exports.de_PutResourcePolicyCommand = exports.de_PutCoreNetworkPolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListPeeringsCommand = exports.de_ListOrganizationServiceAccessStatusCommand = 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 uuid_1 = require("uuid");
10
10
  const models_0_1 = require("../models/models_0");
11
11
  const NetworkManagerServiceException_1 = require("../models/NetworkManagerServiceException");
12
12
  const se_AcceptAttachmentCommand = async (input, context) => {
13
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13
+ const b = (0, core_1.requestBuilder)(input, context);
14
14
  const headers = {};
15
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments/{AttachmentId}/accept";
16
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
15
+ b.bp("/attachments/{AttachmentId}/accept");
16
+ b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
17
17
  let body;
18
- return new protocol_http_1.HttpRequest({
19
- protocol,
20
- hostname,
21
- port,
22
- method: "POST",
23
- headers,
24
- path: resolvedPath,
25
- body,
26
- });
18
+ b.m("POST").h(headers).b(body);
19
+ return b.build();
27
20
  };
28
21
  exports.se_AcceptAttachmentCommand = se_AcceptAttachmentCommand;
29
22
  const se_AssociateConnectPeerCommand = async (input, context) => {
30
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
23
+ const b = (0, core_1.requestBuilder)(input, context);
31
24
  const headers = {
32
25
  "content-type": "application/json",
33
26
  };
34
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
35
- "/global-networks/{GlobalNetworkId}/connect-peer-associations";
36
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
27
+ b.bp("/global-networks/{GlobalNetworkId}/connect-peer-associations");
28
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
37
29
  let body;
38
30
  body = JSON.stringify((0, smithy_client_1.take)(input, {
39
31
  ConnectPeerId: [],
40
32
  DeviceId: [],
41
33
  LinkId: [],
42
34
  }));
43
- return new protocol_http_1.HttpRequest({
44
- protocol,
45
- hostname,
46
- port,
47
- method: "POST",
48
- headers,
49
- path: resolvedPath,
50
- body,
51
- });
35
+ b.m("POST").h(headers).b(body);
36
+ return b.build();
52
37
  };
53
38
  exports.se_AssociateConnectPeerCommand = se_AssociateConnectPeerCommand;
54
39
  const se_AssociateCustomerGatewayCommand = async (input, context) => {
55
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
40
+ const b = (0, core_1.requestBuilder)(input, context);
56
41
  const headers = {
57
42
  "content-type": "application/json",
58
43
  };
59
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
60
- "/global-networks/{GlobalNetworkId}/customer-gateway-associations";
61
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
44
+ b.bp("/global-networks/{GlobalNetworkId}/customer-gateway-associations");
45
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
62
46
  let body;
63
47
  body = JSON.stringify((0, smithy_client_1.take)(input, {
64
48
  CustomerGatewayArn: [],
65
49
  DeviceId: [],
66
50
  LinkId: [],
67
51
  }));
68
- return new protocol_http_1.HttpRequest({
69
- protocol,
70
- hostname,
71
- port,
72
- method: "POST",
73
- headers,
74
- path: resolvedPath,
75
- body,
76
- });
52
+ b.m("POST").h(headers).b(body);
53
+ return b.build();
77
54
  };
78
55
  exports.se_AssociateCustomerGatewayCommand = se_AssociateCustomerGatewayCommand;
79
56
  const se_AssociateLinkCommand = async (input, context) => {
80
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
57
+ const b = (0, core_1.requestBuilder)(input, context);
81
58
  const headers = {
82
59
  "content-type": "application/json",
83
60
  };
84
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
85
- "/global-networks/{GlobalNetworkId}/link-associations";
86
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
61
+ b.bp("/global-networks/{GlobalNetworkId}/link-associations");
62
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
87
63
  let body;
88
64
  body = JSON.stringify((0, smithy_client_1.take)(input, {
89
65
  DeviceId: [],
90
66
  LinkId: [],
91
67
  }));
92
- return new protocol_http_1.HttpRequest({
93
- protocol,
94
- hostname,
95
- port,
96
- method: "POST",
97
- headers,
98
- path: resolvedPath,
99
- body,
100
- });
68
+ b.m("POST").h(headers).b(body);
69
+ return b.build();
101
70
  };
102
71
  exports.se_AssociateLinkCommand = se_AssociateLinkCommand;
103
72
  const se_AssociateTransitGatewayConnectPeerCommand = async (input, context) => {
104
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = (0, core_1.requestBuilder)(input, context);
105
74
  const headers = {
106
75
  "content-type": "application/json",
107
76
  };
108
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
109
- "/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations";
110
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
77
+ b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations");
78
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
111
79
  let body;
112
80
  body = JSON.stringify((0, smithy_client_1.take)(input, {
113
81
  DeviceId: [],
114
82
  LinkId: [],
115
83
  TransitGatewayConnectPeerArn: [],
116
84
  }));
117
- return new protocol_http_1.HttpRequest({
118
- protocol,
119
- hostname,
120
- port,
121
- method: "POST",
122
- headers,
123
- path: resolvedPath,
124
- body,
125
- });
85
+ b.m("POST").h(headers).b(body);
86
+ return b.build();
126
87
  };
127
88
  exports.se_AssociateTransitGatewayConnectPeerCommand = se_AssociateTransitGatewayConnectPeerCommand;
128
89
  const se_CreateConnectAttachmentCommand = async (input, context) => {
129
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
90
+ const b = (0, core_1.requestBuilder)(input, context);
130
91
  const headers = {
131
92
  "content-type": "application/json",
132
93
  };
133
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-attachments";
94
+ b.bp("/connect-attachments");
134
95
  let body;
135
96
  body = JSON.stringify((0, smithy_client_1.take)(input, {
136
97
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -140,25 +101,17 @@ const se_CreateConnectAttachmentCommand = async (input, context) => {
140
101
  Tags: (_) => (0, smithy_client_1._json)(_),
141
102
  TransportAttachmentId: [],
142
103
  }));
143
- return new protocol_http_1.HttpRequest({
144
- protocol,
145
- hostname,
146
- port,
147
- method: "POST",
148
- headers,
149
- path: resolvedPath,
150
- body,
151
- });
104
+ b.m("POST").h(headers).b(body);
105
+ return b.build();
152
106
  };
153
107
  exports.se_CreateConnectAttachmentCommand = se_CreateConnectAttachmentCommand;
154
108
  const se_CreateConnectionCommand = async (input, context) => {
155
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
109
+ const b = (0, core_1.requestBuilder)(input, context);
156
110
  const headers = {
157
111
  "content-type": "application/json",
158
112
  };
159
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
160
- "/global-networks/{GlobalNetworkId}/connections";
161
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
113
+ b.bp("/global-networks/{GlobalNetworkId}/connections");
114
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
162
115
  let body;
163
116
  body = JSON.stringify((0, smithy_client_1.take)(input, {
164
117
  ConnectedDeviceId: [],
@@ -168,23 +121,16 @@ const se_CreateConnectionCommand = async (input, context) => {
168
121
  LinkId: [],
169
122
  Tags: (_) => (0, smithy_client_1._json)(_),
170
123
  }));
171
- return new protocol_http_1.HttpRequest({
172
- protocol,
173
- hostname,
174
- port,
175
- method: "POST",
176
- headers,
177
- path: resolvedPath,
178
- body,
179
- });
124
+ b.m("POST").h(headers).b(body);
125
+ return b.build();
180
126
  };
181
127
  exports.se_CreateConnectionCommand = se_CreateConnectionCommand;
182
128
  const se_CreateConnectPeerCommand = async (input, context) => {
183
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
129
+ const b = (0, core_1.requestBuilder)(input, context);
184
130
  const headers = {
185
131
  "content-type": "application/json",
186
132
  };
187
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers";
133
+ b.bp("/connect-peers");
188
134
  let body;
189
135
  body = JSON.stringify((0, smithy_client_1.take)(input, {
190
136
  BgpOptions: (_) => (0, smithy_client_1._json)(_),
@@ -196,23 +142,16 @@ const se_CreateConnectPeerCommand = async (input, context) => {
196
142
  SubnetArn: [],
197
143
  Tags: (_) => (0, smithy_client_1._json)(_),
198
144
  }));
199
- return new protocol_http_1.HttpRequest({
200
- protocol,
201
- hostname,
202
- port,
203
- method: "POST",
204
- headers,
205
- path: resolvedPath,
206
- body,
207
- });
145
+ b.m("POST").h(headers).b(body);
146
+ return b.build();
208
147
  };
209
148
  exports.se_CreateConnectPeerCommand = se_CreateConnectPeerCommand;
210
149
  const se_CreateCoreNetworkCommand = async (input, context) => {
211
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
+ const b = (0, core_1.requestBuilder)(input, context);
212
151
  const headers = {
213
152
  "content-type": "application/json",
214
153
  };
215
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks";
154
+ b.bp("/core-networks");
216
155
  let body;
217
156
  body = JSON.stringify((0, smithy_client_1.take)(input, {
218
157
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -221,25 +160,17 @@ const se_CreateCoreNetworkCommand = async (input, context) => {
221
160
  PolicyDocument: [],
222
161
  Tags: (_) => (0, smithy_client_1._json)(_),
223
162
  }));
224
- return new protocol_http_1.HttpRequest({
225
- protocol,
226
- hostname,
227
- port,
228
- method: "POST",
229
- headers,
230
- path: resolvedPath,
231
- body,
232
- });
163
+ b.m("POST").h(headers).b(body);
164
+ return b.build();
233
165
  };
234
166
  exports.se_CreateCoreNetworkCommand = se_CreateCoreNetworkCommand;
235
167
  const se_CreateDeviceCommand = async (input, context) => {
236
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
168
+ const b = (0, core_1.requestBuilder)(input, context);
237
169
  const headers = {
238
170
  "content-type": "application/json",
239
171
  };
240
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
241
- "/global-networks/{GlobalNetworkId}/devices";
242
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
172
+ b.bp("/global-networks/{GlobalNetworkId}/devices");
173
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
243
174
  let body;
244
175
  body = JSON.stringify((0, smithy_client_1.take)(input, {
245
176
  AWSLocation: (_) => (0, smithy_client_1._json)(_),
@@ -252,46 +183,32 @@ const se_CreateDeviceCommand = async (input, context) => {
252
183
  Type: [],
253
184
  Vendor: [],
254
185
  }));
255
- return new protocol_http_1.HttpRequest({
256
- protocol,
257
- hostname,
258
- port,
259
- method: "POST",
260
- headers,
261
- path: resolvedPath,
262
- body,
263
- });
186
+ b.m("POST").h(headers).b(body);
187
+ return b.build();
264
188
  };
265
189
  exports.se_CreateDeviceCommand = se_CreateDeviceCommand;
266
190
  const se_CreateGlobalNetworkCommand = async (input, context) => {
267
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
191
+ const b = (0, core_1.requestBuilder)(input, context);
268
192
  const headers = {
269
193
  "content-type": "application/json",
270
194
  };
271
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks";
195
+ b.bp("/global-networks");
272
196
  let body;
273
197
  body = JSON.stringify((0, smithy_client_1.take)(input, {
274
198
  Description: [],
275
199
  Tags: (_) => (0, smithy_client_1._json)(_),
276
200
  }));
277
- return new protocol_http_1.HttpRequest({
278
- protocol,
279
- hostname,
280
- port,
281
- method: "POST",
282
- headers,
283
- path: resolvedPath,
284
- body,
285
- });
201
+ b.m("POST").h(headers).b(body);
202
+ return b.build();
286
203
  };
287
204
  exports.se_CreateGlobalNetworkCommand = se_CreateGlobalNetworkCommand;
288
205
  const se_CreateLinkCommand = async (input, context) => {
289
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
206
+ const b = (0, core_1.requestBuilder)(input, context);
290
207
  const headers = {
291
208
  "content-type": "application/json",
292
209
  };
293
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/links";
294
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
210
+ b.bp("/global-networks/{GlobalNetworkId}/links");
211
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
295
212
  let body;
296
213
  body = JSON.stringify((0, smithy_client_1.take)(input, {
297
214
  Bandwidth: (_) => (0, smithy_client_1._json)(_),
@@ -301,47 +218,33 @@ const se_CreateLinkCommand = async (input, context) => {
301
218
  Tags: (_) => (0, smithy_client_1._json)(_),
302
219
  Type: [],
303
220
  }));
304
- return new protocol_http_1.HttpRequest({
305
- protocol,
306
- hostname,
307
- port,
308
- method: "POST",
309
- headers,
310
- path: resolvedPath,
311
- body,
312
- });
221
+ b.m("POST").h(headers).b(body);
222
+ return b.build();
313
223
  };
314
224
  exports.se_CreateLinkCommand = se_CreateLinkCommand;
315
225
  const se_CreateSiteCommand = async (input, context) => {
316
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
226
+ const b = (0, core_1.requestBuilder)(input, context);
317
227
  const headers = {
318
228
  "content-type": "application/json",
319
229
  };
320
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/sites";
321
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
230
+ b.bp("/global-networks/{GlobalNetworkId}/sites");
231
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
322
232
  let body;
323
233
  body = JSON.stringify((0, smithy_client_1.take)(input, {
324
234
  Description: [],
325
235
  Location: (_) => (0, smithy_client_1._json)(_),
326
236
  Tags: (_) => (0, smithy_client_1._json)(_),
327
237
  }));
328
- return new protocol_http_1.HttpRequest({
329
- protocol,
330
- hostname,
331
- port,
332
- method: "POST",
333
- headers,
334
- path: resolvedPath,
335
- body,
336
- });
238
+ b.m("POST").h(headers).b(body);
239
+ return b.build();
337
240
  };
338
241
  exports.se_CreateSiteCommand = se_CreateSiteCommand;
339
242
  const se_CreateSiteToSiteVpnAttachmentCommand = async (input, context) => {
340
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
243
+ const b = (0, core_1.requestBuilder)(input, context);
341
244
  const headers = {
342
245
  "content-type": "application/json",
343
246
  };
344
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/site-to-site-vpn-attachments";
247
+ b.bp("/site-to-site-vpn-attachments");
345
248
  let body;
346
249
  body = JSON.stringify((0, smithy_client_1.take)(input, {
347
250
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -349,23 +252,16 @@ const se_CreateSiteToSiteVpnAttachmentCommand = async (input, context) => {
349
252
  Tags: (_) => (0, smithy_client_1._json)(_),
350
253
  VpnConnectionArn: [],
351
254
  }));
352
- return new protocol_http_1.HttpRequest({
353
- protocol,
354
- hostname,
355
- port,
356
- method: "POST",
357
- headers,
358
- path: resolvedPath,
359
- body,
360
- });
255
+ b.m("POST").h(headers).b(body);
256
+ return b.build();
361
257
  };
362
258
  exports.se_CreateSiteToSiteVpnAttachmentCommand = se_CreateSiteToSiteVpnAttachmentCommand;
363
259
  const se_CreateTransitGatewayPeeringCommand = async (input, context) => {
364
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
260
+ const b = (0, core_1.requestBuilder)(input, context);
365
261
  const headers = {
366
262
  "content-type": "application/json",
367
263
  };
368
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-peerings";
264
+ b.bp("/transit-gateway-peerings");
369
265
  let body;
370
266
  body = JSON.stringify((0, smithy_client_1.take)(input, {
371
267
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -373,23 +269,16 @@ const se_CreateTransitGatewayPeeringCommand = async (input, context) => {
373
269
  Tags: (_) => (0, smithy_client_1._json)(_),
374
270
  TransitGatewayArn: [],
375
271
  }));
376
- return new protocol_http_1.HttpRequest({
377
- protocol,
378
- hostname,
379
- port,
380
- method: "POST",
381
- headers,
382
- path: resolvedPath,
383
- body,
384
- });
272
+ b.m("POST").h(headers).b(body);
273
+ return b.build();
385
274
  };
386
275
  exports.se_CreateTransitGatewayPeeringCommand = se_CreateTransitGatewayPeeringCommand;
387
276
  const se_CreateTransitGatewayRouteTableAttachmentCommand = async (input, context) => {
388
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
+ const b = (0, core_1.requestBuilder)(input, context);
389
278
  const headers = {
390
279
  "content-type": "application/json",
391
280
  };
392
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-route-table-attachments";
281
+ b.bp("/transit-gateway-route-table-attachments");
393
282
  let body;
394
283
  body = JSON.stringify((0, smithy_client_1.take)(input, {
395
284
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -397,23 +286,16 @@ const se_CreateTransitGatewayRouteTableAttachmentCommand = async (input, context
397
286
  Tags: (_) => (0, smithy_client_1._json)(_),
398
287
  TransitGatewayRouteTableArn: [],
399
288
  }));
400
- return new protocol_http_1.HttpRequest({
401
- protocol,
402
- hostname,
403
- port,
404
- method: "POST",
405
- headers,
406
- path: resolvedPath,
407
- body,
408
- });
289
+ b.m("POST").h(headers).b(body);
290
+ return b.build();
409
291
  };
410
292
  exports.se_CreateTransitGatewayRouteTableAttachmentCommand = se_CreateTransitGatewayRouteTableAttachmentCommand;
411
293
  const se_CreateVpcAttachmentCommand = async (input, context) => {
412
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
294
+ const b = (0, core_1.requestBuilder)(input, context);
413
295
  const headers = {
414
296
  "content-type": "application/json",
415
297
  };
416
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpc-attachments";
298
+ b.bp("/vpc-attachments");
417
299
  let body;
418
300
  body = JSON.stringify((0, smithy_client_1.take)(input, {
419
301
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -423,727 +305,440 @@ const se_CreateVpcAttachmentCommand = async (input, context) => {
423
305
  Tags: (_) => (0, smithy_client_1._json)(_),
424
306
  VpcArn: [],
425
307
  }));
426
- return new protocol_http_1.HttpRequest({
427
- protocol,
428
- hostname,
429
- port,
430
- method: "POST",
431
- headers,
432
- path: resolvedPath,
433
- body,
434
- });
308
+ b.m("POST").h(headers).b(body);
309
+ return b.build();
435
310
  };
436
311
  exports.se_CreateVpcAttachmentCommand = se_CreateVpcAttachmentCommand;
437
312
  const se_DeleteAttachmentCommand = async (input, context) => {
438
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
313
+ const b = (0, core_1.requestBuilder)(input, context);
439
314
  const headers = {};
440
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments/{AttachmentId}";
441
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
315
+ b.bp("/attachments/{AttachmentId}");
316
+ b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
442
317
  let body;
443
- return new protocol_http_1.HttpRequest({
444
- protocol,
445
- hostname,
446
- port,
447
- method: "DELETE",
448
- headers,
449
- path: resolvedPath,
450
- body,
451
- });
318
+ b.m("DELETE").h(headers).b(body);
319
+ return b.build();
452
320
  };
453
321
  exports.se_DeleteAttachmentCommand = se_DeleteAttachmentCommand;
454
322
  const se_DeleteConnectionCommand = async (input, context) => {
455
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
323
+ const b = (0, core_1.requestBuilder)(input, context);
456
324
  const headers = {};
457
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
458
- "/global-networks/{GlobalNetworkId}/connections/{ConnectionId}";
459
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
460
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
325
+ b.bp("/global-networks/{GlobalNetworkId}/connections/{ConnectionId}");
326
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
327
+ b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
461
328
  let body;
462
- return new protocol_http_1.HttpRequest({
463
- protocol,
464
- hostname,
465
- port,
466
- method: "DELETE",
467
- headers,
468
- path: resolvedPath,
469
- body,
470
- });
329
+ b.m("DELETE").h(headers).b(body);
330
+ return b.build();
471
331
  };
472
332
  exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
473
333
  const se_DeleteConnectPeerCommand = async (input, context) => {
474
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
334
+ const b = (0, core_1.requestBuilder)(input, context);
475
335
  const headers = {};
476
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers/{ConnectPeerId}";
477
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
336
+ b.bp("/connect-peers/{ConnectPeerId}");
337
+ b.p("ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
478
338
  let body;
479
- return new protocol_http_1.HttpRequest({
480
- protocol,
481
- hostname,
482
- port,
483
- method: "DELETE",
484
- headers,
485
- path: resolvedPath,
486
- body,
487
- });
339
+ b.m("DELETE").h(headers).b(body);
340
+ return b.build();
488
341
  };
489
342
  exports.se_DeleteConnectPeerCommand = se_DeleteConnectPeerCommand;
490
343
  const se_DeleteCoreNetworkCommand = async (input, context) => {
491
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
344
+ const b = (0, core_1.requestBuilder)(input, context);
492
345
  const headers = {};
493
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks/{CoreNetworkId}";
494
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
346
+ b.bp("/core-networks/{CoreNetworkId}");
347
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
495
348
  let body;
496
- return new protocol_http_1.HttpRequest({
497
- protocol,
498
- hostname,
499
- port,
500
- method: "DELETE",
501
- headers,
502
- path: resolvedPath,
503
- body,
504
- });
349
+ b.m("DELETE").h(headers).b(body);
350
+ return b.build();
505
351
  };
506
352
  exports.se_DeleteCoreNetworkCommand = se_DeleteCoreNetworkCommand;
507
353
  const se_DeleteCoreNetworkPolicyVersionCommand = async (input, context) => {
508
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
354
+ const b = (0, core_1.requestBuilder)(input, context);
509
355
  const headers = {};
510
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
511
- "/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}";
512
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
513
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
356
+ b.bp("/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}");
357
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
358
+ b.p("PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
514
359
  let body;
515
- return new protocol_http_1.HttpRequest({
516
- protocol,
517
- hostname,
518
- port,
519
- method: "DELETE",
520
- headers,
521
- path: resolvedPath,
522
- body,
523
- });
360
+ b.m("DELETE").h(headers).b(body);
361
+ return b.build();
524
362
  };
525
363
  exports.se_DeleteCoreNetworkPolicyVersionCommand = se_DeleteCoreNetworkPolicyVersionCommand;
526
364
  const se_DeleteDeviceCommand = async (input, context) => {
527
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
365
+ const b = (0, core_1.requestBuilder)(input, context);
528
366
  const headers = {};
529
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
530
- "/global-networks/{GlobalNetworkId}/devices/{DeviceId}";
531
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
532
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
367
+ b.bp("/global-networks/{GlobalNetworkId}/devices/{DeviceId}");
368
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
369
+ b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
533
370
  let body;
534
- return new protocol_http_1.HttpRequest({
535
- protocol,
536
- hostname,
537
- port,
538
- method: "DELETE",
539
- headers,
540
- path: resolvedPath,
541
- body,
542
- });
371
+ b.m("DELETE").h(headers).b(body);
372
+ return b.build();
543
373
  };
544
374
  exports.se_DeleteDeviceCommand = se_DeleteDeviceCommand;
545
375
  const se_DeleteGlobalNetworkCommand = async (input, context) => {
546
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
376
+ const b = (0, core_1.requestBuilder)(input, context);
547
377
  const headers = {};
548
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}";
549
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
378
+ b.bp("/global-networks/{GlobalNetworkId}");
379
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
550
380
  let body;
551
- return new protocol_http_1.HttpRequest({
552
- protocol,
553
- hostname,
554
- port,
555
- method: "DELETE",
556
- headers,
557
- path: resolvedPath,
558
- body,
559
- });
381
+ b.m("DELETE").h(headers).b(body);
382
+ return b.build();
560
383
  };
561
384
  exports.se_DeleteGlobalNetworkCommand = se_DeleteGlobalNetworkCommand;
562
385
  const se_DeleteLinkCommand = async (input, context) => {
563
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
386
+ const b = (0, core_1.requestBuilder)(input, context);
564
387
  const headers = {};
565
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
566
- "/global-networks/{GlobalNetworkId}/links/{LinkId}";
567
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
568
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LinkId", () => input.LinkId, "{LinkId}", false);
388
+ b.bp("/global-networks/{GlobalNetworkId}/links/{LinkId}");
389
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
390
+ b.p("LinkId", () => input.LinkId, "{LinkId}", false);
569
391
  let body;
570
- return new protocol_http_1.HttpRequest({
571
- protocol,
572
- hostname,
573
- port,
574
- method: "DELETE",
575
- headers,
576
- path: resolvedPath,
577
- body,
578
- });
392
+ b.m("DELETE").h(headers).b(body);
393
+ return b.build();
579
394
  };
580
395
  exports.se_DeleteLinkCommand = se_DeleteLinkCommand;
581
396
  const se_DeletePeeringCommand = async (input, context) => {
582
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
397
+ const b = (0, core_1.requestBuilder)(input, context);
583
398
  const headers = {};
584
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/peerings/{PeeringId}";
585
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PeeringId", () => input.PeeringId, "{PeeringId}", false);
399
+ b.bp("/peerings/{PeeringId}");
400
+ b.p("PeeringId", () => input.PeeringId, "{PeeringId}", false);
586
401
  let body;
587
- return new protocol_http_1.HttpRequest({
588
- protocol,
589
- hostname,
590
- port,
591
- method: "DELETE",
592
- headers,
593
- path: resolvedPath,
594
- body,
595
- });
402
+ b.m("DELETE").h(headers).b(body);
403
+ return b.build();
596
404
  };
597
405
  exports.se_DeletePeeringCommand = se_DeletePeeringCommand;
598
406
  const se_DeleteResourcePolicyCommand = async (input, context) => {
599
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
407
+ const b = (0, core_1.requestBuilder)(input, context);
600
408
  const headers = {};
601
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-policy/{ResourceArn}";
602
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
409
+ b.bp("/resource-policy/{ResourceArn}");
410
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
603
411
  let body;
604
- return new protocol_http_1.HttpRequest({
605
- protocol,
606
- hostname,
607
- port,
608
- method: "DELETE",
609
- headers,
610
- path: resolvedPath,
611
- body,
612
- });
412
+ b.m("DELETE").h(headers).b(body);
413
+ return b.build();
613
414
  };
614
415
  exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
615
416
  const se_DeleteSiteCommand = async (input, context) => {
616
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
417
+ const b = (0, core_1.requestBuilder)(input, context);
617
418
  const headers = {};
618
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
619
- "/global-networks/{GlobalNetworkId}/sites/{SiteId}";
620
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
621
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
419
+ b.bp("/global-networks/{GlobalNetworkId}/sites/{SiteId}");
420
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
421
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
622
422
  let body;
623
- return new protocol_http_1.HttpRequest({
624
- protocol,
625
- hostname,
626
- port,
627
- method: "DELETE",
628
- headers,
629
- path: resolvedPath,
630
- body,
631
- });
423
+ b.m("DELETE").h(headers).b(body);
424
+ return b.build();
632
425
  };
633
426
  exports.se_DeleteSiteCommand = se_DeleteSiteCommand;
634
427
  const se_DeregisterTransitGatewayCommand = async (input, context) => {
635
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
428
+ const b = (0, core_1.requestBuilder)(input, context);
636
429
  const headers = {};
637
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
638
- "/global-networks/{GlobalNetworkId}/transit-gateway-registrations/{TransitGatewayArn}";
639
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
640
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TransitGatewayArn", () => input.TransitGatewayArn, "{TransitGatewayArn}", false);
430
+ b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-registrations/{TransitGatewayArn}");
431
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
432
+ b.p("TransitGatewayArn", () => input.TransitGatewayArn, "{TransitGatewayArn}", false);
641
433
  let body;
642
- return new protocol_http_1.HttpRequest({
643
- protocol,
644
- hostname,
645
- port,
646
- method: "DELETE",
647
- headers,
648
- path: resolvedPath,
649
- body,
650
- });
434
+ b.m("DELETE").h(headers).b(body);
435
+ return b.build();
651
436
  };
652
437
  exports.se_DeregisterTransitGatewayCommand = se_DeregisterTransitGatewayCommand;
653
438
  const se_DescribeGlobalNetworksCommand = async (input, context) => {
654
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
439
+ const b = (0, core_1.requestBuilder)(input, context);
655
440
  const headers = {};
656
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks";
441
+ b.bp("/global-networks");
657
442
  const query = (0, smithy_client_1.map)({
658
- globalNetworkIds: [
659
- () => input.GlobalNetworkIds !== void 0,
660
- () => (input.GlobalNetworkIds || []).map((_entry) => _entry),
661
- ],
662
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
663
- nextToken: [, input.NextToken],
443
+ [_gNI]: [() => input.GlobalNetworkIds !== void 0, () => (input[_GNI] || []).map((_entry) => _entry)],
444
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
445
+ [_nT]: [, input[_NT]],
664
446
  });
665
447
  let body;
666
- return new protocol_http_1.HttpRequest({
667
- protocol,
668
- hostname,
669
- port,
670
- method: "GET",
671
- headers,
672
- path: resolvedPath,
673
- query,
674
- body,
675
- });
448
+ b.m("GET").h(headers).q(query).b(body);
449
+ return b.build();
676
450
  };
677
451
  exports.se_DescribeGlobalNetworksCommand = se_DescribeGlobalNetworksCommand;
678
452
  const se_DisassociateConnectPeerCommand = async (input, context) => {
679
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
453
+ const b = (0, core_1.requestBuilder)(input, context);
680
454
  const headers = {};
681
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
682
- "/global-networks/{GlobalNetworkId}/connect-peer-associations/{ConnectPeerId}";
683
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
684
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
455
+ b.bp("/global-networks/{GlobalNetworkId}/connect-peer-associations/{ConnectPeerId}");
456
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
457
+ b.p("ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
685
458
  let body;
686
- return new protocol_http_1.HttpRequest({
687
- protocol,
688
- hostname,
689
- port,
690
- method: "DELETE",
691
- headers,
692
- path: resolvedPath,
693
- body,
694
- });
459
+ b.m("DELETE").h(headers).b(body);
460
+ return b.build();
695
461
  };
696
462
  exports.se_DisassociateConnectPeerCommand = se_DisassociateConnectPeerCommand;
697
463
  const se_DisassociateCustomerGatewayCommand = async (input, context) => {
698
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
464
+ const b = (0, core_1.requestBuilder)(input, context);
699
465
  const headers = {};
700
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
701
- "/global-networks/{GlobalNetworkId}/customer-gateway-associations/{CustomerGatewayArn}";
702
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
703
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CustomerGatewayArn", () => input.CustomerGatewayArn, "{CustomerGatewayArn}", false);
466
+ b.bp("/global-networks/{GlobalNetworkId}/customer-gateway-associations/{CustomerGatewayArn}");
467
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
468
+ b.p("CustomerGatewayArn", () => input.CustomerGatewayArn, "{CustomerGatewayArn}", false);
704
469
  let body;
705
- return new protocol_http_1.HttpRequest({
706
- protocol,
707
- hostname,
708
- port,
709
- method: "DELETE",
710
- headers,
711
- path: resolvedPath,
712
- body,
713
- });
470
+ b.m("DELETE").h(headers).b(body);
471
+ return b.build();
714
472
  };
715
473
  exports.se_DisassociateCustomerGatewayCommand = se_DisassociateCustomerGatewayCommand;
716
474
  const se_DisassociateLinkCommand = async (input, context) => {
717
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
475
+ const b = (0, core_1.requestBuilder)(input, context);
718
476
  const headers = {};
719
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
720
- "/global-networks/{GlobalNetworkId}/link-associations";
721
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
477
+ b.bp("/global-networks/{GlobalNetworkId}/link-associations");
478
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
722
479
  const query = (0, smithy_client_1.map)({
723
- deviceId: [, (0, smithy_client_1.expectNonNull)(input.DeviceId, `DeviceId`)],
724
- linkId: [, (0, smithy_client_1.expectNonNull)(input.LinkId, `LinkId`)],
480
+ [_dI]: [, (0, smithy_client_1.expectNonNull)(input[_DI], `DeviceId`)],
481
+ [_lI]: [, (0, smithy_client_1.expectNonNull)(input[_LI], `LinkId`)],
725
482
  });
726
483
  let body;
727
- return new protocol_http_1.HttpRequest({
728
- protocol,
729
- hostname,
730
- port,
731
- method: "DELETE",
732
- headers,
733
- path: resolvedPath,
734
- query,
735
- body,
736
- });
484
+ b.m("DELETE").h(headers).q(query).b(body);
485
+ return b.build();
737
486
  };
738
487
  exports.se_DisassociateLinkCommand = se_DisassociateLinkCommand;
739
488
  const se_DisassociateTransitGatewayConnectPeerCommand = async (input, context) => {
740
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
489
+ const b = (0, core_1.requestBuilder)(input, context);
741
490
  const headers = {};
742
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
743
- "/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations/{TransitGatewayConnectPeerArn}";
744
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
745
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TransitGatewayConnectPeerArn", () => input.TransitGatewayConnectPeerArn, "{TransitGatewayConnectPeerArn}", false);
491
+ b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations/{TransitGatewayConnectPeerArn}");
492
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
493
+ b.p("TransitGatewayConnectPeerArn", () => input.TransitGatewayConnectPeerArn, "{TransitGatewayConnectPeerArn}", false);
746
494
  let body;
747
- return new protocol_http_1.HttpRequest({
748
- protocol,
749
- hostname,
750
- port,
751
- method: "DELETE",
752
- headers,
753
- path: resolvedPath,
754
- body,
755
- });
495
+ b.m("DELETE").h(headers).b(body);
496
+ return b.build();
756
497
  };
757
498
  exports.se_DisassociateTransitGatewayConnectPeerCommand = se_DisassociateTransitGatewayConnectPeerCommand;
758
499
  const se_ExecuteCoreNetworkChangeSetCommand = async (input, context) => {
759
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
500
+ const b = (0, core_1.requestBuilder)(input, context);
760
501
  const headers = {};
761
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
762
- "/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}/execute";
763
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
764
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
502
+ b.bp("/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}/execute");
503
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
504
+ b.p("PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
765
505
  let body;
766
- return new protocol_http_1.HttpRequest({
767
- protocol,
768
- hostname,
769
- port,
770
- method: "POST",
771
- headers,
772
- path: resolvedPath,
773
- body,
774
- });
506
+ b.m("POST").h(headers).b(body);
507
+ return b.build();
775
508
  };
776
509
  exports.se_ExecuteCoreNetworkChangeSetCommand = se_ExecuteCoreNetworkChangeSetCommand;
777
510
  const se_GetConnectAttachmentCommand = async (input, context) => {
778
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
511
+ const b = (0, core_1.requestBuilder)(input, context);
779
512
  const headers = {};
780
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-attachments/{AttachmentId}";
781
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
513
+ b.bp("/connect-attachments/{AttachmentId}");
514
+ b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
782
515
  let body;
783
- return new protocol_http_1.HttpRequest({
784
- protocol,
785
- hostname,
786
- port,
787
- method: "GET",
788
- headers,
789
- path: resolvedPath,
790
- body,
791
- });
516
+ b.m("GET").h(headers).b(body);
517
+ return b.build();
792
518
  };
793
519
  exports.se_GetConnectAttachmentCommand = se_GetConnectAttachmentCommand;
794
520
  const se_GetConnectionsCommand = async (input, context) => {
795
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
521
+ const b = (0, core_1.requestBuilder)(input, context);
796
522
  const headers = {};
797
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
798
- "/global-networks/{GlobalNetworkId}/connections";
799
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
523
+ b.bp("/global-networks/{GlobalNetworkId}/connections");
524
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
800
525
  const query = (0, smithy_client_1.map)({
801
- connectionIds: [
802
- () => input.ConnectionIds !== void 0,
803
- () => (input.ConnectionIds || []).map((_entry) => _entry),
804
- ],
805
- deviceId: [, input.DeviceId],
806
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
807
- nextToken: [, input.NextToken],
526
+ [_cI]: [() => input.ConnectionIds !== void 0, () => (input[_CI] || []).map((_entry) => _entry)],
527
+ [_dI]: [, input[_DI]],
528
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
529
+ [_nT]: [, input[_NT]],
808
530
  });
809
531
  let body;
810
- return new protocol_http_1.HttpRequest({
811
- protocol,
812
- hostname,
813
- port,
814
- method: "GET",
815
- headers,
816
- path: resolvedPath,
817
- query,
818
- body,
819
- });
532
+ b.m("GET").h(headers).q(query).b(body);
533
+ return b.build();
820
534
  };
821
535
  exports.se_GetConnectionsCommand = se_GetConnectionsCommand;
822
536
  const se_GetConnectPeerCommand = async (input, context) => {
823
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
537
+ const b = (0, core_1.requestBuilder)(input, context);
824
538
  const headers = {};
825
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers/{ConnectPeerId}";
826
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
539
+ b.bp("/connect-peers/{ConnectPeerId}");
540
+ b.p("ConnectPeerId", () => input.ConnectPeerId, "{ConnectPeerId}", false);
827
541
  let body;
828
- return new protocol_http_1.HttpRequest({
829
- protocol,
830
- hostname,
831
- port,
832
- method: "GET",
833
- headers,
834
- path: resolvedPath,
835
- body,
836
- });
542
+ b.m("GET").h(headers).b(body);
543
+ return b.build();
837
544
  };
838
545
  exports.se_GetConnectPeerCommand = se_GetConnectPeerCommand;
839
546
  const se_GetConnectPeerAssociationsCommand = async (input, context) => {
840
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
547
+ const b = (0, core_1.requestBuilder)(input, context);
841
548
  const headers = {};
842
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
843
- "/global-networks/{GlobalNetworkId}/connect-peer-associations";
844
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
549
+ b.bp("/global-networks/{GlobalNetworkId}/connect-peer-associations");
550
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
845
551
  const query = (0, smithy_client_1.map)({
846
- connectPeerIds: [
847
- () => input.ConnectPeerIds !== void 0,
848
- () => (input.ConnectPeerIds || []).map((_entry) => _entry),
849
- ],
850
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
851
- nextToken: [, input.NextToken],
552
+ [_cPI]: [() => input.ConnectPeerIds !== void 0, () => (input[_CPI] || []).map((_entry) => _entry)],
553
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
554
+ [_nT]: [, input[_NT]],
852
555
  });
853
556
  let body;
854
- return new protocol_http_1.HttpRequest({
855
- protocol,
856
- hostname,
857
- port,
858
- method: "GET",
859
- headers,
860
- path: resolvedPath,
861
- query,
862
- body,
863
- });
557
+ b.m("GET").h(headers).q(query).b(body);
558
+ return b.build();
864
559
  };
865
560
  exports.se_GetConnectPeerAssociationsCommand = se_GetConnectPeerAssociationsCommand;
866
561
  const se_GetCoreNetworkCommand = async (input, context) => {
867
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
562
+ const b = (0, core_1.requestBuilder)(input, context);
868
563
  const headers = {};
869
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks/{CoreNetworkId}";
870
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
564
+ b.bp("/core-networks/{CoreNetworkId}");
565
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
871
566
  let body;
872
- return new protocol_http_1.HttpRequest({
873
- protocol,
874
- hostname,
875
- port,
876
- method: "GET",
877
- headers,
878
- path: resolvedPath,
879
- body,
880
- });
567
+ b.m("GET").h(headers).b(body);
568
+ return b.build();
881
569
  };
882
570
  exports.se_GetCoreNetworkCommand = se_GetCoreNetworkCommand;
883
571
  const se_GetCoreNetworkChangeEventsCommand = async (input, context) => {
884
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
572
+ const b = (0, core_1.requestBuilder)(input, context);
885
573
  const headers = {};
886
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
887
- "/core-networks/{CoreNetworkId}/core-network-change-events/{PolicyVersionId}";
888
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
889
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
574
+ b.bp("/core-networks/{CoreNetworkId}/core-network-change-events/{PolicyVersionId}");
575
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
576
+ b.p("PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
890
577
  const query = (0, smithy_client_1.map)({
891
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
892
- nextToken: [, input.NextToken],
578
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
579
+ [_nT]: [, input[_NT]],
893
580
  });
894
581
  let body;
895
- return new protocol_http_1.HttpRequest({
896
- protocol,
897
- hostname,
898
- port,
899
- method: "GET",
900
- headers,
901
- path: resolvedPath,
902
- query,
903
- body,
904
- });
582
+ b.m("GET").h(headers).q(query).b(body);
583
+ return b.build();
905
584
  };
906
585
  exports.se_GetCoreNetworkChangeEventsCommand = se_GetCoreNetworkChangeEventsCommand;
907
586
  const se_GetCoreNetworkChangeSetCommand = async (input, context) => {
908
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
587
+ const b = (0, core_1.requestBuilder)(input, context);
909
588
  const headers = {};
910
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
911
- "/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}";
912
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
913
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
589
+ b.bp("/core-networks/{CoreNetworkId}/core-network-change-sets/{PolicyVersionId}");
590
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
591
+ b.p("PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
914
592
  const query = (0, smithy_client_1.map)({
915
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
916
- nextToken: [, input.NextToken],
593
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
594
+ [_nT]: [, input[_NT]],
917
595
  });
918
596
  let body;
919
- return new protocol_http_1.HttpRequest({
920
- protocol,
921
- hostname,
922
- port,
923
- method: "GET",
924
- headers,
925
- path: resolvedPath,
926
- query,
927
- body,
928
- });
597
+ b.m("GET").h(headers).q(query).b(body);
598
+ return b.build();
929
599
  };
930
600
  exports.se_GetCoreNetworkChangeSetCommand = se_GetCoreNetworkChangeSetCommand;
931
601
  const se_GetCoreNetworkPolicyCommand = async (input, context) => {
932
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
602
+ const b = (0, core_1.requestBuilder)(input, context);
933
603
  const headers = {};
934
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
935
- "/core-networks/{CoreNetworkId}/core-network-policy";
936
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
604
+ b.bp("/core-networks/{CoreNetworkId}/core-network-policy");
605
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
937
606
  const query = (0, smithy_client_1.map)({
938
- policyVersionId: [() => input.PolicyVersionId !== void 0, () => input.PolicyVersionId.toString()],
939
- alias: [, input.Alias],
607
+ [_pVI]: [() => input.PolicyVersionId !== void 0, () => input[_PVI].toString()],
608
+ [_a]: [, input[_A]],
940
609
  });
941
610
  let body;
942
- return new protocol_http_1.HttpRequest({
943
- protocol,
944
- hostname,
945
- port,
946
- method: "GET",
947
- headers,
948
- path: resolvedPath,
949
- query,
950
- body,
951
- });
611
+ b.m("GET").h(headers).q(query).b(body);
612
+ return b.build();
952
613
  };
953
614
  exports.se_GetCoreNetworkPolicyCommand = se_GetCoreNetworkPolicyCommand;
954
615
  const se_GetCustomerGatewayAssociationsCommand = async (input, context) => {
955
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
616
+ const b = (0, core_1.requestBuilder)(input, context);
956
617
  const headers = {};
957
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
958
- "/global-networks/{GlobalNetworkId}/customer-gateway-associations";
959
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
618
+ b.bp("/global-networks/{GlobalNetworkId}/customer-gateway-associations");
619
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
960
620
  const query = (0, smithy_client_1.map)({
961
- customerGatewayArns: [
962
- () => input.CustomerGatewayArns !== void 0,
963
- () => (input.CustomerGatewayArns || []).map((_entry) => _entry),
964
- ],
965
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
966
- nextToken: [, input.NextToken],
621
+ [_cGA]: [() => input.CustomerGatewayArns !== void 0, () => (input[_CGA] || []).map((_entry) => _entry)],
622
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
623
+ [_nT]: [, input[_NT]],
967
624
  });
968
625
  let body;
969
- return new protocol_http_1.HttpRequest({
970
- protocol,
971
- hostname,
972
- port,
973
- method: "GET",
974
- headers,
975
- path: resolvedPath,
976
- query,
977
- body,
978
- });
626
+ b.m("GET").h(headers).q(query).b(body);
627
+ return b.build();
979
628
  };
980
629
  exports.se_GetCustomerGatewayAssociationsCommand = se_GetCustomerGatewayAssociationsCommand;
981
630
  const se_GetDevicesCommand = async (input, context) => {
982
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
631
+ const b = (0, core_1.requestBuilder)(input, context);
983
632
  const headers = {};
984
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
985
- "/global-networks/{GlobalNetworkId}/devices";
986
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
633
+ b.bp("/global-networks/{GlobalNetworkId}/devices");
634
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
987
635
  const query = (0, smithy_client_1.map)({
988
- deviceIds: [() => input.DeviceIds !== void 0, () => (input.DeviceIds || []).map((_entry) => _entry)],
989
- siteId: [, input.SiteId],
990
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
991
- nextToken: [, input.NextToken],
636
+ [_dIe]: [() => input.DeviceIds !== void 0, () => (input[_DIe] || []).map((_entry) => _entry)],
637
+ [_sI]: [, input[_SI]],
638
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
639
+ [_nT]: [, input[_NT]],
992
640
  });
993
641
  let body;
994
- return new protocol_http_1.HttpRequest({
995
- protocol,
996
- hostname,
997
- port,
998
- method: "GET",
999
- headers,
1000
- path: resolvedPath,
1001
- query,
1002
- body,
1003
- });
642
+ b.m("GET").h(headers).q(query).b(body);
643
+ return b.build();
1004
644
  };
1005
645
  exports.se_GetDevicesCommand = se_GetDevicesCommand;
1006
646
  const se_GetLinkAssociationsCommand = async (input, context) => {
1007
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
647
+ const b = (0, core_1.requestBuilder)(input, context);
1008
648
  const headers = {};
1009
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1010
- "/global-networks/{GlobalNetworkId}/link-associations";
1011
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
649
+ b.bp("/global-networks/{GlobalNetworkId}/link-associations");
650
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1012
651
  const query = (0, smithy_client_1.map)({
1013
- deviceId: [, input.DeviceId],
1014
- linkId: [, input.LinkId],
1015
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1016
- nextToken: [, input.NextToken],
652
+ [_dI]: [, input[_DI]],
653
+ [_lI]: [, input[_LI]],
654
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
655
+ [_nT]: [, input[_NT]],
1017
656
  });
1018
657
  let body;
1019
- return new protocol_http_1.HttpRequest({
1020
- protocol,
1021
- hostname,
1022
- port,
1023
- method: "GET",
1024
- headers,
1025
- path: resolvedPath,
1026
- query,
1027
- body,
1028
- });
658
+ b.m("GET").h(headers).q(query).b(body);
659
+ return b.build();
1029
660
  };
1030
661
  exports.se_GetLinkAssociationsCommand = se_GetLinkAssociationsCommand;
1031
662
  const se_GetLinksCommand = async (input, context) => {
1032
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
663
+ const b = (0, core_1.requestBuilder)(input, context);
1033
664
  const headers = {};
1034
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/links";
1035
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
665
+ b.bp("/global-networks/{GlobalNetworkId}/links");
666
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1036
667
  const query = (0, smithy_client_1.map)({
1037
- linkIds: [() => input.LinkIds !== void 0, () => (input.LinkIds || []).map((_entry) => _entry)],
1038
- siteId: [, input.SiteId],
1039
- type: [, input.Type],
1040
- provider: [, input.Provider],
1041
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1042
- nextToken: [, input.NextToken],
668
+ [_lIi]: [() => input.LinkIds !== void 0, () => (input[_LIi] || []).map((_entry) => _entry)],
669
+ [_sI]: [, input[_SI]],
670
+ [_t]: [, input[_T]],
671
+ [_p]: [, input[_P]],
672
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
673
+ [_nT]: [, input[_NT]],
1043
674
  });
1044
675
  let body;
1045
- return new protocol_http_1.HttpRequest({
1046
- protocol,
1047
- hostname,
1048
- port,
1049
- method: "GET",
1050
- headers,
1051
- path: resolvedPath,
1052
- query,
1053
- body,
1054
- });
676
+ b.m("GET").h(headers).q(query).b(body);
677
+ return b.build();
1055
678
  };
1056
679
  exports.se_GetLinksCommand = se_GetLinksCommand;
1057
680
  const se_GetNetworkResourceCountsCommand = async (input, context) => {
1058
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
681
+ const b = (0, core_1.requestBuilder)(input, context);
1059
682
  const headers = {};
1060
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1061
- "/global-networks/{GlobalNetworkId}/network-resource-count";
1062
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
683
+ b.bp("/global-networks/{GlobalNetworkId}/network-resource-count");
684
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1063
685
  const query = (0, smithy_client_1.map)({
1064
- resourceType: [, input.ResourceType],
1065
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1066
- nextToken: [, input.NextToken],
686
+ [_rT]: [, input[_RT]],
687
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
688
+ [_nT]: [, input[_NT]],
1067
689
  });
1068
690
  let body;
1069
- return new protocol_http_1.HttpRequest({
1070
- protocol,
1071
- hostname,
1072
- port,
1073
- method: "GET",
1074
- headers,
1075
- path: resolvedPath,
1076
- query,
1077
- body,
1078
- });
691
+ b.m("GET").h(headers).q(query).b(body);
692
+ return b.build();
1079
693
  };
1080
694
  exports.se_GetNetworkResourceCountsCommand = se_GetNetworkResourceCountsCommand;
1081
695
  const se_GetNetworkResourceRelationshipsCommand = async (input, context) => {
1082
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
696
+ const b = (0, core_1.requestBuilder)(input, context);
1083
697
  const headers = {};
1084
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1085
- "/global-networks/{GlobalNetworkId}/network-resource-relationships";
1086
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
698
+ b.bp("/global-networks/{GlobalNetworkId}/network-resource-relationships");
699
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1087
700
  const query = (0, smithy_client_1.map)({
1088
- coreNetworkId: [, input.CoreNetworkId],
1089
- registeredGatewayArn: [, input.RegisteredGatewayArn],
1090
- awsRegion: [, input.AwsRegion],
1091
- accountId: [, input.AccountId],
1092
- resourceType: [, input.ResourceType],
1093
- resourceArn: [, input.ResourceArn],
1094
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1095
- nextToken: [, input.NextToken],
701
+ [_cNI]: [, input[_CNI]],
702
+ [_rGA]: [, input[_RGA]],
703
+ [_aR]: [, input[_AR]],
704
+ [_aI]: [, input[_AI]],
705
+ [_rT]: [, input[_RT]],
706
+ [_rA]: [, input[_RA]],
707
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
708
+ [_nT]: [, input[_NT]],
1096
709
  });
1097
710
  let body;
1098
- return new protocol_http_1.HttpRequest({
1099
- protocol,
1100
- hostname,
1101
- port,
1102
- method: "GET",
1103
- headers,
1104
- path: resolvedPath,
1105
- query,
1106
- body,
1107
- });
711
+ b.m("GET").h(headers).q(query).b(body);
712
+ return b.build();
1108
713
  };
1109
714
  exports.se_GetNetworkResourceRelationshipsCommand = se_GetNetworkResourceRelationshipsCommand;
1110
715
  const se_GetNetworkResourcesCommand = async (input, context) => {
1111
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
716
+ const b = (0, core_1.requestBuilder)(input, context);
1112
717
  const headers = {};
1113
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1114
- "/global-networks/{GlobalNetworkId}/network-resources";
1115
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
718
+ b.bp("/global-networks/{GlobalNetworkId}/network-resources");
719
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1116
720
  const query = (0, smithy_client_1.map)({
1117
- coreNetworkId: [, input.CoreNetworkId],
1118
- registeredGatewayArn: [, input.RegisteredGatewayArn],
1119
- awsRegion: [, input.AwsRegion],
1120
- accountId: [, input.AccountId],
1121
- resourceType: [, input.ResourceType],
1122
- resourceArn: [, input.ResourceArn],
1123
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1124
- nextToken: [, input.NextToken],
721
+ [_cNI]: [, input[_CNI]],
722
+ [_rGA]: [, input[_RGA]],
723
+ [_aR]: [, input[_AR]],
724
+ [_aI]: [, input[_AI]],
725
+ [_rT]: [, input[_RT]],
726
+ [_rA]: [, input[_RA]],
727
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
728
+ [_nT]: [, input[_NT]],
1125
729
  });
1126
730
  let body;
1127
- return new protocol_http_1.HttpRequest({
1128
- protocol,
1129
- hostname,
1130
- port,
1131
- method: "GET",
1132
- headers,
1133
- path: resolvedPath,
1134
- query,
1135
- body,
1136
- });
731
+ b.m("GET").h(headers).q(query).b(body);
732
+ return b.build();
1137
733
  };
1138
734
  exports.se_GetNetworkResourcesCommand = se_GetNetworkResourcesCommand;
1139
735
  const se_GetNetworkRoutesCommand = async (input, context) => {
1140
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
736
+ const b = (0, core_1.requestBuilder)(input, context);
1141
737
  const headers = {
1142
738
  "content-type": "application/json",
1143
739
  };
1144
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1145
- "/global-networks/{GlobalNetworkId}/network-routes";
1146
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
740
+ b.bp("/global-networks/{GlobalNetworkId}/network-routes");
741
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1147
742
  let body;
1148
743
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1149
744
  DestinationFilters: (_) => (0, smithy_client_1._json)(_),
@@ -1156,392 +751,245 @@ const se_GetNetworkRoutesCommand = async (input, context) => {
1156
751
  SupernetOfMatches: (_) => (0, smithy_client_1._json)(_),
1157
752
  Types: (_) => (0, smithy_client_1._json)(_),
1158
753
  }));
1159
- return new protocol_http_1.HttpRequest({
1160
- protocol,
1161
- hostname,
1162
- port,
1163
- method: "POST",
1164
- headers,
1165
- path: resolvedPath,
1166
- body,
1167
- });
754
+ b.m("POST").h(headers).b(body);
755
+ return b.build();
1168
756
  };
1169
757
  exports.se_GetNetworkRoutesCommand = se_GetNetworkRoutesCommand;
1170
758
  const se_GetNetworkTelemetryCommand = async (input, context) => {
1171
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
759
+ const b = (0, core_1.requestBuilder)(input, context);
1172
760
  const headers = {};
1173
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1174
- "/global-networks/{GlobalNetworkId}/network-telemetry";
1175
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
761
+ b.bp("/global-networks/{GlobalNetworkId}/network-telemetry");
762
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1176
763
  const query = (0, smithy_client_1.map)({
1177
- coreNetworkId: [, input.CoreNetworkId],
1178
- registeredGatewayArn: [, input.RegisteredGatewayArn],
1179
- awsRegion: [, input.AwsRegion],
1180
- accountId: [, input.AccountId],
1181
- resourceType: [, input.ResourceType],
1182
- resourceArn: [, input.ResourceArn],
1183
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1184
- nextToken: [, input.NextToken],
764
+ [_cNI]: [, input[_CNI]],
765
+ [_rGA]: [, input[_RGA]],
766
+ [_aR]: [, input[_AR]],
767
+ [_aI]: [, input[_AI]],
768
+ [_rT]: [, input[_RT]],
769
+ [_rA]: [, input[_RA]],
770
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
771
+ [_nT]: [, input[_NT]],
1185
772
  });
1186
773
  let body;
1187
- return new protocol_http_1.HttpRequest({
1188
- protocol,
1189
- hostname,
1190
- port,
1191
- method: "GET",
1192
- headers,
1193
- path: resolvedPath,
1194
- query,
1195
- body,
1196
- });
774
+ b.m("GET").h(headers).q(query).b(body);
775
+ return b.build();
1197
776
  };
1198
777
  exports.se_GetNetworkTelemetryCommand = se_GetNetworkTelemetryCommand;
1199
778
  const se_GetResourcePolicyCommand = async (input, context) => {
1200
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
779
+ const b = (0, core_1.requestBuilder)(input, context);
1201
780
  const headers = {};
1202
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-policy/{ResourceArn}";
1203
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
781
+ b.bp("/resource-policy/{ResourceArn}");
782
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1204
783
  let body;
1205
- return new protocol_http_1.HttpRequest({
1206
- protocol,
1207
- hostname,
1208
- port,
1209
- method: "GET",
1210
- headers,
1211
- path: resolvedPath,
1212
- body,
1213
- });
784
+ b.m("GET").h(headers).b(body);
785
+ return b.build();
1214
786
  };
1215
787
  exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
1216
788
  const se_GetRouteAnalysisCommand = async (input, context) => {
1217
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
789
+ const b = (0, core_1.requestBuilder)(input, context);
1218
790
  const headers = {};
1219
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1220
- "/global-networks/{GlobalNetworkId}/route-analyses/{RouteAnalysisId}";
1221
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1222
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RouteAnalysisId", () => input.RouteAnalysisId, "{RouteAnalysisId}", false);
791
+ b.bp("/global-networks/{GlobalNetworkId}/route-analyses/{RouteAnalysisId}");
792
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
793
+ b.p("RouteAnalysisId", () => input.RouteAnalysisId, "{RouteAnalysisId}", false);
1223
794
  let body;
1224
- return new protocol_http_1.HttpRequest({
1225
- protocol,
1226
- hostname,
1227
- port,
1228
- method: "GET",
1229
- headers,
1230
- path: resolvedPath,
1231
- body,
1232
- });
795
+ b.m("GET").h(headers).b(body);
796
+ return b.build();
1233
797
  };
1234
798
  exports.se_GetRouteAnalysisCommand = se_GetRouteAnalysisCommand;
1235
799
  const se_GetSitesCommand = async (input, context) => {
1236
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
800
+ const b = (0, core_1.requestBuilder)(input, context);
1237
801
  const headers = {};
1238
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}/sites";
1239
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
802
+ b.bp("/global-networks/{GlobalNetworkId}/sites");
803
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1240
804
  const query = (0, smithy_client_1.map)({
1241
- siteIds: [() => input.SiteIds !== void 0, () => (input.SiteIds || []).map((_entry) => _entry)],
1242
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1243
- nextToken: [, input.NextToken],
805
+ [_sIi]: [() => input.SiteIds !== void 0, () => (input[_SIi] || []).map((_entry) => _entry)],
806
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
807
+ [_nT]: [, input[_NT]],
1244
808
  });
1245
809
  let body;
1246
- return new protocol_http_1.HttpRequest({
1247
- protocol,
1248
- hostname,
1249
- port,
1250
- method: "GET",
1251
- headers,
1252
- path: resolvedPath,
1253
- query,
1254
- body,
1255
- });
810
+ b.m("GET").h(headers).q(query).b(body);
811
+ return b.build();
1256
812
  };
1257
813
  exports.se_GetSitesCommand = se_GetSitesCommand;
1258
814
  const se_GetSiteToSiteVpnAttachmentCommand = async (input, context) => {
1259
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
815
+ const b = (0, core_1.requestBuilder)(input, context);
1260
816
  const headers = {};
1261
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1262
- "/site-to-site-vpn-attachments/{AttachmentId}";
1263
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
817
+ b.bp("/site-to-site-vpn-attachments/{AttachmentId}");
818
+ b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
1264
819
  let body;
1265
- return new protocol_http_1.HttpRequest({
1266
- protocol,
1267
- hostname,
1268
- port,
1269
- method: "GET",
1270
- headers,
1271
- path: resolvedPath,
1272
- body,
1273
- });
820
+ b.m("GET").h(headers).b(body);
821
+ return b.build();
1274
822
  };
1275
823
  exports.se_GetSiteToSiteVpnAttachmentCommand = se_GetSiteToSiteVpnAttachmentCommand;
1276
824
  const se_GetTransitGatewayConnectPeerAssociationsCommand = async (input, context) => {
1277
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
825
+ const b = (0, core_1.requestBuilder)(input, context);
1278
826
  const headers = {};
1279
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1280
- "/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations";
1281
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
827
+ b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-connect-peer-associations");
828
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1282
829
  const query = (0, smithy_client_1.map)({
1283
- transitGatewayConnectPeerArns: [
830
+ [_tGCPA]: [
1284
831
  () => input.TransitGatewayConnectPeerArns !== void 0,
1285
- () => (input.TransitGatewayConnectPeerArns || []).map((_entry) => _entry),
832
+ () => (input[_TGCPA] || []).map((_entry) => _entry),
1286
833
  ],
1287
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1288
- nextToken: [, input.NextToken],
834
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
835
+ [_nT]: [, input[_NT]],
1289
836
  });
1290
837
  let body;
1291
- return new protocol_http_1.HttpRequest({
1292
- protocol,
1293
- hostname,
1294
- port,
1295
- method: "GET",
1296
- headers,
1297
- path: resolvedPath,
1298
- query,
1299
- body,
1300
- });
838
+ b.m("GET").h(headers).q(query).b(body);
839
+ return b.build();
1301
840
  };
1302
841
  exports.se_GetTransitGatewayConnectPeerAssociationsCommand = se_GetTransitGatewayConnectPeerAssociationsCommand;
1303
842
  const se_GetTransitGatewayPeeringCommand = async (input, context) => {
1304
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
843
+ const b = (0, core_1.requestBuilder)(input, context);
1305
844
  const headers = {};
1306
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/transit-gateway-peerings/{PeeringId}";
1307
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PeeringId", () => input.PeeringId, "{PeeringId}", false);
845
+ b.bp("/transit-gateway-peerings/{PeeringId}");
846
+ b.p("PeeringId", () => input.PeeringId, "{PeeringId}", false);
1308
847
  let body;
1309
- return new protocol_http_1.HttpRequest({
1310
- protocol,
1311
- hostname,
1312
- port,
1313
- method: "GET",
1314
- headers,
1315
- path: resolvedPath,
1316
- body,
1317
- });
848
+ b.m("GET").h(headers).b(body);
849
+ return b.build();
1318
850
  };
1319
851
  exports.se_GetTransitGatewayPeeringCommand = se_GetTransitGatewayPeeringCommand;
1320
852
  const se_GetTransitGatewayRegistrationsCommand = async (input, context) => {
1321
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
853
+ const b = (0, core_1.requestBuilder)(input, context);
1322
854
  const headers = {};
1323
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1324
- "/global-networks/{GlobalNetworkId}/transit-gateway-registrations";
1325
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
855
+ b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-registrations");
856
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1326
857
  const query = (0, smithy_client_1.map)({
1327
- transitGatewayArns: [
1328
- () => input.TransitGatewayArns !== void 0,
1329
- () => (input.TransitGatewayArns || []).map((_entry) => _entry),
1330
- ],
1331
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1332
- nextToken: [, input.NextToken],
858
+ [_tGA]: [() => input.TransitGatewayArns !== void 0, () => (input[_TGA] || []).map((_entry) => _entry)],
859
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
860
+ [_nT]: [, input[_NT]],
1333
861
  });
1334
862
  let body;
1335
- return new protocol_http_1.HttpRequest({
1336
- protocol,
1337
- hostname,
1338
- port,
1339
- method: "GET",
1340
- headers,
1341
- path: resolvedPath,
1342
- query,
1343
- body,
1344
- });
863
+ b.m("GET").h(headers).q(query).b(body);
864
+ return b.build();
1345
865
  };
1346
866
  exports.se_GetTransitGatewayRegistrationsCommand = se_GetTransitGatewayRegistrationsCommand;
1347
867
  const se_GetTransitGatewayRouteTableAttachmentCommand = async (input, context) => {
1348
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
868
+ const b = (0, core_1.requestBuilder)(input, context);
1349
869
  const headers = {};
1350
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1351
- "/transit-gateway-route-table-attachments/{AttachmentId}";
1352
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
870
+ b.bp("/transit-gateway-route-table-attachments/{AttachmentId}");
871
+ b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
1353
872
  let body;
1354
- return new protocol_http_1.HttpRequest({
1355
- protocol,
1356
- hostname,
1357
- port,
1358
- method: "GET",
1359
- headers,
1360
- path: resolvedPath,
1361
- body,
1362
- });
873
+ b.m("GET").h(headers).b(body);
874
+ return b.build();
1363
875
  };
1364
876
  exports.se_GetTransitGatewayRouteTableAttachmentCommand = se_GetTransitGatewayRouteTableAttachmentCommand;
1365
877
  const se_GetVpcAttachmentCommand = async (input, context) => {
1366
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
878
+ const b = (0, core_1.requestBuilder)(input, context);
1367
879
  const headers = {};
1368
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpc-attachments/{AttachmentId}";
1369
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
880
+ b.bp("/vpc-attachments/{AttachmentId}");
881
+ b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
1370
882
  let body;
1371
- return new protocol_http_1.HttpRequest({
1372
- protocol,
1373
- hostname,
1374
- port,
1375
- method: "GET",
1376
- headers,
1377
- path: resolvedPath,
1378
- body,
1379
- });
883
+ b.m("GET").h(headers).b(body);
884
+ return b.build();
1380
885
  };
1381
886
  exports.se_GetVpcAttachmentCommand = se_GetVpcAttachmentCommand;
1382
887
  const se_ListAttachmentsCommand = async (input, context) => {
1383
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
888
+ const b = (0, core_1.requestBuilder)(input, context);
1384
889
  const headers = {};
1385
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments";
890
+ b.bp("/attachments");
1386
891
  const query = (0, smithy_client_1.map)({
1387
- coreNetworkId: [, input.CoreNetworkId],
1388
- attachmentType: [, input.AttachmentType],
1389
- edgeLocation: [, input.EdgeLocation],
1390
- state: [, input.State],
1391
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1392
- nextToken: [, input.NextToken],
892
+ [_cNI]: [, input[_CNI]],
893
+ [_aT]: [, input[_AT]],
894
+ [_eL]: [, input[_EL]],
895
+ [_s]: [, input[_S]],
896
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
897
+ [_nT]: [, input[_NT]],
1393
898
  });
1394
899
  let body;
1395
- return new protocol_http_1.HttpRequest({
1396
- protocol,
1397
- hostname,
1398
- port,
1399
- method: "GET",
1400
- headers,
1401
- path: resolvedPath,
1402
- query,
1403
- body,
1404
- });
900
+ b.m("GET").h(headers).q(query).b(body);
901
+ return b.build();
1405
902
  };
1406
903
  exports.se_ListAttachmentsCommand = se_ListAttachmentsCommand;
1407
904
  const se_ListConnectPeersCommand = async (input, context) => {
1408
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
905
+ const b = (0, core_1.requestBuilder)(input, context);
1409
906
  const headers = {};
1410
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/connect-peers";
907
+ b.bp("/connect-peers");
1411
908
  const query = (0, smithy_client_1.map)({
1412
- coreNetworkId: [, input.CoreNetworkId],
1413
- connectAttachmentId: [, input.ConnectAttachmentId],
1414
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1415
- nextToken: [, input.NextToken],
909
+ [_cNI]: [, input[_CNI]],
910
+ [_cAI]: [, input[_CAI]],
911
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
912
+ [_nT]: [, input[_NT]],
1416
913
  });
1417
914
  let body;
1418
- return new protocol_http_1.HttpRequest({
1419
- protocol,
1420
- hostname,
1421
- port,
1422
- method: "GET",
1423
- headers,
1424
- path: resolvedPath,
1425
- query,
1426
- body,
1427
- });
915
+ b.m("GET").h(headers).q(query).b(body);
916
+ return b.build();
1428
917
  };
1429
918
  exports.se_ListConnectPeersCommand = se_ListConnectPeersCommand;
1430
919
  const se_ListCoreNetworkPolicyVersionsCommand = async (input, context) => {
1431
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
920
+ const b = (0, core_1.requestBuilder)(input, context);
1432
921
  const headers = {};
1433
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1434
- "/core-networks/{CoreNetworkId}/core-network-policy-versions";
1435
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
922
+ b.bp("/core-networks/{CoreNetworkId}/core-network-policy-versions");
923
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
1436
924
  const query = (0, smithy_client_1.map)({
1437
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1438
- nextToken: [, input.NextToken],
925
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
926
+ [_nT]: [, input[_NT]],
1439
927
  });
1440
928
  let body;
1441
- return new protocol_http_1.HttpRequest({
1442
- protocol,
1443
- hostname,
1444
- port,
1445
- method: "GET",
1446
- headers,
1447
- path: resolvedPath,
1448
- query,
1449
- body,
1450
- });
929
+ b.m("GET").h(headers).q(query).b(body);
930
+ return b.build();
1451
931
  };
1452
932
  exports.se_ListCoreNetworkPolicyVersionsCommand = se_ListCoreNetworkPolicyVersionsCommand;
1453
933
  const se_ListCoreNetworksCommand = async (input, context) => {
1454
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
934
+ const b = (0, core_1.requestBuilder)(input, context);
1455
935
  const headers = {};
1456
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks";
936
+ b.bp("/core-networks");
1457
937
  const query = (0, smithy_client_1.map)({
1458
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1459
- nextToken: [, input.NextToken],
938
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
939
+ [_nT]: [, input[_NT]],
1460
940
  });
1461
941
  let body;
1462
- return new protocol_http_1.HttpRequest({
1463
- protocol,
1464
- hostname,
1465
- port,
1466
- method: "GET",
1467
- headers,
1468
- path: resolvedPath,
1469
- query,
1470
- body,
1471
- });
942
+ b.m("GET").h(headers).q(query).b(body);
943
+ return b.build();
1472
944
  };
1473
945
  exports.se_ListCoreNetworksCommand = se_ListCoreNetworksCommand;
1474
946
  const se_ListOrganizationServiceAccessStatusCommand = async (input, context) => {
1475
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
947
+ const b = (0, core_1.requestBuilder)(input, context);
1476
948
  const headers = {};
1477
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizations/service-access";
949
+ b.bp("/organizations/service-access");
1478
950
  const query = (0, smithy_client_1.map)({
1479
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1480
- nextToken: [, input.NextToken],
951
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
952
+ [_nT]: [, input[_NT]],
1481
953
  });
1482
954
  let body;
1483
- return new protocol_http_1.HttpRequest({
1484
- protocol,
1485
- hostname,
1486
- port,
1487
- method: "GET",
1488
- headers,
1489
- path: resolvedPath,
1490
- query,
1491
- body,
1492
- });
955
+ b.m("GET").h(headers).q(query).b(body);
956
+ return b.build();
1493
957
  };
1494
958
  exports.se_ListOrganizationServiceAccessStatusCommand = se_ListOrganizationServiceAccessStatusCommand;
1495
959
  const se_ListPeeringsCommand = async (input, context) => {
1496
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
960
+ const b = (0, core_1.requestBuilder)(input, context);
1497
961
  const headers = {};
1498
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/peerings";
962
+ b.bp("/peerings");
1499
963
  const query = (0, smithy_client_1.map)({
1500
- coreNetworkId: [, input.CoreNetworkId],
1501
- peeringType: [, input.PeeringType],
1502
- edgeLocation: [, input.EdgeLocation],
1503
- state: [, input.State],
1504
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
1505
- nextToken: [, input.NextToken],
964
+ [_cNI]: [, input[_CNI]],
965
+ [_pT]: [, input[_PT]],
966
+ [_eL]: [, input[_EL]],
967
+ [_s]: [, input[_S]],
968
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
969
+ [_nT]: [, input[_NT]],
1506
970
  });
1507
971
  let body;
1508
- return new protocol_http_1.HttpRequest({
1509
- protocol,
1510
- hostname,
1511
- port,
1512
- method: "GET",
1513
- headers,
1514
- path: resolvedPath,
1515
- query,
1516
- body,
1517
- });
972
+ b.m("GET").h(headers).q(query).b(body);
973
+ return b.build();
1518
974
  };
1519
975
  exports.se_ListPeeringsCommand = se_ListPeeringsCommand;
1520
976
  const se_ListTagsForResourceCommand = async (input, context) => {
1521
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
977
+ const b = (0, core_1.requestBuilder)(input, context);
1522
978
  const headers = {};
1523
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1524
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
979
+ b.bp("/tags/{ResourceArn}");
980
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1525
981
  let body;
1526
- return new protocol_http_1.HttpRequest({
1527
- protocol,
1528
- hostname,
1529
- port,
1530
- method: "GET",
1531
- headers,
1532
- path: resolvedPath,
1533
- body,
1534
- });
982
+ b.m("GET").h(headers).b(body);
983
+ return b.build();
1535
984
  };
1536
985
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
1537
986
  const se_PutCoreNetworkPolicyCommand = async (input, context) => {
1538
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
987
+ const b = (0, core_1.requestBuilder)(input, context);
1539
988
  const headers = {
1540
989
  "content-type": "application/json",
1541
990
  };
1542
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1543
- "/core-networks/{CoreNetworkId}/core-network-policy";
1544
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
991
+ b.bp("/core-networks/{CoreNetworkId}/core-network-policy");
992
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
1545
993
  let body;
1546
994
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1547
995
  ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -1549,127 +997,82 @@ const se_PutCoreNetworkPolicyCommand = async (input, context) => {
1549
997
  LatestVersionId: [],
1550
998
  PolicyDocument: (_) => smithy_client_1.LazyJsonString.fromObject(_),
1551
999
  }));
1552
- return new protocol_http_1.HttpRequest({
1553
- protocol,
1554
- hostname,
1555
- port,
1556
- method: "POST",
1557
- headers,
1558
- path: resolvedPath,
1559
- body,
1560
- });
1000
+ b.m("POST").h(headers).b(body);
1001
+ return b.build();
1561
1002
  };
1562
1003
  exports.se_PutCoreNetworkPolicyCommand = se_PutCoreNetworkPolicyCommand;
1563
1004
  const se_PutResourcePolicyCommand = async (input, context) => {
1564
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1005
+ const b = (0, core_1.requestBuilder)(input, context);
1565
1006
  const headers = {
1566
1007
  "content-type": "application/json",
1567
1008
  };
1568
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/resource-policy/{ResourceArn}";
1569
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1009
+ b.bp("/resource-policy/{ResourceArn}");
1010
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1570
1011
  let body;
1571
1012
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1572
1013
  PolicyDocument: (_) => smithy_client_1.LazyJsonString.fromObject(_),
1573
1014
  }));
1574
- return new protocol_http_1.HttpRequest({
1575
- protocol,
1576
- hostname,
1577
- port,
1578
- method: "POST",
1579
- headers,
1580
- path: resolvedPath,
1581
- body,
1582
- });
1015
+ b.m("POST").h(headers).b(body);
1016
+ return b.build();
1583
1017
  };
1584
1018
  exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
1585
1019
  const se_RegisterTransitGatewayCommand = async (input, context) => {
1586
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1020
+ const b = (0, core_1.requestBuilder)(input, context);
1587
1021
  const headers = {
1588
1022
  "content-type": "application/json",
1589
1023
  };
1590
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1591
- "/global-networks/{GlobalNetworkId}/transit-gateway-registrations";
1592
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1024
+ b.bp("/global-networks/{GlobalNetworkId}/transit-gateway-registrations");
1025
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1593
1026
  let body;
1594
1027
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1595
1028
  TransitGatewayArn: [],
1596
1029
  }));
1597
- return new protocol_http_1.HttpRequest({
1598
- protocol,
1599
- hostname,
1600
- port,
1601
- method: "POST",
1602
- headers,
1603
- path: resolvedPath,
1604
- body,
1605
- });
1030
+ b.m("POST").h(headers).b(body);
1031
+ return b.build();
1606
1032
  };
1607
1033
  exports.se_RegisterTransitGatewayCommand = se_RegisterTransitGatewayCommand;
1608
1034
  const se_RejectAttachmentCommand = async (input, context) => {
1609
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1035
+ const b = (0, core_1.requestBuilder)(input, context);
1610
1036
  const headers = {};
1611
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/attachments/{AttachmentId}/reject";
1612
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
1037
+ b.bp("/attachments/{AttachmentId}/reject");
1038
+ b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
1613
1039
  let body;
1614
- return new protocol_http_1.HttpRequest({
1615
- protocol,
1616
- hostname,
1617
- port,
1618
- method: "POST",
1619
- headers,
1620
- path: resolvedPath,
1621
- body,
1622
- });
1040
+ b.m("POST").h(headers).b(body);
1041
+ return b.build();
1623
1042
  };
1624
1043
  exports.se_RejectAttachmentCommand = se_RejectAttachmentCommand;
1625
1044
  const se_RestoreCoreNetworkPolicyVersionCommand = async (input, context) => {
1626
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1045
+ const b = (0, core_1.requestBuilder)(input, context);
1627
1046
  const headers = {};
1628
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1629
- "/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}/restore";
1630
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
1631
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
1047
+ b.bp("/core-networks/{CoreNetworkId}/core-network-policy-versions/{PolicyVersionId}/restore");
1048
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
1049
+ b.p("PolicyVersionId", () => input.PolicyVersionId.toString(), "{PolicyVersionId}", false);
1632
1050
  let body;
1633
- return new protocol_http_1.HttpRequest({
1634
- protocol,
1635
- hostname,
1636
- port,
1637
- method: "POST",
1638
- headers,
1639
- path: resolvedPath,
1640
- body,
1641
- });
1051
+ b.m("POST").h(headers).b(body);
1052
+ return b.build();
1642
1053
  };
1643
1054
  exports.se_RestoreCoreNetworkPolicyVersionCommand = se_RestoreCoreNetworkPolicyVersionCommand;
1644
1055
  const se_StartOrganizationServiceAccessUpdateCommand = async (input, context) => {
1645
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1056
+ const b = (0, core_1.requestBuilder)(input, context);
1646
1057
  const headers = {
1647
1058
  "content-type": "application/json",
1648
1059
  };
1649
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/organizations/service-access";
1060
+ b.bp("/organizations/service-access");
1650
1061
  let body;
1651
1062
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1652
1063
  Action: [],
1653
1064
  }));
1654
- return new protocol_http_1.HttpRequest({
1655
- protocol,
1656
- hostname,
1657
- port,
1658
- method: "POST",
1659
- headers,
1660
- path: resolvedPath,
1661
- body,
1662
- });
1065
+ b.m("POST").h(headers).b(body);
1066
+ return b.build();
1663
1067
  };
1664
1068
  exports.se_StartOrganizationServiceAccessUpdateCommand = se_StartOrganizationServiceAccessUpdateCommand;
1665
1069
  const se_StartRouteAnalysisCommand = async (input, context) => {
1666
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1070
+ const b = (0, core_1.requestBuilder)(input, context);
1667
1071
  const headers = {
1668
1072
  "content-type": "application/json",
1669
1073
  };
1670
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1671
- "/global-networks/{GlobalNetworkId}/route-analyses";
1672
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1074
+ b.bp("/global-networks/{GlobalNetworkId}/route-analyses");
1075
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1673
1076
  let body;
1674
1077
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1675
1078
  Destination: (_) => (0, smithy_client_1._json)(_),
@@ -1677,120 +1080,82 @@ const se_StartRouteAnalysisCommand = async (input, context) => {
1677
1080
  Source: (_) => (0, smithy_client_1._json)(_),
1678
1081
  UseMiddleboxes: [],
1679
1082
  }));
1680
- return new protocol_http_1.HttpRequest({
1681
- protocol,
1682
- hostname,
1683
- port,
1684
- method: "POST",
1685
- headers,
1686
- path: resolvedPath,
1687
- body,
1688
- });
1083
+ b.m("POST").h(headers).b(body);
1084
+ return b.build();
1689
1085
  };
1690
1086
  exports.se_StartRouteAnalysisCommand = se_StartRouteAnalysisCommand;
1691
1087
  const se_TagResourceCommand = async (input, context) => {
1692
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1088
+ const b = (0, core_1.requestBuilder)(input, context);
1693
1089
  const headers = {
1694
1090
  "content-type": "application/json",
1695
1091
  };
1696
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1697
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1092
+ b.bp("/tags/{ResourceArn}");
1093
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1698
1094
  let body;
1699
1095
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1700
1096
  Tags: (_) => (0, smithy_client_1._json)(_),
1701
1097
  }));
1702
- return new protocol_http_1.HttpRequest({
1703
- protocol,
1704
- hostname,
1705
- port,
1706
- method: "POST",
1707
- headers,
1708
- path: resolvedPath,
1709
- body,
1710
- });
1098
+ b.m("POST").h(headers).b(body);
1099
+ return b.build();
1711
1100
  };
1712
1101
  exports.se_TagResourceCommand = se_TagResourceCommand;
1713
1102
  const se_UntagResourceCommand = async (input, context) => {
1714
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1103
+ const b = (0, core_1.requestBuilder)(input, context);
1715
1104
  const headers = {};
1716
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
1717
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1105
+ b.bp("/tags/{ResourceArn}");
1106
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1718
1107
  const query = (0, smithy_client_1.map)({
1719
- tagKeys: [
1108
+ [_tK]: [
1720
1109
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
1721
- () => (input.TagKeys || []).map((_entry) => _entry),
1110
+ () => (input[_TK] || []).map((_entry) => _entry),
1722
1111
  ],
1723
1112
  });
1724
1113
  let body;
1725
- return new protocol_http_1.HttpRequest({
1726
- protocol,
1727
- hostname,
1728
- port,
1729
- method: "DELETE",
1730
- headers,
1731
- path: resolvedPath,
1732
- query,
1733
- body,
1734
- });
1114
+ b.m("DELETE").h(headers).q(query).b(body);
1115
+ return b.build();
1735
1116
  };
1736
1117
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
1737
1118
  const se_UpdateConnectionCommand = async (input, context) => {
1738
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1119
+ const b = (0, core_1.requestBuilder)(input, context);
1739
1120
  const headers = {
1740
1121
  "content-type": "application/json",
1741
1122
  };
1742
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1743
- "/global-networks/{GlobalNetworkId}/connections/{ConnectionId}";
1744
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1745
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
1123
+ b.bp("/global-networks/{GlobalNetworkId}/connections/{ConnectionId}");
1124
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1125
+ b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
1746
1126
  let body;
1747
1127
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1748
1128
  ConnectedLinkId: [],
1749
1129
  Description: [],
1750
1130
  LinkId: [],
1751
1131
  }));
1752
- return new protocol_http_1.HttpRequest({
1753
- protocol,
1754
- hostname,
1755
- port,
1756
- method: "PATCH",
1757
- headers,
1758
- path: resolvedPath,
1759
- body,
1760
- });
1132
+ b.m("PATCH").h(headers).b(body);
1133
+ return b.build();
1761
1134
  };
1762
1135
  exports.se_UpdateConnectionCommand = se_UpdateConnectionCommand;
1763
1136
  const se_UpdateCoreNetworkCommand = async (input, context) => {
1764
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1137
+ const b = (0, core_1.requestBuilder)(input, context);
1765
1138
  const headers = {
1766
1139
  "content-type": "application/json",
1767
1140
  };
1768
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/core-networks/{CoreNetworkId}";
1769
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
1141
+ b.bp("/core-networks/{CoreNetworkId}");
1142
+ b.p("CoreNetworkId", () => input.CoreNetworkId, "{CoreNetworkId}", false);
1770
1143
  let body;
1771
1144
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1772
1145
  Description: [],
1773
1146
  }));
1774
- return new protocol_http_1.HttpRequest({
1775
- protocol,
1776
- hostname,
1777
- port,
1778
- method: "PATCH",
1779
- headers,
1780
- path: resolvedPath,
1781
- body,
1782
- });
1147
+ b.m("PATCH").h(headers).b(body);
1148
+ return b.build();
1783
1149
  };
1784
1150
  exports.se_UpdateCoreNetworkCommand = se_UpdateCoreNetworkCommand;
1785
1151
  const se_UpdateDeviceCommand = async (input, context) => {
1786
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1152
+ const b = (0, core_1.requestBuilder)(input, context);
1787
1153
  const headers = {
1788
1154
  "content-type": "application/json",
1789
1155
  };
1790
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1791
- "/global-networks/{GlobalNetworkId}/devices/{DeviceId}";
1792
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1793
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
1156
+ b.bp("/global-networks/{GlobalNetworkId}/devices/{DeviceId}");
1157
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1158
+ b.p("DeviceId", () => input.DeviceId, "{DeviceId}", false);
1794
1159
  let body;
1795
1160
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1796
1161
  AWSLocation: (_) => (0, smithy_client_1._json)(_),
@@ -1802,48 +1167,33 @@ const se_UpdateDeviceCommand = async (input, context) => {
1802
1167
  Type: [],
1803
1168
  Vendor: [],
1804
1169
  }));
1805
- return new protocol_http_1.HttpRequest({
1806
- protocol,
1807
- hostname,
1808
- port,
1809
- method: "PATCH",
1810
- headers,
1811
- path: resolvedPath,
1812
- body,
1813
- });
1170
+ b.m("PATCH").h(headers).b(body);
1171
+ return b.build();
1814
1172
  };
1815
1173
  exports.se_UpdateDeviceCommand = se_UpdateDeviceCommand;
1816
1174
  const se_UpdateGlobalNetworkCommand = async (input, context) => {
1817
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1175
+ const b = (0, core_1.requestBuilder)(input, context);
1818
1176
  const headers = {
1819
1177
  "content-type": "application/json",
1820
1178
  };
1821
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/global-networks/{GlobalNetworkId}";
1822
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1179
+ b.bp("/global-networks/{GlobalNetworkId}");
1180
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1823
1181
  let body;
1824
1182
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1825
1183
  Description: [],
1826
1184
  }));
1827
- return new protocol_http_1.HttpRequest({
1828
- protocol,
1829
- hostname,
1830
- port,
1831
- method: "PATCH",
1832
- headers,
1833
- path: resolvedPath,
1834
- body,
1835
- });
1185
+ b.m("PATCH").h(headers).b(body);
1186
+ return b.build();
1836
1187
  };
1837
1188
  exports.se_UpdateGlobalNetworkCommand = se_UpdateGlobalNetworkCommand;
1838
1189
  const se_UpdateLinkCommand = async (input, context) => {
1839
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1190
+ const b = (0, core_1.requestBuilder)(input, context);
1840
1191
  const headers = {
1841
1192
  "content-type": "application/json",
1842
1193
  };
1843
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1844
- "/global-networks/{GlobalNetworkId}/links/{LinkId}";
1845
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1846
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LinkId", () => input.LinkId, "{LinkId}", false);
1194
+ b.bp("/global-networks/{GlobalNetworkId}/links/{LinkId}");
1195
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1196
+ b.p("LinkId", () => input.LinkId, "{LinkId}", false);
1847
1197
  let body;
1848
1198
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1849
1199
  Bandwidth: (_) => (0, smithy_client_1._json)(_),
@@ -1851,88 +1201,58 @@ const se_UpdateLinkCommand = async (input, context) => {
1851
1201
  Provider: [],
1852
1202
  Type: [],
1853
1203
  }));
1854
- return new protocol_http_1.HttpRequest({
1855
- protocol,
1856
- hostname,
1857
- port,
1858
- method: "PATCH",
1859
- headers,
1860
- path: resolvedPath,
1861
- body,
1862
- });
1204
+ b.m("PATCH").h(headers).b(body);
1205
+ return b.build();
1863
1206
  };
1864
1207
  exports.se_UpdateLinkCommand = se_UpdateLinkCommand;
1865
1208
  const se_UpdateNetworkResourceMetadataCommand = async (input, context) => {
1866
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1209
+ const b = (0, core_1.requestBuilder)(input, context);
1867
1210
  const headers = {
1868
1211
  "content-type": "application/json",
1869
1212
  };
1870
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1871
- "/global-networks/{GlobalNetworkId}/network-resources/{ResourceArn}/metadata";
1872
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1873
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1213
+ b.bp("/global-networks/{GlobalNetworkId}/network-resources/{ResourceArn}/metadata");
1214
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1215
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1874
1216
  let body;
1875
1217
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1876
1218
  Metadata: (_) => (0, smithy_client_1._json)(_),
1877
1219
  }));
1878
- return new protocol_http_1.HttpRequest({
1879
- protocol,
1880
- hostname,
1881
- port,
1882
- method: "PATCH",
1883
- headers,
1884
- path: resolvedPath,
1885
- body,
1886
- });
1220
+ b.m("PATCH").h(headers).b(body);
1221
+ return b.build();
1887
1222
  };
1888
1223
  exports.se_UpdateNetworkResourceMetadataCommand = se_UpdateNetworkResourceMetadataCommand;
1889
1224
  const se_UpdateSiteCommand = async (input, context) => {
1890
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1225
+ const b = (0, core_1.requestBuilder)(input, context);
1891
1226
  const headers = {
1892
1227
  "content-type": "application/json",
1893
1228
  };
1894
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1895
- "/global-networks/{GlobalNetworkId}/sites/{SiteId}";
1896
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1897
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SiteId", () => input.SiteId, "{SiteId}", false);
1229
+ b.bp("/global-networks/{GlobalNetworkId}/sites/{SiteId}");
1230
+ b.p("GlobalNetworkId", () => input.GlobalNetworkId, "{GlobalNetworkId}", false);
1231
+ b.p("SiteId", () => input.SiteId, "{SiteId}", false);
1898
1232
  let body;
1899
1233
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1900
1234
  Description: [],
1901
1235
  Location: (_) => (0, smithy_client_1._json)(_),
1902
1236
  }));
1903
- return new protocol_http_1.HttpRequest({
1904
- protocol,
1905
- hostname,
1906
- port,
1907
- method: "PATCH",
1908
- headers,
1909
- path: resolvedPath,
1910
- body,
1911
- });
1237
+ b.m("PATCH").h(headers).b(body);
1238
+ return b.build();
1912
1239
  };
1913
1240
  exports.se_UpdateSiteCommand = se_UpdateSiteCommand;
1914
1241
  const se_UpdateVpcAttachmentCommand = async (input, context) => {
1915
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1242
+ const b = (0, core_1.requestBuilder)(input, context);
1916
1243
  const headers = {
1917
1244
  "content-type": "application/json",
1918
1245
  };
1919
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/vpc-attachments/{AttachmentId}";
1920
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
1246
+ b.bp("/vpc-attachments/{AttachmentId}");
1247
+ b.p("AttachmentId", () => input.AttachmentId, "{AttachmentId}", false);
1921
1248
  let body;
1922
1249
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1923
1250
  AddSubnetArns: (_) => (0, smithy_client_1._json)(_),
1924
1251
  Options: (_) => (0, smithy_client_1._json)(_),
1925
1252
  RemoveSubnetArns: (_) => (0, smithy_client_1._json)(_),
1926
1253
  }));
1927
- return new protocol_http_1.HttpRequest({
1928
- protocol,
1929
- hostname,
1930
- port,
1931
- method: "PATCH",
1932
- headers,
1933
- path: resolvedPath,
1934
- body,
1935
- });
1254
+ b.m("PATCH").h(headers).b(body);
1255
+ return b.build();
1936
1256
  };
1937
1257
  exports.se_UpdateVpcAttachmentCommand = se_UpdateVpcAttachmentCommand;
1938
1258
  const de_AcceptAttachmentCommand = async (output, context) => {
@@ -6053,10 +5373,7 @@ const de_CoreNetworkPolicyExceptionRes = async (parsedOutput, context) => {
6053
5373
  };
6054
5374
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
6055
5375
  const contents = (0, smithy_client_1.map)({
6056
- RetryAfterSeconds: [
6057
- () => void 0 !== parsedOutput.headers["retry-after"],
6058
- () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
6059
- ],
5376
+ [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
6060
5377
  });
6061
5378
  const data = parsedOutput.body;
6062
5379
  const doc = (0, smithy_client_1.take)(data, {
@@ -6104,10 +5421,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
6104
5421
  };
6105
5422
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
6106
5423
  const contents = (0, smithy_client_1.map)({
6107
- RetryAfterSeconds: [
6108
- () => void 0 !== parsedOutput.headers["retry-after"],
6109
- () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
6110
- ],
5424
+ [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
6111
5425
  });
6112
5426
  const data = parsedOutput.body;
6113
5427
  const doc = (0, smithy_client_1.take)(data, {
@@ -6499,6 +5813,68 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
6499
5813
  value !== "" &&
6500
5814
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
6501
5815
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
5816
+ const _A = "Alias";
5817
+ const _AI = "AccountId";
5818
+ const _AR = "AwsRegion";
5819
+ const _AT = "AttachmentType";
5820
+ const _CAI = "ConnectAttachmentId";
5821
+ const _CGA = "CustomerGatewayArns";
5822
+ const _CI = "ConnectionIds";
5823
+ const _CNI = "CoreNetworkId";
5824
+ const _CPI = "ConnectPeerIds";
5825
+ const _DI = "DeviceId";
5826
+ const _DIe = "DeviceIds";
5827
+ const _EL = "EdgeLocation";
5828
+ const _GNI = "GlobalNetworkIds";
5829
+ const _LI = "LinkId";
5830
+ const _LIi = "LinkIds";
5831
+ const _MR = "MaxResults";
5832
+ const _NT = "NextToken";
5833
+ const _P = "Provider";
5834
+ const _PT = "PeeringType";
5835
+ const _PVI = "PolicyVersionId";
5836
+ const _RA = "ResourceArn";
5837
+ const _RAS = "RetryAfterSeconds";
5838
+ const _RGA = "RegisteredGatewayArn";
5839
+ const _RT = "ResourceType";
5840
+ const _S = "State";
5841
+ const _SI = "SiteId";
5842
+ const _SIi = "SiteIds";
5843
+ const _T = "Type";
5844
+ const _TGA = "TransitGatewayArns";
5845
+ const _TGCPA = "TransitGatewayConnectPeerArns";
5846
+ const _TK = "TagKeys";
5847
+ const _a = "alias";
5848
+ const _aI = "accountId";
5849
+ const _aR = "awsRegion";
5850
+ const _aT = "attachmentType";
5851
+ const _cAI = "connectAttachmentId";
5852
+ const _cGA = "customerGatewayArns";
5853
+ const _cI = "connectionIds";
5854
+ const _cNI = "coreNetworkId";
5855
+ const _cPI = "connectPeerIds";
5856
+ const _dI = "deviceId";
5857
+ const _dIe = "deviceIds";
5858
+ const _eL = "edgeLocation";
5859
+ const _gNI = "globalNetworkIds";
5860
+ const _lI = "linkId";
5861
+ const _lIi = "linkIds";
5862
+ const _mR = "maxResults";
5863
+ const _nT = "nextToken";
5864
+ const _p = "provider";
5865
+ const _pT = "peeringType";
5866
+ const _pVI = "policyVersionId";
5867
+ const _rA = "resourceArn";
5868
+ const _rGA = "registeredGatewayArn";
5869
+ const _rT = "resourceType";
5870
+ const _ra = "retry-after";
5871
+ const _s = "state";
5872
+ const _sI = "siteId";
5873
+ const _sIi = "siteIds";
5874
+ const _t = "type";
5875
+ const _tGA = "transitGatewayArns";
5876
+ const _tGCPA = "transitGatewayConnectPeerArns";
5877
+ const _tK = "tagKeys";
6502
5878
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
6503
5879
  if (encoded.length) {
6504
5880
  return JSON.parse(encoded);