Skip to content

Commit 0141b42

Browse files
author
awstools
committed
feat(client-ivs): On a channel that you own, you can now replace an ongoing stream with a new stream by streaming up with the priority parameter appended to the stream key.
1 parent 8f3697f commit 0141b42

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed

clients/client-ivs/src/commands/GetStreamSessionCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export interface GetStreamSessionCommandOutput extends GetStreamSessionResponse,
121121
* // name: "STRING_VALUE",
122122
* // type: "STRING_VALUE",
123123
* // eventTime: new Date("TIMESTAMP"),
124+
* // code: "STRING_VALUE",
124125
* // },
125126
* // ],
126127
* // },

clients/client-ivs/src/models/models_0.ts

+27
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,33 @@ export interface StreamEvent {
15791579
* @public
15801580
*/
15811581
eventTime?: Date;
1582+
1583+
/**
1584+
* <p>Provides additional details about the stream event. There are several values; note that
1585+
* the long descriptions are provided in the IVS console but not delivered through
1586+
* the IVS API or EventBridge:</p>
1587+
* <ul>
1588+
* <li>
1589+
* <p>
1590+
* <code>StreamTakeoverMediaMismatch</code> — The broadcast client attempted to take over
1591+
* with different media properties (e.g., codec, resolution, or video track type) from the
1592+
* original stream.</p>
1593+
* </li>
1594+
* <li>
1595+
* <p>
1596+
* <code>StreamTakeoverInvalidPriority</code> — The broadcast client attempted a takeover
1597+
* with either a priority integer value equal to or lower than the original stream's value or a value outside
1598+
* the allowed range of 1 to 2,147,483,647.</p>
1599+
* </li>
1600+
* <li>
1601+
* <p>
1602+
* <code>StreamTakeoverLimitBreached</code> — The broadcast client reached the maximum allowed
1603+
* takeover attempts for this stream.</p>
1604+
* </li>
1605+
* </ul>
1606+
* @public
1607+
*/
1608+
code?: string;
15821609
}
15831610

15841611
/**

clients/client-ivs/src/protocols/Aws_restJson1.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1983,6 +1983,7 @@ const de__Stream = (output: any, context: __SerdeContext): _Stream => {
19831983
*/
19841984
const de_StreamEvent = (output: any, context: __SerdeContext): StreamEvent => {
19851985
return take(output, {
1986+
code: __expectString,
19861987
eventTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
19871988
name: __expectString,
19881989
type: __expectString,

codegen/sdk-codegen/aws-models/ivs.json

+6
Original file line numberDiff line numberDiff line change
@@ -4037,6 +4037,12 @@
40374037
"traits": {
40384038
"smithy.api#documentation": "<p>Time when the event occurred. This is an ISO 8601 timestamp; <i>note that this is\n returned as a string</i>.</p>"
40394039
}
4040+
},
4041+
"code": {
4042+
"target": "com.amazonaws.ivs#String",
4043+
"traits": {
4044+
"smithy.api#documentation": "<p>Provides additional details about the stream event. There are several values; note that \n\t\t\tthe long descriptions are provided in the IVS console but not delivered through \n\t \t the IVS API or EventBridge:</p>\n <ul>\n <li>\n <p>\n <code>StreamTakeoverMediaMismatch</code> — The broadcast client attempted to take over \n\t\t\twith different media properties (e.g., codec, resolution, or video track type) from the \n\t\t\toriginal stream.</p>\n </li>\n <li>\n <p>\n <code>StreamTakeoverInvalidPriority</code> — The broadcast client attempted a takeover \n\t\t\twith either a priority integer value equal to or lower than the original stream's value or a value outside \n\t\t\tthe allowed range of 1 to 2,147,483,647.</p>\n </li>\n <li>\n <p>\n <code>StreamTakeoverLimitBreached</code> — The broadcast client reached the maximum allowed \n\t\t\ttakeover attempts for this stream.</p>\n </li>\n </ul>"
4045+
}
40404046
}
40414047
},
40424048
"traits": {

0 commit comments

Comments
 (0)