Skip to content

Commit 31f8273

Browse files
author
awstools
committed
feat(client-mediapackagev2): This release adds the ResetChannelState and ResetOriginEndpointState operation to reset MediaPackage V2 channel and origin endpoint. This release also adds a new field, UrlEncodeChildManifest, for HLS/LL-HLS to allow URL-encoding child manifest query string based on the requirements of AWS SigV4.
1 parent ed38017 commit 31f8273

14 files changed

+847
-2
lines changed

clients/client-mediapackagev2/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,22 @@ PutOriginEndpointPolicy
397397

398398
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediapackagev2/command/PutOriginEndpointPolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/PutOriginEndpointPolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/PutOriginEndpointPolicyCommandOutput/)
399399

400+
</details>
401+
<details>
402+
<summary>
403+
ResetChannelState
404+
</summary>
405+
406+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediapackagev2/command/ResetChannelStateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/ResetChannelStateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/ResetChannelStateCommandOutput/)
407+
408+
</details>
409+
<details>
410+
<summary>
411+
ResetOriginEndpointState
412+
</summary>
413+
414+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mediapackagev2/command/ResetOriginEndpointStateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/ResetOriginEndpointStateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-mediapackagev2/Interface/ResetOriginEndpointStateCommandOutput/)
415+
400416
</details>
401417
<details>
402418
<summary>

clients/client-mediapackagev2/src/MediaPackageV2.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,16 @@ import {
113113
PutOriginEndpointPolicyCommandInput,
114114
PutOriginEndpointPolicyCommandOutput,
115115
} from "./commands/PutOriginEndpointPolicyCommand";
116+
import {
117+
ResetChannelStateCommand,
118+
ResetChannelStateCommandInput,
119+
ResetChannelStateCommandOutput,
120+
} from "./commands/ResetChannelStateCommand";
121+
import {
122+
ResetOriginEndpointStateCommand,
123+
ResetOriginEndpointStateCommandInput,
124+
ResetOriginEndpointStateCommandOutput,
125+
} from "./commands/ResetOriginEndpointStateCommand";
116126
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
117127
import {
118128
UntagResourceCommand,
@@ -160,6 +170,8 @@ const commands = {
160170
ListTagsForResourceCommand,
161171
PutChannelPolicyCommand,
162172
PutOriginEndpointPolicyCommand,
173+
ResetChannelStateCommand,
174+
ResetOriginEndpointStateCommand,
163175
TagResourceCommand,
164176
UntagResourceCommand,
165177
UpdateChannelCommand,
@@ -524,6 +536,40 @@ export interface MediaPackageV2 {
524536
cb: (err: any, data?: PutOriginEndpointPolicyCommandOutput) => void
525537
): void;
526538

539+
/**
540+
* @see {@link ResetChannelStateCommand}
541+
*/
542+
resetChannelState(
543+
args: ResetChannelStateCommandInput,
544+
options?: __HttpHandlerOptions
545+
): Promise<ResetChannelStateCommandOutput>;
546+
resetChannelState(
547+
args: ResetChannelStateCommandInput,
548+
cb: (err: any, data?: ResetChannelStateCommandOutput) => void
549+
): void;
550+
resetChannelState(
551+
args: ResetChannelStateCommandInput,
552+
options: __HttpHandlerOptions,
553+
cb: (err: any, data?: ResetChannelStateCommandOutput) => void
554+
): void;
555+
556+
/**
557+
* @see {@link ResetOriginEndpointStateCommand}
558+
*/
559+
resetOriginEndpointState(
560+
args: ResetOriginEndpointStateCommandInput,
561+
options?: __HttpHandlerOptions
562+
): Promise<ResetOriginEndpointStateCommandOutput>;
563+
resetOriginEndpointState(
564+
args: ResetOriginEndpointStateCommandInput,
565+
cb: (err: any, data?: ResetOriginEndpointStateCommandOutput) => void
566+
): void;
567+
resetOriginEndpointState(
568+
args: ResetOriginEndpointStateCommandInput,
569+
options: __HttpHandlerOptions,
570+
cb: (err: any, data?: ResetOriginEndpointStateCommandOutput) => void
571+
): void;
572+
527573
/**
528574
* @see {@link TagResourceCommand}
529575
*/

clients/client-mediapackagev2/src/MediaPackageV2Client.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ import {
100100
PutOriginEndpointPolicyCommandInput,
101101
PutOriginEndpointPolicyCommandOutput,
102102
} from "./commands/PutOriginEndpointPolicyCommand";
103+
import { ResetChannelStateCommandInput, ResetChannelStateCommandOutput } from "./commands/ResetChannelStateCommand";
104+
import {
105+
ResetOriginEndpointStateCommandInput,
106+
ResetOriginEndpointStateCommandOutput,
107+
} from "./commands/ResetOriginEndpointStateCommand";
103108
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
104109
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
105110
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
@@ -146,6 +151,8 @@ export type ServiceInputTypes =
146151
| ListTagsForResourceCommandInput
147152
| PutChannelPolicyCommandInput
148153
| PutOriginEndpointPolicyCommandInput
154+
| ResetChannelStateCommandInput
155+
| ResetOriginEndpointStateCommandInput
149156
| TagResourceCommandInput
150157
| UntagResourceCommandInput
151158
| UpdateChannelCommandInput
@@ -179,6 +186,8 @@ export type ServiceOutputTypes =
179186
| ListTagsForResourceCommandOutput
180187
| PutChannelPolicyCommandOutput
181188
| PutOriginEndpointPolicyCommandOutput
189+
| ResetChannelStateCommandOutput
190+
| ResetOriginEndpointStateCommandOutput
182191
| TagResourceCommandOutput
183192
| UntagResourceCommandOutput
184193
| UpdateChannelCommandOutput

clients/client-mediapackagev2/src/commands/CreateOriginEndpointCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR
9595
* TimeDelaySeconds: Number("int"),
9696
* ClipStartTime: new Date("TIMESTAMP"),
9797
* },
98+
* UrlEncodeChildManifest: true || false,
9899
* },
99100
* ],
100101
* LowLatencyHlsManifests: [ // CreateLowLatencyHlsManifests
@@ -117,6 +118,7 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR
117118
* TimeDelaySeconds: Number("int"),
118119
* ClipStartTime: new Date("TIMESTAMP"),
119120
* },
121+
* UrlEncodeChildManifest: true || false,
120122
* },
121123
* ],
122124
* DashManifests: [ // CreateDashManifests
@@ -221,6 +223,7 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR
221223
* // TimeOffset: Number("float"), // required
222224
* // Precise: true || false,
223225
* // },
226+
* // UrlEncodeChildManifest: true || false,
224227
* // },
225228
* // ],
226229
* // LowLatencyHlsManifests: [ // GetLowLatencyHlsManifests
@@ -244,6 +247,7 @@ export interface CreateOriginEndpointCommandOutput extends CreateOriginEndpointR
244247
* // TimeOffset: Number("float"), // required
245248
* // Precise: true || false,
246249
* // },
250+
* // UrlEncodeChildManifest: true || false,
247251
* // },
248252
* // ],
249253
* // DashManifests: [ // GetDashManifests

clients/client-mediapackagev2/src/commands/GetChannelCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export interface GetChannelCommandOutput extends GetChannelResponse, __MetadataB
4747
* // ChannelGroupName: "STRING_VALUE", // required
4848
* // CreatedAt: new Date("TIMESTAMP"), // required
4949
* // ModifiedAt: new Date("TIMESTAMP"), // required
50+
* // ResetAt: new Date("TIMESTAMP"),
5051
* // Description: "STRING_VALUE",
5152
* // IngestEndpoints: [ // IngestEndpointList
5253
* // { // IngestEndpoint

clients/client-mediapackagev2/src/commands/GetOriginEndpointCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export interface GetOriginEndpointCommandOutput extends GetOriginEndpointRespons
8282
* // },
8383
* // CreatedAt: new Date("TIMESTAMP"), // required
8484
* // ModifiedAt: new Date("TIMESTAMP"), // required
85+
* // ResetAt: new Date("TIMESTAMP"),
8586
* // Description: "STRING_VALUE",
8687
* // StartoverWindowSeconds: Number("int"),
8788
* // HlsManifests: [ // GetHlsManifests
@@ -105,6 +106,7 @@ export interface GetOriginEndpointCommandOutput extends GetOriginEndpointRespons
105106
* // TimeOffset: Number("float"), // required
106107
* // Precise: true || false,
107108
* // },
109+
* // UrlEncodeChildManifest: true || false,
108110
* // },
109111
* // ],
110112
* // LowLatencyHlsManifests: [ // GetLowLatencyHlsManifests
@@ -128,6 +130,7 @@ export interface GetOriginEndpointCommandOutput extends GetOriginEndpointRespons
128130
* // TimeOffset: Number("float"), // required
129131
* // Precise: true || false,
130132
* // },
133+
* // UrlEncodeChildManifest: true || false,
131134
* // },
132135
* // ],
133136
* // DashManifests: [ // GetDashManifests

clients/client-mediapackagev2/src/commands/ListChannelGroupsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface ListChannelGroupsCommandInput extends ListChannelGroupsRequest
2828
export interface ListChannelGroupsCommandOutput extends ListChannelGroupsResponse, __MetadataBearer {}
2929

3030
/**
31-
* <p>Retrieves all channel groups that are configured in AWS Elemental MediaPackage, including the channels and origin endpoints that are associated with it.</p>
31+
* <p>Retrieves all channel groups that are configured in Elemental MediaPackage.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import { commonParams } from "../endpoint/EndpointParameters";
8+
import { MediaPackageV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaPackageV2Client";
9+
import { ResetChannelStateRequest, ResetChannelStateResponse } from "../models/models_0";
10+
import { de_ResetChannelStateCommand, se_ResetChannelStateCommand } from "../protocols/Aws_restJson1";
11+
12+
/**
13+
* @public
14+
*/
15+
export type { __MetadataBearer };
16+
export { $Command };
17+
/**
18+
* @public
19+
*
20+
* The input for {@link ResetChannelStateCommand}.
21+
*/
22+
export interface ResetChannelStateCommandInput extends ResetChannelStateRequest {}
23+
/**
24+
* @public
25+
*
26+
* The output of {@link ResetChannelStateCommand}.
27+
*/
28+
export interface ResetChannelStateCommandOutput extends ResetChannelStateResponse, __MetadataBearer {}
29+
30+
/**
31+
* <p>Resetting the channel can help to clear errors from misconfigurations in the encoder. A reset refreshes the ingest stream and removes previous content. </p>
32+
* <p> Be sure to stop the encoder before you reset the channel, and wait at least 30 seconds before you restart the encoder. </p>
33+
* @example
34+
* Use a bare-bones client and the command you need to make an API call.
35+
* ```javascript
36+
* import { MediaPackageV2Client, ResetChannelStateCommand } from "@aws-sdk/client-mediapackagev2"; // ES Modules import
37+
* // const { MediaPackageV2Client, ResetChannelStateCommand } = require("@aws-sdk/client-mediapackagev2"); // CommonJS import
38+
* const client = new MediaPackageV2Client(config);
39+
* const input = { // ResetChannelStateRequest
40+
* ChannelGroupName: "STRING_VALUE", // required
41+
* ChannelName: "STRING_VALUE", // required
42+
* };
43+
* const command = new ResetChannelStateCommand(input);
44+
* const response = await client.send(command);
45+
* // { // ResetChannelStateResponse
46+
* // ChannelGroupName: "STRING_VALUE", // required
47+
* // ChannelName: "STRING_VALUE", // required
48+
* // Arn: "STRING_VALUE", // required
49+
* // ResetAt: new Date("TIMESTAMP"), // required
50+
* // };
51+
*
52+
* ```
53+
*
54+
* @param ResetChannelStateCommandInput - {@link ResetChannelStateCommandInput}
55+
* @returns {@link ResetChannelStateCommandOutput}
56+
* @see {@link ResetChannelStateCommandInput} for command's `input` shape.
57+
* @see {@link ResetChannelStateCommandOutput} for command's `response` shape.
58+
* @see {@link MediaPackageV2ClientResolvedConfig | config} for MediaPackageV2Client's `config` shape.
59+
*
60+
* @throws {@link AccessDeniedException} (client fault)
61+
* <p>You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.</p>
62+
*
63+
* @throws {@link ConflictException} (client fault)
64+
* <p>Updating or deleting this resource can cause an inconsistent state.</p>
65+
*
66+
* @throws {@link InternalServerException} (server fault)
67+
* <p>Indicates that an error from the service occurred while trying to process a request.</p>
68+
*
69+
* @throws {@link ResourceNotFoundException} (client fault)
70+
* <p>The specified resource doesn't exist.</p>
71+
*
72+
* @throws {@link ThrottlingException} (client fault)
73+
* <p>The request throughput limit was exceeded.</p>
74+
*
75+
* @throws {@link ValidationException} (client fault)
76+
* <p>The input failed to meet the constraints specified by the AWS service.</p>
77+
*
78+
* @throws {@link MediaPackageV2ServiceException}
79+
* <p>Base exception class for all service exceptions from MediaPackageV2 service.</p>
80+
*
81+
* @public
82+
*/
83+
export class ResetChannelStateCommand extends $Command
84+
.classBuilder<
85+
ResetChannelStateCommandInput,
86+
ResetChannelStateCommandOutput,
87+
MediaPackageV2ClientResolvedConfig,
88+
ServiceInputTypes,
89+
ServiceOutputTypes
90+
>()
91+
.ep(commonParams)
92+
.m(function (this: any, Command: any, cs: any, config: MediaPackageV2ClientResolvedConfig, o: any) {
93+
return [
94+
getSerdePlugin(config, this.serialize, this.deserialize),
95+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
96+
];
97+
})
98+
.s("mediapackagev2", "ResetChannelState", {})
99+
.n("MediaPackageV2Client", "ResetChannelStateCommand")
100+
.f(void 0, void 0)
101+
.ser(se_ResetChannelStateCommand)
102+
.de(de_ResetChannelStateCommand)
103+
.build() {
104+
/** @internal type navigation helper, not in runtime. */
105+
protected declare static __types: {
106+
api: {
107+
input: ResetChannelStateRequest;
108+
output: ResetChannelStateResponse;
109+
};
110+
sdk: {
111+
input: ResetChannelStateCommandInput;
112+
output: ResetChannelStateCommandOutput;
113+
};
114+
};
115+
}

0 commit comments

Comments
 (0)