Skip to content

Commit

Permalink
feat(client-mediapackagev2): MediaPackage V2 Live to VOD Harvester is…
Browse files Browse the repository at this point in the history
… a MediaPackage V2 feature, which is used to export content from an origin endpoint to a S3 bucket.
  • Loading branch information
awstools committed Oct 28, 2024
1 parent 1eadcc8 commit 5755a32
Show file tree
Hide file tree
Showing 17 changed files with 3,716 additions and 378 deletions.
34 changes: 33 additions & 1 deletion clients/client-mediapackagev2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ see the <a href="https://docs.aws.amazon.com/mediapackage/latest/apireference/wh

## Installing

To install the this package, simply type add or install @aws-sdk/client-mediapackagev2
To install this package, simply type add or install @aws-sdk/client-mediapackagev2
using your favorite package manager:

- `npm install @aws-sdk/client-mediapackagev2`
Expand Down Expand Up @@ -214,6 +214,14 @@ see LICENSE for more information.

## Client Commands (Operations List)

<details>
<summary>
CancelHarvestJob
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediapackagev2/command/CancelHarvestJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/CancelHarvestJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/CancelHarvestJobCommandOutput/)

</details>
<details>
<summary>
CreateChannel
Expand All @@ -229,6 +237,14 @@ CreateChannelGroup

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediapackagev2/command/CreateChannelGroupCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/CreateChannelGroupCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/CreateChannelGroupCommandOutput/)

</details>
<details>
<summary>
CreateHarvestJob
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediapackagev2/command/CreateHarvestJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/CreateHarvestJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/CreateHarvestJobCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -301,6 +317,14 @@ GetChannelPolicy

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediapackagev2/command/GetChannelPolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/GetChannelPolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/GetChannelPolicyCommandOutput/)

</details>
<details>
<summary>
GetHarvestJob
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediapackagev2/command/GetHarvestJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/GetHarvestJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/GetHarvestJobCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -333,6 +357,14 @@ ListChannels

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediapackagev2/command/ListChannelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/ListChannelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/ListChannelsCommandOutput/)

</details>
<details>
<summary>
ListHarvestJobs
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediapackagev2/command/ListHarvestJobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/ListHarvestJobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/ListHarvestJobsCommandOutput/)

</details>
<details>
<summary>
Expand Down
1 change: 1 addition & 0 deletions clients/client-mediapackagev2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@smithy/util-middleware": "^3.0.7",
"@smithy/util-retry": "^3.0.7",
"@smithy/util-utf8": "^3.0.0",
"@smithy/util-waiter": "^3.1.6",
"@types/uuid": "^9.0.1",
"tslib": "^2.6.2",
"uuid": "^9.0.1"
Expand Down
83 changes: 83 additions & 0 deletions clients/client-mediapackagev2/src/MediaPackageV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import { createAggregatedClient } from "@smithy/smithy-client";
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";

import {
CancelHarvestJobCommand,
CancelHarvestJobCommandInput,
CancelHarvestJobCommandOutput,
} from "./commands/CancelHarvestJobCommand";
import {
CreateChannelCommand,
CreateChannelCommandInput,
Expand All @@ -12,6 +17,11 @@ import {
CreateChannelGroupCommandInput,
CreateChannelGroupCommandOutput,
} from "./commands/CreateChannelGroupCommand";
import {
CreateHarvestJobCommand,
CreateHarvestJobCommandInput,
CreateHarvestJobCommandOutput,
} from "./commands/CreateHarvestJobCommand";
import {
CreateOriginEndpointCommand,
CreateOriginEndpointCommandInput,
Expand Down Expand Up @@ -53,6 +63,11 @@ import {
GetChannelPolicyCommandInput,
GetChannelPolicyCommandOutput,
} from "./commands/GetChannelPolicyCommand";
import {
GetHarvestJobCommand,
GetHarvestJobCommandInput,
GetHarvestJobCommandOutput,
} from "./commands/GetHarvestJobCommand";
import {
GetOriginEndpointCommand,
GetOriginEndpointCommandInput,
Expand All @@ -73,6 +88,11 @@ import {
ListChannelsCommandInput,
ListChannelsCommandOutput,
} from "./commands/ListChannelsCommand";
import {
ListHarvestJobsCommand,
ListHarvestJobsCommandInput,
ListHarvestJobsCommandOutput,
} from "./commands/ListHarvestJobsCommand";
import {
ListOriginEndpointsCommand,
ListOriginEndpointsCommandInput,
Expand Down Expand Up @@ -117,8 +137,10 @@ import {
import { MediaPackageV2Client, MediaPackageV2ClientConfig } from "./MediaPackageV2Client";

const commands = {
CancelHarvestJobCommand,
CreateChannelCommand,
CreateChannelGroupCommand,
CreateHarvestJobCommand,
CreateOriginEndpointCommand,
DeleteChannelCommand,
DeleteChannelGroupCommand,
Expand All @@ -128,10 +150,12 @@ const commands = {
GetChannelCommand,
GetChannelGroupCommand,
GetChannelPolicyCommand,
GetHarvestJobCommand,
GetOriginEndpointCommand,
GetOriginEndpointPolicyCommand,
ListChannelGroupsCommand,
ListChannelsCommand,
ListHarvestJobsCommand,
ListOriginEndpointsCommand,
ListTagsForResourceCommand,
PutChannelPolicyCommand,
Expand All @@ -144,6 +168,23 @@ const commands = {
};

export interface MediaPackageV2 {
/**
* @see {@link CancelHarvestJobCommand}
*/
cancelHarvestJob(
args: CancelHarvestJobCommandInput,
options?: __HttpHandlerOptions
): Promise<CancelHarvestJobCommandOutput>;
cancelHarvestJob(
args: CancelHarvestJobCommandInput,
cb: (err: any, data?: CancelHarvestJobCommandOutput) => void
): void;
cancelHarvestJob(
args: CancelHarvestJobCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CancelHarvestJobCommandOutput) => void
): void;

/**
* @see {@link CreateChannelCommand}
*/
Expand Down Expand Up @@ -172,6 +213,23 @@ export interface MediaPackageV2 {
cb: (err: any, data?: CreateChannelGroupCommandOutput) => void
): void;

/**
* @see {@link CreateHarvestJobCommand}
*/
createHarvestJob(
args: CreateHarvestJobCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateHarvestJobCommandOutput>;
createHarvestJob(
args: CreateHarvestJobCommandInput,
cb: (err: any, data?: CreateHarvestJobCommandOutput) => void
): void;
createHarvestJob(
args: CreateHarvestJobCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateHarvestJobCommandOutput) => void
): void;

/**
* @see {@link CreateOriginEndpointCommand}
*/
Expand Down Expand Up @@ -310,6 +368,17 @@ export interface MediaPackageV2 {
cb: (err: any, data?: GetChannelPolicyCommandOutput) => void
): void;

/**
* @see {@link GetHarvestJobCommand}
*/
getHarvestJob(args: GetHarvestJobCommandInput, options?: __HttpHandlerOptions): Promise<GetHarvestJobCommandOutput>;
getHarvestJob(args: GetHarvestJobCommandInput, cb: (err: any, data?: GetHarvestJobCommandOutput) => void): void;
getHarvestJob(
args: GetHarvestJobCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetHarvestJobCommandOutput) => void
): void;

/**
* @see {@link GetOriginEndpointCommand}
*/
Expand Down Expand Up @@ -373,6 +442,20 @@ export interface MediaPackageV2 {
cb: (err: any, data?: ListChannelsCommandOutput) => void
): void;

/**
* @see {@link ListHarvestJobsCommand}
*/
listHarvestJobs(
args: ListHarvestJobsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListHarvestJobsCommandOutput>;
listHarvestJobs(args: ListHarvestJobsCommandInput, cb: (err: any, data?: ListHarvestJobsCommandOutput) => void): void;
listHarvestJobs(
args: ListHarvestJobsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListHarvestJobsCommandOutput) => void
): void;

/**
* @see {@link ListOriginEndpointsCommand}
*/
Expand Down
12 changes: 12 additions & 0 deletions clients/client-mediapackagev2/src/MediaPackageV2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ import {
HttpAuthSchemeResolvedConfig,
resolveHttpAuthSchemeConfig,
} from "./auth/httpAuthSchemeProvider";
import { CancelHarvestJobCommandInput, CancelHarvestJobCommandOutput } from "./commands/CancelHarvestJobCommand";
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
import { CreateChannelGroupCommandInput, CreateChannelGroupCommandOutput } from "./commands/CreateChannelGroupCommand";
import { CreateHarvestJobCommandInput, CreateHarvestJobCommandOutput } from "./commands/CreateHarvestJobCommand";
import {
CreateOriginEndpointCommandInput,
CreateOriginEndpointCommandOutput,
Expand All @@ -76,13 +78,15 @@ import {
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
import { GetChannelGroupCommandInput, GetChannelGroupCommandOutput } from "./commands/GetChannelGroupCommand";
import { GetChannelPolicyCommandInput, GetChannelPolicyCommandOutput } from "./commands/GetChannelPolicyCommand";
import { GetHarvestJobCommandInput, GetHarvestJobCommandOutput } from "./commands/GetHarvestJobCommand";
import { GetOriginEndpointCommandInput, GetOriginEndpointCommandOutput } from "./commands/GetOriginEndpointCommand";
import {
GetOriginEndpointPolicyCommandInput,
GetOriginEndpointPolicyCommandOutput,
} from "./commands/GetOriginEndpointPolicyCommand";
import { ListChannelGroupsCommandInput, ListChannelGroupsCommandOutput } from "./commands/ListChannelGroupsCommand";
import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
import { ListHarvestJobsCommandInput, ListHarvestJobsCommandOutput } from "./commands/ListHarvestJobsCommand";
import {
ListOriginEndpointsCommandInput,
ListOriginEndpointsCommandOutput,
Expand Down Expand Up @@ -119,8 +123,10 @@ export { __Client };
* @public
*/
export type ServiceInputTypes =
| CancelHarvestJobCommandInput
| CreateChannelCommandInput
| CreateChannelGroupCommandInput
| CreateHarvestJobCommandInput
| CreateOriginEndpointCommandInput
| DeleteChannelCommandInput
| DeleteChannelGroupCommandInput
Expand All @@ -130,10 +136,12 @@ export type ServiceInputTypes =
| GetChannelCommandInput
| GetChannelGroupCommandInput
| GetChannelPolicyCommandInput
| GetHarvestJobCommandInput
| GetOriginEndpointCommandInput
| GetOriginEndpointPolicyCommandInput
| ListChannelGroupsCommandInput
| ListChannelsCommandInput
| ListHarvestJobsCommandInput
| ListOriginEndpointsCommandInput
| ListTagsForResourceCommandInput
| PutChannelPolicyCommandInput
Expand All @@ -148,8 +156,10 @@ export type ServiceInputTypes =
* @public
*/
export type ServiceOutputTypes =
| CancelHarvestJobCommandOutput
| CreateChannelCommandOutput
| CreateChannelGroupCommandOutput
| CreateHarvestJobCommandOutput
| CreateOriginEndpointCommandOutput
| DeleteChannelCommandOutput
| DeleteChannelGroupCommandOutput
Expand All @@ -159,10 +169,12 @@ export type ServiceOutputTypes =
| GetChannelCommandOutput
| GetChannelGroupCommandOutput
| GetChannelPolicyCommandOutput
| GetHarvestJobCommandOutput
| GetOriginEndpointCommandOutput
| GetOriginEndpointPolicyCommandOutput
| ListChannelGroupsCommandOutput
| ListChannelsCommandOutput
| ListHarvestJobsCommandOutput
| ListOriginEndpointsCommandOutput
| ListTagsForResourceCommandOutput
| PutChannelPolicyCommandOutput
Expand Down
Loading

0 comments on commit 5755a32

Please sign in to comment.