Skip to content

Commit 5755a32

Browse files
author
awstools
committed
feat(client-mediapackagev2): MediaPackage V2 Live to VOD Harvester is a MediaPackage V2 feature, which is used to export content from an origin endpoint to a S3 bucket.
1 parent 1eadcc8 commit 5755a32

17 files changed

+3716
-378
lines changed

clients/client-mediapackagev2/README.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ see the <a href="https://docs.aws.amazon.com/mediapackage/latest/apireference/wh
2121

2222
## Installing
2323

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

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

215215
## Client Commands (Operations List)
216216

217+
<details>
218+
<summary>
219+
CancelHarvestJob
220+
</summary>
221+
222+
[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/)
223+
224+
</details>
217225
<details>
218226
<summary>
219227
CreateChannel
@@ -229,6 +237,14 @@ CreateChannelGroup
229237

230238
[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/)
231239

240+
</details>
241+
<details>
242+
<summary>
243+
CreateHarvestJob
244+
</summary>
245+
246+
[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/)
247+
232248
</details>
233249
<details>
234250
<summary>
@@ -301,6 +317,14 @@ GetChannelPolicy
301317

302318
[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/)
303319

320+
</details>
321+
<details>
322+
<summary>
323+
GetHarvestJob
324+
</summary>
325+
326+
[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/)
327+
304328
</details>
305329
<details>
306330
<summary>
@@ -333,6 +357,14 @@ ListChannels
333357

334358
[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/)
335359

360+
</details>
361+
<details>
362+
<summary>
363+
ListHarvestJobs
364+
</summary>
365+
366+
[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/)
367+
336368
</details>
337369
<details>
338370
<summary>

clients/client-mediapackagev2/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"@smithy/util-middleware": "^3.0.7",
5959
"@smithy/util-retry": "^3.0.7",
6060
"@smithy/util-utf8": "^3.0.0",
61+
"@smithy/util-waiter": "^3.1.6",
6162
"@types/uuid": "^9.0.1",
6263
"tslib": "^2.6.2",
6364
"uuid": "^9.0.1"

clients/client-mediapackagev2/src/MediaPackageV2.ts

+83
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
import { createAggregatedClient } from "@smithy/smithy-client";
33
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
44

5+
import {
6+
CancelHarvestJobCommand,
7+
CancelHarvestJobCommandInput,
8+
CancelHarvestJobCommandOutput,
9+
} from "./commands/CancelHarvestJobCommand";
510
import {
611
CreateChannelCommand,
712
CreateChannelCommandInput,
@@ -12,6 +17,11 @@ import {
1217
CreateChannelGroupCommandInput,
1318
CreateChannelGroupCommandOutput,
1419
} from "./commands/CreateChannelGroupCommand";
20+
import {
21+
CreateHarvestJobCommand,
22+
CreateHarvestJobCommandInput,
23+
CreateHarvestJobCommandOutput,
24+
} from "./commands/CreateHarvestJobCommand";
1525
import {
1626
CreateOriginEndpointCommand,
1727
CreateOriginEndpointCommandInput,
@@ -53,6 +63,11 @@ import {
5363
GetChannelPolicyCommandInput,
5464
GetChannelPolicyCommandOutput,
5565
} from "./commands/GetChannelPolicyCommand";
66+
import {
67+
GetHarvestJobCommand,
68+
GetHarvestJobCommandInput,
69+
GetHarvestJobCommandOutput,
70+
} from "./commands/GetHarvestJobCommand";
5671
import {
5772
GetOriginEndpointCommand,
5873
GetOriginEndpointCommandInput,
@@ -73,6 +88,11 @@ import {
7388
ListChannelsCommandInput,
7489
ListChannelsCommandOutput,
7590
} from "./commands/ListChannelsCommand";
91+
import {
92+
ListHarvestJobsCommand,
93+
ListHarvestJobsCommandInput,
94+
ListHarvestJobsCommandOutput,
95+
} from "./commands/ListHarvestJobsCommand";
7696
import {
7797
ListOriginEndpointsCommand,
7898
ListOriginEndpointsCommandInput,
@@ -117,8 +137,10 @@ import {
117137
import { MediaPackageV2Client, MediaPackageV2ClientConfig } from "./MediaPackageV2Client";
118138

119139
const commands = {
140+
CancelHarvestJobCommand,
120141
CreateChannelCommand,
121142
CreateChannelGroupCommand,
143+
CreateHarvestJobCommand,
122144
CreateOriginEndpointCommand,
123145
DeleteChannelCommand,
124146
DeleteChannelGroupCommand,
@@ -128,10 +150,12 @@ const commands = {
128150
GetChannelCommand,
129151
GetChannelGroupCommand,
130152
GetChannelPolicyCommand,
153+
GetHarvestJobCommand,
131154
GetOriginEndpointCommand,
132155
GetOriginEndpointPolicyCommand,
133156
ListChannelGroupsCommand,
134157
ListChannelsCommand,
158+
ListHarvestJobsCommand,
135159
ListOriginEndpointsCommand,
136160
ListTagsForResourceCommand,
137161
PutChannelPolicyCommand,
@@ -144,6 +168,23 @@ const commands = {
144168
};
145169

146170
export interface MediaPackageV2 {
171+
/**
172+
* @see {@link CancelHarvestJobCommand}
173+
*/
174+
cancelHarvestJob(
175+
args: CancelHarvestJobCommandInput,
176+
options?: __HttpHandlerOptions
177+
): Promise<CancelHarvestJobCommandOutput>;
178+
cancelHarvestJob(
179+
args: CancelHarvestJobCommandInput,
180+
cb: (err: any, data?: CancelHarvestJobCommandOutput) => void
181+
): void;
182+
cancelHarvestJob(
183+
args: CancelHarvestJobCommandInput,
184+
options: __HttpHandlerOptions,
185+
cb: (err: any, data?: CancelHarvestJobCommandOutput) => void
186+
): void;
187+
147188
/**
148189
* @see {@link CreateChannelCommand}
149190
*/
@@ -172,6 +213,23 @@ export interface MediaPackageV2 {
172213
cb: (err: any, data?: CreateChannelGroupCommandOutput) => void
173214
): void;
174215

216+
/**
217+
* @see {@link CreateHarvestJobCommand}
218+
*/
219+
createHarvestJob(
220+
args: CreateHarvestJobCommandInput,
221+
options?: __HttpHandlerOptions
222+
): Promise<CreateHarvestJobCommandOutput>;
223+
createHarvestJob(
224+
args: CreateHarvestJobCommandInput,
225+
cb: (err: any, data?: CreateHarvestJobCommandOutput) => void
226+
): void;
227+
createHarvestJob(
228+
args: CreateHarvestJobCommandInput,
229+
options: __HttpHandlerOptions,
230+
cb: (err: any, data?: CreateHarvestJobCommandOutput) => void
231+
): void;
232+
175233
/**
176234
* @see {@link CreateOriginEndpointCommand}
177235
*/
@@ -310,6 +368,17 @@ export interface MediaPackageV2 {
310368
cb: (err: any, data?: GetChannelPolicyCommandOutput) => void
311369
): void;
312370

371+
/**
372+
* @see {@link GetHarvestJobCommand}
373+
*/
374+
getHarvestJob(args: GetHarvestJobCommandInput, options?: __HttpHandlerOptions): Promise<GetHarvestJobCommandOutput>;
375+
getHarvestJob(args: GetHarvestJobCommandInput, cb: (err: any, data?: GetHarvestJobCommandOutput) => void): void;
376+
getHarvestJob(
377+
args: GetHarvestJobCommandInput,
378+
options: __HttpHandlerOptions,
379+
cb: (err: any, data?: GetHarvestJobCommandOutput) => void
380+
): void;
381+
313382
/**
314383
* @see {@link GetOriginEndpointCommand}
315384
*/
@@ -373,6 +442,20 @@ export interface MediaPackageV2 {
373442
cb: (err: any, data?: ListChannelsCommandOutput) => void
374443
): void;
375444

445+
/**
446+
* @see {@link ListHarvestJobsCommand}
447+
*/
448+
listHarvestJobs(
449+
args: ListHarvestJobsCommandInput,
450+
options?: __HttpHandlerOptions
451+
): Promise<ListHarvestJobsCommandOutput>;
452+
listHarvestJobs(args: ListHarvestJobsCommandInput, cb: (err: any, data?: ListHarvestJobsCommandOutput) => void): void;
453+
listHarvestJobs(
454+
args: ListHarvestJobsCommandInput,
455+
options: __HttpHandlerOptions,
456+
cb: (err: any, data?: ListHarvestJobsCommandOutput) => void
457+
): void;
458+
376459
/**
377460
* @see {@link ListOriginEndpointsCommand}
378461
*/

clients/client-mediapackagev2/src/MediaPackageV2Client.ts

+12
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ import {
5353
HttpAuthSchemeResolvedConfig,
5454
resolveHttpAuthSchemeConfig,
5555
} from "./auth/httpAuthSchemeProvider";
56+
import { CancelHarvestJobCommandInput, CancelHarvestJobCommandOutput } from "./commands/CancelHarvestJobCommand";
5657
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
5758
import { CreateChannelGroupCommandInput, CreateChannelGroupCommandOutput } from "./commands/CreateChannelGroupCommand";
59+
import { CreateHarvestJobCommandInput, CreateHarvestJobCommandOutput } from "./commands/CreateHarvestJobCommand";
5860
import {
5961
CreateOriginEndpointCommandInput,
6062
CreateOriginEndpointCommandOutput,
@@ -76,13 +78,15 @@ import {
7678
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
7779
import { GetChannelGroupCommandInput, GetChannelGroupCommandOutput } from "./commands/GetChannelGroupCommand";
7880
import { GetChannelPolicyCommandInput, GetChannelPolicyCommandOutput } from "./commands/GetChannelPolicyCommand";
81+
import { GetHarvestJobCommandInput, GetHarvestJobCommandOutput } from "./commands/GetHarvestJobCommand";
7982
import { GetOriginEndpointCommandInput, GetOriginEndpointCommandOutput } from "./commands/GetOriginEndpointCommand";
8083
import {
8184
GetOriginEndpointPolicyCommandInput,
8285
GetOriginEndpointPolicyCommandOutput,
8386
} from "./commands/GetOriginEndpointPolicyCommand";
8487
import { ListChannelGroupsCommandInput, ListChannelGroupsCommandOutput } from "./commands/ListChannelGroupsCommand";
8588
import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
89+
import { ListHarvestJobsCommandInput, ListHarvestJobsCommandOutput } from "./commands/ListHarvestJobsCommand";
8690
import {
8791
ListOriginEndpointsCommandInput,
8892
ListOriginEndpointsCommandOutput,
@@ -119,8 +123,10 @@ export { __Client };
119123
* @public
120124
*/
121125
export type ServiceInputTypes =
126+
| CancelHarvestJobCommandInput
122127
| CreateChannelCommandInput
123128
| CreateChannelGroupCommandInput
129+
| CreateHarvestJobCommandInput
124130
| CreateOriginEndpointCommandInput
125131
| DeleteChannelCommandInput
126132
| DeleteChannelGroupCommandInput
@@ -130,10 +136,12 @@ export type ServiceInputTypes =
130136
| GetChannelCommandInput
131137
| GetChannelGroupCommandInput
132138
| GetChannelPolicyCommandInput
139+
| GetHarvestJobCommandInput
133140
| GetOriginEndpointCommandInput
134141
| GetOriginEndpointPolicyCommandInput
135142
| ListChannelGroupsCommandInput
136143
| ListChannelsCommandInput
144+
| ListHarvestJobsCommandInput
137145
| ListOriginEndpointsCommandInput
138146
| ListTagsForResourceCommandInput
139147
| PutChannelPolicyCommandInput
@@ -148,8 +156,10 @@ export type ServiceInputTypes =
148156
* @public
149157
*/
150158
export type ServiceOutputTypes =
159+
| CancelHarvestJobCommandOutput
151160
| CreateChannelCommandOutput
152161
| CreateChannelGroupCommandOutput
162+
| CreateHarvestJobCommandOutput
153163
| CreateOriginEndpointCommandOutput
154164
| DeleteChannelCommandOutput
155165
| DeleteChannelGroupCommandOutput
@@ -159,10 +169,12 @@ export type ServiceOutputTypes =
159169
| GetChannelCommandOutput
160170
| GetChannelGroupCommandOutput
161171
| GetChannelPolicyCommandOutput
172+
| GetHarvestJobCommandOutput
162173
| GetOriginEndpointCommandOutput
163174
| GetOriginEndpointPolicyCommandOutput
164175
| ListChannelGroupsCommandOutput
165176
| ListChannelsCommandOutput
177+
| ListHarvestJobsCommandOutput
166178
| ListOriginEndpointsCommandOutput
167179
| ListTagsForResourceCommandOutput
168180
| PutChannelPolicyCommandOutput

0 commit comments

Comments
 (0)