@aws-sdk/client-medialive 3.200.0 → 3.202.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-medialive
9
+
10
+
11
+
12
+
13
+
14
+ # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
15
+
16
+
17
+ ### Features
18
+
19
+ * end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-medialive
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
- var _a, _b;
6
5
  return {
7
6
  ...options,
8
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
9
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
10
9
  defaultSigningName: "medialive",
11
10
  };
12
11
  };
@@ -11,7 +11,7 @@ const models_1_1 = require("../models/models_1");
11
11
  const serializeAws_restJson1AcceptInputDeviceTransferCommand = async (input, context) => {
12
12
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13
13
  const headers = {};
14
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/accept";
14
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/accept";
15
15
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
16
16
  let body;
17
17
  return new protocol_http_1.HttpRequest({
@@ -30,7 +30,7 @@ const serializeAws_restJson1BatchDeleteCommand = async (input, context) => {
30
30
  const headers = {
31
31
  "content-type": "application/json",
32
32
  };
33
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/delete";
33
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/delete";
34
34
  let body;
35
35
  body = JSON.stringify({
36
36
  ...(input.ChannelIds != null && { channelIds: serializeAws_restJson1__listOf__string(input.ChannelIds, context) }),
@@ -58,7 +58,7 @@ const serializeAws_restJson1BatchStartCommand = async (input, context) => {
58
58
  const headers = {
59
59
  "content-type": "application/json",
60
60
  };
61
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/start";
61
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/start";
62
62
  let body;
63
63
  body = JSON.stringify({
64
64
  ...(input.ChannelIds != null && { channelIds: serializeAws_restJson1__listOf__string(input.ChannelIds, context) }),
@@ -82,7 +82,7 @@ const serializeAws_restJson1BatchStopCommand = async (input, context) => {
82
82
  const headers = {
83
83
  "content-type": "application/json",
84
84
  };
85
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/stop";
85
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/batch/stop";
86
86
  let body;
87
87
  body = JSON.stringify({
88
88
  ...(input.ChannelIds != null && { channelIds: serializeAws_restJson1__listOf__string(input.ChannelIds, context) }),
@@ -106,7 +106,7 @@ const serializeAws_restJson1BatchUpdateScheduleCommand = async (input, context)
106
106
  const headers = {
107
107
  "content-type": "application/json",
108
108
  };
109
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule";
109
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule";
110
110
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
111
111
  let body;
112
112
  body = JSON.stringify({
@@ -131,7 +131,7 @@ exports.serializeAws_restJson1BatchUpdateScheduleCommand = serializeAws_restJson
131
131
  const serializeAws_restJson1CancelInputDeviceTransferCommand = async (input, context) => {
132
132
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
133
133
  const headers = {};
134
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/cancel";
134
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/cancel";
135
135
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
136
136
  let body;
137
137
  return new protocol_http_1.HttpRequest({
@@ -150,7 +150,7 @@ const serializeAws_restJson1ClaimDeviceCommand = async (input, context) => {
150
150
  const headers = {
151
151
  "content-type": "application/json",
152
152
  };
153
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/claimDevice";
153
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/claimDevice";
154
154
  let body;
155
155
  body = JSON.stringify({
156
156
  ...(input.Id != null && { id: input.Id }),
@@ -167,12 +167,11 @@ const serializeAws_restJson1ClaimDeviceCommand = async (input, context) => {
167
167
  };
168
168
  exports.serializeAws_restJson1ClaimDeviceCommand = serializeAws_restJson1ClaimDeviceCommand;
169
169
  const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
170
- var _a;
171
170
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
172
171
  const headers = {
173
172
  "content-type": "application/json",
174
173
  };
175
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels";
174
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels";
176
175
  let body;
177
176
  body = JSON.stringify({
178
177
  ...(input.CdiInputSpecification != null && {
@@ -196,7 +195,7 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
196
195
  maintenance: serializeAws_restJson1MaintenanceCreateSettings(input.Maintenance, context),
197
196
  }),
198
197
  ...(input.Name != null && { name: input.Name }),
199
- requestId: (_a = input.RequestId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
198
+ requestId: input.RequestId ?? (0, uuid_1.v4)(),
200
199
  ...(input.Reserved != null && { reserved: input.Reserved }),
201
200
  ...(input.RoleArn != null && { roleArn: input.RoleArn }),
202
201
  ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
@@ -214,12 +213,11 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
214
213
  };
215
214
  exports.serializeAws_restJson1CreateChannelCommand = serializeAws_restJson1CreateChannelCommand;
216
215
  const serializeAws_restJson1CreateInputCommand = async (input, context) => {
217
- var _a;
218
216
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
219
217
  const headers = {
220
218
  "content-type": "application/json",
221
219
  };
222
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs";
220
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs";
223
221
  let body;
224
222
  body = JSON.stringify({
225
223
  ...(input.Destinations != null && {
@@ -235,7 +233,7 @@ const serializeAws_restJson1CreateInputCommand = async (input, context) => {
235
233
  mediaConnectFlows: serializeAws_restJson1__listOfMediaConnectFlowRequest(input.MediaConnectFlows, context),
236
234
  }),
237
235
  ...(input.Name != null && { name: input.Name }),
238
- requestId: (_a = input.RequestId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
236
+ requestId: input.RequestId ?? (0, uuid_1.v4)(),
239
237
  ...(input.RoleArn != null && { roleArn: input.RoleArn }),
240
238
  ...(input.Sources != null && { sources: serializeAws_restJson1__listOfInputSourceRequest(input.Sources, context) }),
241
239
  ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
@@ -258,7 +256,7 @@ const serializeAws_restJson1CreateInputSecurityGroupCommand = async (input, cont
258
256
  const headers = {
259
257
  "content-type": "application/json",
260
258
  };
261
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputSecurityGroups";
259
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputSecurityGroups";
262
260
  let body;
263
261
  body = JSON.stringify({
264
262
  ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
@@ -278,12 +276,11 @@ const serializeAws_restJson1CreateInputSecurityGroupCommand = async (input, cont
278
276
  };
279
277
  exports.serializeAws_restJson1CreateInputSecurityGroupCommand = serializeAws_restJson1CreateInputSecurityGroupCommand;
280
278
  const serializeAws_restJson1CreateMultiplexCommand = async (input, context) => {
281
- var _a;
282
279
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
283
280
  const headers = {
284
281
  "content-type": "application/json",
285
282
  };
286
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes";
283
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes";
287
284
  let body;
288
285
  body = JSON.stringify({
289
286
  ...(input.AvailabilityZones != null && {
@@ -293,7 +290,7 @@ const serializeAws_restJson1CreateMultiplexCommand = async (input, context) => {
293
290
  multiplexSettings: serializeAws_restJson1MultiplexSettings(input.MultiplexSettings, context),
294
291
  }),
295
292
  ...(input.Name != null && { name: input.Name }),
296
- requestId: (_a = input.RequestId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
293
+ requestId: input.RequestId ?? (0, uuid_1.v4)(),
297
294
  ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
298
295
  });
299
296
  return new protocol_http_1.HttpRequest({
@@ -308,12 +305,11 @@ const serializeAws_restJson1CreateMultiplexCommand = async (input, context) => {
308
305
  };
309
306
  exports.serializeAws_restJson1CreateMultiplexCommand = serializeAws_restJson1CreateMultiplexCommand;
310
307
  const serializeAws_restJson1CreateMultiplexProgramCommand = async (input, context) => {
311
- var _a;
312
308
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
313
309
  const headers = {
314
310
  "content-type": "application/json",
315
311
  };
316
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/programs";
312
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/programs";
317
313
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
318
314
  let body;
319
315
  body = JSON.stringify({
@@ -321,7 +317,7 @@ const serializeAws_restJson1CreateMultiplexProgramCommand = async (input, contex
321
317
  multiplexProgramSettings: serializeAws_restJson1MultiplexProgramSettings(input.MultiplexProgramSettings, context),
322
318
  }),
323
319
  ...(input.ProgramName != null && { programName: input.ProgramName }),
324
- requestId: (_a = input.RequestId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
320
+ requestId: input.RequestId ?? (0, uuid_1.v4)(),
325
321
  });
326
322
  return new protocol_http_1.HttpRequest({
327
323
  protocol,
@@ -335,16 +331,15 @@ const serializeAws_restJson1CreateMultiplexProgramCommand = async (input, contex
335
331
  };
336
332
  exports.serializeAws_restJson1CreateMultiplexProgramCommand = serializeAws_restJson1CreateMultiplexProgramCommand;
337
333
  const serializeAws_restJson1CreatePartnerInputCommand = async (input, context) => {
338
- var _a;
339
334
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
340
335
  const headers = {
341
336
  "content-type": "application/json",
342
337
  };
343
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}/partners";
338
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}/partners";
344
339
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputId", () => input.InputId, "{InputId}", false);
345
340
  let body;
346
341
  body = JSON.stringify({
347
- requestId: (_a = input.RequestId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
342
+ requestId: input.RequestId ?? (0, uuid_1.v4)(),
348
343
  ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
349
344
  });
350
345
  return new protocol_http_1.HttpRequest({
@@ -363,7 +358,7 @@ const serializeAws_restJson1CreateTagsCommand = async (input, context) => {
363
358
  const headers = {
364
359
  "content-type": "application/json",
365
360
  };
366
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}";
361
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}";
367
362
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
368
363
  let body;
369
364
  body = JSON.stringify({
@@ -383,7 +378,7 @@ exports.serializeAws_restJson1CreateTagsCommand = serializeAws_restJson1CreateTa
383
378
  const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
384
379
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
385
380
  const headers = {};
386
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}";
381
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}";
387
382
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
388
383
  let body;
389
384
  return new protocol_http_1.HttpRequest({
@@ -400,7 +395,7 @@ exports.serializeAws_restJson1DeleteChannelCommand = serializeAws_restJson1Delet
400
395
  const serializeAws_restJson1DeleteInputCommand = async (input, context) => {
401
396
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
402
397
  const headers = {};
403
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}";
398
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}";
404
399
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputId", () => input.InputId, "{InputId}", false);
405
400
  let body;
406
401
  return new protocol_http_1.HttpRequest({
@@ -417,7 +412,7 @@ exports.serializeAws_restJson1DeleteInputCommand = serializeAws_restJson1DeleteI
417
412
  const serializeAws_restJson1DeleteInputSecurityGroupCommand = async (input, context) => {
418
413
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
419
414
  const headers = {};
420
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
415
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
421
416
  "/prod/inputSecurityGroups/{InputSecurityGroupId}";
422
417
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputSecurityGroupId", () => input.InputSecurityGroupId, "{InputSecurityGroupId}", false);
423
418
  let body;
@@ -435,7 +430,7 @@ exports.serializeAws_restJson1DeleteInputSecurityGroupCommand = serializeAws_res
435
430
  const serializeAws_restJson1DeleteMultiplexCommand = async (input, context) => {
436
431
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
437
432
  const headers = {};
438
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}";
433
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}";
439
434
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
440
435
  let body;
441
436
  return new protocol_http_1.HttpRequest({
@@ -452,7 +447,7 @@ exports.serializeAws_restJson1DeleteMultiplexCommand = serializeAws_restJson1Del
452
447
  const serializeAws_restJson1DeleteMultiplexProgramCommand = async (input, context) => {
453
448
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
454
449
  const headers = {};
455
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
450
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
456
451
  "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}";
457
452
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
458
453
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
@@ -471,7 +466,7 @@ exports.serializeAws_restJson1DeleteMultiplexProgramCommand = serializeAws_restJ
471
466
  const serializeAws_restJson1DeleteReservationCommand = async (input, context) => {
472
467
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
473
468
  const headers = {};
474
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}";
469
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}";
475
470
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReservationId", () => input.ReservationId, "{ReservationId}", false);
476
471
  let body;
477
472
  return new protocol_http_1.HttpRequest({
@@ -488,7 +483,7 @@ exports.serializeAws_restJson1DeleteReservationCommand = serializeAws_restJson1D
488
483
  const serializeAws_restJson1DeleteScheduleCommand = async (input, context) => {
489
484
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
490
485
  const headers = {};
491
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule";
486
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule";
492
487
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
493
488
  let body;
494
489
  return new protocol_http_1.HttpRequest({
@@ -505,7 +500,7 @@ exports.serializeAws_restJson1DeleteScheduleCommand = serializeAws_restJson1Dele
505
500
  const serializeAws_restJson1DeleteTagsCommand = async (input, context) => {
506
501
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
507
502
  const headers = {};
508
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}";
503
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}";
509
504
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
510
505
  const query = map({
511
506
  tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
@@ -526,7 +521,7 @@ exports.serializeAws_restJson1DeleteTagsCommand = serializeAws_restJson1DeleteTa
526
521
  const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
527
522
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
528
523
  const headers = {};
529
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}";
524
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}";
530
525
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
531
526
  let body;
532
527
  return new protocol_http_1.HttpRequest({
@@ -543,7 +538,7 @@ exports.serializeAws_restJson1DescribeChannelCommand = serializeAws_restJson1Des
543
538
  const serializeAws_restJson1DescribeInputCommand = async (input, context) => {
544
539
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
545
540
  const headers = {};
546
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}";
541
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}";
547
542
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputId", () => input.InputId, "{InputId}", false);
548
543
  let body;
549
544
  return new protocol_http_1.HttpRequest({
@@ -560,7 +555,7 @@ exports.serializeAws_restJson1DescribeInputCommand = serializeAws_restJson1Descr
560
555
  const serializeAws_restJson1DescribeInputDeviceCommand = async (input, context) => {
561
556
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
562
557
  const headers = {};
563
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}";
558
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}";
564
559
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
565
560
  let body;
566
561
  return new protocol_http_1.HttpRequest({
@@ -579,7 +574,7 @@ const serializeAws_restJson1DescribeInputDeviceThumbnailCommand = async (input,
579
574
  const headers = map({}, isSerializableHeaderValue, {
580
575
  accept: input.Accept,
581
576
  });
582
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
577
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
583
578
  "/prod/inputDevices/{InputDeviceId}/thumbnailData";
584
579
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
585
580
  let body;
@@ -597,7 +592,7 @@ exports.serializeAws_restJson1DescribeInputDeviceThumbnailCommand = serializeAws
597
592
  const serializeAws_restJson1DescribeInputSecurityGroupCommand = async (input, context) => {
598
593
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
599
594
  const headers = {};
600
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
595
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
601
596
  "/prod/inputSecurityGroups/{InputSecurityGroupId}";
602
597
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputSecurityGroupId", () => input.InputSecurityGroupId, "{InputSecurityGroupId}", false);
603
598
  let body;
@@ -615,7 +610,7 @@ exports.serializeAws_restJson1DescribeInputSecurityGroupCommand = serializeAws_r
615
610
  const serializeAws_restJson1DescribeMultiplexCommand = async (input, context) => {
616
611
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
617
612
  const headers = {};
618
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}";
613
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}";
619
614
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
620
615
  let body;
621
616
  return new protocol_http_1.HttpRequest({
@@ -632,7 +627,7 @@ exports.serializeAws_restJson1DescribeMultiplexCommand = serializeAws_restJson1D
632
627
  const serializeAws_restJson1DescribeMultiplexProgramCommand = async (input, context) => {
633
628
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
634
629
  const headers = {};
635
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
630
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
636
631
  "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}";
637
632
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
638
633
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
@@ -651,7 +646,7 @@ exports.serializeAws_restJson1DescribeMultiplexProgramCommand = serializeAws_res
651
646
  const serializeAws_restJson1DescribeOfferingCommand = async (input, context) => {
652
647
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
653
648
  const headers = {};
654
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings/{OfferingId}";
649
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings/{OfferingId}";
655
650
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OfferingId", () => input.OfferingId, "{OfferingId}", false);
656
651
  let body;
657
652
  return new protocol_http_1.HttpRequest({
@@ -668,7 +663,7 @@ exports.serializeAws_restJson1DescribeOfferingCommand = serializeAws_restJson1De
668
663
  const serializeAws_restJson1DescribeReservationCommand = async (input, context) => {
669
664
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
670
665
  const headers = {};
671
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}";
666
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}";
672
667
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReservationId", () => input.ReservationId, "{ReservationId}", false);
673
668
  let body;
674
669
  return new protocol_http_1.HttpRequest({
@@ -685,7 +680,7 @@ exports.serializeAws_restJson1DescribeReservationCommand = serializeAws_restJson
685
680
  const serializeAws_restJson1DescribeScheduleCommand = async (input, context) => {
686
681
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
687
682
  const headers = {};
688
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule";
683
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/schedule";
689
684
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
690
685
  const query = map({
691
686
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -707,7 +702,7 @@ exports.serializeAws_restJson1DescribeScheduleCommand = serializeAws_restJson1De
707
702
  const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
708
703
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
709
704
  const headers = {};
710
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels";
705
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels";
711
706
  const query = map({
712
707
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
713
708
  nextToken: [, input.NextToken],
@@ -728,7 +723,7 @@ exports.serializeAws_restJson1ListChannelsCommand = serializeAws_restJson1ListCh
728
723
  const serializeAws_restJson1ListInputDevicesCommand = async (input, context) => {
729
724
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
730
725
  const headers = {};
731
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices";
726
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices";
732
727
  const query = map({
733
728
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
734
729
  nextToken: [, input.NextToken],
@@ -749,7 +744,7 @@ exports.serializeAws_restJson1ListInputDevicesCommand = serializeAws_restJson1Li
749
744
  const serializeAws_restJson1ListInputDeviceTransfersCommand = async (input, context) => {
750
745
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
751
746
  const headers = {};
752
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDeviceTransfers";
747
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDeviceTransfers";
753
748
  const query = map({
754
749
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
755
750
  nextToken: [, input.NextToken],
@@ -771,7 +766,7 @@ exports.serializeAws_restJson1ListInputDeviceTransfersCommand = serializeAws_res
771
766
  const serializeAws_restJson1ListInputsCommand = async (input, context) => {
772
767
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
773
768
  const headers = {};
774
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs";
769
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs";
775
770
  const query = map({
776
771
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
777
772
  nextToken: [, input.NextToken],
@@ -792,7 +787,7 @@ exports.serializeAws_restJson1ListInputsCommand = serializeAws_restJson1ListInpu
792
787
  const serializeAws_restJson1ListInputSecurityGroupsCommand = async (input, context) => {
793
788
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
794
789
  const headers = {};
795
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputSecurityGroups";
790
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputSecurityGroups";
796
791
  const query = map({
797
792
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
798
793
  nextToken: [, input.NextToken],
@@ -813,7 +808,7 @@ exports.serializeAws_restJson1ListInputSecurityGroupsCommand = serializeAws_rest
813
808
  const serializeAws_restJson1ListMultiplexesCommand = async (input, context) => {
814
809
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
815
810
  const headers = {};
816
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes";
811
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes";
817
812
  const query = map({
818
813
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
819
814
  nextToken: [, input.NextToken],
@@ -834,7 +829,7 @@ exports.serializeAws_restJson1ListMultiplexesCommand = serializeAws_restJson1Lis
834
829
  const serializeAws_restJson1ListMultiplexProgramsCommand = async (input, context) => {
835
830
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
836
831
  const headers = {};
837
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/programs";
832
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/programs";
838
833
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
839
834
  const query = map({
840
835
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -856,7 +851,7 @@ exports.serializeAws_restJson1ListMultiplexProgramsCommand = serializeAws_restJs
856
851
  const serializeAws_restJson1ListOfferingsCommand = async (input, context) => {
857
852
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
858
853
  const headers = {};
859
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings";
854
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings";
860
855
  const query = map({
861
856
  channelClass: [, input.ChannelClass],
862
857
  channelConfiguration: [, input.ChannelConfiguration],
@@ -887,7 +882,7 @@ exports.serializeAws_restJson1ListOfferingsCommand = serializeAws_restJson1ListO
887
882
  const serializeAws_restJson1ListReservationsCommand = async (input, context) => {
888
883
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
889
884
  const headers = {};
890
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations";
885
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations";
891
886
  const query = map({
892
887
  channelClass: [, input.ChannelClass],
893
888
  codec: [, input.Codec],
@@ -916,7 +911,7 @@ exports.serializeAws_restJson1ListReservationsCommand = serializeAws_restJson1Li
916
911
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
917
912
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
918
913
  const headers = {};
919
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}";
914
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/tags/{ResourceArn}";
920
915
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
921
916
  let body;
922
917
  return new protocol_http_1.HttpRequest({
@@ -931,12 +926,11 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
931
926
  };
932
927
  exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
933
928
  const serializeAws_restJson1PurchaseOfferingCommand = async (input, context) => {
934
- var _a;
935
929
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
936
930
  const headers = {
937
931
  "content-type": "application/json",
938
932
  };
939
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings/{OfferingId}/purchase";
933
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/offerings/{OfferingId}/purchase";
940
934
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "OfferingId", () => input.OfferingId, "{OfferingId}", false);
941
935
  let body;
942
936
  body = JSON.stringify({
@@ -945,7 +939,7 @@ const serializeAws_restJson1PurchaseOfferingCommand = async (input, context) =>
945
939
  ...(input.RenewalSettings != null && {
946
940
  renewalSettings: serializeAws_restJson1RenewalSettings(input.RenewalSettings, context),
947
941
  }),
948
- requestId: (_a = input.RequestId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
942
+ requestId: input.RequestId ?? (0, uuid_1.v4)(),
949
943
  ...(input.Start != null && { start: input.Start }),
950
944
  ...(input.Tags != null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
951
945
  });
@@ -965,7 +959,7 @@ const serializeAws_restJson1RebootInputDeviceCommand = async (input, context) =>
965
959
  const headers = {
966
960
  "content-type": "application/json",
967
961
  };
968
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/reboot";
962
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/reboot";
969
963
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
970
964
  let body;
971
965
  body = JSON.stringify({
@@ -985,7 +979,7 @@ exports.serializeAws_restJson1RebootInputDeviceCommand = serializeAws_restJson1R
985
979
  const serializeAws_restJson1RejectInputDeviceTransferCommand = async (input, context) => {
986
980
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
987
981
  const headers = {};
988
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/reject";
982
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}/reject";
989
983
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
990
984
  let body;
991
985
  return new protocol_http_1.HttpRequest({
@@ -1002,7 +996,7 @@ exports.serializeAws_restJson1RejectInputDeviceTransferCommand = serializeAws_re
1002
996
  const serializeAws_restJson1StartChannelCommand = async (input, context) => {
1003
997
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1004
998
  const headers = {};
1005
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/start";
999
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/start";
1006
1000
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
1007
1001
  let body;
1008
1002
  return new protocol_http_1.HttpRequest({
@@ -1019,7 +1013,7 @@ exports.serializeAws_restJson1StartChannelCommand = serializeAws_restJson1StartC
1019
1013
  const serializeAws_restJson1StartInputDeviceMaintenanceWindowCommand = async (input, context) => {
1020
1014
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1021
1015
  const headers = {};
1022
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1016
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1023
1017
  "/prod/inputDevices/{InputDeviceId}/startInputDeviceMaintenanceWindow";
1024
1018
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
1025
1019
  let body;
@@ -1037,7 +1031,7 @@ exports.serializeAws_restJson1StartInputDeviceMaintenanceWindowCommand = seriali
1037
1031
  const serializeAws_restJson1StartMultiplexCommand = async (input, context) => {
1038
1032
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1039
1033
  const headers = {};
1040
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/start";
1034
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/start";
1041
1035
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
1042
1036
  let body;
1043
1037
  return new protocol_http_1.HttpRequest({
@@ -1054,7 +1048,7 @@ exports.serializeAws_restJson1StartMultiplexCommand = serializeAws_restJson1Star
1054
1048
  const serializeAws_restJson1StopChannelCommand = async (input, context) => {
1055
1049
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1056
1050
  const headers = {};
1057
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/stop";
1051
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/stop";
1058
1052
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
1059
1053
  let body;
1060
1054
  return new protocol_http_1.HttpRequest({
@@ -1071,7 +1065,7 @@ exports.serializeAws_restJson1StopChannelCommand = serializeAws_restJson1StopCha
1071
1065
  const serializeAws_restJson1StopMultiplexCommand = async (input, context) => {
1072
1066
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1073
1067
  const headers = {};
1074
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/stop";
1068
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}/stop";
1075
1069
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
1076
1070
  let body;
1077
1071
  return new protocol_http_1.HttpRequest({
@@ -1090,7 +1084,7 @@ const serializeAws_restJson1TransferInputDeviceCommand = async (input, context)
1090
1084
  const headers = {
1091
1085
  "content-type": "application/json",
1092
1086
  };
1093
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1087
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1094
1088
  "/prod/inputDevices/{InputDeviceId}/transfer";
1095
1089
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
1096
1090
  let body;
@@ -1115,7 +1109,7 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
1115
1109
  const headers = {
1116
1110
  "content-type": "application/json",
1117
1111
  };
1118
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}";
1112
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}";
1119
1113
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
1120
1114
  let body;
1121
1115
  body = JSON.stringify({
@@ -1157,7 +1151,7 @@ const serializeAws_restJson1UpdateChannelClassCommand = async (input, context) =
1157
1151
  const headers = {
1158
1152
  "content-type": "application/json",
1159
1153
  };
1160
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/channelClass";
1154
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/channels/{ChannelId}/channelClass";
1161
1155
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelId", () => input.ChannelId, "{ChannelId}", false);
1162
1156
  let body;
1163
1157
  body = JSON.stringify({
@@ -1182,7 +1176,7 @@ const serializeAws_restJson1UpdateInputCommand = async (input, context) => {
1182
1176
  const headers = {
1183
1177
  "content-type": "application/json",
1184
1178
  };
1185
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}";
1179
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputs/{InputId}";
1186
1180
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputId", () => input.InputId, "{InputId}", false);
1187
1181
  let body;
1188
1182
  body = JSON.stringify({
@@ -1218,7 +1212,7 @@ const serializeAws_restJson1UpdateInputDeviceCommand = async (input, context) =>
1218
1212
  const headers = {
1219
1213
  "content-type": "application/json",
1220
1214
  };
1221
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}";
1215
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/inputDevices/{InputDeviceId}";
1222
1216
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputDeviceId", () => input.InputDeviceId, "{InputDeviceId}", false);
1223
1217
  let body;
1224
1218
  body = JSON.stringify({
@@ -1246,7 +1240,7 @@ const serializeAws_restJson1UpdateInputSecurityGroupCommand = async (input, cont
1246
1240
  const headers = {
1247
1241
  "content-type": "application/json",
1248
1242
  };
1249
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1243
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1250
1244
  "/prod/inputSecurityGroups/{InputSecurityGroupId}";
1251
1245
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "InputSecurityGroupId", () => input.InputSecurityGroupId, "{InputSecurityGroupId}", false);
1252
1246
  let body;
@@ -1272,7 +1266,7 @@ const serializeAws_restJson1UpdateMultiplexCommand = async (input, context) => {
1272
1266
  const headers = {
1273
1267
  "content-type": "application/json",
1274
1268
  };
1275
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}";
1269
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/multiplexes/{MultiplexId}";
1276
1270
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
1277
1271
  let body;
1278
1272
  body = JSON.stringify({
@@ -1297,7 +1291,7 @@ const serializeAws_restJson1UpdateMultiplexProgramCommand = async (input, contex
1297
1291
  const headers = {
1298
1292
  "content-type": "application/json",
1299
1293
  };
1300
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
1294
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1301
1295
  "/prod/multiplexes/{MultiplexId}/programs/{ProgramName}";
1302
1296
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MultiplexId", () => input.MultiplexId, "{MultiplexId}", false);
1303
1297
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
@@ -1323,7 +1317,7 @@ const serializeAws_restJson1UpdateReservationCommand = async (input, context) =>
1323
1317
  const headers = {
1324
1318
  "content-type": "application/json",
1325
1319
  };
1326
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}";
1320
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/prod/reservations/{ReservationId}";
1327
1321
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ReservationId", () => input.ReservationId, "{ReservationId}", false);
1328
1322
  let body;
1329
1323
  body = JSON.stringify({
@@ -10081,15 +10075,12 @@ const deserializeAws_restJson1WebvttDestinationSettings = (output, context) => {
10081
10075
  StyleControl: (0, smithy_client_1.expectString)(output.styleControl),
10082
10076
  };
10083
10077
  };
10084
- const deserializeMetadata = (output) => {
10085
- var _a, _b;
10086
- return ({
10087
- httpStatusCode: output.statusCode,
10088
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
10089
- extendedRequestId: output.headers["x-amz-id-2"],
10090
- cfId: output.headers["x-amz-cf-id"],
10091
- });
10092
- };
10078
+ const deserializeMetadata = (output) => ({
10079
+ httpStatusCode: output.statusCode,
10080
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
10081
+ extendedRequestId: output.headers["x-amz-id-2"],
10082
+ cfId: output.headers["x-amz-cf-id"],
10083
+ });
10093
10084
  const collectBody = (streamBody = new Uint8Array(), context) => {
10094
10085
  if (streamBody instanceof Uint8Array) {
10095
10086
  return Promise.resolve(streamBody);
@@ -10109,9 +10100,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
10109
10100
  return {};
10110
10101
  });
10111
10102
  const parseErrorBody = async (errorBody, context) => {
10112
- var _a;
10113
10103
  const value = await parseBody(errorBody, context);
10114
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
10104
+ value.message = value.message ?? value.Message;
10115
10105
  return value;
10116
10106
  };
10117
10107
  const loadRestJsonErrorCode = (output, data) => {
@@ -17,7 +17,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
17
  const smithy_client_1 = require("@aws-sdk/smithy-client");
18
18
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
21
20
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
22
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
23
22
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -26,22 +25,23 @@ const getRuntimeConfig = (config) => {
26
25
  ...config,
27
26
  runtime: "browser",
28
27
  defaultsMode,
29
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
30
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
31
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
32
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
33
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
35
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
36
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
37
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
38
- sdkStreamMixin: (_k = config === null || config === void 0 ? void 0 : config.sdkStreamMixin) !== null && _k !== void 0 ? _k : util_stream_browser_1.sdkStreamMixin,
39
- sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : sha256_browser_1.Sha256,
40
- streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : fetch_http_handler_1.streamCollector,
41
- useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
42
- useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
43
- utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.fromUtf8,
44
- utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_browser_1.toUtf8,
28
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
29
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
30
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
31
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
33
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
34
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
35
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
36
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
37
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
38
+ sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_browser_1.sdkStreamMixin,
39
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
40
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
41
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
42
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
43
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
44
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
45
45
  };
46
46
  };
47
47
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -20,7 +20,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
20
20
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
21
21
  const smithy_client_2 = require("@aws-sdk/smithy-client");
22
22
  const getRuntimeConfig = (config) => {
23
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
24
23
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
25
24
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
26
25
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -30,25 +29,27 @@ const getRuntimeConfig = (config) => {
30
29
  ...config,
31
30
  runtime: "node",
32
31
  defaultsMode,
33
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
34
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
35
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
36
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
37
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
38
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
39
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
40
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
41
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
42
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
43
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
44
- }),
45
- sdkStreamMixin: (_k = config === null || config === void 0 ? void 0 : config.sdkStreamMixin) !== null && _k !== void 0 ? _k : util_stream_node_1.sdkStreamMixin,
46
- sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, "sha256"),
47
- streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector,
48
- useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
49
- useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
50
- utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.fromUtf8,
51
- utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.toUtf8,
32
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
33
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
34
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
35
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
37
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
38
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
39
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
40
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
41
+ retryMode: config?.retryMode ??
42
+ (0, node_config_provider_1.loadConfig)({
43
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
44
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
45
+ }),
46
+ sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_node_1.sdkStreamMixin,
47
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
48
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
49
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
50
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
51
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
52
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
52
53
  };
53
54
  };
54
55
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
- const getRuntimeConfig = (config) => {
7
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2017-10-14",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "MediaLive",
14
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
- });
16
- };
6
+ const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2017-10-14",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "MediaLive",
12
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
13
+ });
17
14
  exports.getRuntimeConfig = getRuntimeConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-medialive",
3
3
  "description": "AWS SDK for JavaScript Medialive Client for Node.js, Browser and React Native",
4
- "version": "3.200.0",
4
+ "version": "3.202.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,48 +19,48 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.200.0",
23
- "@aws-sdk/config-resolver": "3.200.0",
24
- "@aws-sdk/credential-provider-node": "3.200.0",
25
- "@aws-sdk/fetch-http-handler": "3.200.0",
26
- "@aws-sdk/hash-node": "3.200.0",
27
- "@aws-sdk/invalid-dependency": "3.200.0",
28
- "@aws-sdk/middleware-content-length": "3.200.0",
29
- "@aws-sdk/middleware-endpoint": "3.200.0",
30
- "@aws-sdk/middleware-host-header": "3.200.0",
31
- "@aws-sdk/middleware-logger": "3.200.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.200.0",
33
- "@aws-sdk/middleware-retry": "3.200.0",
34
- "@aws-sdk/middleware-serde": "3.200.0",
35
- "@aws-sdk/middleware-signing": "3.200.0",
36
- "@aws-sdk/middleware-stack": "3.200.0",
37
- "@aws-sdk/middleware-user-agent": "3.200.0",
38
- "@aws-sdk/node-config-provider": "3.200.0",
39
- "@aws-sdk/node-http-handler": "3.200.0",
40
- "@aws-sdk/protocol-http": "3.200.0",
41
- "@aws-sdk/smithy-client": "3.200.0",
42
- "@aws-sdk/types": "3.200.0",
43
- "@aws-sdk/url-parser": "3.200.0",
22
+ "@aws-sdk/client-sts": "3.202.0",
23
+ "@aws-sdk/config-resolver": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.202.0",
25
+ "@aws-sdk/fetch-http-handler": "3.201.0",
26
+ "@aws-sdk/hash-node": "3.201.0",
27
+ "@aws-sdk/invalid-dependency": "3.201.0",
28
+ "@aws-sdk/middleware-content-length": "3.201.0",
29
+ "@aws-sdk/middleware-endpoint": "3.201.0",
30
+ "@aws-sdk/middleware-host-header": "3.201.0",
31
+ "@aws-sdk/middleware-logger": "3.201.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
33
+ "@aws-sdk/middleware-retry": "3.201.0",
34
+ "@aws-sdk/middleware-serde": "3.201.0",
35
+ "@aws-sdk/middleware-signing": "3.201.0",
36
+ "@aws-sdk/middleware-stack": "3.201.0",
37
+ "@aws-sdk/middleware-user-agent": "3.201.0",
38
+ "@aws-sdk/node-config-provider": "3.201.0",
39
+ "@aws-sdk/node-http-handler": "3.201.0",
40
+ "@aws-sdk/protocol-http": "3.201.0",
41
+ "@aws-sdk/smithy-client": "3.201.0",
42
+ "@aws-sdk/types": "3.201.0",
43
+ "@aws-sdk/url-parser": "3.201.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
- "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-base64-node": "3.201.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
- "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.200.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.200.0",
50
- "@aws-sdk/util-endpoints": "3.200.0",
51
- "@aws-sdk/util-stream-browser": "3.200.0",
52
- "@aws-sdk/util-stream-node": "3.200.0",
53
- "@aws-sdk/util-user-agent-browser": "3.200.0",
54
- "@aws-sdk/util-user-agent-node": "3.200.0",
47
+ "@aws-sdk/util-body-length-node": "3.201.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.202.0",
51
+ "@aws-sdk/util-stream-browser": "3.201.0",
52
+ "@aws-sdk/util-stream-node": "3.201.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
54
+ "@aws-sdk/util-user-agent-node": "3.201.0",
55
55
  "@aws-sdk/util-utf8-browser": "3.188.0",
56
- "@aws-sdk/util-utf8-node": "3.199.0",
57
- "@aws-sdk/util-waiter": "3.200.0",
56
+ "@aws-sdk/util-utf8-node": "3.201.0",
57
+ "@aws-sdk/util-waiter": "3.201.0",
58
58
  "tslib": "^2.3.1",
59
59
  "uuid": "^8.3.2"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
63
- "@tsconfig/recommended": "1.0.1",
63
+ "@tsconfig/node14": "1.0.3",
64
64
  "@types/node": "^12.7.5",
65
65
  "@types/uuid": "^8.3.0",
66
66
  "concurrently": "7.0.0",
@@ -75,7 +75,7 @@
75
75
  }
76
76
  },
77
77
  "engines": {
78
- "node": ">=12.0.0"
78
+ "node": ">=14.0.0"
79
79
  },
80
80
  "typesVersions": {
81
81
  "<4.0": {