Skip to content

Commit

Permalink
feat(client-medialive): AWS Elemental MediaLive now supports now supp…
Browse files Browse the repository at this point in the history
…orts editing the PID values for a Multiplex.
  • Loading branch information
awstools committed Aug 12, 2024
1 parent 032e287 commit 4f1db8e
Show file tree
Hide file tree
Showing 9 changed files with 178 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 31 additions & 0 deletions clients/client-medialive/src/commands/UpdateMultiplexCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,37 @@ export interface UpdateMultiplexCommandOutput extends UpdateMultiplexResponse, _
* TransportStreamReservedBitrate: Number("int"),
* },
* Name: "STRING_VALUE",
* PacketIdentifiersMapping: { // MultiplexPacketIdentifiersMapping
* "<keys>": { // 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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions clients/client-medialive/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down
6 changes: 6 additions & 0 deletions clients/client-medialive/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5039,6 +5039,12 @@ export interface UpdateMultiplexRequest {
* @public
*/
Name?: string;

/**
* Placeholder documentation for MultiplexPacketIdentifiersMapping
* @public
*/
PacketIdentifiersMapping?: Record<string, MultiplexProgramPacketIdentifiersMap>;
}

/**
Expand Down
51 changes: 51 additions & 0 deletions clients/client-medialive/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -7050,6 +7053,22 @@ const se_MultiplexOutputSettings = (input: MultiplexOutputSettings, context: __S
});
};

/**
* serializeAws_restJson1MultiplexPacketIdentifiersMapping
*/
const se_MultiplexPacketIdentifiersMapping = (
input: Record<string, MultiplexProgramPacketIdentifiersMap>,
context: __SerdeContext
): any => {
return Object.entries(input).reduce((acc: Record<string, any>, [key, value]: [string, any]) => {
if (value === null) {
return acc;
}
acc[key] = se_MultiplexProgramPacketIdentifiersMap(value, context);
return acc;
}, {});
};

/**
* serializeAws_restJson1MultiplexProgramChannelDestinationSettings
*/
Expand All @@ -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
*/
Expand Down Expand Up @@ -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`],
Expand All @@ -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;
Expand Down
42 changes: 42 additions & 0 deletions codegen/sdk-codegen/aws-models/medialive.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 4f1db8e

Please sign in to comment.