@aws-sdk/client-mediaconnect 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.
@@ -2,148 +2,106 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.se_UpdateGatewayInstanceCommand = exports.se_UpdateFlowSourceCommand = exports.se_UpdateFlowOutputCommand = exports.se_UpdateFlowMediaStreamCommand = exports.se_UpdateFlowEntitlementCommand = exports.se_UpdateFlowCommand = exports.se_UpdateBridgeStateCommand = exports.se_UpdateBridgeSourceCommand = exports.se_UpdateBridgeOutputCommand = exports.se_UpdateBridgeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopFlowCommand = exports.se_StartFlowCommand = exports.se_RevokeFlowEntitlementCommand = exports.se_RemoveFlowVpcInterfaceCommand = exports.se_RemoveFlowSourceCommand = exports.se_RemoveFlowOutputCommand = exports.se_RemoveFlowMediaStreamCommand = exports.se_RemoveBridgeSourceCommand = exports.se_RemoveBridgeOutputCommand = exports.se_PurchaseOfferingCommand = exports.se_ListTagsForResourceCommand = exports.se_ListReservationsCommand = exports.se_ListOfferingsCommand = exports.se_ListGatewaysCommand = exports.se_ListGatewayInstancesCommand = exports.se_ListFlowsCommand = exports.se_ListEntitlementsCommand = exports.se_ListBridgesCommand = exports.se_GrantFlowEntitlementsCommand = exports.se_DescribeReservationCommand = exports.se_DescribeOfferingCommand = exports.se_DescribeGatewayInstanceCommand = exports.se_DescribeGatewayCommand = exports.se_DescribeFlowCommand = exports.se_DescribeBridgeCommand = exports.se_DeregisterGatewayInstanceCommand = exports.se_DeleteGatewayCommand = exports.se_DeleteFlowCommand = exports.se_DeleteBridgeCommand = exports.se_CreateGatewayCommand = exports.se_CreateFlowCommand = exports.se_CreateBridgeCommand = exports.se_AddFlowVpcInterfacesCommand = exports.se_AddFlowSourcesCommand = exports.se_AddFlowOutputsCommand = exports.se_AddFlowMediaStreamsCommand = exports.se_AddBridgeSourcesCommand = exports.se_AddBridgeOutputsCommand = void 0;
4
4
  exports.de_UpdateGatewayInstanceCommand = exports.de_UpdateFlowSourceCommand = exports.de_UpdateFlowOutputCommand = exports.de_UpdateFlowMediaStreamCommand = exports.de_UpdateFlowEntitlementCommand = exports.de_UpdateFlowCommand = exports.de_UpdateBridgeStateCommand = exports.de_UpdateBridgeSourceCommand = exports.de_UpdateBridgeOutputCommand = exports.de_UpdateBridgeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopFlowCommand = exports.de_StartFlowCommand = exports.de_RevokeFlowEntitlementCommand = exports.de_RemoveFlowVpcInterfaceCommand = exports.de_RemoveFlowSourceCommand = exports.de_RemoveFlowOutputCommand = exports.de_RemoveFlowMediaStreamCommand = exports.de_RemoveBridgeSourceCommand = exports.de_RemoveBridgeOutputCommand = exports.de_PurchaseOfferingCommand = exports.de_ListTagsForResourceCommand = exports.de_ListReservationsCommand = exports.de_ListOfferingsCommand = exports.de_ListGatewaysCommand = exports.de_ListGatewayInstancesCommand = exports.de_ListFlowsCommand = exports.de_ListEntitlementsCommand = exports.de_ListBridgesCommand = exports.de_GrantFlowEntitlementsCommand = exports.de_DescribeReservationCommand = exports.de_DescribeOfferingCommand = exports.de_DescribeGatewayInstanceCommand = exports.de_DescribeGatewayCommand = exports.de_DescribeFlowCommand = exports.de_DescribeBridgeCommand = exports.de_DeregisterGatewayInstanceCommand = exports.de_DeleteGatewayCommand = exports.de_DeleteFlowCommand = exports.de_DeleteBridgeCommand = exports.de_CreateGatewayCommand = exports.de_CreateFlowCommand = exports.de_CreateBridgeCommand = exports.de_AddFlowVpcInterfacesCommand = exports.de_AddFlowSourcesCommand = exports.de_AddFlowOutputsCommand = exports.de_AddFlowMediaStreamsCommand = exports.de_AddBridgeSourcesCommand = exports.de_AddBridgeOutputsCommand = void 0;
5
- const protocol_http_1 = require("@smithy/protocol-http");
5
+ const core_1 = require("@smithy/core");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const MediaConnectServiceException_1 = require("../models/MediaConnectServiceException");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const se_AddBridgeOutputsCommand = async (input, context) => {
10
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
+ const b = (0, core_1.requestBuilder)(input, context);
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/outputs";
15
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
14
+ b.bp("/v1/bridges/{BridgeArn}/outputs");
15
+ b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
16
16
  let body;
17
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
18
  outputs: [, (_) => se___listOfAddBridgeOutputRequest(_, context), `Outputs`],
19
19
  }));
20
- return new protocol_http_1.HttpRequest({
21
- protocol,
22
- hostname,
23
- port,
24
- method: "POST",
25
- headers,
26
- path: resolvedPath,
27
- body,
28
- });
20
+ b.m("POST").h(headers).b(body);
21
+ return b.build();
29
22
  };
30
23
  exports.se_AddBridgeOutputsCommand = se_AddBridgeOutputsCommand;
31
24
  const se_AddBridgeSourcesCommand = async (input, context) => {
32
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
25
+ const b = (0, core_1.requestBuilder)(input, context);
33
26
  const headers = {
34
27
  "content-type": "application/json",
35
28
  };
36
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/sources";
37
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
29
+ b.bp("/v1/bridges/{BridgeArn}/sources");
30
+ b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
38
31
  let body;
39
32
  body = JSON.stringify((0, smithy_client_1.take)(input, {
40
33
  sources: [, (_) => se___listOfAddBridgeSourceRequest(_, context), `Sources`],
41
34
  }));
42
- return new protocol_http_1.HttpRequest({
43
- protocol,
44
- hostname,
45
- port,
46
- method: "POST",
47
- headers,
48
- path: resolvedPath,
49
- body,
50
- });
35
+ b.m("POST").h(headers).b(body);
36
+ return b.build();
51
37
  };
52
38
  exports.se_AddBridgeSourcesCommand = se_AddBridgeSourcesCommand;
53
39
  const se_AddFlowMediaStreamsCommand = async (input, context) => {
54
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
40
+ const b = (0, core_1.requestBuilder)(input, context);
55
41
  const headers = {
56
42
  "content-type": "application/json",
57
43
  };
58
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/mediaStreams";
59
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
44
+ b.bp("/v1/flows/{FlowArn}/mediaStreams");
45
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
60
46
  let body;
61
47
  body = JSON.stringify((0, smithy_client_1.take)(input, {
62
48
  mediaStreams: [, (_) => se___listOfAddMediaStreamRequest(_, context), `MediaStreams`],
63
49
  }));
64
- return new protocol_http_1.HttpRequest({
65
- protocol,
66
- hostname,
67
- port,
68
- method: "POST",
69
- headers,
70
- path: resolvedPath,
71
- body,
72
- });
50
+ b.m("POST").h(headers).b(body);
51
+ return b.build();
73
52
  };
74
53
  exports.se_AddFlowMediaStreamsCommand = se_AddFlowMediaStreamsCommand;
75
54
  const se_AddFlowOutputsCommand = async (input, context) => {
76
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
+ const b = (0, core_1.requestBuilder)(input, context);
77
56
  const headers = {
78
57
  "content-type": "application/json",
79
58
  };
80
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/outputs";
81
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
59
+ b.bp("/v1/flows/{FlowArn}/outputs");
60
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
82
61
  let body;
83
62
  body = JSON.stringify((0, smithy_client_1.take)(input, {
84
63
  outputs: [, (_) => se___listOfAddOutputRequest(_, context), `Outputs`],
85
64
  }));
86
- return new protocol_http_1.HttpRequest({
87
- protocol,
88
- hostname,
89
- port,
90
- method: "POST",
91
- headers,
92
- path: resolvedPath,
93
- body,
94
- });
65
+ b.m("POST").h(headers).b(body);
66
+ return b.build();
95
67
  };
96
68
  exports.se_AddFlowOutputsCommand = se_AddFlowOutputsCommand;
97
69
  const se_AddFlowSourcesCommand = async (input, context) => {
98
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
70
+ const b = (0, core_1.requestBuilder)(input, context);
99
71
  const headers = {
100
72
  "content-type": "application/json",
101
73
  };
102
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/source";
103
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
74
+ b.bp("/v1/flows/{FlowArn}/source");
75
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
104
76
  let body;
105
77
  body = JSON.stringify((0, smithy_client_1.take)(input, {
106
78
  sources: [, (_) => se___listOfSetSourceRequest(_, context), `Sources`],
107
79
  }));
108
- return new protocol_http_1.HttpRequest({
109
- protocol,
110
- hostname,
111
- port,
112
- method: "POST",
113
- headers,
114
- path: resolvedPath,
115
- body,
116
- });
80
+ b.m("POST").h(headers).b(body);
81
+ return b.build();
117
82
  };
118
83
  exports.se_AddFlowSourcesCommand = se_AddFlowSourcesCommand;
119
84
  const se_AddFlowVpcInterfacesCommand = async (input, context) => {
120
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
85
+ const b = (0, core_1.requestBuilder)(input, context);
121
86
  const headers = {
122
87
  "content-type": "application/json",
123
88
  };
124
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/vpcInterfaces";
125
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
89
+ b.bp("/v1/flows/{FlowArn}/vpcInterfaces");
90
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
126
91
  let body;
127
92
  body = JSON.stringify((0, smithy_client_1.take)(input, {
128
93
  vpcInterfaces: [, (_) => se___listOfVpcInterfaceRequest(_, context), `VpcInterfaces`],
129
94
  }));
130
- return new protocol_http_1.HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "POST",
135
- headers,
136
- path: resolvedPath,
137
- body,
138
- });
95
+ b.m("POST").h(headers).b(body);
96
+ return b.build();
139
97
  };
140
98
  exports.se_AddFlowVpcInterfacesCommand = se_AddFlowVpcInterfacesCommand;
141
99
  const se_CreateBridgeCommand = async (input, context) => {
142
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
100
+ const b = (0, core_1.requestBuilder)(input, context);
143
101
  const headers = {
144
102
  "content-type": "application/json",
145
103
  };
146
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges";
104
+ b.bp("/v1/bridges");
147
105
  let body;
148
106
  body = JSON.stringify((0, smithy_client_1.take)(input, {
149
107
  egressGatewayBridge: [, (_) => se_AddEgressGatewayBridgeRequest(_, context), `EgressGatewayBridge`],
@@ -154,23 +112,16 @@ const se_CreateBridgeCommand = async (input, context) => {
154
112
  sourceFailoverConfig: [, (_) => se_FailoverConfig(_, context), `SourceFailoverConfig`],
155
113
  sources: [, (_) => se___listOfAddBridgeSourceRequest(_, context), `Sources`],
156
114
  }));
157
- return new protocol_http_1.HttpRequest({
158
- protocol,
159
- hostname,
160
- port,
161
- method: "POST",
162
- headers,
163
- path: resolvedPath,
164
- body,
165
- });
115
+ b.m("POST").h(headers).b(body);
116
+ return b.build();
166
117
  };
167
118
  exports.se_CreateBridgeCommand = se_CreateBridgeCommand;
168
119
  const se_CreateFlowCommand = async (input, context) => {
169
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
120
+ const b = (0, core_1.requestBuilder)(input, context);
170
121
  const headers = {
171
122
  "content-type": "application/json",
172
123
  };
173
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows";
124
+ b.bp("/v1/flows");
174
125
  let body;
175
126
  body = JSON.stringify((0, smithy_client_1.take)(input, {
176
127
  availabilityZone: [, , `AvailabilityZone`],
@@ -184,765 +135,480 @@ const se_CreateFlowCommand = async (input, context) => {
184
135
  sources: [, (_) => se___listOfSetSourceRequest(_, context), `Sources`],
185
136
  vpcInterfaces: [, (_) => se___listOfVpcInterfaceRequest(_, context), `VpcInterfaces`],
186
137
  }));
187
- return new protocol_http_1.HttpRequest({
188
- protocol,
189
- hostname,
190
- port,
191
- method: "POST",
192
- headers,
193
- path: resolvedPath,
194
- body,
195
- });
138
+ b.m("POST").h(headers).b(body);
139
+ return b.build();
196
140
  };
197
141
  exports.se_CreateFlowCommand = se_CreateFlowCommand;
198
142
  const se_CreateGatewayCommand = async (input, context) => {
199
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
143
+ const b = (0, core_1.requestBuilder)(input, context);
200
144
  const headers = {
201
145
  "content-type": "application/json",
202
146
  };
203
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways";
147
+ b.bp("/v1/gateways");
204
148
  let body;
205
149
  body = JSON.stringify((0, smithy_client_1.take)(input, {
206
150
  egressCidrBlocks: [, (_) => (0, smithy_client_1._json)(_), `EgressCidrBlocks`],
207
151
  name: [, , `Name`],
208
152
  networks: [, (_) => se___listOfGatewayNetwork(_, context), `Networks`],
209
153
  }));
210
- return new protocol_http_1.HttpRequest({
211
- protocol,
212
- hostname,
213
- port,
214
- method: "POST",
215
- headers,
216
- path: resolvedPath,
217
- body,
218
- });
154
+ b.m("POST").h(headers).b(body);
155
+ return b.build();
219
156
  };
220
157
  exports.se_CreateGatewayCommand = se_CreateGatewayCommand;
221
158
  const se_DeleteBridgeCommand = async (input, context) => {
222
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
159
+ const b = (0, core_1.requestBuilder)(input, context);
223
160
  const headers = {};
224
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
225
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
161
+ b.bp("/v1/bridges/{BridgeArn}");
162
+ b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
226
163
  let body;
227
- return new protocol_http_1.HttpRequest({
228
- protocol,
229
- hostname,
230
- port,
231
- method: "DELETE",
232
- headers,
233
- path: resolvedPath,
234
- body,
235
- });
164
+ b.m("DELETE").h(headers).b(body);
165
+ return b.build();
236
166
  };
237
167
  exports.se_DeleteBridgeCommand = se_DeleteBridgeCommand;
238
168
  const se_DeleteFlowCommand = async (input, context) => {
239
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
169
+ const b = (0, core_1.requestBuilder)(input, context);
240
170
  const headers = {};
241
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}";
242
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
171
+ b.bp("/v1/flows/{FlowArn}");
172
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
243
173
  let body;
244
- return new protocol_http_1.HttpRequest({
245
- protocol,
246
- hostname,
247
- port,
248
- method: "DELETE",
249
- headers,
250
- path: resolvedPath,
251
- body,
252
- });
174
+ b.m("DELETE").h(headers).b(body);
175
+ return b.build();
253
176
  };
254
177
  exports.se_DeleteFlowCommand = se_DeleteFlowCommand;
255
178
  const se_DeleteGatewayCommand = async (input, context) => {
256
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
179
+ const b = (0, core_1.requestBuilder)(input, context);
257
180
  const headers = {};
258
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways/{GatewayArn}";
259
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
181
+ b.bp("/v1/gateways/{GatewayArn}");
182
+ b.p("GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
260
183
  let body;
261
- return new protocol_http_1.HttpRequest({
262
- protocol,
263
- hostname,
264
- port,
265
- method: "DELETE",
266
- headers,
267
- path: resolvedPath,
268
- body,
269
- });
184
+ b.m("DELETE").h(headers).b(body);
185
+ return b.build();
270
186
  };
271
187
  exports.se_DeleteGatewayCommand = se_DeleteGatewayCommand;
272
188
  const se_DeregisterGatewayInstanceCommand = async (input, context) => {
273
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
189
+ const b = (0, core_1.requestBuilder)(input, context);
274
190
  const headers = {};
275
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
276
- "/v1/gateway-instances/{GatewayInstanceArn}";
277
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
191
+ b.bp("/v1/gateway-instances/{GatewayInstanceArn}");
192
+ b.p("GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
278
193
  const query = (0, smithy_client_1.map)({
279
- force: [() => input.Force !== void 0, () => input.Force.toString()],
194
+ [_f]: [() => input.Force !== void 0, () => input[_F].toString()],
280
195
  });
281
196
  let body;
282
- return new protocol_http_1.HttpRequest({
283
- protocol,
284
- hostname,
285
- port,
286
- method: "DELETE",
287
- headers,
288
- path: resolvedPath,
289
- query,
290
- body,
291
- });
197
+ b.m("DELETE").h(headers).q(query).b(body);
198
+ return b.build();
292
199
  };
293
200
  exports.se_DeregisterGatewayInstanceCommand = se_DeregisterGatewayInstanceCommand;
294
201
  const se_DescribeBridgeCommand = async (input, context) => {
295
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
202
+ const b = (0, core_1.requestBuilder)(input, context);
296
203
  const headers = {};
297
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
298
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
204
+ b.bp("/v1/bridges/{BridgeArn}");
205
+ b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
299
206
  let body;
300
- return new protocol_http_1.HttpRequest({
301
- protocol,
302
- hostname,
303
- port,
304
- method: "GET",
305
- headers,
306
- path: resolvedPath,
307
- body,
308
- });
207
+ b.m("GET").h(headers).b(body);
208
+ return b.build();
309
209
  };
310
210
  exports.se_DescribeBridgeCommand = se_DescribeBridgeCommand;
311
211
  const se_DescribeFlowCommand = async (input, context) => {
312
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
212
+ const b = (0, core_1.requestBuilder)(input, context);
313
213
  const headers = {};
314
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}";
315
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
214
+ b.bp("/v1/flows/{FlowArn}");
215
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
316
216
  let body;
317
- return new protocol_http_1.HttpRequest({
318
- protocol,
319
- hostname,
320
- port,
321
- method: "GET",
322
- headers,
323
- path: resolvedPath,
324
- body,
325
- });
217
+ b.m("GET").h(headers).b(body);
218
+ return b.build();
326
219
  };
327
220
  exports.se_DescribeFlowCommand = se_DescribeFlowCommand;
328
221
  const se_DescribeGatewayCommand = async (input, context) => {
329
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
222
+ const b = (0, core_1.requestBuilder)(input, context);
330
223
  const headers = {};
331
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways/{GatewayArn}";
332
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
224
+ b.bp("/v1/gateways/{GatewayArn}");
225
+ b.p("GatewayArn", () => input.GatewayArn, "{GatewayArn}", false);
333
226
  let body;
334
- return new protocol_http_1.HttpRequest({
335
- protocol,
336
- hostname,
337
- port,
338
- method: "GET",
339
- headers,
340
- path: resolvedPath,
341
- body,
342
- });
227
+ b.m("GET").h(headers).b(body);
228
+ return b.build();
343
229
  };
344
230
  exports.se_DescribeGatewayCommand = se_DescribeGatewayCommand;
345
231
  const se_DescribeGatewayInstanceCommand = async (input, context) => {
346
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
232
+ const b = (0, core_1.requestBuilder)(input, context);
347
233
  const headers = {};
348
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
349
- "/v1/gateway-instances/{GatewayInstanceArn}";
350
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
234
+ b.bp("/v1/gateway-instances/{GatewayInstanceArn}");
235
+ b.p("GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
351
236
  let body;
352
- return new protocol_http_1.HttpRequest({
353
- protocol,
354
- hostname,
355
- port,
356
- method: "GET",
357
- headers,
358
- path: resolvedPath,
359
- body,
360
- });
237
+ b.m("GET").h(headers).b(body);
238
+ return b.build();
361
239
  };
362
240
  exports.se_DescribeGatewayInstanceCommand = se_DescribeGatewayInstanceCommand;
363
241
  const se_DescribeOfferingCommand = async (input, context) => {
364
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
242
+ const b = (0, core_1.requestBuilder)(input, context);
365
243
  const headers = {};
366
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/offerings/{OfferingArn}";
367
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OfferingArn", () => input.OfferingArn, "{OfferingArn}", false);
244
+ b.bp("/v1/offerings/{OfferingArn}");
245
+ b.p("OfferingArn", () => input.OfferingArn, "{OfferingArn}", false);
368
246
  let body;
369
- return new protocol_http_1.HttpRequest({
370
- protocol,
371
- hostname,
372
- port,
373
- method: "GET",
374
- headers,
375
- path: resolvedPath,
376
- body,
377
- });
247
+ b.m("GET").h(headers).b(body);
248
+ return b.build();
378
249
  };
379
250
  exports.se_DescribeOfferingCommand = se_DescribeOfferingCommand;
380
251
  const se_DescribeReservationCommand = async (input, context) => {
381
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
252
+ const b = (0, core_1.requestBuilder)(input, context);
382
253
  const headers = {};
383
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/reservations/{ReservationArn}";
384
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReservationArn", () => input.ReservationArn, "{ReservationArn}", false);
254
+ b.bp("/v1/reservations/{ReservationArn}");
255
+ b.p("ReservationArn", () => input.ReservationArn, "{ReservationArn}", false);
385
256
  let body;
386
- return new protocol_http_1.HttpRequest({
387
- protocol,
388
- hostname,
389
- port,
390
- method: "GET",
391
- headers,
392
- path: resolvedPath,
393
- body,
394
- });
257
+ b.m("GET").h(headers).b(body);
258
+ return b.build();
395
259
  };
396
260
  exports.se_DescribeReservationCommand = se_DescribeReservationCommand;
397
261
  const se_GrantFlowEntitlementsCommand = async (input, context) => {
398
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
262
+ const b = (0, core_1.requestBuilder)(input, context);
399
263
  const headers = {
400
264
  "content-type": "application/json",
401
265
  };
402
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/entitlements";
403
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
266
+ b.bp("/v1/flows/{FlowArn}/entitlements");
267
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
404
268
  let body;
405
269
  body = JSON.stringify((0, smithy_client_1.take)(input, {
406
270
  entitlements: [, (_) => se___listOfGrantEntitlementRequest(_, context), `Entitlements`],
407
271
  }));
408
- return new protocol_http_1.HttpRequest({
409
- protocol,
410
- hostname,
411
- port,
412
- method: "POST",
413
- headers,
414
- path: resolvedPath,
415
- body,
416
- });
272
+ b.m("POST").h(headers).b(body);
273
+ return b.build();
417
274
  };
418
275
  exports.se_GrantFlowEntitlementsCommand = se_GrantFlowEntitlementsCommand;
419
276
  const se_ListBridgesCommand = async (input, context) => {
420
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
277
+ const b = (0, core_1.requestBuilder)(input, context);
421
278
  const headers = {};
422
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges";
279
+ b.bp("/v1/bridges");
423
280
  const query = (0, smithy_client_1.map)({
424
- filterArn: [, input.FilterArn],
425
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
426
- nextToken: [, input.NextToken],
281
+ [_fA]: [, input[_FA]],
282
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
283
+ [_nT]: [, input[_NT]],
427
284
  });
428
285
  let body;
429
- return new protocol_http_1.HttpRequest({
430
- protocol,
431
- hostname,
432
- port,
433
- method: "GET",
434
- headers,
435
- path: resolvedPath,
436
- query,
437
- body,
438
- });
286
+ b.m("GET").h(headers).q(query).b(body);
287
+ return b.build();
439
288
  };
440
289
  exports.se_ListBridgesCommand = se_ListBridgesCommand;
441
290
  const se_ListEntitlementsCommand = async (input, context) => {
442
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
291
+ const b = (0, core_1.requestBuilder)(input, context);
443
292
  const headers = {};
444
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/entitlements";
293
+ b.bp("/v1/entitlements");
445
294
  const query = (0, smithy_client_1.map)({
446
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
447
- nextToken: [, input.NextToken],
295
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
296
+ [_nT]: [, input[_NT]],
448
297
  });
449
298
  let body;
450
- return new protocol_http_1.HttpRequest({
451
- protocol,
452
- hostname,
453
- port,
454
- method: "GET",
455
- headers,
456
- path: resolvedPath,
457
- query,
458
- body,
459
- });
299
+ b.m("GET").h(headers).q(query).b(body);
300
+ return b.build();
460
301
  };
461
302
  exports.se_ListEntitlementsCommand = se_ListEntitlementsCommand;
462
303
  const se_ListFlowsCommand = async (input, context) => {
463
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
304
+ const b = (0, core_1.requestBuilder)(input, context);
464
305
  const headers = {};
465
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows";
306
+ b.bp("/v1/flows");
466
307
  const query = (0, smithy_client_1.map)({
467
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
468
- nextToken: [, input.NextToken],
308
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
309
+ [_nT]: [, input[_NT]],
469
310
  });
470
311
  let body;
471
- return new protocol_http_1.HttpRequest({
472
- protocol,
473
- hostname,
474
- port,
475
- method: "GET",
476
- headers,
477
- path: resolvedPath,
478
- query,
479
- body,
480
- });
312
+ b.m("GET").h(headers).q(query).b(body);
313
+ return b.build();
481
314
  };
482
315
  exports.se_ListFlowsCommand = se_ListFlowsCommand;
483
316
  const se_ListGatewayInstancesCommand = async (input, context) => {
484
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
317
+ const b = (0, core_1.requestBuilder)(input, context);
485
318
  const headers = {};
486
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateway-instances";
319
+ b.bp("/v1/gateway-instances");
487
320
  const query = (0, smithy_client_1.map)({
488
- filterArn: [, input.FilterArn],
489
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
490
- nextToken: [, input.NextToken],
321
+ [_fA]: [, input[_FA]],
322
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
323
+ [_nT]: [, input[_NT]],
491
324
  });
492
325
  let body;
493
- return new protocol_http_1.HttpRequest({
494
- protocol,
495
- hostname,
496
- port,
497
- method: "GET",
498
- headers,
499
- path: resolvedPath,
500
- query,
501
- body,
502
- });
326
+ b.m("GET").h(headers).q(query).b(body);
327
+ return b.build();
503
328
  };
504
329
  exports.se_ListGatewayInstancesCommand = se_ListGatewayInstancesCommand;
505
330
  const se_ListGatewaysCommand = async (input, context) => {
506
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
331
+ const b = (0, core_1.requestBuilder)(input, context);
507
332
  const headers = {};
508
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/gateways";
333
+ b.bp("/v1/gateways");
509
334
  const query = (0, smithy_client_1.map)({
510
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
511
- nextToken: [, input.NextToken],
335
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
336
+ [_nT]: [, input[_NT]],
512
337
  });
513
338
  let body;
514
- return new protocol_http_1.HttpRequest({
515
- protocol,
516
- hostname,
517
- port,
518
- method: "GET",
519
- headers,
520
- path: resolvedPath,
521
- query,
522
- body,
523
- });
339
+ b.m("GET").h(headers).q(query).b(body);
340
+ return b.build();
524
341
  };
525
342
  exports.se_ListGatewaysCommand = se_ListGatewaysCommand;
526
343
  const se_ListOfferingsCommand = async (input, context) => {
527
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
344
+ const b = (0, core_1.requestBuilder)(input, context);
528
345
  const headers = {};
529
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/offerings";
346
+ b.bp("/v1/offerings");
530
347
  const query = (0, smithy_client_1.map)({
531
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
532
- nextToken: [, input.NextToken],
348
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
349
+ [_nT]: [, input[_NT]],
533
350
  });
534
351
  let body;
535
- return new protocol_http_1.HttpRequest({
536
- protocol,
537
- hostname,
538
- port,
539
- method: "GET",
540
- headers,
541
- path: resolvedPath,
542
- query,
543
- body,
544
- });
352
+ b.m("GET").h(headers).q(query).b(body);
353
+ return b.build();
545
354
  };
546
355
  exports.se_ListOfferingsCommand = se_ListOfferingsCommand;
547
356
  const se_ListReservationsCommand = async (input, context) => {
548
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
357
+ const b = (0, core_1.requestBuilder)(input, context);
549
358
  const headers = {};
550
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/reservations";
359
+ b.bp("/v1/reservations");
551
360
  const query = (0, smithy_client_1.map)({
552
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
553
- nextToken: [, input.NextToken],
361
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
362
+ [_nT]: [, input[_NT]],
554
363
  });
555
364
  let body;
556
- return new protocol_http_1.HttpRequest({
557
- protocol,
558
- hostname,
559
- port,
560
- method: "GET",
561
- headers,
562
- path: resolvedPath,
563
- query,
564
- body,
565
- });
365
+ b.m("GET").h(headers).q(query).b(body);
366
+ return b.build();
566
367
  };
567
368
  exports.se_ListReservationsCommand = se_ListReservationsCommand;
568
369
  const se_ListTagsForResourceCommand = async (input, context) => {
569
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
370
+ const b = (0, core_1.requestBuilder)(input, context);
570
371
  const headers = {};
571
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
572
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
372
+ b.bp("/tags/{ResourceArn}");
373
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
573
374
  let body;
574
- return new protocol_http_1.HttpRequest({
575
- protocol,
576
- hostname,
577
- port,
578
- method: "GET",
579
- headers,
580
- path: resolvedPath,
581
- body,
582
- });
375
+ b.m("GET").h(headers).b(body);
376
+ return b.build();
583
377
  };
584
378
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
585
379
  const se_PurchaseOfferingCommand = async (input, context) => {
586
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
380
+ const b = (0, core_1.requestBuilder)(input, context);
587
381
  const headers = {
588
382
  "content-type": "application/json",
589
383
  };
590
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/offerings/{OfferingArn}";
591
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OfferingArn", () => input.OfferingArn, "{OfferingArn}", false);
384
+ b.bp("/v1/offerings/{OfferingArn}");
385
+ b.p("OfferingArn", () => input.OfferingArn, "{OfferingArn}", false);
592
386
  let body;
593
387
  body = JSON.stringify((0, smithy_client_1.take)(input, {
594
388
  reservationName: [, , `ReservationName`],
595
389
  start: [, , `Start`],
596
390
  }));
597
- return new protocol_http_1.HttpRequest({
598
- protocol,
599
- hostname,
600
- port,
601
- method: "POST",
602
- headers,
603
- path: resolvedPath,
604
- body,
605
- });
391
+ b.m("POST").h(headers).b(body);
392
+ return b.build();
606
393
  };
607
394
  exports.se_PurchaseOfferingCommand = se_PurchaseOfferingCommand;
608
395
  const se_RemoveBridgeOutputCommand = async (input, context) => {
609
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
396
+ const b = (0, core_1.requestBuilder)(input, context);
610
397
  const headers = {};
611
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
612
- "/v1/bridges/{BridgeArn}/outputs/{OutputName}";
613
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
614
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutputName", () => input.OutputName, "{OutputName}", false);
398
+ b.bp("/v1/bridges/{BridgeArn}/outputs/{OutputName}");
399
+ b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
400
+ b.p("OutputName", () => input.OutputName, "{OutputName}", false);
615
401
  let body;
616
- return new protocol_http_1.HttpRequest({
617
- protocol,
618
- hostname,
619
- port,
620
- method: "DELETE",
621
- headers,
622
- path: resolvedPath,
623
- body,
624
- });
402
+ b.m("DELETE").h(headers).b(body);
403
+ return b.build();
625
404
  };
626
405
  exports.se_RemoveBridgeOutputCommand = se_RemoveBridgeOutputCommand;
627
406
  const se_RemoveBridgeSourceCommand = async (input, context) => {
628
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
407
+ const b = (0, core_1.requestBuilder)(input, context);
629
408
  const headers = {};
630
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
631
- "/v1/bridges/{BridgeArn}/sources/{SourceName}";
632
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
633
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceName", () => input.SourceName, "{SourceName}", false);
409
+ b.bp("/v1/bridges/{BridgeArn}/sources/{SourceName}");
410
+ b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
411
+ b.p("SourceName", () => input.SourceName, "{SourceName}", false);
634
412
  let body;
635
- return new protocol_http_1.HttpRequest({
636
- protocol,
637
- hostname,
638
- port,
639
- method: "DELETE",
640
- headers,
641
- path: resolvedPath,
642
- body,
643
- });
413
+ b.m("DELETE").h(headers).b(body);
414
+ return b.build();
644
415
  };
645
416
  exports.se_RemoveBridgeSourceCommand = se_RemoveBridgeSourceCommand;
646
417
  const se_RemoveFlowMediaStreamCommand = async (input, context) => {
647
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
418
+ const b = (0, core_1.requestBuilder)(input, context);
648
419
  const headers = {};
649
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
650
- "/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}";
651
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
652
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaStreamName", () => input.MediaStreamName, "{MediaStreamName}", false);
420
+ b.bp("/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}");
421
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
422
+ b.p("MediaStreamName", () => input.MediaStreamName, "{MediaStreamName}", false);
653
423
  let body;
654
- return new protocol_http_1.HttpRequest({
655
- protocol,
656
- hostname,
657
- port,
658
- method: "DELETE",
659
- headers,
660
- path: resolvedPath,
661
- body,
662
- });
424
+ b.m("DELETE").h(headers).b(body);
425
+ return b.build();
663
426
  };
664
427
  exports.se_RemoveFlowMediaStreamCommand = se_RemoveFlowMediaStreamCommand;
665
428
  const se_RemoveFlowOutputCommand = async (input, context) => {
666
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
429
+ const b = (0, core_1.requestBuilder)(input, context);
667
430
  const headers = {};
668
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/outputs/{OutputArn}";
669
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
670
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutputArn", () => input.OutputArn, "{OutputArn}", false);
431
+ b.bp("/v1/flows/{FlowArn}/outputs/{OutputArn}");
432
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
433
+ b.p("OutputArn", () => input.OutputArn, "{OutputArn}", false);
671
434
  let body;
672
- return new protocol_http_1.HttpRequest({
673
- protocol,
674
- hostname,
675
- port,
676
- method: "DELETE",
677
- headers,
678
- path: resolvedPath,
679
- body,
680
- });
435
+ b.m("DELETE").h(headers).b(body);
436
+ return b.build();
681
437
  };
682
438
  exports.se_RemoveFlowOutputCommand = se_RemoveFlowOutputCommand;
683
439
  const se_RemoveFlowSourceCommand = async (input, context) => {
684
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
440
+ const b = (0, core_1.requestBuilder)(input, context);
685
441
  const headers = {};
686
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/source/{SourceArn}";
687
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
688
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceArn", () => input.SourceArn, "{SourceArn}", false);
442
+ b.bp("/v1/flows/{FlowArn}/source/{SourceArn}");
443
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
444
+ b.p("SourceArn", () => input.SourceArn, "{SourceArn}", false);
689
445
  let body;
690
- return new protocol_http_1.HttpRequest({
691
- protocol,
692
- hostname,
693
- port,
694
- method: "DELETE",
695
- headers,
696
- path: resolvedPath,
697
- body,
698
- });
446
+ b.m("DELETE").h(headers).b(body);
447
+ return b.build();
699
448
  };
700
449
  exports.se_RemoveFlowSourceCommand = se_RemoveFlowSourceCommand;
701
450
  const se_RemoveFlowVpcInterfaceCommand = async (input, context) => {
702
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
451
+ const b = (0, core_1.requestBuilder)(input, context);
703
452
  const headers = {};
704
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
705
- "/v1/flows/{FlowArn}/vpcInterfaces/{VpcInterfaceName}";
706
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
707
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VpcInterfaceName", () => input.VpcInterfaceName, "{VpcInterfaceName}", false);
453
+ b.bp("/v1/flows/{FlowArn}/vpcInterfaces/{VpcInterfaceName}");
454
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
455
+ b.p("VpcInterfaceName", () => input.VpcInterfaceName, "{VpcInterfaceName}", false);
708
456
  let body;
709
- return new protocol_http_1.HttpRequest({
710
- protocol,
711
- hostname,
712
- port,
713
- method: "DELETE",
714
- headers,
715
- path: resolvedPath,
716
- body,
717
- });
457
+ b.m("DELETE").h(headers).b(body);
458
+ return b.build();
718
459
  };
719
460
  exports.se_RemoveFlowVpcInterfaceCommand = se_RemoveFlowVpcInterfaceCommand;
720
461
  const se_RevokeFlowEntitlementCommand = async (input, context) => {
721
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
462
+ const b = (0, core_1.requestBuilder)(input, context);
722
463
  const headers = {};
723
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
724
- "/v1/flows/{FlowArn}/entitlements/{EntitlementArn}";
725
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EntitlementArn", () => input.EntitlementArn, "{EntitlementArn}", false);
726
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
464
+ b.bp("/v1/flows/{FlowArn}/entitlements/{EntitlementArn}");
465
+ b.p("EntitlementArn", () => input.EntitlementArn, "{EntitlementArn}", false);
466
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
727
467
  let body;
728
- return new protocol_http_1.HttpRequest({
729
- protocol,
730
- hostname,
731
- port,
732
- method: "DELETE",
733
- headers,
734
- path: resolvedPath,
735
- body,
736
- });
468
+ b.m("DELETE").h(headers).b(body);
469
+ return b.build();
737
470
  };
738
471
  exports.se_RevokeFlowEntitlementCommand = se_RevokeFlowEntitlementCommand;
739
472
  const se_StartFlowCommand = async (input, context) => {
740
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
473
+ const b = (0, core_1.requestBuilder)(input, context);
741
474
  const headers = {};
742
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/start/{FlowArn}";
743
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
475
+ b.bp("/v1/flows/start/{FlowArn}");
476
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
744
477
  let body;
745
- return new protocol_http_1.HttpRequest({
746
- protocol,
747
- hostname,
748
- port,
749
- method: "POST",
750
- headers,
751
- path: resolvedPath,
752
- body,
753
- });
478
+ b.m("POST").h(headers).b(body);
479
+ return b.build();
754
480
  };
755
481
  exports.se_StartFlowCommand = se_StartFlowCommand;
756
482
  const se_StopFlowCommand = async (input, context) => {
757
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
483
+ const b = (0, core_1.requestBuilder)(input, context);
758
484
  const headers = {};
759
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/stop/{FlowArn}";
760
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
485
+ b.bp("/v1/flows/stop/{FlowArn}");
486
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
761
487
  let body;
762
- return new protocol_http_1.HttpRequest({
763
- protocol,
764
- hostname,
765
- port,
766
- method: "POST",
767
- headers,
768
- path: resolvedPath,
769
- body,
770
- });
488
+ b.m("POST").h(headers).b(body);
489
+ return b.build();
771
490
  };
772
491
  exports.se_StopFlowCommand = se_StopFlowCommand;
773
492
  const se_TagResourceCommand = async (input, context) => {
774
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
493
+ const b = (0, core_1.requestBuilder)(input, context);
775
494
  const headers = {
776
495
  "content-type": "application/json",
777
496
  };
778
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
779
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
497
+ b.bp("/tags/{ResourceArn}");
498
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
780
499
  let body;
781
500
  body = JSON.stringify((0, smithy_client_1.take)(input, {
782
501
  tags: [, (_) => (0, smithy_client_1._json)(_), `Tags`],
783
502
  }));
784
- return new protocol_http_1.HttpRequest({
785
- protocol,
786
- hostname,
787
- port,
788
- method: "POST",
789
- headers,
790
- path: resolvedPath,
791
- body,
792
- });
503
+ b.m("POST").h(headers).b(body);
504
+ return b.build();
793
505
  };
794
506
  exports.se_TagResourceCommand = se_TagResourceCommand;
795
507
  const se_UntagResourceCommand = async (input, context) => {
796
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
508
+ const b = (0, core_1.requestBuilder)(input, context);
797
509
  const headers = {};
798
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
799
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
510
+ b.bp("/tags/{ResourceArn}");
511
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
800
512
  const query = (0, smithy_client_1.map)({
801
- tagKeys: [
513
+ [_tK]: [
802
514
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
803
- () => (input.TagKeys || []).map((_entry) => _entry),
515
+ () => (input[_TK] || []).map((_entry) => _entry),
804
516
  ],
805
517
  });
806
518
  let body;
807
- return new protocol_http_1.HttpRequest({
808
- protocol,
809
- hostname,
810
- port,
811
- method: "DELETE",
812
- headers,
813
- path: resolvedPath,
814
- query,
815
- body,
816
- });
519
+ b.m("DELETE").h(headers).q(query).b(body);
520
+ return b.build();
817
521
  };
818
522
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
819
523
  const se_UpdateBridgeCommand = async (input, context) => {
820
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
524
+ const b = (0, core_1.requestBuilder)(input, context);
821
525
  const headers = {
822
526
  "content-type": "application/json",
823
527
  };
824
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}";
825
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
528
+ b.bp("/v1/bridges/{BridgeArn}");
529
+ b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
826
530
  let body;
827
531
  body = JSON.stringify((0, smithy_client_1.take)(input, {
828
532
  egressGatewayBridge: [, (_) => se_UpdateEgressGatewayBridgeRequest(_, context), `EgressGatewayBridge`],
829
533
  ingressGatewayBridge: [, (_) => se_UpdateIngressGatewayBridgeRequest(_, context), `IngressGatewayBridge`],
830
534
  sourceFailoverConfig: [, (_) => se_UpdateFailoverConfig(_, context), `SourceFailoverConfig`],
831
535
  }));
832
- return new protocol_http_1.HttpRequest({
833
- protocol,
834
- hostname,
835
- port,
836
- method: "PUT",
837
- headers,
838
- path: resolvedPath,
839
- body,
840
- });
536
+ b.m("PUT").h(headers).b(body);
537
+ return b.build();
841
538
  };
842
539
  exports.se_UpdateBridgeCommand = se_UpdateBridgeCommand;
843
540
  const se_UpdateBridgeOutputCommand = async (input, context) => {
844
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
541
+ const b = (0, core_1.requestBuilder)(input, context);
845
542
  const headers = {
846
543
  "content-type": "application/json",
847
544
  };
848
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
849
- "/v1/bridges/{BridgeArn}/outputs/{OutputName}";
850
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
851
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutputName", () => input.OutputName, "{OutputName}", false);
545
+ b.bp("/v1/bridges/{BridgeArn}/outputs/{OutputName}");
546
+ b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
547
+ b.p("OutputName", () => input.OutputName, "{OutputName}", false);
852
548
  let body;
853
549
  body = JSON.stringify((0, smithy_client_1.take)(input, {
854
550
  networkOutput: [, (_) => se_UpdateBridgeNetworkOutputRequest(_, context), `NetworkOutput`],
855
551
  }));
856
- return new protocol_http_1.HttpRequest({
857
- protocol,
858
- hostname,
859
- port,
860
- method: "PUT",
861
- headers,
862
- path: resolvedPath,
863
- body,
864
- });
552
+ b.m("PUT").h(headers).b(body);
553
+ return b.build();
865
554
  };
866
555
  exports.se_UpdateBridgeOutputCommand = se_UpdateBridgeOutputCommand;
867
556
  const se_UpdateBridgeSourceCommand = async (input, context) => {
868
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
557
+ const b = (0, core_1.requestBuilder)(input, context);
869
558
  const headers = {
870
559
  "content-type": "application/json",
871
560
  };
872
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
873
- "/v1/bridges/{BridgeArn}/sources/{SourceName}";
874
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
875
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceName", () => input.SourceName, "{SourceName}", false);
561
+ b.bp("/v1/bridges/{BridgeArn}/sources/{SourceName}");
562
+ b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
563
+ b.p("SourceName", () => input.SourceName, "{SourceName}", false);
876
564
  let body;
877
565
  body = JSON.stringify((0, smithy_client_1.take)(input, {
878
566
  flowSource: [, (_) => se_UpdateBridgeFlowSourceRequest(_, context), `FlowSource`],
879
567
  networkSource: [, (_) => se_UpdateBridgeNetworkSourceRequest(_, context), `NetworkSource`],
880
568
  }));
881
- return new protocol_http_1.HttpRequest({
882
- protocol,
883
- hostname,
884
- port,
885
- method: "PUT",
886
- headers,
887
- path: resolvedPath,
888
- body,
889
- });
569
+ b.m("PUT").h(headers).b(body);
570
+ return b.build();
890
571
  };
891
572
  exports.se_UpdateBridgeSourceCommand = se_UpdateBridgeSourceCommand;
892
573
  const se_UpdateBridgeStateCommand = async (input, context) => {
893
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
574
+ const b = (0, core_1.requestBuilder)(input, context);
894
575
  const headers = {
895
576
  "content-type": "application/json",
896
577
  };
897
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/bridges/{BridgeArn}/state";
898
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
578
+ b.bp("/v1/bridges/{BridgeArn}/state");
579
+ b.p("BridgeArn", () => input.BridgeArn, "{BridgeArn}", false);
899
580
  let body;
900
581
  body = JSON.stringify((0, smithy_client_1.take)(input, {
901
582
  desiredState: [, , `DesiredState`],
902
583
  }));
903
- return new protocol_http_1.HttpRequest({
904
- protocol,
905
- hostname,
906
- port,
907
- method: "PUT",
908
- headers,
909
- path: resolvedPath,
910
- body,
911
- });
584
+ b.m("PUT").h(headers).b(body);
585
+ return b.build();
912
586
  };
913
587
  exports.se_UpdateBridgeStateCommand = se_UpdateBridgeStateCommand;
914
588
  const se_UpdateFlowCommand = async (input, context) => {
915
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
589
+ const b = (0, core_1.requestBuilder)(input, context);
916
590
  const headers = {
917
591
  "content-type": "application/json",
918
592
  };
919
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}";
920
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
593
+ b.bp("/v1/flows/{FlowArn}");
594
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
921
595
  let body;
922
596
  body = JSON.stringify((0, smithy_client_1.take)(input, {
923
597
  maintenance: [, (_) => se_UpdateMaintenance(_, context), `Maintenance`],
924
598
  sourceFailoverConfig: [, (_) => se_UpdateFailoverConfig(_, context), `SourceFailoverConfig`],
925
599
  }));
926
- return new protocol_http_1.HttpRequest({
927
- protocol,
928
- hostname,
929
- port,
930
- method: "PUT",
931
- headers,
932
- path: resolvedPath,
933
- body,
934
- });
600
+ b.m("PUT").h(headers).b(body);
601
+ return b.build();
935
602
  };
936
603
  exports.se_UpdateFlowCommand = se_UpdateFlowCommand;
937
604
  const se_UpdateFlowEntitlementCommand = async (input, context) => {
938
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
605
+ const b = (0, core_1.requestBuilder)(input, context);
939
606
  const headers = {
940
607
  "content-type": "application/json",
941
608
  };
942
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
943
- "/v1/flows/{FlowArn}/entitlements/{EntitlementArn}";
944
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EntitlementArn", () => input.EntitlementArn, "{EntitlementArn}", false);
945
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
609
+ b.bp("/v1/flows/{FlowArn}/entitlements/{EntitlementArn}");
610
+ b.p("EntitlementArn", () => input.EntitlementArn, "{EntitlementArn}", false);
611
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
946
612
  let body;
947
613
  body = JSON.stringify((0, smithy_client_1.take)(input, {
948
614
  description: [, , `Description`],
@@ -950,26 +616,18 @@ const se_UpdateFlowEntitlementCommand = async (input, context) => {
950
616
  entitlementStatus: [, , `EntitlementStatus`],
951
617
  subscribers: [, (_) => (0, smithy_client_1._json)(_), `Subscribers`],
952
618
  }));
953
- return new protocol_http_1.HttpRequest({
954
- protocol,
955
- hostname,
956
- port,
957
- method: "PUT",
958
- headers,
959
- path: resolvedPath,
960
- body,
961
- });
619
+ b.m("PUT").h(headers).b(body);
620
+ return b.build();
962
621
  };
963
622
  exports.se_UpdateFlowEntitlementCommand = se_UpdateFlowEntitlementCommand;
964
623
  const se_UpdateFlowMediaStreamCommand = async (input, context) => {
965
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
624
+ const b = (0, core_1.requestBuilder)(input, context);
966
625
  const headers = {
967
626
  "content-type": "application/json",
968
627
  };
969
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
970
- "/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}";
971
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
972
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MediaStreamName", () => input.MediaStreamName, "{MediaStreamName}", false);
628
+ b.bp("/v1/flows/{FlowArn}/mediaStreams/{MediaStreamName}");
629
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
630
+ b.p("MediaStreamName", () => input.MediaStreamName, "{MediaStreamName}", false);
973
631
  let body;
974
632
  body = JSON.stringify((0, smithy_client_1.take)(input, {
975
633
  attributes: [, (_) => se_MediaStreamAttributesRequest(_, context), `Attributes`],
@@ -978,25 +636,18 @@ const se_UpdateFlowMediaStreamCommand = async (input, context) => {
978
636
  mediaStreamType: [, , `MediaStreamType`],
979
637
  videoFormat: [, , `VideoFormat`],
980
638
  }));
981
- return new protocol_http_1.HttpRequest({
982
- protocol,
983
- hostname,
984
- port,
985
- method: "PUT",
986
- headers,
987
- path: resolvedPath,
988
- body,
989
- });
639
+ b.m("PUT").h(headers).b(body);
640
+ return b.build();
990
641
  };
991
642
  exports.se_UpdateFlowMediaStreamCommand = se_UpdateFlowMediaStreamCommand;
992
643
  const se_UpdateFlowOutputCommand = async (input, context) => {
993
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
644
+ const b = (0, core_1.requestBuilder)(input, context);
994
645
  const headers = {
995
646
  "content-type": "application/json",
996
647
  };
997
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/outputs/{OutputArn}";
998
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
999
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OutputArn", () => input.OutputArn, "{OutputArn}", false);
648
+ b.bp("/v1/flows/{FlowArn}/outputs/{OutputArn}");
649
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
650
+ b.p("OutputArn", () => input.OutputArn, "{OutputArn}", false);
1000
651
  let body;
1001
652
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1002
653
  cidrAllowList: [, (_) => (0, smithy_client_1._json)(_), `CidrAllowList`],
@@ -1019,25 +670,18 @@ const se_UpdateFlowOutputCommand = async (input, context) => {
1019
670
  streamId: [, , `StreamId`],
1020
671
  vpcInterfaceAttachment: [, (_) => se_VpcInterfaceAttachment(_, context), `VpcInterfaceAttachment`],
1021
672
  }));
1022
- return new protocol_http_1.HttpRequest({
1023
- protocol,
1024
- hostname,
1025
- port,
1026
- method: "PUT",
1027
- headers,
1028
- path: resolvedPath,
1029
- body,
1030
- });
673
+ b.m("PUT").h(headers).b(body);
674
+ return b.build();
1031
675
  };
1032
676
  exports.se_UpdateFlowOutputCommand = se_UpdateFlowOutputCommand;
1033
677
  const se_UpdateFlowSourceCommand = async (input, context) => {
1034
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
678
+ const b = (0, core_1.requestBuilder)(input, context);
1035
679
  const headers = {
1036
680
  "content-type": "application/json",
1037
681
  };
1038
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/flows/{FlowArn}/source/{SourceArn}";
1039
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FlowArn", () => input.FlowArn, "{FlowArn}", false);
1040
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceArn", () => input.SourceArn, "{SourceArn}", false);
682
+ b.bp("/v1/flows/{FlowArn}/source/{SourceArn}");
683
+ b.p("FlowArn", () => input.FlowArn, "{FlowArn}", false);
684
+ b.p("SourceArn", () => input.SourceArn, "{SourceArn}", false);
1041
685
  let body;
1042
686
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1043
687
  decryption: [, (_) => se_UpdateEncryption(_, context), `Decryption`],
@@ -1063,38 +707,23 @@ const se_UpdateFlowSourceCommand = async (input, context) => {
1063
707
  vpcInterfaceName: [, , `VpcInterfaceName`],
1064
708
  whitelistCidr: [, , `WhitelistCidr`],
1065
709
  }));
1066
- return new protocol_http_1.HttpRequest({
1067
- protocol,
1068
- hostname,
1069
- port,
1070
- method: "PUT",
1071
- headers,
1072
- path: resolvedPath,
1073
- body,
1074
- });
710
+ b.m("PUT").h(headers).b(body);
711
+ return b.build();
1075
712
  };
1076
713
  exports.se_UpdateFlowSourceCommand = se_UpdateFlowSourceCommand;
1077
714
  const se_UpdateGatewayInstanceCommand = async (input, context) => {
1078
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
715
+ const b = (0, core_1.requestBuilder)(input, context);
1079
716
  const headers = {
1080
717
  "content-type": "application/json",
1081
718
  };
1082
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1083
- "/v1/gateway-instances/{GatewayInstanceArn}";
1084
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
719
+ b.bp("/v1/gateway-instances/{GatewayInstanceArn}");
720
+ b.p("GatewayInstanceArn", () => input.GatewayInstanceArn, "{GatewayInstanceArn}", false);
1085
721
  let body;
1086
722
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1087
723
  bridgePlacement: [, , `BridgePlacement`],
1088
724
  }));
1089
- return new protocol_http_1.HttpRequest({
1090
- protocol,
1091
- hostname,
1092
- port,
1093
- method: "PUT",
1094
- headers,
1095
- path: resolvedPath,
1096
- body,
1097
- });
725
+ b.m("PUT").h(headers).b(body);
726
+ return b.build();
1098
727
  };
1099
728
  exports.se_UpdateGatewayInstanceCommand = se_UpdateGatewayInstanceCommand;
1100
729
  const de_AddBridgeOutputsCommand = async (output, context) => {
@@ -4694,6 +4323,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
4694
4323
  value !== "" &&
4695
4324
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
4696
4325
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
4326
+ const _F = "Force";
4327
+ const _FA = "FilterArn";
4328
+ const _MR = "MaxResults";
4329
+ const _NT = "NextToken";
4330
+ const _TK = "TagKeys";
4331
+ const _f = "force";
4332
+ const _fA = "filterArn";
4333
+ const _mR = "maxResults";
4334
+ const _nT = "nextToken";
4335
+ const _tK = "tagKeys";
4697
4336
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
4698
4337
  if (encoded.length) {
4699
4338
  return JSON.parse(encoded);