From 4f1db8e5f44cf24b54cfbe92240384be53dfe3bb Mon Sep 17 00:00:00 2001 From: awstools Date: Mon, 12 Aug 2024 18:58:04 +0000 Subject: [PATCH] feat(client-medialive): AWS Elemental MediaLive now supports now supports editing the PID values for a Multiplex. --- .../commands/CreateMultiplexProgramCommand.ts | 6 +++ .../commands/DeleteMultiplexProgramCommand.ts | 6 +++ .../DescribeMultiplexProgramCommand.ts | 6 +++ .../src/commands/UpdateMultiplexCommand.ts | 31 +++++++++++ .../commands/UpdateMultiplexProgramCommand.ts | 6 +++ .../client-medialive/src/models/models_1.ts | 24 +++++++++ .../client-medialive/src/models/models_2.ts | 6 +++ .../src/protocols/Aws_restJson1.ts | 51 +++++++++++++++++++ codegen/sdk-codegen/aws-models/medialive.json | 42 +++++++++++++++ 9 files changed, 178 insertions(+) diff --git a/clients/client-medialive/src/commands/CreateMultiplexProgramCommand.ts b/clients/client-medialive/src/commands/CreateMultiplexProgramCommand.ts index a4ef29629696..e371040aed13 100644 --- a/clients/client-medialive/src/commands/CreateMultiplexProgramCommand.ts +++ b/clients/client-medialive/src/commands/CreateMultiplexProgramCommand.ts @@ -99,6 +99,12 @@ export interface CreateMultiplexProgramCommandOutput extends CreateMultiplexProg * // Scte35Pid: Number("int"), * // TimedMetadataPid: Number("int"), * // VideoPid: Number("int"), + * // AribCaptionsPid: Number("int"), + * // DvbTeletextPids: [ + * // Number("int"), + * // ], + * // EcmPid: Number("int"), + * // Smpte2038Pid: Number("int"), * // }, * // PipelineDetails: [ // __listOfMultiplexProgramPipelineDetail * // { // MultiplexProgramPipelineDetail diff --git a/clients/client-medialive/src/commands/DeleteMultiplexProgramCommand.ts b/clients/client-medialive/src/commands/DeleteMultiplexProgramCommand.ts index 9a429b60b86c..4f1e00779564 100644 --- a/clients/client-medialive/src/commands/DeleteMultiplexProgramCommand.ts +++ b/clients/client-medialive/src/commands/DeleteMultiplexProgramCommand.ts @@ -81,6 +81,12 @@ export interface DeleteMultiplexProgramCommandOutput extends DeleteMultiplexProg * // Scte35Pid: Number("int"), * // TimedMetadataPid: Number("int"), * // VideoPid: Number("int"), + * // AribCaptionsPid: Number("int"), + * // DvbTeletextPids: [ + * // Number("int"), + * // ], + * // EcmPid: Number("int"), + * // Smpte2038Pid: Number("int"), * // }, * // PipelineDetails: [ // __listOfMultiplexProgramPipelineDetail * // { // MultiplexProgramPipelineDetail diff --git a/clients/client-medialive/src/commands/DescribeMultiplexProgramCommand.ts b/clients/client-medialive/src/commands/DescribeMultiplexProgramCommand.ts index 49e26174f148..dec6d842e187 100644 --- a/clients/client-medialive/src/commands/DescribeMultiplexProgramCommand.ts +++ b/clients/client-medialive/src/commands/DescribeMultiplexProgramCommand.ts @@ -81,6 +81,12 @@ export interface DescribeMultiplexProgramCommandOutput extends DescribeMultiplex * // Scte35Pid: Number("int"), * // TimedMetadataPid: Number("int"), * // VideoPid: Number("int"), + * // AribCaptionsPid: Number("int"), + * // DvbTeletextPids: [ + * // Number("int"), + * // ], + * // EcmPid: Number("int"), + * // Smpte2038Pid: Number("int"), * // }, * // PipelineDetails: [ // __listOfMultiplexProgramPipelineDetail * // { // MultiplexProgramPipelineDetail diff --git a/clients/client-medialive/src/commands/UpdateMultiplexCommand.ts b/clients/client-medialive/src/commands/UpdateMultiplexCommand.ts index d3aeb12f04d8..e72037b69834 100644 --- a/clients/client-medialive/src/commands/UpdateMultiplexCommand.ts +++ b/clients/client-medialive/src/commands/UpdateMultiplexCommand.ts @@ -44,6 +44,37 @@ export interface UpdateMultiplexCommandOutput extends UpdateMultiplexResponse, _ * TransportStreamReservedBitrate: Number("int"), * }, * Name: "STRING_VALUE", + * PacketIdentifiersMapping: { // MultiplexPacketIdentifiersMapping + * "": { // MultiplexProgramPacketIdentifiersMap + * AudioPids: [ // __listOf__integer + * Number("int"), + * ], + * DvbSubPids: [ + * Number("int"), + * ], + * DvbTeletextPid: Number("int"), + * EtvPlatformPid: Number("int"), + * EtvSignalPid: Number("int"), + * KlvDataPids: [ + * Number("int"), + * ], + * PcrPid: Number("int"), + * PmtPid: Number("int"), + * PrivateMetadataPid: Number("int"), + * Scte27Pids: [ + * Number("int"), + * ], + * Scte35Pid: Number("int"), + * TimedMetadataPid: Number("int"), + * VideoPid: Number("int"), + * AribCaptionsPid: Number("int"), + * DvbTeletextPids: [ + * Number("int"), + * ], + * EcmPid: Number("int"), + * Smpte2038Pid: Number("int"), + * }, + * }, * }; * const command = new UpdateMultiplexCommand(input); * const response = await client.send(command); diff --git a/clients/client-medialive/src/commands/UpdateMultiplexProgramCommand.ts b/clients/client-medialive/src/commands/UpdateMultiplexProgramCommand.ts index c8138f931123..97baf95d5db7 100644 --- a/clients/client-medialive/src/commands/UpdateMultiplexProgramCommand.ts +++ b/clients/client-medialive/src/commands/UpdateMultiplexProgramCommand.ts @@ -98,6 +98,12 @@ export interface UpdateMultiplexProgramCommandOutput extends UpdateMultiplexProg * // Scte35Pid: Number("int"), * // TimedMetadataPid: Number("int"), * // VideoPid: Number("int"), + * // AribCaptionsPid: Number("int"), + * // DvbTeletextPids: [ + * // Number("int"), + * // ], + * // EcmPid: Number("int"), + * // Smpte2038Pid: Number("int"), * // }, * // PipelineDetails: [ // __listOfMultiplexProgramPipelineDetail * // { // MultiplexProgramPipelineDetail diff --git a/clients/client-medialive/src/models/models_1.ts b/clients/client-medialive/src/models/models_1.ts index 2143fd2439ff..1b74ffc94a10 100644 --- a/clients/client-medialive/src/models/models_1.ts +++ b/clients/client-medialive/src/models/models_1.ts @@ -7445,6 +7445,30 @@ export interface MultiplexProgramPacketIdentifiersMap { * @public */ VideoPid?: number; + + /** + * Placeholder documentation for __integer + * @public + */ + AribCaptionsPid?: number; + + /** + * Placeholder documentation for __listOf__integer + * @public + */ + DvbTeletextPids?: number[]; + + /** + * Placeholder documentation for __integer + * @public + */ + EcmPid?: number; + + /** + * Placeholder documentation for __integer + * @public + */ + Smpte2038Pid?: number; } /** diff --git a/clients/client-medialive/src/models/models_2.ts b/clients/client-medialive/src/models/models_2.ts index d8cda1c3279e..f86cbd686ebe 100644 --- a/clients/client-medialive/src/models/models_2.ts +++ b/clients/client-medialive/src/models/models_2.ts @@ -5039,6 +5039,12 @@ export interface UpdateMultiplexRequest { * @public */ Name?: string; + + /** + * Placeholder documentation for MultiplexPacketIdentifiersMapping + * @public + */ + PacketIdentifiersMapping?: Record; } /** diff --git a/clients/client-medialive/src/protocols/Aws_restJson1.ts b/clients/client-medialive/src/protocols/Aws_restJson1.ts index a3d2736db385..cf6a5bd72c5a 100644 --- a/clients/client-medialive/src/protocols/Aws_restJson1.ts +++ b/clients/client-medialive/src/protocols/Aws_restJson1.ts @@ -2413,6 +2413,7 @@ export const se_UpdateMultiplexCommand = async ( take(input, { multiplexSettings: [, (_) => se_MultiplexSettings(_, context), `MultiplexSettings`], name: [, , `Name`], + packetIdentifiersMapping: [, (_) => se_MultiplexPacketIdentifiersMapping(_, context), `PacketIdentifiersMapping`], }) ); b.m("PUT").h(headers).b(body); @@ -5017,6 +5018,8 @@ const de_UnprocessableEntityExceptionRes = async ( return __decorateServiceException(exception, parsedOutput.body); }; +// se___listOf__integer omitted. + // se___listOf__string omitted. // se___listOf__stringPatternS omitted. @@ -7050,6 +7053,22 @@ const se_MultiplexOutputSettings = (input: MultiplexOutputSettings, context: __S }); }; +/** + * serializeAws_restJson1MultiplexPacketIdentifiersMapping + */ +const se_MultiplexPacketIdentifiersMapping = ( + input: Record, + context: __SerdeContext +): any => { + return Object.entries(input).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + acc[key] = se_MultiplexProgramPacketIdentifiersMap(value, context); + return acc; + }, {}); +}; + /** * serializeAws_restJson1MultiplexProgramChannelDestinationSettings */ @@ -7063,6 +7082,34 @@ const se_MultiplexProgramChannelDestinationSettings = ( }); }; +/** + * serializeAws_restJson1MultiplexProgramPacketIdentifiersMap + */ +const se_MultiplexProgramPacketIdentifiersMap = ( + input: MultiplexProgramPacketIdentifiersMap, + context: __SerdeContext +): any => { + return take(input, { + aribCaptionsPid: [, , `AribCaptionsPid`], + audioPids: [, _json, `AudioPids`], + dvbSubPids: [, _json, `DvbSubPids`], + dvbTeletextPid: [, , `DvbTeletextPid`], + dvbTeletextPids: [, _json, `DvbTeletextPids`], + ecmPid: [, , `EcmPid`], + etvPlatformPid: [, , `EtvPlatformPid`], + etvSignalPid: [, , `EtvSignalPid`], + klvDataPids: [, _json, `KlvDataPids`], + pcrPid: [, , `PcrPid`], + pmtPid: [, , `PmtPid`], + privateMetadataPid: [, , `PrivateMetadataPid`], + scte27Pids: [, _json, `Scte27Pids`], + scte35Pid: [, , `Scte35Pid`], + smpte2038Pid: [, , `Smpte2038Pid`], + timedMetadataPid: [, , `TimedMetadataPid`], + videoPid: [, , `VideoPid`], + }); +}; + /** * serializeAws_restJson1MultiplexProgramServiceDescriptor */ @@ -10692,9 +10739,12 @@ const de_MultiplexProgramPacketIdentifiersMap = ( context: __SerdeContext ): MultiplexProgramPacketIdentifiersMap => { return take(output, { + AribCaptionsPid: [, __expectInt32, `aribCaptionsPid`], AudioPids: [, _json, `audioPids`], DvbSubPids: [, _json, `dvbSubPids`], DvbTeletextPid: [, __expectInt32, `dvbTeletextPid`], + DvbTeletextPids: [, _json, `dvbTeletextPids`], + EcmPid: [, __expectInt32, `ecmPid`], EtvPlatformPid: [, __expectInt32, `etvPlatformPid`], EtvSignalPid: [, __expectInt32, `etvSignalPid`], KlvDataPids: [, _json, `klvDataPids`], @@ -10703,6 +10753,7 @@ const de_MultiplexProgramPacketIdentifiersMap = ( PrivateMetadataPid: [, __expectInt32, `privateMetadataPid`], Scte27Pids: [, _json, `scte27Pids`], Scte35Pid: [, __expectInt32, `scte35Pid`], + Smpte2038Pid: [, __expectInt32, `smpte2038Pid`], TimedMetadataPid: [, __expectInt32, `timedMetadataPid`], VideoPid: [, __expectInt32, `videoPid`], }) as any; diff --git a/codegen/sdk-codegen/aws-models/medialive.json b/codegen/sdk-codegen/aws-models/medialive.json index c1b873e0c573..1d59b43654e8 100644 --- a/codegen/sdk-codegen/aws-models/medialive.json +++ b/codegen/sdk-codegen/aws-models/medialive.json @@ -22355,6 +22355,18 @@ "smithy.api#documentation": "Multiplex Output Settings" } }, + "com.amazonaws.medialive#MultiplexPacketIdentifiersMapping": { + "type": "map", + "key": { + "target": "com.amazonaws.medialive#__string" + }, + "value": { + "target": "com.amazonaws.medialive#MultiplexProgramPacketIdentifiersMap" + }, + "traits": { + "smithy.api#documentation": "Placeholder documentation for MultiplexPacketIdentifiersMapping" + } + }, "com.amazonaws.medialive#MultiplexProgram": { "type": "structure", "members": { @@ -22500,6 +22512,30 @@ "traits": { "smithy.api#jsonName": "videoPid" } + }, + "AribCaptionsPid": { + "target": "com.amazonaws.medialive#__integer", + "traits": { + "smithy.api#jsonName": "aribCaptionsPid" + } + }, + "DvbTeletextPids": { + "target": "com.amazonaws.medialive#__listOf__integer", + "traits": { + "smithy.api#jsonName": "dvbTeletextPids" + } + }, + "EcmPid": { + "target": "com.amazonaws.medialive#__integer", + "traits": { + "smithy.api#jsonName": "ecmPid" + } + }, + "Smpte2038Pid": { + "target": "com.amazonaws.medialive#__integer", + "traits": { + "smithy.api#jsonName": "smpte2038Pid" + } } }, "traits": { @@ -30510,6 +30546,12 @@ "smithy.api#documentation": "Name of the multiplex.", "smithy.api#jsonName": "name" } + }, + "PacketIdentifiersMapping": { + "target": "com.amazonaws.medialive#MultiplexPacketIdentifiersMapping", + "traits": { + "smithy.api#jsonName": "packetIdentifiersMapping" + } } }, "traits": {