From 769af884fcbc80e0aa06934a2c5fb13638f01f48 Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 30 Jun 2023 18:16:32 +0000 Subject: [PATCH] feat(client-ivs): Corrects the HTTP response code in the generated docs for PutMetadata and DeleteRecordingConfiguration APIs. --- clients/client-ivs/src/protocols/Aws_restJson1.ts | 4 ++-- codegen/sdk-codegen/aws-models/ivs.json | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/clients/client-ivs/src/protocols/Aws_restJson1.ts b/clients/client-ivs/src/protocols/Aws_restJson1.ts index e9d6c8961a4c..e97ae95b80c1 100644 --- a/clients/client-ivs/src/protocols/Aws_restJson1.ts +++ b/clients/client-ivs/src/protocols/Aws_restJson1.ts @@ -1440,7 +1440,7 @@ export const de_DeleteRecordingConfigurationCommand = async ( output: __HttpResponse, context: __SerdeContext ): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { + if (output.statusCode !== 204 && output.statusCode >= 300) { return de_DeleteRecordingConfigurationCommandError(output, context); } const contents: any = map({ @@ -2301,7 +2301,7 @@ export const de_PutMetadataCommand = async ( output: __HttpResponse, context: __SerdeContext ): Promise => { - if (output.statusCode !== 200 && output.statusCode >= 300) { + if (output.statusCode !== 204 && output.statusCode >= 300) { return de_PutMetadataCommandError(output, context); } const contents: any = map({ diff --git a/codegen/sdk-codegen/aws-models/ivs.json b/codegen/sdk-codegen/aws-models/ivs.json index 809b757e7826..db5be732075f 100644 --- a/codegen/sdk-codegen/aws-models/ivs.json +++ b/codegen/sdk-codegen/aws-models/ivs.json @@ -1821,7 +1821,8 @@ "smithy.api#documentation": "

Deletes the recording configuration for the specified ARN.

\n

If you try to delete a recording configuration that is associated with a channel, you will\n get an error (409 ConflictException). To avoid this, for all channels that reference the\n recording configuration, first use UpdateChannel to set the\n recordingConfigurationArn field to an empty string, then use\n DeleteRecordingConfiguration.

", "smithy.api#http": { "method": "POST", - "uri": "/DeleteRecordingConfiguration" + "uri": "/DeleteRecordingConfiguration", + "code": 204 } } }, @@ -3028,7 +3029,8 @@ "smithy.api#documentation": "

Inserts metadata into the active stream of the specified channel. At most 5 requests per\n second per channel are allowed, each with a maximum 1 KB payload. (If 5 TPS is not sufficient\n for your needs, we recommend batching your data into a single PutMetadata call.) At most 155\n requests per second per account are allowed. Also see Embedding Metadata within a Video Stream in\n the Amazon IVS User Guide.

", "smithy.api#http": { "method": "POST", - "uri": "/PutMetadata" + "uri": "/PutMetadata", + "code": 204 } } },