CfnPackagingConfigurationPropsMixin

class aws_cdk.mixins_preview.aws_mediapackage.mixins.CfnPackagingConfigurationPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a packaging configuration in a packaging group.

The packaging configuration represents a single delivery point for an asset. It determines the format and setting for the egressing content. Specify only one package format per configuration, such as HlsPackage .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-packagingconfiguration.html

CloudformationResource:

AWS::MediaPackage::PackagingConfiguration

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

cfn_packaging_configuration_props_mixin = mediapackage_mixins.CfnPackagingConfigurationPropsMixin(mediapackage_mixins.CfnPackagingConfigurationMixinProps(
    cmaf_package=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.CmafPackageProperty(
        encryption=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.CmafEncryptionProperty(
            speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
                encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
                    preset_speke20_audio="presetSpeke20Audio",
                    preset_speke20_video="presetSpeke20Video"
                ),
                role_arn="roleArn",
                system_ids=["systemIds"],
                url="url"
            )
        ),
        hls_manifests=[mediapackage_mixins.CfnPackagingConfigurationPropsMixin.HlsManifestProperty(
            ad_markers="adMarkers",
            include_iframe_only_stream=False,
            manifest_name="manifestName",
            program_date_time_interval_seconds=123,
            repeat_ext_xKey=False,
            stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
                max_video_bits_per_second=123,
                min_video_bits_per_second=123,
                stream_order="streamOrder"
            )
        )],
        include_encoder_configuration_in_segments=False,
        segment_duration_seconds=123
    ),
    dash_package=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.DashPackageProperty(
        dash_manifests=[mediapackage_mixins.CfnPackagingConfigurationPropsMixin.DashManifestProperty(
            manifest_layout="manifestLayout",
            manifest_name="manifestName",
            min_buffer_time_seconds=123,
            profile="profile",
            scte_markers_source="scteMarkersSource",
            stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
                max_video_bits_per_second=123,
                min_video_bits_per_second=123,
                stream_order="streamOrder"
            )
        )],
        encryption=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.DashEncryptionProperty(
            speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
                encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
                    preset_speke20_audio="presetSpeke20Audio",
                    preset_speke20_video="presetSpeke20Video"
                ),
                role_arn="roleArn",
                system_ids=["systemIds"],
                url="url"
            )
        ),
        include_encoder_configuration_in_segments=False,
        include_iframe_only_stream=False,
        period_triggers=["periodTriggers"],
        segment_duration_seconds=123,
        segment_template_format="segmentTemplateFormat"
    ),
    hls_package=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.HlsPackageProperty(
        encryption=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.HlsEncryptionProperty(
            constant_initialization_vector="constantInitializationVector",
            encryption_method="encryptionMethod",
            speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
                encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
                    preset_speke20_audio="presetSpeke20Audio",
                    preset_speke20_video="presetSpeke20Video"
                ),
                role_arn="roleArn",
                system_ids=["systemIds"],
                url="url"
            )
        ),
        hls_manifests=[mediapackage_mixins.CfnPackagingConfigurationPropsMixin.HlsManifestProperty(
            ad_markers="adMarkers",
            include_iframe_only_stream=False,
            manifest_name="manifestName",
            program_date_time_interval_seconds=123,
            repeat_ext_xKey=False,
            stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
                max_video_bits_per_second=123,
                min_video_bits_per_second=123,
                stream_order="streamOrder"
            )
        )],
        include_dvb_subtitles=False,
        segment_duration_seconds=123,
        use_audio_rendition_group=False
    ),
    id="id",
    mss_package=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.MssPackageProperty(
        encryption=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.MssEncryptionProperty(
            speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
                encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
                    preset_speke20_audio="presetSpeke20Audio",
                    preset_speke20_video="presetSpeke20Video"
                ),
                role_arn="roleArn",
                system_ids=["systemIds"],
                url="url"
            )
        ),
        mss_manifests=[mediapackage_mixins.CfnPackagingConfigurationPropsMixin.MssManifestProperty(
            manifest_name="manifestName",
            stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
                max_video_bits_per_second=123,
                min_video_bits_per_second=123,
                stream_order="streamOrder"
            )
        )],
        segment_duration_seconds=123
    ),
    packaging_group_id="packagingGroupId",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::MediaPackage::PackagingConfiguration.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['cmafPackage', 'dashPackage', 'hlsPackage', 'id', 'mssPackage', 'packagingGroupId', 'tags']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

CmafEncryptionProperty

class CfnPackagingConfigurationPropsMixin.CmafEncryptionProperty(*, speke_key_provider=None)

Bases: object

Holds encryption information so that access to the content can be controlled by a DRM solution.

Parameters:

speke_key_provider (Union[IResolvable, SpekeKeyProviderProperty, Dict[str, Any], None]) – Parameters for the SPEKE key provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-cmafencryption.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

cmaf_encryption_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.CmafEncryptionProperty(
    speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
        encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
            preset_speke20_audio="presetSpeke20Audio",
            preset_speke20_video="presetSpeke20Video"
        ),
        role_arn="roleArn",
        system_ids=["systemIds"],
        url="url"
    )
)

Attributes

speke_key_provider

Parameters for the SPEKE key provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-cmafencryption.html#cfn-mediapackage-packagingconfiguration-cmafencryption-spekekeyprovider

CmafPackageProperty

class CfnPackagingConfigurationPropsMixin.CmafPackageProperty(*, encryption=None, hls_manifests=None, include_encoder_configuration_in_segments=None, segment_duration_seconds=None)

Bases: object

Parameters for a packaging configuration that uses Common Media Application Format (CMAF) packaging.

Parameters:
  • encryption (Union[IResolvable, CmafEncryptionProperty, Dict[str, Any], None]) – Parameters for encrypting content.

  • hls_manifests (Union[IResolvable, Sequence[Union[IResolvable, HlsManifestProperty, Dict[str, Any]]], None]) – A list of HLS manifest configurations that are available from this endpoint.

  • include_encoder_configuration_in_segments (Union[bool, IResolvable, None]) – When includeEncoderConfigurationInSegments is set to true, AWS Elemental MediaPackage places your encoder’s Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback.

  • segment_duration_seconds (Union[int, float, None]) – Duration (in seconds) of each segment. Actual segments are rounded to the nearest multiple of the source fragment duration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-cmafpackage.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

cmaf_package_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.CmafPackageProperty(
    encryption=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.CmafEncryptionProperty(
        speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
            encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
                preset_speke20_audio="presetSpeke20Audio",
                preset_speke20_video="presetSpeke20Video"
            ),
            role_arn="roleArn",
            system_ids=["systemIds"],
            url="url"
        )
    ),
    hls_manifests=[mediapackage_mixins.CfnPackagingConfigurationPropsMixin.HlsManifestProperty(
        ad_markers="adMarkers",
        include_iframe_only_stream=False,
        manifest_name="manifestName",
        program_date_time_interval_seconds=123,
        repeat_ext_xKey=False,
        stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
            max_video_bits_per_second=123,
            min_video_bits_per_second=123,
            stream_order="streamOrder"
        )
    )],
    include_encoder_configuration_in_segments=False,
    segment_duration_seconds=123
)

Attributes

encryption

Parameters for encrypting content.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-cmafpackage.html#cfn-mediapackage-packagingconfiguration-cmafpackage-encryption

hls_manifests

A list of HLS manifest configurations that are available from this endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-cmafpackage.html#cfn-mediapackage-packagingconfiguration-cmafpackage-hlsmanifests

include_encoder_configuration_in_segments

When includeEncoderConfigurationInSegments is set to true, AWS Elemental MediaPackage places your encoder’s Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment.

This lets you use different SPS/PPS/VPS settings for your assets during content playback.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-cmafpackage.html#cfn-mediapackage-packagingconfiguration-cmafpackage-includeencoderconfigurationinsegments

segment_duration_seconds

Duration (in seconds) of each segment.

Actual segments are rounded to the nearest multiple of the source fragment duration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-cmafpackage.html#cfn-mediapackage-packagingconfiguration-cmafpackage-segmentdurationseconds

DashEncryptionProperty

class CfnPackagingConfigurationPropsMixin.DashEncryptionProperty(*, speke_key_provider=None)

Bases: object

Holds encryption information so that access to the content can be controlled by a DRM solution.

Parameters:

speke_key_provider (Union[IResolvable, SpekeKeyProviderProperty, Dict[str, Any], None]) – Parameters for the SPEKE key provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashencryption.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

dash_encryption_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.DashEncryptionProperty(
    speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
        encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
            preset_speke20_audio="presetSpeke20Audio",
            preset_speke20_video="presetSpeke20Video"
        ),
        role_arn="roleArn",
        system_ids=["systemIds"],
        url="url"
    )
)

Attributes

speke_key_provider

Parameters for the SPEKE key provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashencryption.html#cfn-mediapackage-packagingconfiguration-dashencryption-spekekeyprovider

DashManifestProperty

class CfnPackagingConfigurationPropsMixin.DashManifestProperty(*, manifest_layout=None, manifest_name=None, min_buffer_time_seconds=None, profile=None, scte_markers_source=None, stream_selection=None)

Bases: object

Parameters for a DASH manifest.

Parameters:
  • manifest_layout (Optional[str]) – Determines the position of some tags in the Media Presentation Description (MPD). When set to FULL , elements like SegmentTemplate and ContentProtection are included in each Representation . When set to COMPACT , duplicate elements are combined and presented at the AdaptationSet level.

  • manifest_name (Optional[str]) – A short string that’s appended to the end of the endpoint URL to create a unique path to this packaging configuration.

  • min_buffer_time_seconds (Union[int, float, None]) – Minimum amount of content (measured in seconds) that a player must keep available in the buffer.

  • profile (Optional[str]) – The DASH profile type. When set to HBBTV_1_5 , the content is compliant with HbbTV 1.5.

  • scte_markers_source (Optional[str]) – The source of scte markers used. Value description: - SEGMENTS - The scte markers are sourced from the segments of the ingested content. - MANIFEST - the scte markers are sourced from the manifest of the ingested content. The MANIFEST value is compatible with source HLS playlists using the SCTE-35 Enhanced syntax ( EXT-OATCLS-SCTE35 tags). SCTE-35 Elemental and SCTE-35 Daterange syntaxes are not supported with this option.

  • stream_selection (Union[IResolvable, StreamSelectionProperty, Dict[str, Any], None]) – Limitations for outputs from the endpoint, based on the video bitrate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashmanifest.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

dash_manifest_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.DashManifestProperty(
    manifest_layout="manifestLayout",
    manifest_name="manifestName",
    min_buffer_time_seconds=123,
    profile="profile",
    scte_markers_source="scteMarkersSource",
    stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
        max_video_bits_per_second=123,
        min_video_bits_per_second=123,
        stream_order="streamOrder"
    )
)

Attributes

manifest_layout

Determines the position of some tags in the Media Presentation Description (MPD).

When set to FULL , elements like SegmentTemplate and ContentProtection are included in each Representation . When set to COMPACT , duplicate elements are combined and presented at the AdaptationSet level.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashmanifest.html#cfn-mediapackage-packagingconfiguration-dashmanifest-manifestlayout

manifest_name

A short string that’s appended to the end of the endpoint URL to create a unique path to this packaging configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashmanifest.html#cfn-mediapackage-packagingconfiguration-dashmanifest-manifestname

min_buffer_time_seconds

Minimum amount of content (measured in seconds) that a player must keep available in the buffer.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashmanifest.html#cfn-mediapackage-packagingconfiguration-dashmanifest-minbuffertimeseconds

profile

The DASH profile type.

When set to HBBTV_1_5 , the content is compliant with HbbTV 1.5.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashmanifest.html#cfn-mediapackage-packagingconfiguration-dashmanifest-profile

scte_markers_source

The source of scte markers used.

Value description:

  • SEGMENTS - The scte markers are sourced from the segments of the ingested content.

  • MANIFEST - the scte markers are sourced from the manifest of the ingested content. The MANIFEST value is compatible with source HLS playlists using the SCTE-35 Enhanced syntax ( EXT-OATCLS-SCTE35 tags). SCTE-35 Elemental and SCTE-35 Daterange syntaxes are not supported with this option.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashmanifest.html#cfn-mediapackage-packagingconfiguration-dashmanifest-sctemarkerssource

stream_selection

Limitations for outputs from the endpoint, based on the video bitrate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashmanifest.html#cfn-mediapackage-packagingconfiguration-dashmanifest-streamselection

DashPackageProperty

class CfnPackagingConfigurationPropsMixin.DashPackageProperty(*, dash_manifests=None, encryption=None, include_encoder_configuration_in_segments=None, include_iframe_only_stream=None, period_triggers=None, segment_duration_seconds=None, segment_template_format=None)

Bases: object

Parameters for a packaging configuration that uses Dynamic Adaptive Streaming over HTTP (DASH) packaging.

Parameters:
  • dash_manifests (Union[IResolvable, Sequence[Union[IResolvable, DashManifestProperty, Dict[str, Any]]], None]) – A list of DASH manifest configurations that are available from this endpoint.

  • encryption (Union[IResolvable, DashEncryptionProperty, Dict[str, Any], None]) – Parameters for encrypting content.

  • include_encoder_configuration_in_segments (Union[bool, IResolvable, None]) – When includeEncoderConfigurationInSegments is set to true, AWS Elemental MediaPackage places your encoder’s Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment. This lets you use different SPS/PPS/VPS settings for your assets during content playback.

  • include_iframe_only_stream (Union[bool, IResolvable, None]) – This applies only to stream sets with a single video track. When true, the stream set includes an additional I-frame trick-play only stream, along with the other tracks. If false, this extra stream is not included.

  • period_triggers (Optional[Sequence[str]]) – Controls whether AWS Elemental MediaPackage produces single-period or multi-period DASH manifests. For more information about periods, see Multi-period DASH in AWS Elemental MediaPackage . Valid values: - ADS - AWS Elemental MediaPackage will produce multi-period DASH manifests. Periods are created based on the SCTE-35 ad markers present in the input manifest. - No value - AWS Elemental MediaPackage will produce single-period DASH manifests. This is the default setting.

  • segment_duration_seconds (Union[int, float, None]) – Duration (in seconds) of each fragment. Actual fragments are rounded to the nearest multiple of the source segment duration.

  • segment_template_format (Optional[str]) – Determines the type of SegmentTemplate included in the Media Presentation Description (MPD). When set to NUMBER_WITH_TIMELINE , a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE , a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION , only a duration is included in each SegmentTemplate, with $Number$ media URLs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashpackage.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

dash_package_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.DashPackageProperty(
    dash_manifests=[mediapackage_mixins.CfnPackagingConfigurationPropsMixin.DashManifestProperty(
        manifest_layout="manifestLayout",
        manifest_name="manifestName",
        min_buffer_time_seconds=123,
        profile="profile",
        scte_markers_source="scteMarkersSource",
        stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
            max_video_bits_per_second=123,
            min_video_bits_per_second=123,
            stream_order="streamOrder"
        )
    )],
    encryption=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.DashEncryptionProperty(
        speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
            encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
                preset_speke20_audio="presetSpeke20Audio",
                preset_speke20_video="presetSpeke20Video"
            ),
            role_arn="roleArn",
            system_ids=["systemIds"],
            url="url"
        )
    ),
    include_encoder_configuration_in_segments=False,
    include_iframe_only_stream=False,
    period_triggers=["periodTriggers"],
    segment_duration_seconds=123,
    segment_template_format="segmentTemplateFormat"
)

Attributes

dash_manifests

A list of DASH manifest configurations that are available from this endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashpackage.html#cfn-mediapackage-packagingconfiguration-dashpackage-dashmanifests

encryption

Parameters for encrypting content.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashpackage.html#cfn-mediapackage-packagingconfiguration-dashpackage-encryption

include_encoder_configuration_in_segments

When includeEncoderConfigurationInSegments is set to true, AWS Elemental MediaPackage places your encoder’s Sequence Parameter Set (SPS), Picture Parameter Set (PPS), and Video Parameter Set (VPS) metadata in every video segment instead of in the init fragment.

This lets you use different SPS/PPS/VPS settings for your assets during content playback.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashpackage.html#cfn-mediapackage-packagingconfiguration-dashpackage-includeencoderconfigurationinsegments

include_iframe_only_stream

This applies only to stream sets with a single video track.

When true, the stream set includes an additional I-frame trick-play only stream, along with the other tracks. If false, this extra stream is not included.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashpackage.html#cfn-mediapackage-packagingconfiguration-dashpackage-includeiframeonlystream

period_triggers

Controls whether AWS Elemental MediaPackage produces single-period or multi-period DASH manifests.

For more information about periods, see Multi-period DASH in AWS Elemental MediaPackage .

Valid values:

  • ADS - AWS Elemental MediaPackage will produce multi-period DASH manifests. Periods are created based on the SCTE-35 ad markers present in the input manifest.

  • No value - AWS Elemental MediaPackage will produce single-period DASH manifests. This is the default setting.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashpackage.html#cfn-mediapackage-packagingconfiguration-dashpackage-periodtriggers

segment_duration_seconds

Duration (in seconds) of each fragment.

Actual fragments are rounded to the nearest multiple of the source segment duration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashpackage.html#cfn-mediapackage-packagingconfiguration-dashpackage-segmentdurationseconds

segment_template_format

Determines the type of SegmentTemplate included in the Media Presentation Description (MPD).

When set to NUMBER_WITH_TIMELINE , a full timeline is presented in each SegmentTemplate, with $Number$ media URLs. When set to TIME_WITH_TIMELINE , a full timeline is presented in each SegmentTemplate, with $Time$ media URLs. When set to NUMBER_WITH_DURATION , only a duration is included in each SegmentTemplate, with $Number$ media URLs.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-dashpackage.html#cfn-mediapackage-packagingconfiguration-dashpackage-segmenttemplateformat

EncryptionContractConfigurationProperty

class CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(*, preset_speke20_audio=None, preset_speke20_video=None)

Bases: object

Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines the content keys used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use. For more information about these presets, see SPEKE Version 2.0 Presets .

Note the following considerations when using encryptionContractConfiguration :

  • You can use encryptionContractConfiguration for DASH endpoints that use SPEKE Version 2.0. SPEKE Version 2.0 relies on the CPIX Version 2.3 specification.

  • You cannot combine an UNENCRYPTED preset with UNENCRYPTED or SHARED presets across presetSpeke20Audio and presetSpeke20Video .

  • When you use a SHARED preset, you must use it for both presetSpeke20Audio and presetSpeke20Video .

Parameters:
  • preset_speke20_audio (Optional[str]) – A collection of audio encryption presets. Value description: - PRESET-AUDIO-1 - Use one content key to encrypt all of the audio tracks in your stream. - PRESET-AUDIO-2 - Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks. - PRESET-AUDIO-3 - Use one content key to encrypt all of the stereo audio tracks, one content key to encrypt all of the multichannel audio tracks with 3 to 6 channels, and one content key to encrypt all of the multichannel audio tracks with more than 6 channels. - SHARED - Use the same content key for all of the audio and video tracks in your stream. - UNENCRYPTED - Don’t encrypt any of the audio tracks in your stream.

  • preset_speke20_video (Optional[str]) – A collection of video encryption presets. Value description: - PRESET-VIDEO-1 - Use one content key to encrypt all of the video tracks in your stream. - PRESET-VIDEO-2 - Use one content key to encrypt all of the SD video tracks and one content key for all HD and higher resolutions video tracks. - PRESET-VIDEO-3 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks and one content key for all UHD video tracks. - PRESET-VIDEO-4 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks. - PRESET-VIDEO-5 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks. - PRESET-VIDEO-6 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks. - PRESET-VIDEO-7 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks. - PRESET-VIDEO-8 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks. - SHARED - Use the same content key for all of the video and audio tracks in your stream. - UNENCRYPTED - Don’t encrypt any of the video tracks in your stream.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-encryptioncontractconfiguration.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

encryption_contract_configuration_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
    preset_speke20_audio="presetSpeke20Audio",
    preset_speke20_video="presetSpeke20Video"
)

Attributes

preset_speke20_audio

A collection of audio encryption presets.

Value description:

  • PRESET-AUDIO-1 - Use one content key to encrypt all of the audio tracks in your stream.

  • PRESET-AUDIO-2 - Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks.

  • PRESET-AUDIO-3 - Use one content key to encrypt all of the stereo audio tracks, one content key to encrypt all of the multichannel audio tracks with 3 to 6 channels, and one content key to encrypt all of the multichannel audio tracks with more than 6 channels.

  • SHARED - Use the same content key for all of the audio and video tracks in your stream.

  • UNENCRYPTED - Don’t encrypt any of the audio tracks in your stream.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-encryptioncontractconfiguration.html#cfn-mediapackage-packagingconfiguration-encryptioncontractconfiguration-presetspeke20audio

preset_speke20_video

A collection of video encryption presets.

Value description:

  • PRESET-VIDEO-1 - Use one content key to encrypt all of the video tracks in your stream.

  • PRESET-VIDEO-2 - Use one content key to encrypt all of the SD video tracks and one content key for all HD and higher resolutions video tracks.

  • PRESET-VIDEO-3 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks and one content key for all UHD video tracks.

  • PRESET-VIDEO-4 - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.

  • PRESET-VIDEO-5 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.

  • PRESET-VIDEO-6 - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.

  • PRESET-VIDEO-7 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.

  • PRESET-VIDEO-8 - Use one content key to encrypt all of the SD+HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.

  • SHARED - Use the same content key for all of the video and audio tracks in your stream.

  • UNENCRYPTED - Don’t encrypt any of the video tracks in your stream.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-encryptioncontractconfiguration.html#cfn-mediapackage-packagingconfiguration-encryptioncontractconfiguration-presetspeke20video

HlsEncryptionProperty

class CfnPackagingConfigurationPropsMixin.HlsEncryptionProperty(*, constant_initialization_vector=None, encryption_method=None, speke_key_provider=None)

Bases: object

Holds encryption information so that access to the content can be controlled by a DRM solution.

Parameters:
  • constant_initialization_vector (Optional[str]) – A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for encrypting blocks. If you don’t specify a constant initialization vector (IV), AWS Elemental MediaPackage periodically rotates the IV.

  • encryption_method (Optional[str]) – HLS encryption type.

  • speke_key_provider (Union[IResolvable, SpekeKeyProviderProperty, Dict[str, Any], None]) – Parameters for the SPEKE key provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsencryption.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

hls_encryption_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.HlsEncryptionProperty(
    constant_initialization_vector="constantInitializationVector",
    encryption_method="encryptionMethod",
    speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
        encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
            preset_speke20_audio="presetSpeke20Audio",
            preset_speke20_video="presetSpeke20Video"
        ),
        role_arn="roleArn",
        system_ids=["systemIds"],
        url="url"
    )
)

Attributes

constant_initialization_vector

A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for encrypting blocks.

If you don’t specify a constant initialization vector (IV), AWS Elemental MediaPackage periodically rotates the IV.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsencryption.html#cfn-mediapackage-packagingconfiguration-hlsencryption-constantinitializationvector

encryption_method

HLS encryption type.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsencryption.html#cfn-mediapackage-packagingconfiguration-hlsencryption-encryptionmethod

speke_key_provider

Parameters for the SPEKE key provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsencryption.html#cfn-mediapackage-packagingconfiguration-hlsencryption-spekekeyprovider

HlsManifestProperty

class CfnPackagingConfigurationPropsMixin.HlsManifestProperty(*, ad_markers=None, include_iframe_only_stream=None, manifest_name=None, program_date_time_interval_seconds=None, repeat_ext_x_key=None, stream_selection=None)

Bases: object

Parameters for an HLS manifest.

Parameters:
  • ad_markers (Optional[str]) – This setting controls ad markers in the packaged content. Valid values: - NONE - Omits all SCTE-35 ad markers from the output. - PASSTHROUGH - Creates a copy in the output of the SCTE-35 ad markers (comments) taken directly from the input manifest. - SCTE35_ENHANCED - Generates ad markers and blackout tags in the output based on the SCTE-35 messages from the input manifest.

  • include_iframe_only_stream (Union[bool, IResolvable, None]) – Applies to stream sets with a single video track only. When enabled, the output includes an additional I-frame only stream, along with the other tracks.

  • manifest_name (Optional[str]) – A short string that’s appended to the end of the endpoint URL to create a unique path to this packaging configuration.

  • program_date_time_interval_seconds (Union[int, float, None]) – Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify. Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output. Omit this attribute or enter 0 to indicate that the EXT-X-PROGRAM-DATE-TIME tags are not included in the manifest.

  • repeat_ext_x_key (Union[bool, IResolvable, None]) – Repeat the EXT-X-KEY directive for every media segment. This might result in an increase in client requests to the DRM server.

  • stream_selection (Union[IResolvable, StreamSelectionProperty, Dict[str, Any], None]) – Video bitrate limitations for outputs from this packaging configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsmanifest.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

hls_manifest_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.HlsManifestProperty(
    ad_markers="adMarkers",
    include_iframe_only_stream=False,
    manifest_name="manifestName",
    program_date_time_interval_seconds=123,
    repeat_ext_xKey=False,
    stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
        max_video_bits_per_second=123,
        min_video_bits_per_second=123,
        stream_order="streamOrder"
    )
)

Attributes

ad_markers

This setting controls ad markers in the packaged content.

Valid values:

  • NONE - Omits all SCTE-35 ad markers from the output.

  • PASSTHROUGH - Creates a copy in the output of the SCTE-35 ad markers (comments) taken directly from the input manifest.

  • SCTE35_ENHANCED - Generates ad markers and blackout tags in the output based on the SCTE-35 messages from the input manifest.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsmanifest.html#cfn-mediapackage-packagingconfiguration-hlsmanifest-admarkers

include_iframe_only_stream

Applies to stream sets with a single video track only.

When enabled, the output includes an additional I-frame only stream, along with the other tracks.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsmanifest.html#cfn-mediapackage-packagingconfiguration-hlsmanifest-includeiframeonlystream

manifest_name

A short string that’s appended to the end of the endpoint URL to create a unique path to this packaging configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsmanifest.html#cfn-mediapackage-packagingconfiguration-hlsmanifest-manifestname

program_date_time_interval_seconds

Inserts EXT-X-PROGRAM-DATE-TIME tags in the output manifest at the interval that you specify.

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.

Omit this attribute or enter 0 to indicate that the EXT-X-PROGRAM-DATE-TIME tags are not included in the manifest.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsmanifest.html#cfn-mediapackage-packagingconfiguration-hlsmanifest-programdatetimeintervalseconds

repeat_ext_x_key

Repeat the EXT-X-KEY directive for every media segment.

This might result in an increase in client requests to the DRM server.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsmanifest.html#cfn-mediapackage-packagingconfiguration-hlsmanifest-repeatextxkey

stream_selection

Video bitrate limitations for outputs from this packaging configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlsmanifest.html#cfn-mediapackage-packagingconfiguration-hlsmanifest-streamselection

HlsPackageProperty

class CfnPackagingConfigurationPropsMixin.HlsPackageProperty(*, encryption=None, hls_manifests=None, include_dvb_subtitles=None, segment_duration_seconds=None, use_audio_rendition_group=None)

Bases: object

Parameters for a packaging configuration that uses HTTP Live Streaming (HLS) packaging.

Parameters:
  • encryption (Union[IResolvable, HlsEncryptionProperty, Dict[str, Any], None]) – Parameters for encrypting content.

  • hls_manifests (Union[IResolvable, Sequence[Union[IResolvable, HlsManifestProperty, Dict[str, Any]]], None]) – A list of HLS manifest configurations that are available from this endpoint.

  • include_dvb_subtitles (Union[bool, IResolvable, None]) – When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.

  • segment_duration_seconds (Union[int, float, None]) – Duration (in seconds) of each fragment. Actual fragments are rounded to the nearest multiple of the source fragment duration.

  • use_audio_rendition_group (Union[bool, IResolvable, None]) – When true, AWS Elemental MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlspackage.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

hls_package_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.HlsPackageProperty(
    encryption=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.HlsEncryptionProperty(
        constant_initialization_vector="constantInitializationVector",
        encryption_method="encryptionMethod",
        speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
            encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
                preset_speke20_audio="presetSpeke20Audio",
                preset_speke20_video="presetSpeke20Video"
            ),
            role_arn="roleArn",
            system_ids=["systemIds"],
            url="url"
        )
    ),
    hls_manifests=[mediapackage_mixins.CfnPackagingConfigurationPropsMixin.HlsManifestProperty(
        ad_markers="adMarkers",
        include_iframe_only_stream=False,
        manifest_name="manifestName",
        program_date_time_interval_seconds=123,
        repeat_ext_xKey=False,
        stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
            max_video_bits_per_second=123,
            min_video_bits_per_second=123,
            stream_order="streamOrder"
        )
    )],
    include_dvb_subtitles=False,
    segment_duration_seconds=123,
    use_audio_rendition_group=False
)

Attributes

encryption

Parameters for encrypting content.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlspackage.html#cfn-mediapackage-packagingconfiguration-hlspackage-encryption

hls_manifests

A list of HLS manifest configurations that are available from this endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlspackage.html#cfn-mediapackage-packagingconfiguration-hlspackage-hlsmanifests

include_dvb_subtitles

When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlspackage.html#cfn-mediapackage-packagingconfiguration-hlspackage-includedvbsubtitles

segment_duration_seconds

Duration (in seconds) of each fragment.

Actual fragments are rounded to the nearest multiple of the source fragment duration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlspackage.html#cfn-mediapackage-packagingconfiguration-hlspackage-segmentdurationseconds

use_audio_rendition_group

When true, AWS Elemental MediaPackage bundles all audio tracks in a rendition group.

All other tracks in the stream can be used with any audio rendition from the group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-hlspackage.html#cfn-mediapackage-packagingconfiguration-hlspackage-useaudiorenditiongroup

MssEncryptionProperty

class CfnPackagingConfigurationPropsMixin.MssEncryptionProperty(*, speke_key_provider=None)

Bases: object

Holds encryption information so that access to the content can be controlled by a DRM solution.

Parameters:

speke_key_provider (Union[IResolvable, SpekeKeyProviderProperty, Dict[str, Any], None]) – Parameters for the SPEKE key provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-mssencryption.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

mss_encryption_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.MssEncryptionProperty(
    speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
        encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
            preset_speke20_audio="presetSpeke20Audio",
            preset_speke20_video="presetSpeke20Video"
        ),
        role_arn="roleArn",
        system_ids=["systemIds"],
        url="url"
    )
)

Attributes

speke_key_provider

Parameters for the SPEKE key provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-mssencryption.html#cfn-mediapackage-packagingconfiguration-mssencryption-spekekeyprovider

MssManifestProperty

class CfnPackagingConfigurationPropsMixin.MssManifestProperty(*, manifest_name=None, stream_selection=None)

Bases: object

Parameters for a Microsoft Smooth manifest.

Parameters:
  • manifest_name (Optional[str]) – A short string that’s appended to the end of the endpoint URL to create a unique path to this packaging configuration.

  • stream_selection (Union[IResolvable, StreamSelectionProperty, Dict[str, Any], None]) – Video bitrate limitations for outputs from this packaging configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-mssmanifest.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

mss_manifest_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.MssManifestProperty(
    manifest_name="manifestName",
    stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
        max_video_bits_per_second=123,
        min_video_bits_per_second=123,
        stream_order="streamOrder"
    )
)

Attributes

manifest_name

A short string that’s appended to the end of the endpoint URL to create a unique path to this packaging configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-mssmanifest.html#cfn-mediapackage-packagingconfiguration-mssmanifest-manifestname

stream_selection

Video bitrate limitations for outputs from this packaging configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-mssmanifest.html#cfn-mediapackage-packagingconfiguration-mssmanifest-streamselection

MssPackageProperty

class CfnPackagingConfigurationPropsMixin.MssPackageProperty(*, encryption=None, mss_manifests=None, segment_duration_seconds=None)

Bases: object

Parameters for a packaging configuration that uses Microsoft Smooth Streaming (MSS) packaging.

Parameters:
  • encryption (Union[IResolvable, MssEncryptionProperty, Dict[str, Any], None]) – Parameters for encrypting content.

  • mss_manifests (Union[IResolvable, Sequence[Union[IResolvable, MssManifestProperty, Dict[str, Any]]], None]) – A list of Microsoft Smooth manifest configurations that are available from this endpoint.

  • segment_duration_seconds (Union[int, float, None]) – Duration (in seconds) of each fragment. Actual fragments are rounded to the nearest multiple of the source fragment duration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-msspackage.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

mss_package_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.MssPackageProperty(
    encryption=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.MssEncryptionProperty(
        speke_key_provider=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
            encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
                preset_speke20_audio="presetSpeke20Audio",
                preset_speke20_video="presetSpeke20Video"
            ),
            role_arn="roleArn",
            system_ids=["systemIds"],
            url="url"
        )
    ),
    mss_manifests=[mediapackage_mixins.CfnPackagingConfigurationPropsMixin.MssManifestProperty(
        manifest_name="manifestName",
        stream_selection=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
            max_video_bits_per_second=123,
            min_video_bits_per_second=123,
            stream_order="streamOrder"
        )
    )],
    segment_duration_seconds=123
)

Attributes

encryption

Parameters for encrypting content.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-msspackage.html#cfn-mediapackage-packagingconfiguration-msspackage-encryption

mss_manifests

A list of Microsoft Smooth manifest configurations that are available from this endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-msspackage.html#cfn-mediapackage-packagingconfiguration-msspackage-mssmanifests

segment_duration_seconds

Duration (in seconds) of each fragment.

Actual fragments are rounded to the nearest multiple of the source fragment duration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-msspackage.html#cfn-mediapackage-packagingconfiguration-msspackage-segmentdurationseconds

SpekeKeyProviderProperty

class CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(*, encryption_contract_configuration=None, role_arn=None, system_ids=None, url=None)

Bases: object

A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that provides encryption keys.

Parameters:
  • encryption_contract_configuration (Union[IResolvable, EncryptionContractConfigurationProperty, Dict[str, Any], None]) – Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.

  • role_arn (Optional[str]) – The ARN for the IAM role that’s granted by the key provider to provide access to the key provider API. Valid format: arn:aws:iam::{accountID}:role/{name}

  • system_ids (Optional[Sequence[str]]) – List of unique identifiers for the DRM systems to use, as defined in the CPIX specification.

  • url (Optional[str]) – URL for the key provider’s key retrieval API endpoint. Must start with https://.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-spekekeyprovider.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

speke_key_provider_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.SpekeKeyProviderProperty(
    encryption_contract_configuration=mediapackage_mixins.CfnPackagingConfigurationPropsMixin.EncryptionContractConfigurationProperty(
        preset_speke20_audio="presetSpeke20Audio",
        preset_speke20_video="presetSpeke20Video"
    ),
    role_arn="roleArn",
    system_ids=["systemIds"],
    url="url"
)

Attributes

encryption_contract_configuration

Use encryptionContractConfiguration to configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-spekekeyprovider.html#cfn-mediapackage-packagingconfiguration-spekekeyprovider-encryptioncontractconfiguration

role_arn

The ARN for the IAM role that’s granted by the key provider to provide access to the key provider API.

Valid format: arn:aws:iam::{accountID}:role/{name}

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-spekekeyprovider.html#cfn-mediapackage-packagingconfiguration-spekekeyprovider-rolearn

system_ids

List of unique identifiers for the DRM systems to use, as defined in the CPIX specification.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-spekekeyprovider.html#cfn-mediapackage-packagingconfiguration-spekekeyprovider-systemids

url

URL for the key provider’s key retrieval API endpoint.

Must start with https://.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-spekekeyprovider.html#cfn-mediapackage-packagingconfiguration-spekekeyprovider-url

StreamSelectionProperty

class CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(*, max_video_bits_per_second=None, min_video_bits_per_second=None, stream_order=None)

Bases: object

Limitations for outputs from the endpoint, based on the video bitrate.

Parameters:
  • max_video_bits_per_second (Union[int, float, None]) – The upper limit of the bitrates that this endpoint serves. If the video track exceeds this threshold, then AWS Elemental MediaPackage excludes it from output. If you don’t specify a value, it defaults to 2147483647 bits per second.

  • min_video_bits_per_second (Union[int, float, None]) – The lower limit of the bitrates that this endpoint serves. If the video track is below this threshold, then AWS Elemental MediaPackage excludes it from output. If you don’t specify a value, it defaults to 0 bits per second.

  • stream_order (Optional[str]) – Order in which the different video bitrates are presented to the player. Valid values: ORIGINAL , VIDEO_BITRATE_ASCENDING , VIDEO_BITRATE_DESCENDING .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-streamselection.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediapackage import mixins as mediapackage_mixins

stream_selection_property = mediapackage_mixins.CfnPackagingConfigurationPropsMixin.StreamSelectionProperty(
    max_video_bits_per_second=123,
    min_video_bits_per_second=123,
    stream_order="streamOrder"
)

Attributes

max_video_bits_per_second

The upper limit of the bitrates that this endpoint serves.

If the video track exceeds this threshold, then AWS Elemental MediaPackage excludes it from output. If you don’t specify a value, it defaults to 2147483647 bits per second.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-streamselection.html#cfn-mediapackage-packagingconfiguration-streamselection-maxvideobitspersecond

min_video_bits_per_second

The lower limit of the bitrates that this endpoint serves.

If the video track is below this threshold, then AWS Elemental MediaPackage excludes it from output. If you don’t specify a value, it defaults to 0 bits per second.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-streamselection.html#cfn-mediapackage-packagingconfiguration-streamselection-minvideobitspersecond

stream_order

Order in which the different video bitrates are presented to the player.

Valid values: ORIGINAL , VIDEO_BITRATE_ASCENDING , VIDEO_BITRATE_DESCENDING .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackage-packagingconfiguration-streamselection.html#cfn-mediapackage-packagingconfiguration-streamselection-streamorder