Skip to content

Commit 19047c8

Browse files
author
awstools
committed
feat(client-ivs-realtime): Add QUOTA_EXCEEDED and PUBLISHER_NOT_FOUND to EventErrorCode for stage health events.
1 parent 29e5e50 commit 19047c8

File tree

5 files changed

+32
-33
lines changed

5 files changed

+32
-33
lines changed

clients/client-ivs-realtime/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,17 @@ AWS SDK for JavaScript IVSRealTime Client for Node.js, Browser and React Native.
99
<p>
1010
<b>Introduction</b>
1111
</p>
12-
<p>The Amazon Interactive Video Service (IVS) stage API is REST compatible, using a standard HTTP
12+
<p>The Amazon Interactive Video Service (IVS) real-time API is REST compatible, using a standard HTTP
1313
API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses,
1414
including errors.
1515
</p>
1616
<p>Terminology:</p>
1717
<ul>
1818
<li>
19-
<p>The IVS stage API sometimes is referred to as the IVS <i>RealTime</i>
20-
API.</p>
19+
<p>A <i>stage</i> is a virtual space where participants can exchange video in real time.</p>
2120
</li>
2221
<li>
23-
<p>A <i>participant token</i> is an authorization token used to publish/subscribe
24-
to a stage.</p>
22+
<p>A <i>participant token</i> is a token that authenticates a participant when they join a stage.</p>
2523
</li>
2624
<li>
2725
<p>A <i>participant object</i> represents participants
@@ -34,11 +32,11 @@ participant tokens and participants.</p>
3432
<p>
3533
<b>Resources</b>
3634
</p>
37-
<p>The following resources contain information about your IVS live stream (see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/getting-started.html">Getting Started with Amazon IVS</a>):</p>
35+
<p>The following resources contain information about your IVS live stream (see <a href="https://docs.aws.amazon.com/ivs/latest/RealTimeUserGuide/getting-started.html">Getting Started with Amazon IVS Real-Time Streaming</a>):</p>
3836
<ul>
3937
<li>
4038
<p>
41-
<b>Stage</b> — A stage is a virtual space where multiple participants can exchange audio and video in real time.</p>
39+
<b>Stage</b> — A stage is a virtual space where participants can exchange video in real time.</p>
4240
</li>
4341
</ul>
4442
<p>
@@ -53,7 +51,7 @@ constraints beyond what is documented there.</p>
5351
<p>Tags can help you identify and organize your AWS resources. For example, you can use the
5452
same tag for different resources to indicate that they are related. You can also use tags to
5553
manage access (see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Access Tags</a>).</p>
56-
<p>The Amazon IVS stage API has these tag-related endpoints: <a>TagResource</a>, <a>UntagResource</a>, and
54+
<p>The Amazon IVS real-time API has these tag-related endpoints: <a>TagResource</a>, <a>UntagResource</a>, and
5755
<a>ListTagsForResource</a>. The following resource supports tagging: Stage.</p>
5856
<p>At most 50 tags can be applied to a resource.</p>
5957
<p>

clients/client-ivs-realtime/src/IVSRealTime.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,19 +287,17 @@ export interface IVSRealTime {
287287
* <p>
288288
* <b>Introduction</b>
289289
* </p>
290-
* <p>The Amazon Interactive Video Service (IVS) stage API is REST compatible, using a standard HTTP
290+
* <p>The Amazon Interactive Video Service (IVS) real-time API is REST compatible, using a standard HTTP
291291
* API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses,
292292
* including errors.
293293
* </p>
294294
* <p>Terminology:</p>
295295
* <ul>
296296
* <li>
297-
* <p>The IVS stage API sometimes is referred to as the IVS <i>RealTime</i>
298-
* API.</p>
297+
* <p>A <i>stage</i> is a virtual space where participants can exchange video in real time.</p>
299298
* </li>
300299
* <li>
301-
* <p>A <i>participant token</i> is an authorization token used to publish/subscribe
302-
* to a stage.</p>
300+
* <p>A <i>participant token</i> is a token that authenticates a participant when they join a stage.</p>
303301
* </li>
304302
* <li>
305303
* <p>A <i>participant object</i> represents participants
@@ -312,11 +310,11 @@ export interface IVSRealTime {
312310
* <p>
313311
* <b>Resources</b>
314312
* </p>
315-
* <p>The following resources contain information about your IVS live stream (see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/getting-started.html">Getting Started with Amazon IVS</a>):</p>
313+
* <p>The following resources contain information about your IVS live stream (see <a href="https://docs.aws.amazon.com/ivs/latest/RealTimeUserGuide/getting-started.html">Getting Started with Amazon IVS Real-Time Streaming</a>):</p>
316314
* <ul>
317315
* <li>
318316
* <p>
319-
* <b>Stage</b> — A stage is a virtual space where multiple participants can exchange audio and video in real time.</p>
317+
* <b>Stage</b> — A stage is a virtual space where participants can exchange video in real time.</p>
320318
* </li>
321319
* </ul>
322320
* <p>
@@ -331,7 +329,7 @@ export interface IVSRealTime {
331329
* <p>Tags can help you identify and organize your AWS resources. For example, you can use the
332330
* same tag for different resources to indicate that they are related. You can also use tags to
333331
* manage access (see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Access Tags</a>).</p>
334-
* <p>The Amazon IVS stage API has these tag-related endpoints: <a>TagResource</a>, <a>UntagResource</a>, and
332+
* <p>The Amazon IVS real-time API has these tag-related endpoints: <a>TagResource</a>, <a>UntagResource</a>, and
335333
* <a>ListTagsForResource</a>. The following resource supports tagging: Stage.</p>
336334
* <p>At most 50 tags can be applied to a resource.</p>
337335
* <p>

clients/client-ivs-realtime/src/IVSRealTimeClient.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -293,19 +293,17 @@ export interface IVSRealTimeClientResolvedConfig extends IVSRealTimeClientResolv
293293
* <p>
294294
* <b>Introduction</b>
295295
* </p>
296-
* <p>The Amazon Interactive Video Service (IVS) stage API is REST compatible, using a standard HTTP
296+
* <p>The Amazon Interactive Video Service (IVS) real-time API is REST compatible, using a standard HTTP
297297
* API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses,
298298
* including errors.
299299
* </p>
300300
* <p>Terminology:</p>
301301
* <ul>
302302
* <li>
303-
* <p>The IVS stage API sometimes is referred to as the IVS <i>RealTime</i>
304-
* API.</p>
303+
* <p>A <i>stage</i> is a virtual space where participants can exchange video in real time.</p>
305304
* </li>
306305
* <li>
307-
* <p>A <i>participant token</i> is an authorization token used to publish/subscribe
308-
* to a stage.</p>
306+
* <p>A <i>participant token</i> is a token that authenticates a participant when they join a stage.</p>
309307
* </li>
310308
* <li>
311309
* <p>A <i>participant object</i> represents participants
@@ -318,11 +316,11 @@ export interface IVSRealTimeClientResolvedConfig extends IVSRealTimeClientResolv
318316
* <p>
319317
* <b>Resources</b>
320318
* </p>
321-
* <p>The following resources contain information about your IVS live stream (see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/getting-started.html">Getting Started with Amazon IVS</a>):</p>
319+
* <p>The following resources contain information about your IVS live stream (see <a href="https://docs.aws.amazon.com/ivs/latest/RealTimeUserGuide/getting-started.html">Getting Started with Amazon IVS Real-Time Streaming</a>):</p>
322320
* <ul>
323321
* <li>
324322
* <p>
325-
* <b>Stage</b> — A stage is a virtual space where multiple participants can exchange audio and video in real time.</p>
323+
* <b>Stage</b> — A stage is a virtual space where participants can exchange video in real time.</p>
326324
* </li>
327325
* </ul>
328326
* <p>
@@ -337,7 +335,7 @@ export interface IVSRealTimeClientResolvedConfig extends IVSRealTimeClientResolv
337335
* <p>Tags can help you identify and organize your AWS resources. For example, you can use the
338336
* same tag for different resources to indicate that they are related. You can also use tags to
339337
* manage access (see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Access Tags</a>).</p>
340-
* <p>The Amazon IVS stage API has these tag-related endpoints: <a>TagResource</a>, <a>UntagResource</a>, and
338+
* <p>The Amazon IVS real-time API has these tag-related endpoints: <a>TagResource</a>, <a>UntagResource</a>, and
341339
* <a>ListTagsForResource</a>. The following resource supports tagging: Stage.</p>
342340
* <p>At most 50 tags can be applied to a resource.</p>
343341
* <p>

clients/client-ivs-realtime/src/index.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,17 @@
44
* <p>
55
* <b>Introduction</b>
66
* </p>
7-
* <p>The Amazon Interactive Video Service (IVS) stage API is REST compatible, using a standard HTTP
7+
* <p>The Amazon Interactive Video Service (IVS) real-time API is REST compatible, using a standard HTTP
88
* API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses,
99
* including errors.
1010
* </p>
1111
* <p>Terminology:</p>
1212
* <ul>
1313
* <li>
14-
* <p>The IVS stage API sometimes is referred to as the IVS <i>RealTime</i>
15-
* API.</p>
14+
* <p>A <i>stage</i> is a virtual space where participants can exchange video in real time.</p>
1615
* </li>
1716
* <li>
18-
* <p>A <i>participant token</i> is an authorization token used to publish/subscribe
19-
* to a stage.</p>
17+
* <p>A <i>participant token</i> is a token that authenticates a participant when they join a stage.</p>
2018
* </li>
2119
* <li>
2220
* <p>A <i>participant object</i> represents participants
@@ -29,11 +27,11 @@
2927
* <p>
3028
* <b>Resources</b>
3129
* </p>
32-
* <p>The following resources contain information about your IVS live stream (see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/getting-started.html">Getting Started with Amazon IVS</a>):</p>
30+
* <p>The following resources contain information about your IVS live stream (see <a href="https://docs.aws.amazon.com/ivs/latest/RealTimeUserGuide/getting-started.html">Getting Started with Amazon IVS Real-Time Streaming</a>):</p>
3331
* <ul>
3432
* <li>
3533
* <p>
36-
* <b>Stage</b> — A stage is a virtual space where multiple participants can exchange audio and video in real time.</p>
34+
* <b>Stage</b> — A stage is a virtual space where participants can exchange video in real time.</p>
3735
* </li>
3836
* </ul>
3937
* <p>
@@ -48,7 +46,7 @@
4846
* <p>Tags can help you identify and organize your AWS resources. For example, you can use the
4947
* same tag for different resources to indicate that they are related. You can also use tags to
5048
* manage access (see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html">Access Tags</a>).</p>
51-
* <p>The Amazon IVS stage API has these tag-related endpoints: <a>TagResource</a>, <a>UntagResource</a>, and
49+
* <p>The Amazon IVS real-time API has these tag-related endpoints: <a>TagResource</a>, <a>UntagResource</a>, and
5250
* <a>ListTagsForResource</a>. The following resource supports tagging: Stage.</p>
5351
* <p>At most 50 tags can be applied to a resource.</p>
5452
* <p>

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ export interface ListParticipantEventsRequest {
663663
*/
664664
export const EventErrorCode = {
665665
INSUFFICIENT_CAPABILITIES: "INSUFFICIENT_CAPABILITIES",
666+
PUBLISHER_NOT_FOUND: "PUBLISHER_NOT_FOUND",
667+
QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
666668
} as const;
667669

668670
/**
@@ -728,7 +730,12 @@ export interface Event {
728730
* specific error that occurred. If the event is not an error event, this field is null.
729731
* <code>INSUFFICIENT_CAPABILITIES</code> indicates that the participant tried to take an action that the
730732
* participant’s token is not allowed to do. For more information about participant
731-
* capabilities, see the <code>capabilities</code> field in <a>CreateParticipantToken</a>.</p>
733+
* capabilities, see the <code>capabilities</code> field in <a>CreateParticipantToken</a>.
734+
* <code>QUOTA_EXCEEDED</code> indicates that the number of participants who want to publish/subscribe to a
735+
* stage exceeds the quota; for more information, see <a href="https://docs.aws.amazon.com/ivs/latest/RealTimeUserGuide/service-quotas.html">Service Quotas</a>.
736+
* <code>PUBLISHER_NOT_FOUND</code> indicates that the participant tried to subscribe to a publisher
737+
* that doesn’t exist.
738+
* </p>
732739
*/
733740
errorCode?: EventErrorCode | string;
734741
}

0 commit comments

Comments
 (0)