@aws-sdk/client-mediapackage 3.282.0 → 3.287.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListChannels = void 0;
4
4
  const ListChannelsCommand_1 = require("../commands/ListChannelsCommand");
5
- const MediaPackage_1 = require("../MediaPackage");
6
5
  const MediaPackageClient_1 = require("../MediaPackageClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListChannelsCommand_1.ListChannelsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listChannels(input, ...args);
12
- };
13
9
  async function* paginateListChannels(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListChannels(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof MediaPackage_1.MediaPackage) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof MediaPackageClient_1.MediaPackageClient) {
16
+ if (config.client instanceof MediaPackageClient_1.MediaPackageClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListHarvestJobs = void 0;
4
4
  const ListHarvestJobsCommand_1 = require("../commands/ListHarvestJobsCommand");
5
- const MediaPackage_1 = require("../MediaPackage");
6
5
  const MediaPackageClient_1 = require("../MediaPackageClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListHarvestJobsCommand_1.ListHarvestJobsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listHarvestJobs(input, ...args);
12
- };
13
9
  async function* paginateListHarvestJobs(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListHarvestJobs(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof MediaPackage_1.MediaPackage) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof MediaPackageClient_1.MediaPackageClient) {
16
+ if (config.client instanceof MediaPackageClient_1.MediaPackageClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListOriginEndpoints = void 0;
4
4
  const ListOriginEndpointsCommand_1 = require("../commands/ListOriginEndpointsCommand");
5
- const MediaPackage_1 = require("../MediaPackage");
6
5
  const MediaPackageClient_1 = require("../MediaPackageClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListOriginEndpointsCommand_1.ListOriginEndpointsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listOriginEndpoints(input, ...args);
12
- };
13
9
  async function* paginateListOriginEndpoints(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListOriginEndpoints(config, input, ...additionalArgument
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof MediaPackage_1.MediaPackage) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof MediaPackageClient_1.MediaPackageClient) {
16
+ if (config.client instanceof MediaPackageClient_1.MediaPackageClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -439,6 +439,9 @@ const deserializeAws_restJson1ConfigureLogsCommand = async (output, context) =>
439
439
  if (data.arn != null) {
440
440
  contents.Arn = (0, smithy_client_1.expectString)(data.arn);
441
441
  }
442
+ if (data.createdAt != null) {
443
+ contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
444
+ }
442
445
  if (data.description != null) {
443
446
  contents.Description = (0, smithy_client_1.expectString)(data.description);
444
447
  }
@@ -506,6 +509,9 @@ const deserializeAws_restJson1CreateChannelCommand = async (output, context) =>
506
509
  if (data.arn != null) {
507
510
  contents.Arn = (0, smithy_client_1.expectString)(data.arn);
508
511
  }
512
+ if (data.createdAt != null) {
513
+ contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
514
+ }
509
515
  if (data.description != null) {
510
516
  contents.Description = (0, smithy_client_1.expectString)(data.description);
511
517
  }
@@ -655,6 +661,9 @@ const deserializeAws_restJson1CreateOriginEndpointCommand = async (output, conte
655
661
  if (data.cmafPackage != null) {
656
662
  contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
657
663
  }
664
+ if (data.createdAt != null) {
665
+ contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
666
+ }
658
667
  if (data.dashPackage != null) {
659
668
  contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
660
669
  }
@@ -832,6 +841,9 @@ const deserializeAws_restJson1DescribeChannelCommand = async (output, context) =
832
841
  if (data.arn != null) {
833
842
  contents.Arn = (0, smithy_client_1.expectString)(data.arn);
834
843
  }
844
+ if (data.createdAt != null) {
845
+ contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
846
+ }
835
847
  if (data.description != null) {
836
848
  contents.Description = (0, smithy_client_1.expectString)(data.description);
837
849
  }
@@ -981,6 +993,9 @@ const deserializeAws_restJson1DescribeOriginEndpointCommand = async (output, con
981
993
  if (data.cmafPackage != null) {
982
994
  contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
983
995
  }
996
+ if (data.createdAt != null) {
997
+ contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
998
+ }
984
999
  if (data.dashPackage != null) {
985
1000
  contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
986
1001
  }
@@ -1250,6 +1265,9 @@ const deserializeAws_restJson1RotateChannelCredentialsCommand = async (output, c
1250
1265
  if (data.arn != null) {
1251
1266
  contents.Arn = (0, smithy_client_1.expectString)(data.arn);
1252
1267
  }
1268
+ if (data.createdAt != null) {
1269
+ contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
1270
+ }
1253
1271
  if (data.description != null) {
1254
1272
  contents.Description = (0, smithy_client_1.expectString)(data.description);
1255
1273
  }
@@ -1317,6 +1335,9 @@ const deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = async (ou
1317
1335
  if (data.arn != null) {
1318
1336
  contents.Arn = (0, smithy_client_1.expectString)(data.arn);
1319
1337
  }
1338
+ if (data.createdAt != null) {
1339
+ contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
1340
+ }
1320
1341
  if (data.description != null) {
1321
1342
  contents.Description = (0, smithy_client_1.expectString)(data.description);
1322
1343
  }
@@ -1434,6 +1455,9 @@ const deserializeAws_restJson1UpdateChannelCommand = async (output, context) =>
1434
1455
  if (data.arn != null) {
1435
1456
  contents.Arn = (0, smithy_client_1.expectString)(data.arn);
1436
1457
  }
1458
+ if (data.createdAt != null) {
1459
+ contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
1460
+ }
1437
1461
  if (data.description != null) {
1438
1462
  contents.Description = (0, smithy_client_1.expectString)(data.description);
1439
1463
  }
@@ -1510,6 +1534,9 @@ const deserializeAws_restJson1UpdateOriginEndpointCommand = async (output, conte
1510
1534
  if (data.cmafPackage != null) {
1511
1535
  contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
1512
1536
  }
1537
+ if (data.createdAt != null) {
1538
+ contents.CreatedAt = (0, smithy_client_1.expectString)(data.createdAt);
1539
+ }
1513
1540
  if (data.dashPackage != null) {
1514
1541
  contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
1515
1542
  }
@@ -1981,6 +2008,7 @@ const deserializeAws_restJson1Authorization = (output, context) => {
1981
2008
  const deserializeAws_restJson1Channel = (output, context) => {
1982
2009
  return {
1983
2010
  Arn: (0, smithy_client_1.expectString)(output.arn),
2011
+ CreatedAt: (0, smithy_client_1.expectString)(output.createdAt),
1984
2012
  Description: (0, smithy_client_1.expectString)(output.description),
1985
2013
  EgressAccessLogs: output.egressAccessLogs != null
1986
2014
  ? deserializeAws_restJson1EgressAccessLogs(output.egressAccessLogs, context)
@@ -2158,6 +2186,7 @@ const deserializeAws_restJson1OriginEndpoint = (output, context) => {
2158
2186
  Authorization: output.authorization != null ? deserializeAws_restJson1Authorization(output.authorization, context) : undefined,
2159
2187
  ChannelId: (0, smithy_client_1.expectString)(output.channelId),
2160
2188
  CmafPackage: output.cmafPackage != null ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context) : undefined,
2189
+ CreatedAt: (0, smithy_client_1.expectString)(output.createdAt),
2161
2190
  DashPackage: output.dashPackage != null ? deserializeAws_restJson1DashPackage(output.dashPackage, context) : undefined,
2162
2191
  Description: (0, smithy_client_1.expectString)(output.description),
2163
2192
  HlsPackage: output.hlsPackage != null ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context) : undefined,
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -1,12 +1,8 @@
1
1
  import { ListChannelsCommand, } from "../commands/ListChannelsCommand";
2
- import { MediaPackage } from "../MediaPackage";
3
2
  import { MediaPackageClient } from "../MediaPackageClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListChannelsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listChannels(input, ...args);
9
- };
10
6
  export async function* paginateListChannels(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListChannels(config, input, ...additionalArgument
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof MediaPackage) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MediaPackageClient) {
13
+ if (config.client instanceof MediaPackageClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListHarvestJobsCommand, } from "../commands/ListHarvestJobsCommand";
2
- import { MediaPackage } from "../MediaPackage";
3
2
  import { MediaPackageClient } from "../MediaPackageClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListHarvestJobsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listHarvestJobs(input, ...args);
9
- };
10
6
  export async function* paginateListHarvestJobs(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListHarvestJobs(config, input, ...additionalArgum
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof MediaPackage) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MediaPackageClient) {
13
+ if (config.client instanceof MediaPackageClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListOriginEndpointsCommand, } from "../commands/ListOriginEndpointsCommand";
2
- import { MediaPackage } from "../MediaPackage";
3
2
  import { MediaPackageClient } from "../MediaPackageClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListOriginEndpointsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listOriginEndpoints(input, ...args);
9
- };
10
6
  export async function* paginateListOriginEndpoints(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListOriginEndpoints(config, input, ...additionalA
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof MediaPackage) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof MediaPackageClient) {
13
+ if (config.client instanceof MediaPackageClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -417,6 +417,9 @@ export const deserializeAws_restJson1ConfigureLogsCommand = async (output, conte
417
417
  if (data.arn != null) {
418
418
  contents.Arn = __expectString(data.arn);
419
419
  }
420
+ if (data.createdAt != null) {
421
+ contents.CreatedAt = __expectString(data.createdAt);
422
+ }
420
423
  if (data.description != null) {
421
424
  contents.Description = __expectString(data.description);
422
425
  }
@@ -483,6 +486,9 @@ export const deserializeAws_restJson1CreateChannelCommand = async (output, conte
483
486
  if (data.arn != null) {
484
487
  contents.Arn = __expectString(data.arn);
485
488
  }
489
+ if (data.createdAt != null) {
490
+ contents.CreatedAt = __expectString(data.createdAt);
491
+ }
486
492
  if (data.description != null) {
487
493
  contents.Description = __expectString(data.description);
488
494
  }
@@ -630,6 +636,9 @@ export const deserializeAws_restJson1CreateOriginEndpointCommand = async (output
630
636
  if (data.cmafPackage != null) {
631
637
  contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
632
638
  }
639
+ if (data.createdAt != null) {
640
+ contents.CreatedAt = __expectString(data.createdAt);
641
+ }
633
642
  if (data.dashPackage != null) {
634
643
  contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
635
644
  }
@@ -804,6 +813,9 @@ export const deserializeAws_restJson1DescribeChannelCommand = async (output, con
804
813
  if (data.arn != null) {
805
814
  contents.Arn = __expectString(data.arn);
806
815
  }
816
+ if (data.createdAt != null) {
817
+ contents.CreatedAt = __expectString(data.createdAt);
818
+ }
807
819
  if (data.description != null) {
808
820
  contents.Description = __expectString(data.description);
809
821
  }
@@ -951,6 +963,9 @@ export const deserializeAws_restJson1DescribeOriginEndpointCommand = async (outp
951
963
  if (data.cmafPackage != null) {
952
964
  contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
953
965
  }
966
+ if (data.createdAt != null) {
967
+ contents.CreatedAt = __expectString(data.createdAt);
968
+ }
954
969
  if (data.dashPackage != null) {
955
970
  contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
956
971
  }
@@ -1215,6 +1230,9 @@ export const deserializeAws_restJson1RotateChannelCredentialsCommand = async (ou
1215
1230
  if (data.arn != null) {
1216
1231
  contents.Arn = __expectString(data.arn);
1217
1232
  }
1233
+ if (data.createdAt != null) {
1234
+ contents.CreatedAt = __expectString(data.createdAt);
1235
+ }
1218
1236
  if (data.description != null) {
1219
1237
  contents.Description = __expectString(data.description);
1220
1238
  }
@@ -1281,6 +1299,9 @@ export const deserializeAws_restJson1RotateIngestEndpointCredentialsCommand = as
1281
1299
  if (data.arn != null) {
1282
1300
  contents.Arn = __expectString(data.arn);
1283
1301
  }
1302
+ if (data.createdAt != null) {
1303
+ contents.CreatedAt = __expectString(data.createdAt);
1304
+ }
1284
1305
  if (data.description != null) {
1285
1306
  contents.Description = __expectString(data.description);
1286
1307
  }
@@ -1395,6 +1416,9 @@ export const deserializeAws_restJson1UpdateChannelCommand = async (output, conte
1395
1416
  if (data.arn != null) {
1396
1417
  contents.Arn = __expectString(data.arn);
1397
1418
  }
1419
+ if (data.createdAt != null) {
1420
+ contents.CreatedAt = __expectString(data.createdAt);
1421
+ }
1398
1422
  if (data.description != null) {
1399
1423
  contents.Description = __expectString(data.description);
1400
1424
  }
@@ -1470,6 +1494,9 @@ export const deserializeAws_restJson1UpdateOriginEndpointCommand = async (output
1470
1494
  if (data.cmafPackage != null) {
1471
1495
  contents.CmafPackage = deserializeAws_restJson1CmafPackage(data.cmafPackage, context);
1472
1496
  }
1497
+ if (data.createdAt != null) {
1498
+ contents.CreatedAt = __expectString(data.createdAt);
1499
+ }
1473
1500
  if (data.dashPackage != null) {
1474
1501
  contents.DashPackage = deserializeAws_restJson1DashPackage(data.dashPackage, context);
1475
1502
  }
@@ -1940,6 +1967,7 @@ const deserializeAws_restJson1Authorization = (output, context) => {
1940
1967
  const deserializeAws_restJson1Channel = (output, context) => {
1941
1968
  return {
1942
1969
  Arn: __expectString(output.arn),
1970
+ CreatedAt: __expectString(output.createdAt),
1943
1971
  Description: __expectString(output.description),
1944
1972
  EgressAccessLogs: output.egressAccessLogs != null
1945
1973
  ? deserializeAws_restJson1EgressAccessLogs(output.egressAccessLogs, context)
@@ -2117,6 +2145,7 @@ const deserializeAws_restJson1OriginEndpoint = (output, context) => {
2117
2145
  Authorization: output.authorization != null ? deserializeAws_restJson1Authorization(output.authorization, context) : undefined,
2118
2146
  ChannelId: __expectString(output.channelId),
2119
2147
  CmafPackage: output.cmafPackage != null ? deserializeAws_restJson1CmafPackage(output.cmafPackage, context) : undefined,
2148
+ CreatedAt: __expectString(output.createdAt),
2120
2149
  DashPackage: output.dashPackage != null ? deserializeAws_restJson1DashPackage(output.dashPackage, context) : undefined,
2121
2150
  Description: __expectString(output.description),
2122
2151
  HlsPackage: output.hlsPackage != null ? deserializeAws_restJson1HlsPackage(output.hlsPackage, context) : undefined,
@@ -69,6 +69,10 @@ export interface Channel {
69
69
  * The Amazon Resource Name (ARN) assigned to the Channel.
70
70
  */
71
71
  Arn?: string;
72
+ /**
73
+ * The date and time the Channel was created.
74
+ */
75
+ CreatedAt?: string;
72
76
  /**
73
77
  * A short text description of the Channel.
74
78
  */
@@ -129,7 +133,7 @@ export interface HarvestJob {
129
133
  */
130
134
  ChannelId?: string;
131
135
  /**
132
- * The time the HarvestJob was submitted
136
+ * The date and time the HarvestJob was submitted.
133
137
  */
134
138
  CreatedAt?: string;
135
139
  /**
@@ -759,6 +763,10 @@ export interface OriginEndpoint {
759
763
  * A Common Media Application Format (CMAF) packaging configuration.
760
764
  */
761
765
  CmafPackage?: CmafPackage;
766
+ /**
767
+ * The date and time the OriginEndpoint was created.
768
+ */
769
+ CreatedAt?: string;
762
770
  /**
763
771
  * A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
764
772
  */
@@ -860,6 +868,10 @@ export interface ConfigureLogsResponse {
860
868
  * The Amazon Resource Name (ARN) assigned to the Channel.
861
869
  */
862
870
  Arn?: string;
871
+ /**
872
+ * The date and time the Channel was created.
873
+ */
874
+ CreatedAt?: string;
863
875
  /**
864
876
  * A short text description of the Channel.
865
877
  */
@@ -980,6 +992,10 @@ export interface CreateChannelResponse {
980
992
  * The Amazon Resource Name (ARN) assigned to the Channel.
981
993
  */
982
994
  Arn?: string;
995
+ /**
996
+ * The date and time the Channel was created.
997
+ */
998
+ CreatedAt?: string;
983
999
  /**
984
1000
  * A short text description of the Channel.
985
1001
  */
@@ -1042,7 +1058,7 @@ export interface CreateHarvestJobResponse {
1042
1058
  */
1043
1059
  ChannelId?: string;
1044
1060
  /**
1045
- * The time the HarvestJob was submitted
1061
+ * The date and time the HarvestJob was submitted.
1046
1062
  */
1047
1063
  CreatedAt?: string;
1048
1064
  /**
@@ -1158,6 +1174,10 @@ export interface CreateOriginEndpointResponse {
1158
1174
  * A Common Media Application Format (CMAF) packaging configuration.
1159
1175
  */
1160
1176
  CmafPackage?: CmafPackage;
1177
+ /**
1178
+ * The date and time the OriginEndpoint was created.
1179
+ */
1180
+ CreatedAt?: string;
1161
1181
  /**
1162
1182
  * A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
1163
1183
  */
@@ -1238,6 +1258,10 @@ export interface DescribeChannelResponse {
1238
1258
  * The Amazon Resource Name (ARN) assigned to the Channel.
1239
1259
  */
1240
1260
  Arn?: string;
1261
+ /**
1262
+ * The date and time the Channel was created.
1263
+ */
1264
+ CreatedAt?: string;
1241
1265
  /**
1242
1266
  * A short text description of the Channel.
1243
1267
  */
@@ -1279,7 +1303,7 @@ export interface DescribeHarvestJobResponse {
1279
1303
  */
1280
1304
  ChannelId?: string;
1281
1305
  /**
1282
- * The time the HarvestJob was submitted
1306
+ * The date and time the HarvestJob was submitted.
1283
1307
  */
1284
1308
  CreatedAt?: string;
1285
1309
  /**
@@ -1334,6 +1358,10 @@ export interface DescribeOriginEndpointResponse {
1334
1358
  * A Common Media Application Format (CMAF) packaging configuration.
1335
1359
  */
1336
1360
  CmafPackage?: CmafPackage;
1361
+ /**
1362
+ * The date and time the OriginEndpoint was created.
1363
+ */
1364
+ CreatedAt?: string;
1337
1365
  /**
1338
1366
  * A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
1339
1367
  */
@@ -1476,6 +1504,10 @@ export interface RotateChannelCredentialsResponse {
1476
1504
  * The Amazon Resource Name (ARN) assigned to the Channel.
1477
1505
  */
1478
1506
  Arn?: string;
1507
+ /**
1508
+ * The date and time the Channel was created.
1509
+ */
1510
+ CreatedAt?: string;
1479
1511
  /**
1480
1512
  * A short text description of the Channel.
1481
1513
  */
@@ -1516,6 +1548,10 @@ export interface RotateIngestEndpointCredentialsResponse {
1516
1548
  * The Amazon Resource Name (ARN) assigned to the Channel.
1517
1549
  */
1518
1550
  Arn?: string;
1551
+ /**
1552
+ * The date and time the Channel was created.
1553
+ */
1554
+ CreatedAt?: string;
1519
1555
  /**
1520
1556
  * A short text description of the Channel.
1521
1557
  */
@@ -1570,6 +1606,10 @@ export interface UpdateChannelResponse {
1570
1606
  * The Amazon Resource Name (ARN) assigned to the Channel.
1571
1607
  */
1572
1608
  Arn?: string;
1609
+ /**
1610
+ * The date and time the Channel was created.
1611
+ */
1612
+ CreatedAt?: string;
1573
1613
  /**
1574
1614
  * A short text description of the Channel.
1575
1615
  */
@@ -1669,6 +1709,10 @@ export interface UpdateOriginEndpointResponse {
1669
1709
  * A Common Media Application Format (CMAF) packaging configuration.
1670
1710
  */
1671
1711
  CmafPackage?: CmafPackage;
1712
+ /**
1713
+ * The date and time the OriginEndpoint was created.
1714
+ */
1715
+ CreatedAt?: string;
1672
1716
  /**
1673
1717
  * A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
1674
1718
  */
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { MediaPackage } from "../MediaPackage";
3
2
  import { MediaPackageClient } from "../MediaPackageClient";
4
3
  export interface MediaPackagePaginationConfiguration extends PaginationConfiguration {
5
- client: MediaPackage | MediaPackageClient;
4
+ client: MediaPackageClient;
6
5
  }
@@ -30,6 +30,7 @@ export interface IngressAccessLogs {
30
30
  }
31
31
  export interface Channel {
32
32
  Arn?: string;
33
+ CreatedAt?: string;
33
34
  Description?: string;
34
35
  EgressAccessLogs?: EgressAccessLogs;
35
36
  HlsIngest?: HlsIngest;
@@ -246,6 +247,7 @@ export interface OriginEndpoint {
246
247
  Authorization?: Authorization;
247
248
  ChannelId?: string;
248
249
  CmafPackage?: CmafPackage;
250
+ CreatedAt?: string;
249
251
  DashPackage?: DashPackage;
250
252
  Description?: string;
251
253
  HlsPackage?: HlsPackage;
@@ -273,6 +275,7 @@ export interface ConfigureLogsRequest {
273
275
  }
274
276
  export interface ConfigureLogsResponse {
275
277
  Arn?: string;
278
+ CreatedAt?: string;
276
279
  Description?: string;
277
280
  EgressAccessLogs?: EgressAccessLogs;
278
281
  HlsIngest?: HlsIngest;
@@ -331,6 +334,7 @@ export interface CreateChannelRequest {
331
334
  }
332
335
  export interface CreateChannelResponse {
333
336
  Arn?: string;
337
+ CreatedAt?: string;
334
338
  Description?: string;
335
339
  EgressAccessLogs?: EgressAccessLogs;
336
340
  HlsIngest?: HlsIngest;
@@ -377,6 +381,7 @@ export interface CreateOriginEndpointResponse {
377
381
  Authorization?: Authorization;
378
382
  ChannelId?: string;
379
383
  CmafPackage?: CmafPackage;
384
+ CreatedAt?: string;
380
385
  DashPackage?: DashPackage;
381
386
  Description?: string;
382
387
  HlsPackage?: HlsPackage;
@@ -403,6 +408,7 @@ export interface DescribeChannelRequest {
403
408
  }
404
409
  export interface DescribeChannelResponse {
405
410
  Arn?: string;
411
+ CreatedAt?: string;
406
412
  Description?: string;
407
413
  EgressAccessLogs?: EgressAccessLogs;
408
414
  HlsIngest?: HlsIngest;
@@ -432,6 +438,7 @@ export interface DescribeOriginEndpointResponse {
432
438
  Authorization?: Authorization;
433
439
  ChannelId?: string;
434
440
  CmafPackage?: CmafPackage;
441
+ CreatedAt?: string;
435
442
  DashPackage?: DashPackage;
436
443
  Description?: string;
437
444
  HlsPackage?: HlsPackage;
@@ -483,6 +490,7 @@ export interface RotateChannelCredentialsRequest {
483
490
  }
484
491
  export interface RotateChannelCredentialsResponse {
485
492
  Arn?: string;
493
+ CreatedAt?: string;
486
494
  Description?: string;
487
495
  EgressAccessLogs?: EgressAccessLogs;
488
496
  HlsIngest?: HlsIngest;
@@ -496,6 +504,7 @@ export interface RotateIngestEndpointCredentialsRequest {
496
504
  }
497
505
  export interface RotateIngestEndpointCredentialsResponse {
498
506
  Arn?: string;
507
+ CreatedAt?: string;
499
508
  Description?: string;
500
509
  EgressAccessLogs?: EgressAccessLogs;
501
510
  HlsIngest?: HlsIngest;
@@ -517,6 +526,7 @@ export interface UpdateChannelRequest {
517
526
  }
518
527
  export interface UpdateChannelResponse {
519
528
  Arn?: string;
529
+ CreatedAt?: string;
520
530
  Description?: string;
521
531
  EgressAccessLogs?: EgressAccessLogs;
522
532
  HlsIngest?: HlsIngest;
@@ -543,6 +553,7 @@ export interface UpdateOriginEndpointResponse {
543
553
  Authorization?: Authorization;
544
554
  ChannelId?: string;
545
555
  CmafPackage?: CmafPackage;
556
+ CreatedAt?: string;
546
557
  DashPackage?: DashPackage;
547
558
  Description?: string;
548
559
  HlsPackage?: HlsPackage;
@@ -1,7 +1,6 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { MediaPackage } from "../MediaPackage";
3
2
  import { MediaPackageClient } from "../MediaPackageClient";
4
3
  export interface MediaPackagePaginationConfiguration
5
4
  extends PaginationConfiguration {
6
- client: MediaPackage | MediaPackageClient;
5
+ client: MediaPackageClient;
7
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediapackage",
3
3
  "description": "AWS SDK for JavaScript Mediapackage Client for Node.js, Browser and React Native",
4
- "version": "3.282.0",
4
+ "version": "3.287.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",
@@ -20,23 +20,23 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.282.0",
24
- "@aws-sdk/config-resolver": "3.282.0",
25
- "@aws-sdk/credential-provider-node": "3.282.0",
23
+ "@aws-sdk/client-sts": "3.287.0",
24
+ "@aws-sdk/config-resolver": "3.287.0",
25
+ "@aws-sdk/credential-provider-node": "3.287.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.282.0",
27
27
  "@aws-sdk/hash-node": "3.272.0",
28
28
  "@aws-sdk/invalid-dependency": "3.272.0",
29
29
  "@aws-sdk/middleware-content-length": "3.282.0",
30
30
  "@aws-sdk/middleware-endpoint": "3.282.0",
31
31
  "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.272.0",
32
+ "@aws-sdk/middleware-logger": "3.287.0",
33
33
  "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.282.0",
34
+ "@aws-sdk/middleware-retry": "3.287.0",
35
35
  "@aws-sdk/middleware-serde": "3.272.0",
36
36
  "@aws-sdk/middleware-signing": "3.282.0",
37
37
  "@aws-sdk/middleware-stack": "3.272.0",
38
38
  "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.272.0",
39
+ "@aws-sdk/node-config-provider": "3.287.0",
40
40
  "@aws-sdk/node-http-handler": "3.282.0",
41
41
  "@aws-sdk/protocol-http": "3.282.0",
42
42
  "@aws-sdk/smithy-client": "3.279.0",
@@ -46,11 +46,11 @@
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.282.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
50
  "@aws-sdk/util-endpoints": "3.272.0",
51
51
  "@aws-sdk/util-retry": "3.272.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.282.0",
53
- "@aws-sdk/util-user-agent-node": "3.282.0",
53
+ "@aws-sdk/util-user-agent-node": "3.287.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "tslib": "^2.3.1"
56
56
  },