From 5d52b43a4cfeec8234d1f7ce1ee528c834a155bc Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 2 Oct 2024 18:23:52 +0000 Subject: [PATCH] feat(client-ivs-realtime): Adds new Stage Health EventErrorCodes applicable to RTMP(S) broadcasts. Bug Fix: Enforces that EncoderConfiguration Video height and width must be even-number values. --- .../commands/ListParticipantEventsCommand.ts | 2 +- .../src/models/models_0.ts | 108 ++++++++++++++++-- .../sdk-codegen/aws-models/ivs-realtime.json | 28 ++++- 3 files changed, 122 insertions(+), 16 deletions(-) diff --git a/clients/client-ivs-realtime/src/commands/ListParticipantEventsCommand.ts b/clients/client-ivs-realtime/src/commands/ListParticipantEventsCommand.ts index d502106f5e15..bb0b11fc1c52 100644 --- a/clients/client-ivs-realtime/src/commands/ListParticipantEventsCommand.ts +++ b/clients/client-ivs-realtime/src/commands/ListParticipantEventsCommand.ts @@ -52,7 +52,7 @@ export interface ListParticipantEventsCommandOutput extends ListParticipantEvent * // participantId: "STRING_VALUE", * // eventTime: new Date("TIMESTAMP"), * // remoteParticipantId: "STRING_VALUE", - * // errorCode: "INSUFFICIENT_CAPABILITIES" || "QUOTA_EXCEEDED" || "PUBLISHER_NOT_FOUND" || "BITRATE_EXCEEDED" || "RESOLUTION_EXCEEDED" || "STREAM_DURATION_EXCEEDED" || "INVALID_AUDIO_CODEC" || "INVALID_VIDEO_CODEC" || "INVALID_PROTOCOL" || "INVALID_STREAM_KEY" || "REUSE_OF_STREAM_KEY", + * // errorCode: "INSUFFICIENT_CAPABILITIES" || "QUOTA_EXCEEDED" || "PUBLISHER_NOT_FOUND" || "BITRATE_EXCEEDED" || "RESOLUTION_EXCEEDED" || "STREAM_DURATION_EXCEEDED" || "INVALID_AUDIO_CODEC" || "INVALID_VIDEO_CODEC" || "INVALID_PROTOCOL" || "INVALID_STREAM_KEY" || "REUSE_OF_STREAM_KEY" || "B_FRAME_PRESENT" || "INVALID_INPUT" || "INTERNAL_SERVER_EXCEPTION", * // }, * // ], * // nextToken: "STRING_VALUE", diff --git a/clients/client-ivs-realtime/src/models/models_0.ts b/clients/client-ivs-realtime/src/models/models_0.ts index e6363f454ab8..df235fb5bce3 100644 --- a/clients/client-ivs-realtime/src/models/models_0.ts +++ b/clients/client-ivs-realtime/src/models/models_0.ts @@ -61,7 +61,7 @@ export class ConflictException extends __BaseException { */ export interface Video { /** - *

Video-resolution width. Note that the maximum value is determined by width + *

Video-resolution width. This must be an even number. Note that the maximum value is determined by width * times height, such that the maximum total pixels is 2073600 (1920x1080 or * 1080x1920). Default: 1280.

* @public @@ -69,7 +69,7 @@ export interface Video { width?: number; /** - *

Video-resolution height. Note that the maximum value is determined by width + *

Video-resolution height. This must be an even number. Note that the maximum value is determined by width * times height, such that the maximum total pixels is 2073600 (1920x1080 or * 1080x1920). Default: 720.

* @public @@ -2239,8 +2239,11 @@ export interface ListParticipantEventsRequest { */ export const EventErrorCode = { BITRATE_EXCEEDED: "BITRATE_EXCEEDED", + B_FRAME_PRESENT: "B_FRAME_PRESENT", INSUFFICIENT_CAPABILITIES: "INSUFFICIENT_CAPABILITIES", + INTERNAL_SERVER_EXCEPTION: "INTERNAL_SERVER_EXCEPTION", INVALID_AUDIO_CODEC: "INVALID_AUDIO_CODEC", + INVALID_INPUT: "INVALID_INPUT", INVALID_PROTOCOL: "INVALID_PROTOCOL", INVALID_STREAM_KEY: "INVALID_STREAM_KEY", INVALID_VIDEO_CODEC: "INVALID_VIDEO_CODEC", @@ -2310,14 +2313,99 @@ export interface Event { /** *

If the event is an error event, the error code is provided to give insight into the - * specific error that occurred. If the event is not an error event, this field is null. - * INSUFFICIENT_CAPABILITIES indicates that the participant tried to take an - * action that the participant’s token is not allowed to do. For more information about - * participant capabilities, see the capabilities field in CreateParticipantToken. QUOTA_EXCEEDED indicates that the - * number of participants who want to publish/subscribe to a stage exceeds the quota; for more - * information, see Service Quotas. - * PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a - * publisher that doesn’t exist.

+ * specific error that occurred. If the event is not an error event, this field is null.

+ * * @public */ errorCode?: EventErrorCode; diff --git a/codegen/sdk-codegen/aws-models/ivs-realtime.json b/codegen/sdk-codegen/aws-models/ivs-realtime.json index 718158ceaf6e..e43392676e54 100644 --- a/codegen/sdk-codegen/aws-models/ivs-realtime.json +++ b/codegen/sdk-codegen/aws-models/ivs-realtime.json @@ -2190,7 +2190,7 @@ "errorCode": { "target": "com.amazonaws.ivsrealtime#EventErrorCode", "traits": { - "smithy.api#documentation": "

If the event is an error event, the error code is provided to give insight into the\n specific error that occurred. If the event is not an error event, this field is null.\n INSUFFICIENT_CAPABILITIES indicates that the participant tried to take an\n action that the participant’s token is not allowed to do. For more information about\n participant capabilities, see the capabilities field in CreateParticipantToken. QUOTA_EXCEEDED indicates that the\n number of participants who want to publish/subscribe to a stage exceeds the quota; for more\n information, see Service Quotas.\n PUBLISHER_NOT_FOUND indicates that the participant tried to subscribe to a\n publisher that doesn’t exist.

" + "smithy.api#documentation": "

If the event is an error event, the error code is provided to give insight into the\n specific error that occurred. If the event is not an error event, this field is null.

\n " } } }, @@ -2266,6 +2266,24 @@ "traits": { "smithy.api#enumValue": "REUSE_OF_STREAM_KEY" } + }, + "B_FRAME_PRESENT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "B_FRAME_PRESENT" + } + }, + "INVALID_INPUT": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INVALID_INPUT" + } + }, + "INTERNAL_SERVER_EXCEPTION": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INTERNAL_SERVER_EXCEPTION" + } } } }, @@ -2878,7 +2896,7 @@ "type": "integer", "traits": { "smithy.api#range": { - "min": 1, + "min": 2, "max": 1920 } } @@ -5795,13 +5813,13 @@ "width": { "target": "com.amazonaws.ivsrealtime#Width", "traits": { - "smithy.api#documentation": "

Video-resolution width. Note that the maximum value is determined by width\n times height, such that the maximum total pixels is 2073600 (1920x1080 or\n 1080x1920). Default: 1280.

" + "smithy.api#documentation": "

Video-resolution width. This must be an even number. Note that the maximum value is determined by width\n times height, such that the maximum total pixels is 2073600 (1920x1080 or\n 1080x1920). Default: 1280.

" } }, "height": { "target": "com.amazonaws.ivsrealtime#Height", "traits": { - "smithy.api#documentation": "

Video-resolution height. Note that the maximum value is determined by width\n times height, such that the maximum total pixels is 2073600 (1920x1080 or\n 1080x1920). Default: 720.

" + "smithy.api#documentation": "

Video-resolution height. This must be an even number. Note that the maximum value is determined by width\n times height, such that the maximum total pixels is 2073600 (1920x1080 or\n 1080x1920). Default: 720.

" } }, "framerate": { @@ -5877,7 +5895,7 @@ "type": "integer", "traits": { "smithy.api#range": { - "min": 1, + "min": 2, "max": 1920 } }