Skip to main content

multiplexprograms

Creates, updates, deletes or gets a multiplexprogram resource or lists multiplexprograms in a region

Overview

Namemultiplexprograms
TypeResource
DescriptionResource schema for AWS::MediaLive::Multiplexprogram
Idaws.medialive.multiplexprograms

Fields

NameDatatypeDescription
channel_idstringThe MediaLive channel associated with the program.
multiplex_idstringThe ID of the multiplex that the program belongs to.
multiplex_program_settingsobjectThe settings for this multiplex program.
preferred_channel_pipelinestringThe settings for this multiplex program.
packet_identifiers_mapobjectThe packet identifier map for this multiplex program.
pipeline_detailsarrayContains information about the current sources for the specified program in the specified multiplex. Keep in mind that each multiplex pipeline connects to both pipelines in a given source channel (the channel identified by the program). But only one of those channel pipelines is ever active at one time.
program_namestringThe name of the multiplex program.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all multiplexprograms in a region.

SELECT
region,
channel_id,
multiplex_id,
multiplex_program_settings,
preferred_channel_pipeline,
packet_identifiers_map,
pipeline_details,
program_name
FROM aws.medialive.multiplexprograms
WHERE region = 'us-east-1';

Gets all properties from an individual multiplexprogram.

SELECT
region,
channel_id,
multiplex_id,
multiplex_program_settings,
preferred_channel_pipeline,
packet_identifiers_map,
pipeline_details,
program_name
FROM aws.medialive.multiplexprograms
WHERE region = 'us-east-1' AND data__Identifier = '<ProgramName>|<MultiplexId>';

INSERT example

Use the following StackQL query and manifest file to create a new multiplexprogram resource, using stack-deploy.

/*+ create */
INSERT INTO aws.medialive.multiplexprograms (
ChannelId,
MultiplexId,
MultiplexProgramSettings,
PreferredChannelPipeline,
PacketIdentifiersMap,
PipelineDetails,
ProgramName,
region
)
SELECT
'{{ ChannelId }}',
'{{ MultiplexId }}',
'{{ MultiplexProgramSettings }}',
'{{ PreferredChannelPipeline }}',
'{{ PacketIdentifiersMap }}',
'{{ PipelineDetails }}',
'{{ ProgramName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.medialive.multiplexprograms
WHERE data__Identifier = '<ProgramName|MultiplexId>'
AND region = 'us-east-1';

Permissions

To operate on the multiplexprograms resource, the following permissions are required:

Create

medialive:CreateMultiplexProgram,
medialive:DescribeMultiplexProgram

Read

medialive:DescribeMultiplexProgram

Update

medialive:UpdateMultiplexProgram,
medialive:DescribeMultiplexProgram

Delete

medialive:DeleteMultiplexProgram,
medialive:DescribeMultiplexProgram

List

medialive:ListMultiplexPrograms