Skip to main content

packaging_configurations

Creates, updates, deletes or gets a packaging_configuration resource or lists packaging_configurations in a region

Overview

Namepackaging_configurations
TypeResource
DescriptionResource schema for AWS::MediaPackage::PackagingConfiguration
Idaws.mediapackage.packaging_configurations

Fields

NameDatatypeDescription
idstringThe ID of the PackagingConfiguration.
packaging_group_idstringThe ID of a PackagingGroup.
arnstringThe ARN of the PackagingConfiguration.
cmaf_packageobjectA CMAF packaging configuration.
dash_packageobjectA Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
hls_packageobjectAn HTTP Live Streaming (HLS) packaging configuration.
mss_packageobjectA Microsoft Smooth Streaming (MSS) PackagingConfiguration.
tagsarrayA collection of tags associated with a resource
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTPackagingGroupId, Id, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all packaging_configurations in a region.

SELECT
region,
id,
packaging_group_id,
arn,
cmaf_package,
dash_package,
hls_package,
mss_package,
tags
FROM aws.mediapackage.packaging_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual packaging_configuration.

SELECT
region,
id,
packaging_group_id,
arn,
cmaf_package,
dash_package,
hls_package,
mss_package,
tags
FROM aws.mediapackage.packaging_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.mediapackage.packaging_configurations (
Id,
PackagingGroupId,
region
)
SELECT
'{{ Id }}',
'{{ PackagingGroupId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediapackage.packaging_configurations
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

mediapackage-vod:CreatePackagingConfiguration,
mediapackage-vod:DescribePackagingConfiguration,
mediapackage-vod:TagResource,
iam:PassRole

Read

mediapackage-vod:DescribePackagingConfiguration

Delete

mediapackage-vod:DescribePackagingConfiguration,
mediapackage-vod:DeletePackagingConfiguration

List

mediapackage-vod:ListPackagingConfigurations,
mediapackage-vod:DescribePackagingGroup