CfnOriginEndpoint

class aws_cdk.aws_mediapackagev2.CfnOriginEndpoint(scope, id, *, channel_group_name, channel_name, origin_endpoint_name, container_type=None, description=None, hls_manifests=None, low_latency_hls_manifests=None, segment=None, startover_window_seconds=None, tags=None)

Bases: CfnResource

Specifies the configuration parameters for a MediaPackage V2 origin endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-originendpoint.html

CloudformationResource:

AWS::MediaPackageV2::OriginEndpoint

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 import aws_mediapackagev2 as mediapackagev2

cfn_origin_endpoint = mediapackagev2.CfnOriginEndpoint(self, "MyCfnOriginEndpoint",
    channel_group_name="channelGroupName",
    channel_name="channelName",
    origin_endpoint_name="originEndpointName",

    # the properties below are optional
    container_type="containerType",
    description="description",
    hls_manifests=[mediapackagev2.CfnOriginEndpoint.HlsManifestConfigurationProperty(
        manifest_name="manifestName",

        # the properties below are optional
        child_manifest_name="childManifestName",
        filter_configuration=mediapackagev2.CfnOriginEndpoint.FilterConfigurationProperty(
            end="end",
            manifest_filter="manifestFilter",
            start="start",
            time_delay_seconds=123
        ),
        manifest_window_seconds=123,
        program_date_time_interval_seconds=123,
        scte_hls=mediapackagev2.CfnOriginEndpoint.ScteHlsProperty(
            ad_marker_hls="adMarkerHls"
        ),
        url="url"
    )],
    low_latency_hls_manifests=[mediapackagev2.CfnOriginEndpoint.LowLatencyHlsManifestConfigurationProperty(
        manifest_name="manifestName",

        # the properties below are optional
        child_manifest_name="childManifestName",
        filter_configuration=mediapackagev2.CfnOriginEndpoint.FilterConfigurationProperty(
            end="end",
            manifest_filter="manifestFilter",
            start="start",
            time_delay_seconds=123
        ),
        manifest_window_seconds=123,
        program_date_time_interval_seconds=123,
        scte_hls=mediapackagev2.CfnOriginEndpoint.ScteHlsProperty(
            ad_marker_hls="adMarkerHls"
        ),
        url="url"
    )],
    segment=mediapackagev2.CfnOriginEndpoint.SegmentProperty(
        encryption=mediapackagev2.CfnOriginEndpoint.EncryptionProperty(
            encryption_method=mediapackagev2.CfnOriginEndpoint.EncryptionMethodProperty(
                cmaf_encryption_method="cmafEncryptionMethod",
                ts_encryption_method="tsEncryptionMethod"
            ),
            speke_key_provider=mediapackagev2.CfnOriginEndpoint.SpekeKeyProviderProperty(
                drm_systems=["drmSystems"],
                encryption_contract_configuration=mediapackagev2.CfnOriginEndpoint.EncryptionContractConfigurationProperty(
                    preset_speke20_audio="presetSpeke20Audio",
                    preset_speke20_video="presetSpeke20Video"
                ),
                resource_id="resourceId",
                role_arn="roleArn",
                url="url"
            ),

            # the properties below are optional
            constant_initialization_vector="constantInitializationVector",
            key_rotation_interval_seconds=123
        ),
        include_iframe_only_streams=False,
        scte=mediapackagev2.CfnOriginEndpoint.ScteProperty(
            scte_filter=["scteFilter"]
        ),
        segment_duration_seconds=123,
        segment_name="segmentName",
        ts_include_dvb_subtitles=False,
        ts_use_audio_rendition_group=False
    ),
    startover_window_seconds=123,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
Parameters:
  • scope (Construct) – Scope in which this resource is defined.

  • id (str) – Construct identifier for this resource (unique in its scope).

  • channel_group_name (str) – The name of the channel group associated with the origin endpoint configuration.

  • channel_name (str) – The channel name associated with the origin endpoint.

  • origin_endpoint_name (str) – The name of the origin endpoint associated with the origin endpoint configuration.

  • container_type (Optional[str]) – The container type associated with the origin endpoint configuration.

  • description (Optional[str]) – The description associated with the origin endpoint.

  • hls_manifests (Union[IResolvable, Sequence[Union[IResolvable, HlsManifestConfigurationProperty, Dict[str, Any]]], None]) – The HLS manfiests associated with the origin endpoint configuration.

  • low_latency_hls_manifests (Union[IResolvable, Sequence[Union[IResolvable, LowLatencyHlsManifestConfigurationProperty, Dict[str, Any]]], None]) – The low-latency HLS (LL-HLS) manifests associated with the origin endpoint.

  • segment (Union[IResolvable, SegmentProperty, Dict[str, Any], None]) – The segment associated with the origin endpoint.

  • startover_window_seconds (Union[int, float, None]) – The size of the window (in seconds) to specify a window of the live stream that’s available for on-demand viewing. Viewers can start-over or catch-up on content that falls within the window.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags associated with the origin endpoint.

Methods

add_deletion_override(path)

Syntactic sugar for addOverride(path, undefined).

Parameters:

path (str) – The path of the value to delete.

Return type:

None

add_dependency(target)

Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

Parameters:

target (CfnResource) –

Return type:

None

add_depends_on(target)

(deprecated) Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.

Parameters:

target (CfnResource) –

Deprecated:

use addDependency

Stability:

deprecated

Return type:

None

add_metadata(key, value)

Add a value to the CloudFormation Resource Metadata.

Parameters:
  • key (str) –

  • value (Any) –

See:

Return type:

None

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

add_override(path, value)

Adds an override to the synthesized CloudFormation resource.

To add a property override, either use addPropertyOverride or prefix path with “Properties.” (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example:

cfn_resource.add_override("Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes", ["myattribute"])
cfn_resource.add_override("Properties.GlobalSecondaryIndexes.1.ProjectionType", "INCLUDE")

would add the overrides Example:

"Properties": {
  "GlobalSecondaryIndexes": [
    {
      "Projection": {
        "NonKeyAttributes": [ "myattribute" ]
        ...
      }
      ...
    },
    {
      "ProjectionType": "INCLUDE"
      ...
    },
  ]
  ...
}

The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.

Parameters:
  • path (str) –

    • The path of the property, you can use dot notation to override values in complex types. Any intermediate keys will be created as needed.

  • value (Any) –

    • The value. Could be primitive or complex.

Return type:

None

add_property_deletion_override(property_path)

Adds an override that deletes the value of a property from the resource definition.

Parameters:

property_path (str) – The path to the property.

Return type:

None

add_property_override(property_path, value)

Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

Parameters:
  • property_path (str) – The path of the property.

  • value (Any) – The value.

Return type:

None

apply_removal_policy(policy=None, *, apply_to_update_replace_policy=None, default=None)

Sets the deletion policy of the resource based on the removal policy specified.

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you’ve removed it from the CDK application or because you’ve made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:

Parameters:
  • policy (Optional[RemovalPolicy]) –

  • apply_to_update_replace_policy (Optional[bool]) – Apply the same deletion policy to the resource’s “UpdateReplacePolicy”. Default: true

  • default (Optional[RemovalPolicy]) – The default policy to apply in case the removal policy is not defined. Default: - Default value is resource specific. To determine the default value for a resource, please consult that specific resource’s documentation.

See:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options

Return type:

None

get_att(attribute_name, type_hint=None)

Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

Parameters:
  • attribute_name (str) – The name of the attribute.

  • type_hint (Optional[ResolutionTypeHint]) –

Return type:

Reference

get_metadata(key)

Retrieve a value value from the CloudFormation Resource Metadata.

Parameters:

key (str) –

See:

Return type:

Any

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html

Note that this is a different set of metadata from CDK node metadata; this metadata ends up in the stack template under the resource, whereas CDK node metadata ends up in the Cloud Assembly.

inspect(inspector)

Examines the CloudFormation resource and discloses attributes.

Parameters:

inspector (TreeInspector) – tree inspector to collect and process attributes.

Return type:

None

obtain_dependencies()

Retrieves an array of resources this resource depends on.

This assembles dependencies on resources across stacks (including nested stacks) automatically.

Return type:

List[Union[Stack, CfnResource]]

obtain_resource_dependencies()

Get a shallow copy of dependencies between this resource and other resources in the same stack.

Return type:

List[CfnResource]

override_logical_id(new_logical_id)

Overrides the auto-generated logical ID with a specific ID.

Parameters:

new_logical_id (str) – The new logical ID to use for this stack element.

Return type:

None

remove_dependency(target)

Indicates that this resource no longer depends on another resource.

This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.

Parameters:

target (CfnResource) –

Return type:

None

replace_dependency(target, new_target)

Replaces one dependency with another.

Parameters:
Return type:

None

to_string()

Returns a string representation of this construct.

Return type:

str

Returns:

a string representation of this resource

Attributes

CFN_RESOURCE_TYPE_NAME = 'AWS::MediaPackageV2::OriginEndpoint'
attr_arn

The Amazon Resource Name (ARN) of the origin endpoint.

CloudformationAttribute:

Arn

attr_created_at

The timestamp of the creation of the origin endpoint.

CloudformationAttribute:

CreatedAt

attr_modified_at

The timestamp of the modification of the origin endpoint.

CloudformationAttribute:

ModifiedAt

cdk_tag_manager

Tag Manager which manages the tags for this resource.

cfn_options

Options for this resource, such as condition, update policy etc.

cfn_resource_type

AWS resource type.

channel_group_name

The name of the channel group associated with the origin endpoint configuration.

channel_name

The channel name associated with the origin endpoint.

container_type

The container type associated with the origin endpoint configuration.

creation_stack

return:

the stack trace of the point where this Resource was created from, sourced from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most node +internal+ entries filtered.

description

The description associated with the origin endpoint.

hls_manifests

The HLS manfiests associated with the origin endpoint configuration.

logical_id

The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

Returns:

the logical ID as a stringified token. This value will only get resolved during synthesis.

low_latency_hls_manifests

The low-latency HLS (LL-HLS) manifests associated with the origin endpoint.

node

The tree node.

origin_endpoint_name

The name of the origin endpoint associated with the origin endpoint configuration.

ref

Return a string that will be resolved to a CloudFormation { Ref } for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

segment

The segment associated with the origin endpoint.

stack

The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

startover_window_seconds

The size of the window (in seconds) to specify a window of the live stream that’s available for on-demand viewing.

tags

The tags associated with the origin endpoint.

Static Methods

classmethod is_cfn_element(x)

Returns true if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

Parameters:

x (Any) –

Return type:

bool

Returns:

The construct as a stack element or undefined if it is not a stack element.

classmethod is_cfn_resource(x)

Check whether the given object is a CfnResource.

Parameters:

x (Any) –

Return type:

bool

classmethod is_construct(x)

Checks if x is a construct.

Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

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

EncryptionContractConfigurationProperty

class CfnOriginEndpoint.EncryptionContractConfigurationProperty(*, preset_speke20_audio, preset_speke20_video)

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

Parameters:
  • preset_speke20_audio (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 (str) – The SPEKE Version 2.0 preset video associated with the encryption contract configuration of the origin endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-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 import aws_mediapackagev2 as mediapackagev2

encryption_contract_configuration_property = mediapackagev2.CfnOriginEndpoint.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-mediapackagev2-originendpoint-encryptioncontractconfiguration.html#cfn-mediapackagev2-originendpoint-encryptioncontractconfiguration-presetspeke20audio

preset_speke20_video

The SPEKE Version 2.0 preset video associated with the encryption contract configuration of the origin endpoint.

See:

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

EncryptionMethodProperty

class CfnOriginEndpoint.EncryptionMethodProperty(*, cmaf_encryption_method=None, ts_encryption_method=None)

Bases: object

The encryption method associated with the origin endpoint.

Parameters:
  • cmaf_encryption_method (Optional[str]) – The encryption method to use.

  • ts_encryption_method (Optional[str]) – The encryption method to use.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-encryptionmethod.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 import aws_mediapackagev2 as mediapackagev2

encryption_method_property = mediapackagev2.CfnOriginEndpoint.EncryptionMethodProperty(
    cmaf_encryption_method="cmafEncryptionMethod",
    ts_encryption_method="tsEncryptionMethod"
)

Attributes

cmaf_encryption_method

The encryption method to use.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-encryptionmethod.html#cfn-mediapackagev2-originendpoint-encryptionmethod-cmafencryptionmethod

ts_encryption_method

The encryption method to use.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-encryptionmethod.html#cfn-mediapackagev2-originendpoint-encryptionmethod-tsencryptionmethod

EncryptionProperty

class CfnOriginEndpoint.EncryptionProperty(*, encryption_method, speke_key_provider, constant_initialization_vector=None, key_rotation_interval_seconds=None)

Bases: object

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.

Parameters:
  • encryption_method (Union[IResolvable, EncryptionMethodProperty, Dict[str, Any]]) – The encryption method to use.

  • speke_key_provider (Union[IResolvable, SpekeKeyProviderProperty, Dict[str, Any]]) – The SPEKE key provider to use for encryption.

  • constant_initialization_vector (Optional[str]) – A 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting content. If you don’t specify a value, then MediaPackage creates the constant initialization vector (IV).

  • key_rotation_interval_seconds (Union[int, float, None]) – The interval, in seconds, to rotate encryption keys for the origin endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-encryption.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 import aws_mediapackagev2 as mediapackagev2

encryption_property = mediapackagev2.CfnOriginEndpoint.EncryptionProperty(
    encryption_method=mediapackagev2.CfnOriginEndpoint.EncryptionMethodProperty(
        cmaf_encryption_method="cmafEncryptionMethod",
        ts_encryption_method="tsEncryptionMethod"
    ),
    speke_key_provider=mediapackagev2.CfnOriginEndpoint.SpekeKeyProviderProperty(
        drm_systems=["drmSystems"],
        encryption_contract_configuration=mediapackagev2.CfnOriginEndpoint.EncryptionContractConfigurationProperty(
            preset_speke20_audio="presetSpeke20Audio",
            preset_speke20_video="presetSpeke20Video"
        ),
        resource_id="resourceId",
        role_arn="roleArn",
        url="url"
    ),

    # the properties below are optional
    constant_initialization_vector="constantInitializationVector",
    key_rotation_interval_seconds=123
)

Attributes

constant_initialization_vector

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

If you don’t specify a value, then MediaPackage creates the constant initialization vector (IV).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-encryption.html#cfn-mediapackagev2-originendpoint-encryption-constantinitializationvector

encryption_method

The encryption method to use.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-encryption.html#cfn-mediapackagev2-originendpoint-encryption-encryptionmethod

key_rotation_interval_seconds

The interval, in seconds, to rotate encryption keys for the origin endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-encryption.html#cfn-mediapackagev2-originendpoint-encryption-keyrotationintervalseconds

speke_key_provider

The SPEKE key provider to use for encryption.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-encryption.html#cfn-mediapackagev2-originendpoint-encryption-spekekeyprovider

FilterConfigurationProperty

class CfnOriginEndpoint.FilterConfigurationProperty(*, end=None, manifest_filter=None, start=None, time_delay_seconds=None)

Bases: object

Parameters:
  • end (Optional[str]) – When you include end time, note that you cannot use end time query parameters for this manifest’s endpoint URL.

  • manifest_filter (Optional[str]) – When you include a manifest filter, note that you cannot use an identical manifest filter query parameter for this manifest’s endpoint URL.

  • start (Optional[str]) – When you include start time, note that you cannot use start time query parameters for this manifest’s endpoint URL.

  • time_delay_seconds (Union[int, float, None]) – Enter a value that is smaller than your endpoint’s startover window. When you include time delay, note that you cannot use time delay query parameters for this manifest’s endpoint URL.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.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 import aws_mediapackagev2 as mediapackagev2

filter_configuration_property = mediapackagev2.CfnOriginEndpoint.FilterConfigurationProperty(
    end="end",
    manifest_filter="manifestFilter",
    start="start",
    time_delay_seconds=123
)

Attributes

end

When you include end time, note that you cannot use end time query parameters for this manifest’s endpoint URL.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-end

manifest_filter

When you include a manifest filter, note that you cannot use an identical manifest filter query parameter for this manifest’s endpoint URL.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-manifestfilter

start

When you include start time, note that you cannot use start time query parameters for this manifest’s endpoint URL.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-start

time_delay_seconds

Enter a value that is smaller than your endpoint’s startover window. When you include time delay, note that you cannot use time delay query parameters for this manifest’s endpoint URL.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-filterconfiguration.html#cfn-mediapackagev2-originendpoint-filterconfiguration-timedelayseconds

HlsManifestConfigurationProperty

class CfnOriginEndpoint.HlsManifestConfigurationProperty(*, manifest_name, child_manifest_name=None, filter_configuration=None, manifest_window_seconds=None, program_date_time_interval_seconds=None, scte_hls=None, url=None)

Bases: object

The HLS manfiest configuration associated with the origin endpoint.

Parameters:
  • manifest_name (str) – The name of the manifest associated with the HLS manifest configuration.

  • child_manifest_name (Optional[str]) – The name of the child manifest associated with the HLS manifest configuration.

  • filter_configuration (Union[IResolvable, FilterConfigurationProperty, Dict[str, Any], None]) –

  • manifest_window_seconds (Union[int, float, None]) – The duration of the manifest window, in seconds, for the HLS manifest configuration.

  • program_date_time_interval_seconds (Union[int, float, None]) – The EXT-X-PROGRAM-DATE-TIME interval, in seconds, associated with the HLS manifest configuration.

  • scte_hls (Union[IResolvable, ScteHlsProperty, Dict[str, Any], None]) – THE SCTE-35 HLS configuration associated with the HLS manifest configuration.

  • url (Optional[str]) – The URL of the HLS manifest configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-hlsmanifestconfiguration.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 import aws_mediapackagev2 as mediapackagev2

hls_manifest_configuration_property = mediapackagev2.CfnOriginEndpoint.HlsManifestConfigurationProperty(
    manifest_name="manifestName",

    # the properties below are optional
    child_manifest_name="childManifestName",
    filter_configuration=mediapackagev2.CfnOriginEndpoint.FilterConfigurationProperty(
        end="end",
        manifest_filter="manifestFilter",
        start="start",
        time_delay_seconds=123
    ),
    manifest_window_seconds=123,
    program_date_time_interval_seconds=123,
    scte_hls=mediapackagev2.CfnOriginEndpoint.ScteHlsProperty(
        ad_marker_hls="adMarkerHls"
    ),
    url="url"
)

Attributes

child_manifest_name

The name of the child manifest associated with the HLS manifest configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-hlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-hlsmanifestconfiguration-childmanifestname

filter_configuration

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-hlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-hlsmanifestconfiguration-filterconfiguration

Type:

see

manifest_name

The name of the manifest associated with the HLS manifest configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-hlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-hlsmanifestconfiguration-manifestname

manifest_window_seconds

The duration of the manifest window, in seconds, for the HLS manifest configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-hlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-hlsmanifestconfiguration-manifestwindowseconds

program_date_time_interval_seconds

The EXT-X-PROGRAM-DATE-TIME interval, in seconds, associated with the HLS manifest configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-hlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-hlsmanifestconfiguration-programdatetimeintervalseconds

scte_hls

THE SCTE-35 HLS configuration associated with the HLS manifest configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-hlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-hlsmanifestconfiguration-sctehls

url

The URL of the HLS manifest configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-hlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-hlsmanifestconfiguration-url

LowLatencyHlsManifestConfigurationProperty

class CfnOriginEndpoint.LowLatencyHlsManifestConfigurationProperty(*, manifest_name, child_manifest_name=None, filter_configuration=None, manifest_window_seconds=None, program_date_time_interval_seconds=None, scte_hls=None, url=None)

Bases: object

Specify a low-latency HTTP live streaming (LL-HLS) manifest configuration.

Parameters:
  • manifest_name (str) – A short short string that’s appended to the endpoint URL. The manifest name creates a unique path to this endpoint. If you don’t enter a value, MediaPackage uses the default manifest name, index . MediaPackage automatically inserts the format extension, such as .m3u8 . You can’t use the same manifest name if you use HLS manifest and low-latency HLS manifest. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

  • child_manifest_name (Optional[str]) – The name of the child manifest associated with the low-latency HLS (LL-HLS) manifest configuration of the origin endpoint.

  • filter_configuration (Union[IResolvable, FilterConfigurationProperty, Dict[str, Any], None]) –

  • manifest_window_seconds (Union[int, float, None]) – The total duration (in seconds) of the manifest’s content.

  • 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. If you don’t enter an interval, EXT-X-PROGRAM-DATE-TIME tags aren’t included in the manifest. The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player. ID3Timed metadata messages generate every 5 seconds whenever MediaPackage ingests the content. Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, MediaPackage passes through that metadata to the HLS output.

  • scte_hls (Union[IResolvable, ScteHlsProperty, Dict[str, Any], None]) – The SCTE-35 HLS configuration associated with the low-latency HLS (LL-HLS) manifest configuration of the origin endpoint.

  • url (Optional[str]) – The URL of the low-latency HLS (LL-HLS) manifest configuration of the origin endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration.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 import aws_mediapackagev2 as mediapackagev2

low_latency_hls_manifest_configuration_property = mediapackagev2.CfnOriginEndpoint.LowLatencyHlsManifestConfigurationProperty(
    manifest_name="manifestName",

    # the properties below are optional
    child_manifest_name="childManifestName",
    filter_configuration=mediapackagev2.CfnOriginEndpoint.FilterConfigurationProperty(
        end="end",
        manifest_filter="manifestFilter",
        start="start",
        time_delay_seconds=123
    ),
    manifest_window_seconds=123,
    program_date_time_interval_seconds=123,
    scte_hls=mediapackagev2.CfnOriginEndpoint.ScteHlsProperty(
        ad_marker_hls="adMarkerHls"
    ),
    url="url"
)

Attributes

child_manifest_name

The name of the child manifest associated with the low-latency HLS (LL-HLS) manifest configuration of the origin endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration-childmanifestname

filter_configuration

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration-filterconfiguration

Type:

see

manifest_name

A short short string that’s appended to the endpoint URL.

The manifest name creates a unique path to this endpoint. If you don’t enter a value, MediaPackage uses the default manifest name, index . MediaPackage automatically inserts the format extension, such as .m3u8 . You can’t use the same manifest name if you use HLS manifest and low-latency HLS manifest. The manifestName on the HLSManifest object overrides the manifestName you provided on the originEndpoint object.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration-manifestname

manifest_window_seconds

The total duration (in seconds) of the manifest’s content.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration-manifestwindowseconds

program_date_time_interval_seconds

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

If you don’t enter an interval, EXT-X-PROGRAM-DATE-TIME tags aren’t included in the manifest. The tags sync the stream to the wall clock so that viewers can seek to a specific time in the playback timeline on the player. ID3Timed metadata messages generate every 5 seconds whenever MediaPackage ingests the content.

Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, MediaPackage passes through that metadata to the HLS output.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration-programdatetimeintervalseconds

scte_hls

The SCTE-35 HLS configuration associated with the low-latency HLS (LL-HLS) manifest configuration of the origin endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration-sctehls

url

The URL of the low-latency HLS (LL-HLS) manifest configuration of the origin endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-lowlatencyhlsmanifestconfiguration-url

ScteHlsProperty

class CfnOriginEndpoint.ScteHlsProperty(*, ad_marker_hls=None)

Bases: object

The SCTE-35 HLS configuration associated with the origin endpoint.

Parameters:

ad_marker_hls (Optional[str]) – The SCTE-35 HLS ad-marker configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-sctehls.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 import aws_mediapackagev2 as mediapackagev2

scte_hls_property = mediapackagev2.CfnOriginEndpoint.ScteHlsProperty(
    ad_marker_hls="adMarkerHls"
)

Attributes

ad_marker_hls

The SCTE-35 HLS ad-marker configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-sctehls.html#cfn-mediapackagev2-originendpoint-sctehls-admarkerhls

ScteProperty

class CfnOriginEndpoint.ScteProperty(*, scte_filter=None)

Bases: object

The SCTE-35 configuration associated with the origin endpoint.

Parameters:

scte_filter (Optional[Sequence[str]]) – The filter associated with the SCTE-35 configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-scte.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 import aws_mediapackagev2 as mediapackagev2

scte_property = mediapackagev2.CfnOriginEndpoint.ScteProperty(
    scte_filter=["scteFilter"]
)

Attributes

scte_filter

The filter associated with the SCTE-35 configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-scte.html#cfn-mediapackagev2-originendpoint-scte-sctefilter

SegmentProperty

class CfnOriginEndpoint.SegmentProperty(*, encryption=None, include_iframe_only_streams=None, scte=None, segment_duration_seconds=None, segment_name=None, ts_include_dvb_subtitles=None, ts_use_audio_rendition_group=None)

Bases: object

The segment configuration, including the segment name, duration, and other configuration values.

Parameters:
  • encryption (Union[IResolvable, EncryptionProperty, Dict[str, Any], None]) – Whether to use encryption for the segment.

  • include_iframe_only_streams (Union[bool, IResolvable, None]) – Whether the segment includes I-frame-only streams.

  • scte (Union[IResolvable, ScteProperty, Dict[str, Any], None]) – The SCTE-35 configuration associated with the segment.

  • segment_duration_seconds (Union[int, float, None]) – The duration of the segment, in seconds.

  • segment_name (Optional[str]) – The name of the segment associated with the origin endpoint.

  • ts_include_dvb_subtitles (Union[bool, IResolvable, None]) – Whether the segment includes DVB subtitles.

  • ts_use_audio_rendition_group (Union[bool, IResolvable, None]) – Whether the segment is an audio rendition group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-segment.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 import aws_mediapackagev2 as mediapackagev2

segment_property = mediapackagev2.CfnOriginEndpoint.SegmentProperty(
    encryption=mediapackagev2.CfnOriginEndpoint.EncryptionProperty(
        encryption_method=mediapackagev2.CfnOriginEndpoint.EncryptionMethodProperty(
            cmaf_encryption_method="cmafEncryptionMethod",
            ts_encryption_method="tsEncryptionMethod"
        ),
        speke_key_provider=mediapackagev2.CfnOriginEndpoint.SpekeKeyProviderProperty(
            drm_systems=["drmSystems"],
            encryption_contract_configuration=mediapackagev2.CfnOriginEndpoint.EncryptionContractConfigurationProperty(
                preset_speke20_audio="presetSpeke20Audio",
                preset_speke20_video="presetSpeke20Video"
            ),
            resource_id="resourceId",
            role_arn="roleArn",
            url="url"
        ),

        # the properties below are optional
        constant_initialization_vector="constantInitializationVector",
        key_rotation_interval_seconds=123
    ),
    include_iframe_only_streams=False,
    scte=mediapackagev2.CfnOriginEndpoint.ScteProperty(
        scte_filter=["scteFilter"]
    ),
    segment_duration_seconds=123,
    segment_name="segmentName",
    ts_include_dvb_subtitles=False,
    ts_use_audio_rendition_group=False
)

Attributes

encryption

Whether to use encryption for the segment.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-segment.html#cfn-mediapackagev2-originendpoint-segment-encryption

include_iframe_only_streams

Whether the segment includes I-frame-only streams.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-segment.html#cfn-mediapackagev2-originendpoint-segment-includeiframeonlystreams

scte

The SCTE-35 configuration associated with the segment.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-segment.html#cfn-mediapackagev2-originendpoint-segment-scte

segment_duration_seconds

The duration of the segment, in seconds.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-segment.html#cfn-mediapackagev2-originendpoint-segment-segmentdurationseconds

segment_name

The name of the segment associated with the origin endpoint.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-segment.html#cfn-mediapackagev2-originendpoint-segment-segmentname

ts_include_dvb_subtitles

Whether the segment includes DVB subtitles.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-segment.html#cfn-mediapackagev2-originendpoint-segment-tsincludedvbsubtitles

ts_use_audio_rendition_group

Whether the segment is an audio rendition group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-segment.html#cfn-mediapackagev2-originendpoint-segment-tsuseaudiorenditiongroup

SpekeKeyProviderProperty

class CfnOriginEndpoint.SpekeKeyProviderProperty(*, drm_systems, encryption_contract_configuration, resource_id, role_arn, url)

Bases: object

The parameters for the SPEKE key provider.

Parameters:
  • drm_systems (Sequence[str]) – The DRM solution provider you’re using to protect your content during distribution.

  • encryption_contract_configuration (Union[IResolvable, EncryptionContractConfigurationProperty, Dict[str, Any]]) – The encryption contract configuration associated with the SPEKE key provider.

  • resource_id (str) – The unique identifier for the content. The service sends this identifier to the key server to identify the current endpoint. How unique you make this identifier depends on how fine-grained you want access controls to be. The service does not permit you to use the same ID for two simultaneous encryption processes. The resource ID is also known as the content ID. The following example shows a resource ID: MovieNight20171126093045

  • role_arn (str) – The ARN for the IAM role granted by the key provider that provides access to the key provider API. This role must have a trust policy that allows MediaPackage to assume the role, and it must have a sufficient permissions policy to allow access to the specific key retrieval URL. Get this from your DRM solution provider. Valid format: arn:aws:iam::{accountID}:role/{name} . The following example shows a role ARN: arn:aws:iam::444455556666:role/SpekeAccess

  • url (str) – The URL of the SPEKE key provider.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-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 import aws_mediapackagev2 as mediapackagev2

speke_key_provider_property = mediapackagev2.CfnOriginEndpoint.SpekeKeyProviderProperty(
    drm_systems=["drmSystems"],
    encryption_contract_configuration=mediapackagev2.CfnOriginEndpoint.EncryptionContractConfigurationProperty(
        preset_speke20_audio="presetSpeke20Audio",
        preset_speke20_video="presetSpeke20Video"
    ),
    resource_id="resourceId",
    role_arn="roleArn",
    url="url"
)

Attributes

drm_systems

The DRM solution provider you’re using to protect your content during distribution.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-spekekeyprovider.html#cfn-mediapackagev2-originendpoint-spekekeyprovider-drmsystems

encryption_contract_configuration

The encryption contract configuration associated with the SPEKE key provider.

See:

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

resource_id

The unique identifier for the content.

The service sends this identifier to the key server to identify the current endpoint. How unique you make this identifier depends on how fine-grained you want access controls to be. The service does not permit you to use the same ID for two simultaneous encryption processes. The resource ID is also known as the content ID.

The following example shows a resource ID: MovieNight20171126093045

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-spekekeyprovider.html#cfn-mediapackagev2-originendpoint-spekekeyprovider-resourceid

role_arn

The ARN for the IAM role granted by the key provider that provides access to the key provider API.

This role must have a trust policy that allows MediaPackage to assume the role, and it must have a sufficient permissions policy to allow access to the specific key retrieval URL. Get this from your DRM solution provider.

Valid format: arn:aws:iam::{accountID}:role/{name} . The following example shows a role ARN: arn:aws:iam::444455556666:role/SpekeAccess

See:

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

url

The URL of the SPEKE key provider.

See:

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