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
Idawscc.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.

For more information, see AWS::MediaLive::Multiplexprogram.

Methods

NameResourceAccessible byRequired Params
create_resourcemultiplexprogramsINSERTregion
delete_resourcemultiplexprogramsDELETEIdentifier, region
update_resourcemultiplexprogramsUPDATEIdentifier, PatchDocument, region
list_resourcesmultiplexprograms_list_onlySELECTregion
get_resourcemultiplexprogramsSELECTIdentifier, region

SELECT examples

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 awscc.medialive.multiplexprograms
WHERE
region = '{{ region }}' AND
Identifier = '{{ program_name }}|{{ multiplex_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.medialive.multiplexprograms (
MultiplexId,
MultiplexProgramSettings,
PreferredChannelPipeline,
PacketIdentifiersMap,
PipelineDetails,
ProgramName,
region
)
SELECT
'{{ multiplex_id }}',
'{{ multiplex_program_settings }}',
'{{ preferred_channel_pipeline }}',
'{{ packet_identifiers_map }}',
'{{ pipeline_details }}',
'{{ program_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.medialive.multiplexprograms
SET PatchDocument = string('{{ {
"MultiplexProgramSettings": multiplex_program_settings,
"PreferredChannelPipeline": preferred_channel_pipeline,
"PacketIdentifiersMap": packet_identifiers_map,
"PipelineDetails": pipeline_details
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ program_name }}|{{ multiplex_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.medialive.multiplexprograms
WHERE
Identifier = '{{ program_name }}|{{ multiplex_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

medialive:CreateMultiplexProgram,
medialive:DescribeMultiplexProgram