@aws-sdk/client-mediatailor 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-mediatailor
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-mediatailor
@@ -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: "mediatailor",
11
10
  };
12
11
  };
@@ -11,7 +11,7 @@ const serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration";
14
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/playbackConfiguration";
15
15
  let body;
16
16
  body = JSON.stringify({
17
17
  ...(input.PercentEnabled != null && { PercentEnabled: input.PercentEnabled }),
@@ -33,7 +33,7 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
33
33
  const headers = {
34
34
  "content-type": "application/json",
35
35
  };
36
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
36
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
37
37
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
38
38
  let body;
39
39
  body = JSON.stringify({
@@ -59,7 +59,7 @@ const serializeAws_restJson1CreateLiveSourceCommand = async (input, context) =>
59
59
  const headers = {
60
60
  "content-type": "application/json",
61
61
  };
62
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
62
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
63
63
  "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
64
64
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
65
65
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
@@ -86,7 +86,7 @@ const serializeAws_restJson1CreatePrefetchScheduleCommand = async (input, contex
86
86
  const headers = {
87
87
  "content-type": "application/json",
88
88
  };
89
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
89
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
90
90
  "/prefetchSchedule/{PlaybackConfigurationName}/{Name}";
91
91
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
92
92
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
@@ -114,7 +114,7 @@ const serializeAws_restJson1CreateProgramCommand = async (input, context) => {
114
114
  const headers = {
115
115
  "content-type": "application/json",
116
116
  };
117
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
117
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
118
118
  "/channel/{ChannelName}/program/{ProgramName}";
119
119
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
120
120
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
@@ -144,7 +144,7 @@ const serializeAws_restJson1CreateSourceLocationCommand = async (input, context)
144
144
  const headers = {
145
145
  "content-type": "application/json",
146
146
  };
147
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
147
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
148
148
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
149
149
  let body;
150
150
  body = JSON.stringify({
@@ -178,7 +178,7 @@ const serializeAws_restJson1CreateVodSourceCommand = async (input, context) => {
178
178
  const headers = {
179
179
  "content-type": "application/json",
180
180
  };
181
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
181
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
182
182
  "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
183
183
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
184
184
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
@@ -203,7 +203,7 @@ exports.serializeAws_restJson1CreateVodSourceCommand = serializeAws_restJson1Cre
203
203
  const serializeAws_restJson1DeleteChannelCommand = async (input, context) => {
204
204
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
205
205
  const headers = {};
206
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
206
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
207
207
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
208
208
  let body;
209
209
  return new protocol_http_1.HttpRequest({
@@ -220,7 +220,7 @@ exports.serializeAws_restJson1DeleteChannelCommand = serializeAws_restJson1Delet
220
220
  const serializeAws_restJson1DeleteChannelPolicyCommand = async (input, context) => {
221
221
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
222
222
  const headers = {};
223
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
223
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
224
224
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
225
225
  let body;
226
226
  return new protocol_http_1.HttpRequest({
@@ -237,7 +237,7 @@ exports.serializeAws_restJson1DeleteChannelPolicyCommand = serializeAws_restJson
237
237
  const serializeAws_restJson1DeleteLiveSourceCommand = async (input, context) => {
238
238
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
239
239
  const headers = {};
240
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
240
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
241
241
  "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
242
242
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
243
243
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
@@ -256,7 +256,7 @@ exports.serializeAws_restJson1DeleteLiveSourceCommand = serializeAws_restJson1De
256
256
  const serializeAws_restJson1DeletePlaybackConfigurationCommand = async (input, context) => {
257
257
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
258
258
  const headers = {};
259
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}";
259
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}";
260
260
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
261
261
  let body;
262
262
  return new protocol_http_1.HttpRequest({
@@ -273,7 +273,7 @@ exports.serializeAws_restJson1DeletePlaybackConfigurationCommand = serializeAws_
273
273
  const serializeAws_restJson1DeletePrefetchScheduleCommand = async (input, context) => {
274
274
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
275
275
  const headers = {};
276
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
276
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
277
277
  "/prefetchSchedule/{PlaybackConfigurationName}/{Name}";
278
278
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
279
279
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
@@ -292,7 +292,7 @@ exports.serializeAws_restJson1DeletePrefetchScheduleCommand = serializeAws_restJ
292
292
  const serializeAws_restJson1DeleteProgramCommand = async (input, context) => {
293
293
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
294
294
  const headers = {};
295
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
295
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
296
296
  "/channel/{ChannelName}/program/{ProgramName}";
297
297
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
298
298
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
@@ -311,7 +311,7 @@ exports.serializeAws_restJson1DeleteProgramCommand = serializeAws_restJson1Delet
311
311
  const serializeAws_restJson1DeleteSourceLocationCommand = async (input, context) => {
312
312
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
313
313
  const headers = {};
314
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
314
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
315
315
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
316
316
  let body;
317
317
  return new protocol_http_1.HttpRequest({
@@ -328,7 +328,7 @@ exports.serializeAws_restJson1DeleteSourceLocationCommand = serializeAws_restJso
328
328
  const serializeAws_restJson1DeleteVodSourceCommand = async (input, context) => {
329
329
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
330
330
  const headers = {};
331
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
331
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
332
332
  "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
333
333
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
334
334
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
@@ -347,7 +347,7 @@ exports.serializeAws_restJson1DeleteVodSourceCommand = serializeAws_restJson1Del
347
347
  const serializeAws_restJson1DescribeChannelCommand = async (input, context) => {
348
348
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
349
349
  const headers = {};
350
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
350
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
351
351
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
352
352
  let body;
353
353
  return new protocol_http_1.HttpRequest({
@@ -364,7 +364,7 @@ exports.serializeAws_restJson1DescribeChannelCommand = serializeAws_restJson1Des
364
364
  const serializeAws_restJson1DescribeLiveSourceCommand = async (input, context) => {
365
365
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
366
366
  const headers = {};
367
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
367
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
368
368
  "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
369
369
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
370
370
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
@@ -383,7 +383,7 @@ exports.serializeAws_restJson1DescribeLiveSourceCommand = serializeAws_restJson1
383
383
  const serializeAws_restJson1DescribeProgramCommand = async (input, context) => {
384
384
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
385
385
  const headers = {};
386
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
386
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
387
387
  "/channel/{ChannelName}/program/{ProgramName}";
388
388
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
389
389
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ProgramName", () => input.ProgramName, "{ProgramName}", false);
@@ -402,7 +402,7 @@ exports.serializeAws_restJson1DescribeProgramCommand = serializeAws_restJson1Des
402
402
  const serializeAws_restJson1DescribeSourceLocationCommand = async (input, context) => {
403
403
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
404
404
  const headers = {};
405
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
405
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
406
406
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
407
407
  let body;
408
408
  return new protocol_http_1.HttpRequest({
@@ -419,7 +419,7 @@ exports.serializeAws_restJson1DescribeSourceLocationCommand = serializeAws_restJ
419
419
  const serializeAws_restJson1DescribeVodSourceCommand = async (input, context) => {
420
420
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
421
421
  const headers = {};
422
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
422
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
423
423
  "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
424
424
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
425
425
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
@@ -438,7 +438,7 @@ exports.serializeAws_restJson1DescribeVodSourceCommand = serializeAws_restJson1D
438
438
  const serializeAws_restJson1GetChannelPolicyCommand = async (input, context) => {
439
439
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
440
440
  const headers = {};
441
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
441
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
442
442
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
443
443
  let body;
444
444
  return new protocol_http_1.HttpRequest({
@@ -455,7 +455,7 @@ exports.serializeAws_restJson1GetChannelPolicyCommand = serializeAws_restJson1Ge
455
455
  const serializeAws_restJson1GetChannelScheduleCommand = async (input, context) => {
456
456
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
457
457
  const headers = {};
458
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/schedule";
458
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/schedule";
459
459
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
460
460
  const query = map({
461
461
  durationMinutes: [, input.DurationMinutes],
@@ -478,7 +478,7 @@ exports.serializeAws_restJson1GetChannelScheduleCommand = serializeAws_restJson1
478
478
  const serializeAws_restJson1GetPlaybackConfigurationCommand = async (input, context) => {
479
479
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
480
480
  const headers = {};
481
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}";
481
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration/{Name}";
482
482
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
483
483
  let body;
484
484
  return new protocol_http_1.HttpRequest({
@@ -495,7 +495,7 @@ exports.serializeAws_restJson1GetPlaybackConfigurationCommand = serializeAws_res
495
495
  const serializeAws_restJson1GetPrefetchScheduleCommand = async (input, context) => {
496
496
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
497
497
  const headers = {};
498
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
498
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
499
499
  "/prefetchSchedule/{PlaybackConfigurationName}/{Name}";
500
500
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
501
501
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
@@ -514,7 +514,7 @@ exports.serializeAws_restJson1GetPrefetchScheduleCommand = serializeAws_restJson
514
514
  const serializeAws_restJson1ListAlertsCommand = async (input, context) => {
515
515
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
516
516
  const headers = {};
517
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/alerts";
517
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alerts";
518
518
  const query = map({
519
519
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
520
520
  nextToken: [, input.NextToken],
@@ -536,7 +536,7 @@ exports.serializeAws_restJson1ListAlertsCommand = serializeAws_restJson1ListAler
536
536
  const serializeAws_restJson1ListChannelsCommand = async (input, context) => {
537
537
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
538
538
  const headers = {};
539
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
539
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
540
540
  const query = map({
541
541
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
542
542
  nextToken: [, input.NextToken],
@@ -557,7 +557,7 @@ exports.serializeAws_restJson1ListChannelsCommand = serializeAws_restJson1ListCh
557
557
  const serializeAws_restJson1ListLiveSourcesCommand = async (input, context) => {
558
558
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
559
559
  const headers = {};
560
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
560
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
561
561
  "/sourceLocation/{SourceLocationName}/liveSources";
562
562
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
563
563
  const query = map({
@@ -580,7 +580,7 @@ exports.serializeAws_restJson1ListLiveSourcesCommand = serializeAws_restJson1Lis
580
580
  const serializeAws_restJson1ListPlaybackConfigurationsCommand = async (input, context) => {
581
581
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
582
582
  const headers = {};
583
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfigurations";
583
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfigurations";
584
584
  const query = map({
585
585
  MaxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
586
586
  NextToken: [, input.NextToken],
@@ -603,7 +603,7 @@ const serializeAws_restJson1ListPrefetchSchedulesCommand = async (input, context
603
603
  const headers = {
604
604
  "content-type": "application/json",
605
605
  };
606
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
606
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
607
607
  "/prefetchSchedule/{PlaybackConfigurationName}";
608
608
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaybackConfigurationName", () => input.PlaybackConfigurationName, "{PlaybackConfigurationName}", false);
609
609
  let body;
@@ -626,7 +626,7 @@ exports.serializeAws_restJson1ListPrefetchSchedulesCommand = serializeAws_restJs
626
626
  const serializeAws_restJson1ListSourceLocationsCommand = async (input, context) => {
627
627
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
628
628
  const headers = {};
629
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocations";
629
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocations";
630
630
  const query = map({
631
631
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
632
632
  nextToken: [, input.NextToken],
@@ -647,7 +647,7 @@ exports.serializeAws_restJson1ListSourceLocationsCommand = serializeAws_restJson
647
647
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
648
648
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
649
649
  const headers = {};
650
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
650
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
651
651
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
652
652
  let body;
653
653
  return new protocol_http_1.HttpRequest({
@@ -664,7 +664,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
664
664
  const serializeAws_restJson1ListVodSourcesCommand = async (input, context) => {
665
665
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
666
666
  const headers = {};
667
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
667
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
668
668
  "/sourceLocation/{SourceLocationName}/vodSources";
669
669
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
670
670
  const query = map({
@@ -689,7 +689,7 @@ const serializeAws_restJson1PutChannelPolicyCommand = async (input, context) =>
689
689
  const headers = {
690
690
  "content-type": "application/json",
691
691
  };
692
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
692
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/policy";
693
693
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
694
694
  let body;
695
695
  body = JSON.stringify({
@@ -711,7 +711,7 @@ const serializeAws_restJson1PutPlaybackConfigurationCommand = async (input, cont
711
711
  const headers = {
712
712
  "content-type": "application/json",
713
713
  };
714
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration";
714
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/playbackConfiguration";
715
715
  let body;
716
716
  body = JSON.stringify({
717
717
  ...(input.AdDecisionServerUrl != null && { AdDecisionServerUrl: input.AdDecisionServerUrl }),
@@ -757,7 +757,7 @@ exports.serializeAws_restJson1PutPlaybackConfigurationCommand = serializeAws_res
757
757
  const serializeAws_restJson1StartChannelCommand = async (input, context) => {
758
758
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
759
759
  const headers = {};
760
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/start";
760
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/start";
761
761
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
762
762
  let body;
763
763
  return new protocol_http_1.HttpRequest({
@@ -774,7 +774,7 @@ exports.serializeAws_restJson1StartChannelCommand = serializeAws_restJson1StartC
774
774
  const serializeAws_restJson1StopChannelCommand = async (input, context) => {
775
775
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
776
776
  const headers = {};
777
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/stop";
777
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}/stop";
778
778
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
779
779
  let body;
780
780
  return new protocol_http_1.HttpRequest({
@@ -793,7 +793,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
793
793
  const headers = {
794
794
  "content-type": "application/json",
795
795
  };
796
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
796
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
797
797
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
798
798
  let body;
799
799
  body = JSON.stringify({
@@ -813,7 +813,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
813
813
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
814
814
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
815
815
  const headers = {};
816
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
816
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
817
817
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
818
818
  const query = map({
819
819
  tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
@@ -836,7 +836,7 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
836
836
  const headers = {
837
837
  "content-type": "application/json",
838
838
  };
839
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
839
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/channel/{ChannelName}";
840
840
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ChannelName", () => input.ChannelName, "{ChannelName}", false);
841
841
  let body;
842
842
  body = JSON.stringify({
@@ -859,7 +859,7 @@ const serializeAws_restJson1UpdateLiveSourceCommand = async (input, context) =>
859
859
  const headers = {
860
860
  "content-type": "application/json",
861
861
  };
862
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
862
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
863
863
  "/sourceLocation/{SourceLocationName}/liveSource/{LiveSourceName}";
864
864
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "LiveSourceName", () => input.LiveSourceName, "{LiveSourceName}", false);
865
865
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
@@ -885,7 +885,7 @@ const serializeAws_restJson1UpdateSourceLocationCommand = async (input, context)
885
885
  const headers = {
886
886
  "content-type": "application/json",
887
887
  };
888
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
888
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sourceLocation/{SourceLocationName}";
889
889
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
890
890
  let body;
891
891
  body = JSON.stringify({
@@ -918,7 +918,7 @@ const serializeAws_restJson1UpdateVodSourceCommand = async (input, context) => {
918
918
  const headers = {
919
919
  "content-type": "application/json",
920
920
  };
921
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
921
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
922
922
  "/sourceLocation/{SourceLocationName}/vodSource/{VodSourceName}";
923
923
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SourceLocationName", () => input.SourceLocationName, "{SourceLocationName}", false);
924
924
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "VodSourceName", () => input.VodSourceName, "{VodSourceName}", false);
@@ -3388,15 +3388,12 @@ const deserializeAws_restJson1VodSource = (output, context) => {
3388
3388
  VodSourceName: (0, smithy_client_1.expectString)(output.VodSourceName),
3389
3389
  };
3390
3390
  };
3391
- const deserializeMetadata = (output) => {
3392
- var _a, _b;
3393
- return ({
3394
- httpStatusCode: output.statusCode,
3395
- 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"],
3396
- extendedRequestId: output.headers["x-amz-id-2"],
3397
- cfId: output.headers["x-amz-cf-id"],
3398
- });
3399
- };
3391
+ const deserializeMetadata = (output) => ({
3392
+ httpStatusCode: output.statusCode,
3393
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
3394
+ extendedRequestId: output.headers["x-amz-id-2"],
3395
+ cfId: output.headers["x-amz-cf-id"],
3396
+ });
3400
3397
  const collectBody = (streamBody = new Uint8Array(), context) => {
3401
3398
  if (streamBody instanceof Uint8Array) {
3402
3399
  return Promise.resolve(streamBody);
@@ -3416,9 +3413,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
3416
3413
  return {};
3417
3414
  });
3418
3415
  const parseErrorBody = async (errorBody, context) => {
3419
- var _a;
3420
3416
  const value = await parseBody(errorBody, context);
3421
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
3417
+ value.message = value.message ?? value.Message;
3422
3418
  return value;
3423
3419
  };
3424
3420
  const loadRestJsonErrorCode = (output, data) => {
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
21
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
25
24
  ...config,
26
25
  runtime: "browser",
27
26
  defaultsMode,
28
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- 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 }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
- 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),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
27
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
43
43
  };
44
44
  };
45
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const smithy_client_2 = require("@aws-sdk/smithy-client");
21
21
  const getRuntimeConfig = (config) => {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
22
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
29
28
  ...config,
30
29
  runtime: "node",
31
30
  defaultsMode,
32
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- 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),
36
- 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 }),
37
- 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),
38
- 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),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
31
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ (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
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
49
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
50
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
50
51
  };
51
52
  };
52
53
  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: "2018-04-23",
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 : "MediaTailor",
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: "2018-04-23",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "MediaTailor",
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-mediatailor",
3
3
  "description": "AWS SDK for JavaScript Mediatailor 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,44 +19,44 @@
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-user-agent-browser": "3.200.0",
52
- "@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-user-agent-browser": "3.201.0",
52
+ "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.199.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
55
  "tslib": "^2.3.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
59
- "@tsconfig/recommended": "1.0.1",
59
+ "@tsconfig/node14": "1.0.3",
60
60
  "@types/node": "^12.7.5",
61
61
  "concurrently": "7.0.0",
62
62
  "downlevel-dts": "0.10.1",
@@ -70,7 +70,7 @@
70
70
  }
71
71
  },
72
72
  "engines": {
73
- "node": ">=12.0.0"
73
+ "node": ">=14.0.0"
74
74
  },
75
75
  "typesVersions": {
76
76
  "<4.0": {