packaging_configurations
Creates, updates, deletes or gets a packaging_configuration
resource or lists packaging_configurations
in a region
Overview
Name | packaging_configurations |
Type | Resource |
Description | Resource schema for AWS::MediaPackage::PackagingConfiguration |
Id | aws.mediapackage.packaging_configurations |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The ID of the PackagingConfiguration. |
packaging_group_id | string | The ID of a PackagingGroup. |
arn | string | The ARN of the PackagingConfiguration. |
cmaf_package | object | A CMAF packaging configuration. |
dash_package | object | A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration. |
hls_package | object | An HTTP Live Streaming (HLS) packaging configuration. |
mss_package | object | A Microsoft Smooth Streaming (MSS) PackagingConfiguration. |
tags | array | A collection of tags associated with a resource |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | PackagingGroupId, Id, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.mediapackage.packaging_configurations (
Id,
PackagingGroupId,
region
)
SELECT
'{{ Id }}',
'{{ PackagingGroupId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.mediapackage.packaging_configurations (
Id,
PackagingGroupId,
CmafPackage,
DashPackage,
HlsPackage,
MssPackage,
Tags,
region
)
SELECT
'{{ Id }}',
'{{ PackagingGroupId }}',
'{{ CmafPackage }}',
'{{ DashPackage }}',
'{{ HlsPackage }}',
'{{ MssPackage }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: packaging_configuration
props:
- name: Id
value: '{{ Id }}'
- name: PackagingGroupId
value: '{{ PackagingGroupId }}'
- name: CmafPackage
value:
Encryption:
SpekeKeyProvider:
EncryptionContractConfiguration:
PresetSpeke20Audio: '{{ PresetSpeke20Audio }}'
PresetSpeke20Video: '{{ PresetSpeke20Video }}'
RoleArn: '{{ RoleArn }}'
SystemIds:
- '{{ SystemIds[0] }}'
Url: '{{ Url }}'
HlsManifests:
- AdMarkers: '{{ AdMarkers }}'
IncludeIframeOnlyStream: '{{ IncludeIframeOnlyStream }}'
ManifestName: '{{ ManifestName }}'
ProgramDateTimeIntervalSeconds: '{{ ProgramDateTimeIntervalSeconds }}'
RepeatExtXKey: '{{ RepeatExtXKey }}'
StreamSelection:
MaxVideoBitsPerSecond: '{{ MaxVideoBitsPerSecond }}'
MinVideoBitsPerSecond: '{{ MinVideoBitsPerSecond }}'
StreamOrder: '{{ StreamOrder }}'
SegmentDurationSeconds: '{{ SegmentDurationSeconds }}'
IncludeEncoderConfigurationInSegments: '{{ IncludeEncoderConfigurationInSegments }}'
- name: DashPackage
value:
DashManifests:
- ManifestLayout: '{{ ManifestLayout }}'
ManifestName: null
MinBufferTimeSeconds: '{{ MinBufferTimeSeconds }}'
Profile: '{{ Profile }}'
ScteMarkersSource: '{{ ScteMarkersSource }}'
StreamSelection: null
Encryption:
SpekeKeyProvider: null
PeriodTriggers:
- '{{ PeriodTriggers[0] }}'
SegmentDurationSeconds: null
SegmentTemplateFormat: '{{ SegmentTemplateFormat }}'
IncludeEncoderConfigurationInSegments: '{{ IncludeEncoderConfigurationInSegments }}'
IncludeIframeOnlyStream: '{{ IncludeIframeOnlyStream }}'
- name: HlsPackage
value:
Encryption:
ConstantInitializationVector: '{{ ConstantInitializationVector }}'
EncryptionMethod: '{{ EncryptionMethod }}'
SpekeKeyProvider: null
HlsManifests:
- null
IncludeDvbSubtitles: '{{ IncludeDvbSubtitles }}'
SegmentDurationSeconds: null
UseAudioRenditionGroup: '{{ UseAudioRenditionGroup }}'
- name: MssPackage
value:
Encryption:
SpekeKeyProvider: null
MssManifests:
- ManifestName: null
StreamSelection: null
SegmentDurationSeconds: null
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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