@aws-sdk/client-mediapackagev2 3.975.0 → 3.980.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/dist-cjs/index.js CHANGED
@@ -1601,42 +1601,6 @@ class UpdateOriginEndpointCommand extends smithyClient.Command
1601
1601
  .build() {
1602
1602
  }
1603
1603
 
1604
- const commands = {
1605
- CancelHarvestJobCommand,
1606
- CreateChannelCommand,
1607
- CreateChannelGroupCommand,
1608
- CreateHarvestJobCommand,
1609
- CreateOriginEndpointCommand,
1610
- DeleteChannelCommand,
1611
- DeleteChannelGroupCommand,
1612
- DeleteChannelPolicyCommand,
1613
- DeleteOriginEndpointCommand,
1614
- DeleteOriginEndpointPolicyCommand,
1615
- GetChannelCommand,
1616
- GetChannelGroupCommand,
1617
- GetChannelPolicyCommand,
1618
- GetHarvestJobCommand,
1619
- GetOriginEndpointCommand,
1620
- GetOriginEndpointPolicyCommand,
1621
- ListChannelGroupsCommand,
1622
- ListChannelsCommand,
1623
- ListHarvestJobsCommand,
1624
- ListOriginEndpointsCommand,
1625
- ListTagsForResourceCommand,
1626
- PutChannelPolicyCommand,
1627
- PutOriginEndpointPolicyCommand,
1628
- ResetChannelStateCommand,
1629
- ResetOriginEndpointStateCommand,
1630
- TagResourceCommand,
1631
- UntagResourceCommand,
1632
- UpdateChannelCommand,
1633
- UpdateChannelGroupCommand,
1634
- UpdateOriginEndpointCommand,
1635
- };
1636
- class MediaPackageV2 extends MediaPackageV2Client {
1637
- }
1638
- smithyClient.createAggregatedClient(commands, MediaPackageV2);
1639
-
1640
1604
  const paginateListChannelGroups = core.createPaginator(MediaPackageV2Client, ListChannelGroupsCommand, "NextToken", "NextToken", "MaxResults");
1641
1605
 
1642
1606
  const paginateListChannels = core.createPaginator(MediaPackageV2Client, ListChannelsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1711,6 +1675,51 @@ const waitUntilHarvestJobFinished = async (params, input) => {
1711
1675
  return utilWaiter.checkExceptions(result);
1712
1676
  };
1713
1677
 
1678
+ const commands = {
1679
+ CancelHarvestJobCommand,
1680
+ CreateChannelCommand,
1681
+ CreateChannelGroupCommand,
1682
+ CreateHarvestJobCommand,
1683
+ CreateOriginEndpointCommand,
1684
+ DeleteChannelCommand,
1685
+ DeleteChannelGroupCommand,
1686
+ DeleteChannelPolicyCommand,
1687
+ DeleteOriginEndpointCommand,
1688
+ DeleteOriginEndpointPolicyCommand,
1689
+ GetChannelCommand,
1690
+ GetChannelGroupCommand,
1691
+ GetChannelPolicyCommand,
1692
+ GetHarvestJobCommand,
1693
+ GetOriginEndpointCommand,
1694
+ GetOriginEndpointPolicyCommand,
1695
+ ListChannelGroupsCommand,
1696
+ ListChannelsCommand,
1697
+ ListHarvestJobsCommand,
1698
+ ListOriginEndpointsCommand,
1699
+ ListTagsForResourceCommand,
1700
+ PutChannelPolicyCommand,
1701
+ PutOriginEndpointPolicyCommand,
1702
+ ResetChannelStateCommand,
1703
+ ResetOriginEndpointStateCommand,
1704
+ TagResourceCommand,
1705
+ UntagResourceCommand,
1706
+ UpdateChannelCommand,
1707
+ UpdateChannelGroupCommand,
1708
+ UpdateOriginEndpointCommand,
1709
+ };
1710
+ const paginators = {
1711
+ paginateListChannelGroups,
1712
+ paginateListChannels,
1713
+ paginateListHarvestJobs,
1714
+ paginateListOriginEndpoints,
1715
+ };
1716
+ const waiters = {
1717
+ waitUntilHarvestJobFinished,
1718
+ };
1719
+ class MediaPackageV2 extends MediaPackageV2Client {
1720
+ }
1721
+ smithyClient.createAggregatedClient(commands, MediaPackageV2, { paginators, waiters });
1722
+
1714
1723
  const AdMarkerDash = {
1715
1724
  BINARY: "BINARY",
1716
1725
  XML: "XML",
@@ -30,6 +30,11 @@ import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
30
30
  import { UpdateChannelGroupCommand, } from "./commands/UpdateChannelGroupCommand";
31
31
  import { UpdateOriginEndpointCommand, } from "./commands/UpdateOriginEndpointCommand";
32
32
  import { MediaPackageV2Client } from "./MediaPackageV2Client";
33
+ import { paginateListChannelGroups } from "./pagination/ListChannelGroupsPaginator";
34
+ import { paginateListChannels } from "./pagination/ListChannelsPaginator";
35
+ import { paginateListHarvestJobs } from "./pagination/ListHarvestJobsPaginator";
36
+ import { paginateListOriginEndpoints } from "./pagination/ListOriginEndpointsPaginator";
37
+ import { waitUntilHarvestJobFinished } from "./waiters/waitForHarvestJobFinished";
33
38
  const commands = {
34
39
  CancelHarvestJobCommand,
35
40
  CreateChannelCommand,
@@ -62,6 +67,15 @@ const commands = {
62
67
  UpdateChannelGroupCommand,
63
68
  UpdateOriginEndpointCommand,
64
69
  };
70
+ const paginators = {
71
+ paginateListChannelGroups,
72
+ paginateListChannels,
73
+ paginateListHarvestJobs,
74
+ paginateListOriginEndpoints,
75
+ };
76
+ const waiters = {
77
+ waitUntilHarvestJobFinished,
78
+ };
65
79
  export class MediaPackageV2 extends MediaPackageV2Client {
66
80
  }
67
- createAggregatedClient(commands, MediaPackageV2);
81
+ createAggregatedClient(commands, MediaPackageV2, { paginators, waiters });
@@ -1,4 +1,5 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
2
3
  import { CancelHarvestJobCommandInput, CancelHarvestJobCommandOutput } from "./commands/CancelHarvestJobCommand";
3
4
  import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
4
5
  import { CreateChannelGroupCommandInput, CreateChannelGroupCommandOutput } from "./commands/CreateChannelGroupCommand";
@@ -212,6 +213,40 @@ export interface MediaPackageV2 {
212
213
  updateOriginEndpoint(args: UpdateOriginEndpointCommandInput, options?: __HttpHandlerOptions): Promise<UpdateOriginEndpointCommandOutput>;
213
214
  updateOriginEndpoint(args: UpdateOriginEndpointCommandInput, cb: (err: any, data?: UpdateOriginEndpointCommandOutput) => void): void;
214
215
  updateOriginEndpoint(args: UpdateOriginEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOriginEndpointCommandOutput) => void): void;
216
+ /**
217
+ * @see {@link ListChannelGroupsCommand}
218
+ * @param args - command input.
219
+ * @param paginationConfig - optional pagination config.
220
+ * @returns AsyncIterable of {@link ListChannelGroupsCommandOutput}.
221
+ */
222
+ paginateListChannelGroups(args?: ListChannelGroupsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelGroupsCommandOutput>;
223
+ /**
224
+ * @see {@link ListChannelsCommand}
225
+ * @param args - command input.
226
+ * @param paginationConfig - optional pagination config.
227
+ * @returns AsyncIterable of {@link ListChannelsCommandOutput}.
228
+ */
229
+ paginateListChannels(args: ListChannelsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListChannelsCommandOutput>;
230
+ /**
231
+ * @see {@link ListHarvestJobsCommand}
232
+ * @param args - command input.
233
+ * @param paginationConfig - optional pagination config.
234
+ * @returns AsyncIterable of {@link ListHarvestJobsCommandOutput}.
235
+ */
236
+ paginateListHarvestJobs(args: ListHarvestJobsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListHarvestJobsCommandOutput>;
237
+ /**
238
+ * @see {@link ListOriginEndpointsCommand}
239
+ * @param args - command input.
240
+ * @param paginationConfig - optional pagination config.
241
+ * @returns AsyncIterable of {@link ListOriginEndpointsCommandOutput}.
242
+ */
243
+ paginateListOriginEndpoints(args: ListOriginEndpointsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListOriginEndpointsCommandOutput>;
244
+ /**
245
+ * @see {@link GetHarvestJobCommand}
246
+ * @param args - command input.
247
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
248
+ */
249
+ waitUntilHarvestJobFinished(args: GetHarvestJobCommandInput, waiterConfig: number | Omit<WaiterConfiguration<MediaPackageV2>, "client">): Promise<WaiterResult>;
215
250
  }
216
251
  /**
217
252
  * <note> <p>This guide is intended for creating AWS Elemental MediaPackage resources in MediaPackage Version 2 (v2) starting from May 2023. To get started with MediaPackage v2, create your MediaPackage resources. There isn't an automated process to migrate your resources from MediaPackage v1 to MediaPackage v2. </p> <p>The names of the entities that you use to access this API, like URLs and ARNs, all have the versioning information added, like "v2", to distinguish from the prior version. If you used MediaPackage prior to this release, you can't use the MediaPackage v2 CLI or the MediaPackage v2 API to access any MediaPackage v1 resources.</p> <p>If you created resources in MediaPackage v1, use video on demand (VOD) workflows, and aren't looking to migrate to MediaPackage v2 yet, see the <a href="https://docs.aws.amazon.com/mediapackage/latest/apireference/what-is.html">MediaPackage v1 Live API Reference</a>.</p> </note> <p>This is the AWS Elemental MediaPackage v2 Live REST API Reference. It describes all the MediaPackage API operations for live content in detail, and provides sample requests, responses, and errors for the supported web services protocols.</p> <p>We assume that you have the IAM permissions that you need to use MediaPackage via the REST API. We also assume that you are familiar with the features and operations of MediaPackage, as described in the AWS Elemental MediaPackage User Guide.</p>
@@ -1,4 +1,10 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ WaiterConfiguration,
6
+ } from "@smithy/types";
7
+ import { WaiterResult } from "@smithy/util-waiter";
2
8
  import {
3
9
  CancelHarvestJobCommandInput,
4
10
  CancelHarvestJobCommandOutput,
@@ -512,6 +518,43 @@ export interface MediaPackageV2 {
512
518
  options: __HttpHandlerOptions,
513
519
  cb: (err: any, data?: UpdateOriginEndpointCommandOutput) => void
514
520
  ): void;
521
+ paginateListChannelGroups(
522
+ args?: ListChannelGroupsCommandInput,
523
+ paginationConfig?: Pick<
524
+ PaginationConfiguration,
525
+ Exclude<keyof PaginationConfiguration, "client">
526
+ >
527
+ ): Paginator<ListChannelGroupsCommandOutput>;
528
+ paginateListChannels(
529
+ args: ListChannelsCommandInput,
530
+ paginationConfig?: Pick<
531
+ PaginationConfiguration,
532
+ Exclude<keyof PaginationConfiguration, "client">
533
+ >
534
+ ): Paginator<ListChannelsCommandOutput>;
535
+ paginateListHarvestJobs(
536
+ args: ListHarvestJobsCommandInput,
537
+ paginationConfig?: Pick<
538
+ PaginationConfiguration,
539
+ Exclude<keyof PaginationConfiguration, "client">
540
+ >
541
+ ): Paginator<ListHarvestJobsCommandOutput>;
542
+ paginateListOriginEndpoints(
543
+ args: ListOriginEndpointsCommandInput,
544
+ paginationConfig?: Pick<
545
+ PaginationConfiguration,
546
+ Exclude<keyof PaginationConfiguration, "client">
547
+ >
548
+ ): Paginator<ListOriginEndpointsCommandOutput>;
549
+ waitUntilHarvestJobFinished(
550
+ args: GetHarvestJobCommandInput,
551
+ waiterConfig:
552
+ | number
553
+ | Pick<
554
+ WaiterConfiguration<MediaPackageV2>,
555
+ Exclude<keyof WaiterConfiguration<MediaPackageV2>, "client">
556
+ >
557
+ ): Promise<WaiterResult>;
515
558
  }
516
559
  export declare class MediaPackageV2
517
560
  extends MediaPackageV2Client
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mediapackagev2",
3
3
  "description": "AWS SDK for JavaScript Mediapackagev2 Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.980.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-mediapackagev2",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
32
- "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
24
+ "@aws-sdk/core": "^3.973.5",
25
+ "@aws-sdk/credential-provider-node": "^3.972.4",
26
+ "@aws-sdk/middleware-host-header": "^3.972.3",
27
+ "@aws-sdk/middleware-logger": "^3.972.3",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
30
+ "@aws-sdk/region-config-resolver": "^3.972.3",
31
+ "@aws-sdk/types": "^3.973.1",
32
+ "@aws-sdk/util-endpoints": "3.980.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",