MediaPackage

Table of Contents

Client

class MediaPackage.Client

A low-level client representing AWS Elemental MediaPackage:

import boto3

client = boto3.client('mediapackage')

These are the available methods:

can_paginate(operation_name)

Check if an operation can be paginated.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Returns
True if the operation can be paginated, False otherwise.
create_channel(**kwargs)

Creates a new Channel.

See also: AWS API Documentation

Request Syntax

response = client.create_channel(
    Description='string',
    Id='string'
)
Parameters
  • Description (string) -- A short text description of the Channel.
  • Id (string) -- [REQUIRED] The ID of the Channel. The ID must be unique within the region and it cannot be changed after a Channel is created.
Return type

dict

Returns

Response Syntax

{
    'Arn': 'string',
    'Description': 'string',
    'HlsIngest': {
        'IngestEndpoints': [
            {
                'Password': 'string',
                'Url': 'string',
                'Username': 'string'
            },
        ]
    },
    'Id': 'string'
}

Response Structure

  • (dict) -- The new Channel record.
    • Arn (string) -- The Amazon Resource Name (ARN) assigned to the Channel.
    • Description (string) -- A short text description of the Channel.
    • HlsIngest (dict) -- An HTTP Live Streaming (HLS) ingest resource configuration.
      • IngestEndpoints (list) -- A list of endpoints to which the source stream should be sent.
        • (dict) -- An endpoint for ingesting source content for a Channel.
          • Password (string) -- The system generated password for ingest authentication.
          • Url (string) -- The ingest URL to which the source stream should be sent.
          • Username (string) -- The system generated username for ingest authentication.
    • Id (string) -- The ID of the Channel.

create_origin_endpoint(**kwargs)

Creates a new OriginEndpoint record.

See also: AWS API Documentation

Request Syntax

response = client.create_origin_endpoint(
    ChannelId='string',
    DashPackage={
        'Encryption': {
            'KeyRotationIntervalSeconds': 123,
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'ManifestWindowSeconds': 123,
        'MinBufferTimeSeconds': 123,
        'MinUpdatePeriodSeconds': 123,
        'Profile': 'NONE'|'HBBTV_1_5',
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        },
        'SuggestedPresentationDelaySeconds': 123
    },
    Description='string',
    HlsPackage={
        'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
        'Encryption': {
            'ConstantInitializationVector': 'string',
            'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
            'KeyRotationIntervalSeconds': 123,
            'RepeatExtXKey': True|False,
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'IncludeIframeOnlyStream': True|False,
        'PlaylistType': 'NONE'|'EVENT'|'VOD',
        'PlaylistWindowSeconds': 123,
        'ProgramDateTimeIntervalSeconds': 123,
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        },
        'UseAudioRenditionGroup': True|False
    },
    Id='string',
    ManifestName='string',
    MssPackage={
        'Encryption': {
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'ManifestWindowSeconds': 123,
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        }
    },
    StartoverWindowSeconds=123,
    TimeDelaySeconds=123,
    Whitelist=[
        'string',
    ]
)
Parameters
  • ChannelId (string) -- [REQUIRED] The ID of the Channel that the OriginEndpoint will be associated with. This cannot be changed after the OriginEndpoint is created.
  • DashPackage (dict) --

    A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.

    • Encryption (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
      • KeyRotationIntervalSeconds (integer) -- Time (in seconds) between each encryption key rotation.
      • SpekeKeyProvider (dict) -- [REQUIRED] A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
        • ResourceId (string) -- [REQUIRED] The resource ID to include in key requests.
        • RoleArn (string) -- [REQUIRED] An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
        • SystemIds (list) -- [REQUIRED] The system IDs to include in key requests.
          • (string) --
        • Url (string) -- [REQUIRED] The URL of the external key provider service.
    • ManifestWindowSeconds (integer) -- Time window (in seconds) contained in each manifest.
    • MinBufferTimeSeconds (integer) -- Minimum duration (in seconds) that a player will buffer media before starting the presentation.
    • MinUpdatePeriodSeconds (integer) -- Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).
    • Profile (string) -- The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
    • SegmentDurationSeconds (integer) -- Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
    • StreamSelection (dict) -- A StreamSelection configuration.
      • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
      • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
      • StreamOrder (string) -- A directive that determines the order of streams in the output.
    • SuggestedPresentationDelaySeconds (integer) -- Duration (in seconds) to delay live content before presentation.
  • Description (string) -- A short text description of the OriginEndpoint.
  • HlsPackage (dict) --

    An HTTP Live Streaming (HLS) packaging configuration.

    • AdMarkers (string) -- This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.
    • Encryption (dict) -- An HTTP Live Streaming (HLS) encryption configuration.
      • ConstantInitializationVector (string) -- A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
      • EncryptionMethod (string) -- The encryption method to use.
      • KeyRotationIntervalSeconds (integer) -- Interval (in seconds) between each encryption key rotation.
      • RepeatExtXKey (boolean) -- When enabled, the EXT-X-KEY tag will be repeated in output manifests.
      • SpekeKeyProvider (dict) -- [REQUIRED] A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
        • ResourceId (string) -- [REQUIRED] The resource ID to include in key requests.
        • RoleArn (string) -- [REQUIRED] An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
        • SystemIds (list) -- [REQUIRED] The system IDs to include in key requests.
          • (string) --
        • Url (string) -- [REQUIRED] The URL of the external key provider service.
    • IncludeIframeOnlyStream (boolean) -- When enabled, an I-Frame only stream will be included in the output.
    • PlaylistType (string) -- The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
    • PlaylistWindowSeconds (integer) -- Time window (in seconds) contained in each parent manifest.
    • ProgramDateTimeIntervalSeconds (integer) -- The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
    • SegmentDurationSeconds (integer) -- Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.
    • StreamSelection (dict) -- A StreamSelection configuration.
      • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
      • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
      • StreamOrder (string) -- A directive that determines the order of streams in the output.
    • UseAudioRenditionGroup (boolean) -- When enabled, audio streams will be placed in rendition groups in the output.
  • Id (string) -- [REQUIRED] The ID of the OriginEndpoint. The ID must be unique within the region and it cannot be changed after the OriginEndpoint is created.
  • ManifestName (string) -- A short string that will be used as the filename of the OriginEndpoint URL (defaults to "index").
  • MssPackage (dict) --

    A Microsoft Smooth Streaming (MSS) packaging configuration.

    • Encryption (dict) -- A Microsoft Smooth Streaming (MSS) encryption configuration.
      • SpekeKeyProvider (dict) -- [REQUIRED] A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
        • ResourceId (string) -- [REQUIRED] The resource ID to include in key requests.
        • RoleArn (string) -- [REQUIRED] An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
        • SystemIds (list) -- [REQUIRED] The system IDs to include in key requests.
          • (string) --
        • Url (string) -- [REQUIRED] The URL of the external key provider service.
    • ManifestWindowSeconds (integer) -- The time window (in seconds) contained in each manifest.
    • SegmentDurationSeconds (integer) -- The duration (in seconds) of each segment.
    • StreamSelection (dict) -- A StreamSelection configuration.
      • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
      • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
      • StreamOrder (string) -- A directive that determines the order of streams in the output.
  • StartoverWindowSeconds (integer) -- Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
  • TimeDelaySeconds (integer) -- Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
  • Whitelist (list) --

    A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.

    • (string) --
Return type

dict

Returns

Response Syntax

{
    'Arn': 'string',
    'ChannelId': 'string',
    'DashPackage': {
        'Encryption': {
            'KeyRotationIntervalSeconds': 123,
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'ManifestWindowSeconds': 123,
        'MinBufferTimeSeconds': 123,
        'MinUpdatePeriodSeconds': 123,
        'Profile': 'NONE'|'HBBTV_1_5',
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        },
        'SuggestedPresentationDelaySeconds': 123
    },
    'Description': 'string',
    'HlsPackage': {
        'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
        'Encryption': {
            'ConstantInitializationVector': 'string',
            'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
            'KeyRotationIntervalSeconds': 123,
            'RepeatExtXKey': True|False,
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'IncludeIframeOnlyStream': True|False,
        'PlaylistType': 'NONE'|'EVENT'|'VOD',
        'PlaylistWindowSeconds': 123,
        'ProgramDateTimeIntervalSeconds': 123,
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        },
        'UseAudioRenditionGroup': True|False
    },
    'Id': 'string',
    'ManifestName': 'string',
    'MssPackage': {
        'Encryption': {
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'ManifestWindowSeconds': 123,
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        }
    },
    'StartoverWindowSeconds': 123,
    'TimeDelaySeconds': 123,
    'Url': 'string',
    'Whitelist': [
        'string',
    ]
}

Response Structure

  • (dict) -- A new OriginEndpoint record.
    • Arn (string) -- The Amazon Resource Name (ARN) assigned to the OriginEndpoint.
    • ChannelId (string) -- The ID of the Channel the OriginEndpoint is associated with.
    • DashPackage (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
      • Encryption (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
        • KeyRotationIntervalSeconds (integer) -- Time (in seconds) between each encryption key rotation.
        • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
          • ResourceId (string) -- The resource ID to include in key requests.
          • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
          • SystemIds (list) -- The system IDs to include in key requests.
            • (string) --
          • Url (string) -- The URL of the external key provider service.
      • ManifestWindowSeconds (integer) -- Time window (in seconds) contained in each manifest.
      • MinBufferTimeSeconds (integer) -- Minimum duration (in seconds) that a player will buffer media before starting the presentation.
      • MinUpdatePeriodSeconds (integer) -- Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).
      • Profile (string) -- The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
      • SegmentDurationSeconds (integer) -- Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
      • StreamSelection (dict) -- A StreamSelection configuration.
        • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
        • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
        • StreamOrder (string) -- A directive that determines the order of streams in the output.
      • SuggestedPresentationDelaySeconds (integer) -- Duration (in seconds) to delay live content before presentation.
    • Description (string) -- A short text description of the OriginEndpoint.
    • HlsPackage (dict) -- An HTTP Live Streaming (HLS) packaging configuration.
      • AdMarkers (string) -- This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.
      • Encryption (dict) -- An HTTP Live Streaming (HLS) encryption configuration.
        • ConstantInitializationVector (string) -- A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
        • EncryptionMethod (string) -- The encryption method to use.
        • KeyRotationIntervalSeconds (integer) -- Interval (in seconds) between each encryption key rotation.
        • RepeatExtXKey (boolean) -- When enabled, the EXT-X-KEY tag will be repeated in output manifests.
        • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
          • ResourceId (string) -- The resource ID to include in key requests.
          • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
          • SystemIds (list) -- The system IDs to include in key requests.
            • (string) --
          • Url (string) -- The URL of the external key provider service.
      • IncludeIframeOnlyStream (boolean) -- When enabled, an I-Frame only stream will be included in the output.
      • PlaylistType (string) -- The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
      • PlaylistWindowSeconds (integer) -- Time window (in seconds) contained in each parent manifest.
      • ProgramDateTimeIntervalSeconds (integer) -- The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
      • SegmentDurationSeconds (integer) -- Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.
      • StreamSelection (dict) -- A StreamSelection configuration.
        • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
        • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
        • StreamOrder (string) -- A directive that determines the order of streams in the output.
      • UseAudioRenditionGroup (boolean) -- When enabled, audio streams will be placed in rendition groups in the output.
    • Id (string) -- The ID of the OriginEndpoint.
    • ManifestName (string) -- A short string appended to the end of the OriginEndpoint URL.
    • MssPackage (dict) -- A Microsoft Smooth Streaming (MSS) packaging configuration.
      • Encryption (dict) -- A Microsoft Smooth Streaming (MSS) encryption configuration.
        • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
          • ResourceId (string) -- The resource ID to include in key requests.
          • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
          • SystemIds (list) -- The system IDs to include in key requests.
            • (string) --
          • Url (string) -- The URL of the external key provider service.
      • ManifestWindowSeconds (integer) -- The time window (in seconds) contained in each manifest.
      • SegmentDurationSeconds (integer) -- The duration (in seconds) of each segment.
      • StreamSelection (dict) -- A StreamSelection configuration.
        • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
        • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
        • StreamOrder (string) -- A directive that determines the order of streams in the output.
    • StartoverWindowSeconds (integer) -- Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
    • TimeDelaySeconds (integer) -- Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
    • Url (string) -- The URL of the packaged OriginEndpoint for consumption.
    • Whitelist (list) -- A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
      • (string) --

delete_channel(**kwargs)

Deletes an existing Channel.

See also: AWS API Documentation

Request Syntax

response = client.delete_channel(
    Id='string'
)
Parameters
Id (string) -- [REQUIRED] The ID of the Channel to delete.
Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) -- The Channel has been deleted.
delete_origin_endpoint(**kwargs)

Deletes an existing OriginEndpoint.

See also: AWS API Documentation

Request Syntax

response = client.delete_origin_endpoint(
    Id='string'
)
Parameters
Id (string) -- [REQUIRED] The ID of the OriginEndpoint to delete.
Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) -- The OriginEndpoint has been deleted.
describe_channel(**kwargs)

Gets details about a Channel.

See also: AWS API Documentation

Request Syntax

response = client.describe_channel(
    Id='string'
)
Parameters
Id (string) -- [REQUIRED] The ID of a Channel.
Return type
dict
Returns
Response Syntax
{
    'Arn': 'string',
    'Description': 'string',
    'HlsIngest': {
        'IngestEndpoints': [
            {
                'Password': 'string',
                'Url': 'string',
                'Username': 'string'
            },
        ]
    },
    'Id': 'string'
}

Response Structure

  • (dict) -- A Channel record.
    • Arn (string) -- The Amazon Resource Name (ARN) assigned to the Channel.
    • Description (string) -- A short text description of the Channel.
    • HlsIngest (dict) -- An HTTP Live Streaming (HLS) ingest resource configuration.
      • IngestEndpoints (list) -- A list of endpoints to which the source stream should be sent.
        • (dict) -- An endpoint for ingesting source content for a Channel.
          • Password (string) -- The system generated password for ingest authentication.
          • Url (string) -- The ingest URL to which the source stream should be sent.
          • Username (string) -- The system generated username for ingest authentication.
    • Id (string) -- The ID of the Channel.
describe_origin_endpoint(**kwargs)

Gets details about an existing OriginEndpoint.

See also: AWS API Documentation

Request Syntax

response = client.describe_origin_endpoint(
    Id='string'
)
Parameters
Id (string) -- [REQUIRED] The ID of the OriginEndpoint.
Return type
dict
Returns
Response Syntax
{
    'Arn': 'string',
    'ChannelId': 'string',
    'DashPackage': {
        'Encryption': {
            'KeyRotationIntervalSeconds': 123,
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'ManifestWindowSeconds': 123,
        'MinBufferTimeSeconds': 123,
        'MinUpdatePeriodSeconds': 123,
        'Profile': 'NONE'|'HBBTV_1_5',
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        },
        'SuggestedPresentationDelaySeconds': 123
    },
    'Description': 'string',
    'HlsPackage': {
        'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
        'Encryption': {
            'ConstantInitializationVector': 'string',
            'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
            'KeyRotationIntervalSeconds': 123,
            'RepeatExtXKey': True|False,
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'IncludeIframeOnlyStream': True|False,
        'PlaylistType': 'NONE'|'EVENT'|'VOD',
        'PlaylistWindowSeconds': 123,
        'ProgramDateTimeIntervalSeconds': 123,
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        },
        'UseAudioRenditionGroup': True|False
    },
    'Id': 'string',
    'ManifestName': 'string',
    'MssPackage': {
        'Encryption': {
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'ManifestWindowSeconds': 123,
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        }
    },
    'StartoverWindowSeconds': 123,
    'TimeDelaySeconds': 123,
    'Url': 'string',
    'Whitelist': [
        'string',
    ]
}

Response Structure

  • (dict) -- An OriginEndpoint record.
    • Arn (string) -- The Amazon Resource Name (ARN) assigned to the OriginEndpoint.
    • ChannelId (string) -- The ID of the Channel the OriginEndpoint is associated with.
    • DashPackage (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
      • Encryption (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
        • KeyRotationIntervalSeconds (integer) -- Time (in seconds) between each encryption key rotation.
        • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
          • ResourceId (string) -- The resource ID to include in key requests.
          • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
          • SystemIds (list) -- The system IDs to include in key requests.
            • (string) --
          • Url (string) -- The URL of the external key provider service.
      • ManifestWindowSeconds (integer) -- Time window (in seconds) contained in each manifest.
      • MinBufferTimeSeconds (integer) -- Minimum duration (in seconds) that a player will buffer media before starting the presentation.
      • MinUpdatePeriodSeconds (integer) -- Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).
      • Profile (string) -- The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
      • SegmentDurationSeconds (integer) -- Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
      • StreamSelection (dict) -- A StreamSelection configuration.
        • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
        • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
        • StreamOrder (string) -- A directive that determines the order of streams in the output.
      • SuggestedPresentationDelaySeconds (integer) -- Duration (in seconds) to delay live content before presentation.
    • Description (string) -- A short text description of the OriginEndpoint.
    • HlsPackage (dict) -- An HTTP Live Streaming (HLS) packaging configuration.
      • AdMarkers (string) -- This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.
      • Encryption (dict) -- An HTTP Live Streaming (HLS) encryption configuration.
        • ConstantInitializationVector (string) -- A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
        • EncryptionMethod (string) -- The encryption method to use.
        • KeyRotationIntervalSeconds (integer) -- Interval (in seconds) between each encryption key rotation.
        • RepeatExtXKey (boolean) -- When enabled, the EXT-X-KEY tag will be repeated in output manifests.
        • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
          • ResourceId (string) -- The resource ID to include in key requests.
          • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
          • SystemIds (list) -- The system IDs to include in key requests.
            • (string) --
          • Url (string) -- The URL of the external key provider service.
      • IncludeIframeOnlyStream (boolean) -- When enabled, an I-Frame only stream will be included in the output.
      • PlaylistType (string) -- The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
      • PlaylistWindowSeconds (integer) -- Time window (in seconds) contained in each parent manifest.
      • ProgramDateTimeIntervalSeconds (integer) -- The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
      • SegmentDurationSeconds (integer) -- Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.
      • StreamSelection (dict) -- A StreamSelection configuration.
        • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
        • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
        • StreamOrder (string) -- A directive that determines the order of streams in the output.
      • UseAudioRenditionGroup (boolean) -- When enabled, audio streams will be placed in rendition groups in the output.
    • Id (string) -- The ID of the OriginEndpoint.
    • ManifestName (string) -- A short string appended to the end of the OriginEndpoint URL.
    • MssPackage (dict) -- A Microsoft Smooth Streaming (MSS) packaging configuration.
      • Encryption (dict) -- A Microsoft Smooth Streaming (MSS) encryption configuration.
        • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
          • ResourceId (string) -- The resource ID to include in key requests.
          • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
          • SystemIds (list) -- The system IDs to include in key requests.
            • (string) --
          • Url (string) -- The URL of the external key provider service.
      • ManifestWindowSeconds (integer) -- The time window (in seconds) contained in each manifest.
      • SegmentDurationSeconds (integer) -- The duration (in seconds) of each segment.
      • StreamSelection (dict) -- A StreamSelection configuration.
        • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
        • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
        • StreamOrder (string) -- A directive that determines the order of streams in the output.
    • StartoverWindowSeconds (integer) -- Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
    • TimeDelaySeconds (integer) -- Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
    • Url (string) -- The URL of the packaged OriginEndpoint for consumption.
    • Whitelist (list) -- A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
      • (string) --
generate_presigned_url(ClientMethod, Params=None, ExpiresIn=3600, HttpMethod=None)

Generate a presigned url given a client, its method, and arguments

Parameters
  • ClientMethod (string) -- The client method to presign for
  • Params (dict) -- The parameters normally passed to ClientMethod.
  • ExpiresIn (int) -- The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds)
  • HttpMethod (string) -- The http method to use on the generated url. By default, the http method is whatever is used in the method's model.
Returns

The presigned url

get_paginator(operation_name)

Create a paginator for an operation.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Raises OperationNotPageableError
Raised if the operation is not pageable. You can use the client.can_paginate method to check if an operation is pageable.
Return type
L{botocore.paginate.Paginator}
Returns
A paginator object.
get_waiter(waiter_name)
list_channels(**kwargs)

Returns a collection of Channels.

See also: AWS API Documentation

Request Syntax

response = client.list_channels(
    MaxResults=123,
    NextToken='string'
)
Parameters
  • MaxResults (integer) -- Upper bound on number of records to return.
  • NextToken (string) -- A token used to resume pagination from the end of a previous request.
Return type

dict

Returns

Response Syntax

{
    'Channels': [
        {
            'Arn': 'string',
            'Description': 'string',
            'HlsIngest': {
                'IngestEndpoints': [
                    {
                        'Password': 'string',
                        'Url': 'string',
                        'Username': 'string'
                    },
                ]
            },
            'Id': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) -- A collection of Channel records.
    • Channels (list) -- A list of Channel records.
      • (dict) -- A Channel resource configuration.
        • Arn (string) -- The Amazon Resource Name (ARN) assigned to the Channel.
        • Description (string) -- A short text description of the Channel.
        • HlsIngest (dict) -- An HTTP Live Streaming (HLS) ingest resource configuration.
          • IngestEndpoints (list) -- A list of endpoints to which the source stream should be sent.
            • (dict) -- An endpoint for ingesting source content for a Channel.
              • Password (string) -- The system generated password for ingest authentication.
              • Url (string) -- The ingest URL to which the source stream should be sent.
              • Username (string) -- The system generated username for ingest authentication.
        • Id (string) -- The ID of the Channel.
    • NextToken (string) -- A token that can be used to resume pagination from the end of the collection.

list_origin_endpoints(**kwargs)

Returns a collection of OriginEndpoint records.

See also: AWS API Documentation

Request Syntax

response = client.list_origin_endpoints(
    ChannelId='string',
    MaxResults=123,
    NextToken='string'
)
Parameters
  • ChannelId (string) -- When specified, the request will return only OriginEndpoints associated with the given Channel ID.
  • MaxResults (integer) -- The upper bound on the number of records to return.
  • NextToken (string) -- A token used to resume pagination from the end of a previous request.
Return type

dict

Returns

Response Syntax

{
    'NextToken': 'string',
    'OriginEndpoints': [
        {
            'Arn': 'string',
            'ChannelId': 'string',
            'DashPackage': {
                'Encryption': {
                    'KeyRotationIntervalSeconds': 123,
                    'SpekeKeyProvider': {
                        'ResourceId': 'string',
                        'RoleArn': 'string',
                        'SystemIds': [
                            'string',
                        ],
                        'Url': 'string'
                    }
                },
                'ManifestWindowSeconds': 123,
                'MinBufferTimeSeconds': 123,
                'MinUpdatePeriodSeconds': 123,
                'Profile': 'NONE'|'HBBTV_1_5',
                'SegmentDurationSeconds': 123,
                'StreamSelection': {
                    'MaxVideoBitsPerSecond': 123,
                    'MinVideoBitsPerSecond': 123,
                    'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
                },
                'SuggestedPresentationDelaySeconds': 123
            },
            'Description': 'string',
            'HlsPackage': {
                'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
                'Encryption': {
                    'ConstantInitializationVector': 'string',
                    'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
                    'KeyRotationIntervalSeconds': 123,
                    'RepeatExtXKey': True|False,
                    'SpekeKeyProvider': {
                        'ResourceId': 'string',
                        'RoleArn': 'string',
                        'SystemIds': [
                            'string',
                        ],
                        'Url': 'string'
                    }
                },
                'IncludeIframeOnlyStream': True|False,
                'PlaylistType': 'NONE'|'EVENT'|'VOD',
                'PlaylistWindowSeconds': 123,
                'ProgramDateTimeIntervalSeconds': 123,
                'SegmentDurationSeconds': 123,
                'StreamSelection': {
                    'MaxVideoBitsPerSecond': 123,
                    'MinVideoBitsPerSecond': 123,
                    'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
                },
                'UseAudioRenditionGroup': True|False
            },
            'Id': 'string',
            'ManifestName': 'string',
            'MssPackage': {
                'Encryption': {
                    'SpekeKeyProvider': {
                        'ResourceId': 'string',
                        'RoleArn': 'string',
                        'SystemIds': [
                            'string',
                        ],
                        'Url': 'string'
                    }
                },
                'ManifestWindowSeconds': 123,
                'SegmentDurationSeconds': 123,
                'StreamSelection': {
                    'MaxVideoBitsPerSecond': 123,
                    'MinVideoBitsPerSecond': 123,
                    'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
                }
            },
            'StartoverWindowSeconds': 123,
            'TimeDelaySeconds': 123,
            'Url': 'string',
            'Whitelist': [
                'string',
            ]
        },
    ]
}

Response Structure

  • (dict) -- A collection of OriginEndpoint records.
    • NextToken (string) -- A token that can be used to resume pagination from the end of the collection.
    • OriginEndpoints (list) -- A list of OriginEndpoint records.
      • (dict) -- An OriginEndpoint resource configuration.
        • Arn (string) -- The Amazon Resource Name (ARN) assigned to the OriginEndpoint.
        • ChannelId (string) -- The ID of the Channel the OriginEndpoint is associated with.
        • DashPackage (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
          • Encryption (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
            • KeyRotationIntervalSeconds (integer) -- Time (in seconds) between each encryption key rotation.
            • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
              • ResourceId (string) -- The resource ID to include in key requests.
              • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
              • SystemIds (list) -- The system IDs to include in key requests.
                • (string) --
              • Url (string) -- The URL of the external key provider service.
          • ManifestWindowSeconds (integer) -- Time window (in seconds) contained in each manifest.
          • MinBufferTimeSeconds (integer) -- Minimum duration (in seconds) that a player will buffer media before starting the presentation.
          • MinUpdatePeriodSeconds (integer) -- Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).
          • Profile (string) -- The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
          • SegmentDurationSeconds (integer) -- Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
          • StreamSelection (dict) -- A StreamSelection configuration.
            • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
            • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
            • StreamOrder (string) -- A directive that determines the order of streams in the output.
          • SuggestedPresentationDelaySeconds (integer) -- Duration (in seconds) to delay live content before presentation.
        • Description (string) -- A short text description of the OriginEndpoint.
        • HlsPackage (dict) -- An HTTP Live Streaming (HLS) packaging configuration.
          • AdMarkers (string) -- This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.
          • Encryption (dict) -- An HTTP Live Streaming (HLS) encryption configuration.
            • ConstantInitializationVector (string) -- A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
            • EncryptionMethod (string) -- The encryption method to use.
            • KeyRotationIntervalSeconds (integer) -- Interval (in seconds) between each encryption key rotation.
            • RepeatExtXKey (boolean) -- When enabled, the EXT-X-KEY tag will be repeated in output manifests.
            • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
              • ResourceId (string) -- The resource ID to include in key requests.
              • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
              • SystemIds (list) -- The system IDs to include in key requests.
                • (string) --
              • Url (string) -- The URL of the external key provider service.
          • IncludeIframeOnlyStream (boolean) -- When enabled, an I-Frame only stream will be included in the output.
          • PlaylistType (string) -- The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
          • PlaylistWindowSeconds (integer) -- Time window (in seconds) contained in each parent manifest.
          • ProgramDateTimeIntervalSeconds (integer) -- The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
          • SegmentDurationSeconds (integer) -- Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.
          • StreamSelection (dict) -- A StreamSelection configuration.
            • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
            • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
            • StreamOrder (string) -- A directive that determines the order of streams in the output.
          • UseAudioRenditionGroup (boolean) -- When enabled, audio streams will be placed in rendition groups in the output.
        • Id (string) -- The ID of the OriginEndpoint.
        • ManifestName (string) -- A short string appended to the end of the OriginEndpoint URL.
        • MssPackage (dict) -- A Microsoft Smooth Streaming (MSS) packaging configuration.
          • Encryption (dict) -- A Microsoft Smooth Streaming (MSS) encryption configuration.
            • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
              • ResourceId (string) -- The resource ID to include in key requests.
              • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
              • SystemIds (list) -- The system IDs to include in key requests.
                • (string) --
              • Url (string) -- The URL of the external key provider service.
          • ManifestWindowSeconds (integer) -- The time window (in seconds) contained in each manifest.
          • SegmentDurationSeconds (integer) -- The duration (in seconds) of each segment.
          • StreamSelection (dict) -- A StreamSelection configuration.
            • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
            • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
            • StreamOrder (string) -- A directive that determines the order of streams in the output.
        • StartoverWindowSeconds (integer) -- Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
        • TimeDelaySeconds (integer) -- Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
        • Url (string) -- The URL of the packaged OriginEndpoint for consumption.
        • Whitelist (list) -- A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
          • (string) --

rotate_channel_credentials(**kwargs)

Changes the Channel ingest username and password.

See also: AWS API Documentation

Request Syntax

response = client.rotate_channel_credentials(
    Id='string'
)
Parameters
Id (string) -- [REQUIRED] The ID of the channel to update.
Return type
dict
Returns
Response Syntax
{
    'Arn': 'string',
    'Description': 'string',
    'HlsIngest': {
        'IngestEndpoints': [
            {
                'Password': 'string',
                'Url': 'string',
                'Username': 'string'
            },
        ]
    },
    'Id': 'string'
}

Response Structure

  • (dict) -- The updated Channel record.
    • Arn (string) -- The Amazon Resource Name (ARN) assigned to the Channel.
    • Description (string) -- A short text description of the Channel.
    • HlsIngest (dict) -- An HTTP Live Streaming (HLS) ingest resource configuration.
      • IngestEndpoints (list) -- A list of endpoints to which the source stream should be sent.
        • (dict) -- An endpoint for ingesting source content for a Channel.
          • Password (string) -- The system generated password for ingest authentication.
          • Url (string) -- The ingest URL to which the source stream should be sent.
          • Username (string) -- The system generated username for ingest authentication.
    • Id (string) -- The ID of the Channel.
update_channel(**kwargs)

Updates an existing Channel.

See also: AWS API Documentation

Request Syntax

response = client.update_channel(
    Description='string',
    Id='string'
)
Parameters
  • Description (string) -- A short text description of the Channel.
  • Id (string) -- [REQUIRED] The ID of the Channel to update.
Return type

dict

Returns

Response Syntax

{
    'Arn': 'string',
    'Description': 'string',
    'HlsIngest': {
        'IngestEndpoints': [
            {
                'Password': 'string',
                'Url': 'string',
                'Username': 'string'
            },
        ]
    },
    'Id': 'string'
}

Response Structure

  • (dict) -- The updated Channel record.
    • Arn (string) -- The Amazon Resource Name (ARN) assigned to the Channel.
    • Description (string) -- A short text description of the Channel.
    • HlsIngest (dict) -- An HTTP Live Streaming (HLS) ingest resource configuration.
      • IngestEndpoints (list) -- A list of endpoints to which the source stream should be sent.
        • (dict) -- An endpoint for ingesting source content for a Channel.
          • Password (string) -- The system generated password for ingest authentication.
          • Url (string) -- The ingest URL to which the source stream should be sent.
          • Username (string) -- The system generated username for ingest authentication.
    • Id (string) -- The ID of the Channel.

update_origin_endpoint(**kwargs)

Updates an existing OriginEndpoint.

See also: AWS API Documentation

Request Syntax

response = client.update_origin_endpoint(
    DashPackage={
        'Encryption': {
            'KeyRotationIntervalSeconds': 123,
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'ManifestWindowSeconds': 123,
        'MinBufferTimeSeconds': 123,
        'MinUpdatePeriodSeconds': 123,
        'Profile': 'NONE'|'HBBTV_1_5',
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        },
        'SuggestedPresentationDelaySeconds': 123
    },
    Description='string',
    HlsPackage={
        'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
        'Encryption': {
            'ConstantInitializationVector': 'string',
            'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
            'KeyRotationIntervalSeconds': 123,
            'RepeatExtXKey': True|False,
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'IncludeIframeOnlyStream': True|False,
        'PlaylistType': 'NONE'|'EVENT'|'VOD',
        'PlaylistWindowSeconds': 123,
        'ProgramDateTimeIntervalSeconds': 123,
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        },
        'UseAudioRenditionGroup': True|False
    },
    Id='string',
    ManifestName='string',
    MssPackage={
        'Encryption': {
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'ManifestWindowSeconds': 123,
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        }
    },
    StartoverWindowSeconds=123,
    TimeDelaySeconds=123,
    Whitelist=[
        'string',
    ]
)
Parameters
  • DashPackage (dict) --

    A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.

    • Encryption (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
      • KeyRotationIntervalSeconds (integer) -- Time (in seconds) between each encryption key rotation.
      • SpekeKeyProvider (dict) -- [REQUIRED] A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
        • ResourceId (string) -- [REQUIRED] The resource ID to include in key requests.
        • RoleArn (string) -- [REQUIRED] An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
        • SystemIds (list) -- [REQUIRED] The system IDs to include in key requests.
          • (string) --
        • Url (string) -- [REQUIRED] The URL of the external key provider service.
    • ManifestWindowSeconds (integer) -- Time window (in seconds) contained in each manifest.
    • MinBufferTimeSeconds (integer) -- Minimum duration (in seconds) that a player will buffer media before starting the presentation.
    • MinUpdatePeriodSeconds (integer) -- Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).
    • Profile (string) -- The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
    • SegmentDurationSeconds (integer) -- Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
    • StreamSelection (dict) -- A StreamSelection configuration.
      • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
      • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
      • StreamOrder (string) -- A directive that determines the order of streams in the output.
    • SuggestedPresentationDelaySeconds (integer) -- Duration (in seconds) to delay live content before presentation.
  • Description (string) -- A short text description of the OriginEndpoint.
  • HlsPackage (dict) --

    An HTTP Live Streaming (HLS) packaging configuration.

    • AdMarkers (string) -- This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.
    • Encryption (dict) -- An HTTP Live Streaming (HLS) encryption configuration.
      • ConstantInitializationVector (string) -- A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
      • EncryptionMethod (string) -- The encryption method to use.
      • KeyRotationIntervalSeconds (integer) -- Interval (in seconds) between each encryption key rotation.
      • RepeatExtXKey (boolean) -- When enabled, the EXT-X-KEY tag will be repeated in output manifests.
      • SpekeKeyProvider (dict) -- [REQUIRED] A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
        • ResourceId (string) -- [REQUIRED] The resource ID to include in key requests.
        • RoleArn (string) -- [REQUIRED] An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
        • SystemIds (list) -- [REQUIRED] The system IDs to include in key requests.
          • (string) --
        • Url (string) -- [REQUIRED] The URL of the external key provider service.
    • IncludeIframeOnlyStream (boolean) -- When enabled, an I-Frame only stream will be included in the output.
    • PlaylistType (string) -- The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
    • PlaylistWindowSeconds (integer) -- Time window (in seconds) contained in each parent manifest.
    • ProgramDateTimeIntervalSeconds (integer) -- The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
    • SegmentDurationSeconds (integer) -- Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.
    • StreamSelection (dict) -- A StreamSelection configuration.
      • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
      • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
      • StreamOrder (string) -- A directive that determines the order of streams in the output.
    • UseAudioRenditionGroup (boolean) -- When enabled, audio streams will be placed in rendition groups in the output.
  • Id (string) -- [REQUIRED] The ID of the OriginEndpoint to update.
  • ManifestName (string) -- A short string that will be appended to the end of the Endpoint URL.
  • MssPackage (dict) --

    A Microsoft Smooth Streaming (MSS) packaging configuration.

    • Encryption (dict) -- A Microsoft Smooth Streaming (MSS) encryption configuration.
      • SpekeKeyProvider (dict) -- [REQUIRED] A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
        • ResourceId (string) -- [REQUIRED] The resource ID to include in key requests.
        • RoleArn (string) -- [REQUIRED] An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
        • SystemIds (list) -- [REQUIRED] The system IDs to include in key requests.
          • (string) --
        • Url (string) -- [REQUIRED] The URL of the external key provider service.
    • ManifestWindowSeconds (integer) -- The time window (in seconds) contained in each manifest.
    • SegmentDurationSeconds (integer) -- The duration (in seconds) of each segment.
    • StreamSelection (dict) -- A StreamSelection configuration.
      • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
      • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
      • StreamOrder (string) -- A directive that determines the order of streams in the output.
  • StartoverWindowSeconds (integer) -- Maximum duration (in seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
  • TimeDelaySeconds (integer) -- Amount of delay (in seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
  • Whitelist (list) --

    A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.

    • (string) --
Return type

dict

Returns

Response Syntax

{
    'Arn': 'string',
    'ChannelId': 'string',
    'DashPackage': {
        'Encryption': {
            'KeyRotationIntervalSeconds': 123,
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'ManifestWindowSeconds': 123,
        'MinBufferTimeSeconds': 123,
        'MinUpdatePeriodSeconds': 123,
        'Profile': 'NONE'|'HBBTV_1_5',
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        },
        'SuggestedPresentationDelaySeconds': 123
    },
    'Description': 'string',
    'HlsPackage': {
        'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
        'Encryption': {
            'ConstantInitializationVector': 'string',
            'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
            'KeyRotationIntervalSeconds': 123,
            'RepeatExtXKey': True|False,
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'IncludeIframeOnlyStream': True|False,
        'PlaylistType': 'NONE'|'EVENT'|'VOD',
        'PlaylistWindowSeconds': 123,
        'ProgramDateTimeIntervalSeconds': 123,
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        },
        'UseAudioRenditionGroup': True|False
    },
    'Id': 'string',
    'ManifestName': 'string',
    'MssPackage': {
        'Encryption': {
            'SpekeKeyProvider': {
                'ResourceId': 'string',
                'RoleArn': 'string',
                'SystemIds': [
                    'string',
                ],
                'Url': 'string'
            }
        },
        'ManifestWindowSeconds': 123,
        'SegmentDurationSeconds': 123,
        'StreamSelection': {
            'MaxVideoBitsPerSecond': 123,
            'MinVideoBitsPerSecond': 123,
            'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
        }
    },
    'StartoverWindowSeconds': 123,
    'TimeDelaySeconds': 123,
    'Url': 'string',
    'Whitelist': [
        'string',
    ]
}

Response Structure

  • (dict) -- An updated OriginEndpoint record.
    • Arn (string) -- The Amazon Resource Name (ARN) assigned to the OriginEndpoint.
    • ChannelId (string) -- The ID of the Channel the OriginEndpoint is associated with.
    • DashPackage (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
      • Encryption (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
        • KeyRotationIntervalSeconds (integer) -- Time (in seconds) between each encryption key rotation.
        • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
          • ResourceId (string) -- The resource ID to include in key requests.
          • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
          • SystemIds (list) -- The system IDs to include in key requests.
            • (string) --
          • Url (string) -- The URL of the external key provider service.
      • ManifestWindowSeconds (integer) -- Time window (in seconds) contained in each manifest.
      • MinBufferTimeSeconds (integer) -- Minimum duration (in seconds) that a player will buffer media before starting the presentation.
      • MinUpdatePeriodSeconds (integer) -- Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).
      • Profile (string) -- The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
      • SegmentDurationSeconds (integer) -- Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
      • StreamSelection (dict) -- A StreamSelection configuration.
        • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
        • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
        • StreamOrder (string) -- A directive that determines the order of streams in the output.
      • SuggestedPresentationDelaySeconds (integer) -- Duration (in seconds) to delay live content before presentation.
    • Description (string) -- A short text description of the OriginEndpoint.
    • HlsPackage (dict) -- An HTTP Live Streaming (HLS) packaging configuration.
      • AdMarkers (string) -- This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.
      • Encryption (dict) -- An HTTP Live Streaming (HLS) encryption configuration.
        • ConstantInitializationVector (string) -- A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
        • EncryptionMethod (string) -- The encryption method to use.
        • KeyRotationIntervalSeconds (integer) -- Interval (in seconds) between each encryption key rotation.
        • RepeatExtXKey (boolean) -- When enabled, the EXT-X-KEY tag will be repeated in output manifests.
        • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
          • ResourceId (string) -- The resource ID to include in key requests.
          • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
          • SystemIds (list) -- The system IDs to include in key requests.
            • (string) --
          • Url (string) -- The URL of the external key provider service.
      • IncludeIframeOnlyStream (boolean) -- When enabled, an I-Frame only stream will be included in the output.
      • PlaylistType (string) -- The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
      • PlaylistWindowSeconds (integer) -- Time window (in seconds) contained in each parent manifest.
      • ProgramDateTimeIntervalSeconds (integer) -- The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
      • SegmentDurationSeconds (integer) -- Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.
      • StreamSelection (dict) -- A StreamSelection configuration.
        • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
        • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
        • StreamOrder (string) -- A directive that determines the order of streams in the output.
      • UseAudioRenditionGroup (boolean) -- When enabled, audio streams will be placed in rendition groups in the output.
    • Id (string) -- The ID of the OriginEndpoint.
    • ManifestName (string) -- A short string appended to the end of the OriginEndpoint URL.
    • MssPackage (dict) -- A Microsoft Smooth Streaming (MSS) packaging configuration.
      • Encryption (dict) -- A Microsoft Smooth Streaming (MSS) encryption configuration.
        • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
          • ResourceId (string) -- The resource ID to include in key requests.
          • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
          • SystemIds (list) -- The system IDs to include in key requests.
            • (string) --
          • Url (string) -- The URL of the external key provider service.
      • ManifestWindowSeconds (integer) -- The time window (in seconds) contained in each manifest.
      • SegmentDurationSeconds (integer) -- The duration (in seconds) of each segment.
      • StreamSelection (dict) -- A StreamSelection configuration.
        • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
        • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
        • StreamOrder (string) -- A directive that determines the order of streams in the output.
    • StartoverWindowSeconds (integer) -- Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
    • TimeDelaySeconds (integer) -- Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
    • Url (string) -- The URL of the packaged OriginEndpoint for consumption.
    • Whitelist (list) -- A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
      • (string) --

Paginators

The available paginators are:

class MediaPackage.Paginator.ListChannels
paginator = client.get_paginator('list_channels')
paginate(**kwargs)

Creates an iterator that will paginate through responses from MediaPackage.Client.list_channels().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
PaginationConfig (dict) --

A dictionary that provides parameters to control pagination.

  • MaxItems (integer) --

    The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

  • PageSize (integer) --

    The size of each page.

  • StartingToken (string) --

    A token to specify where to start paginating. This is the NextToken from a previous response.

Return type
dict
Returns
Response Syntax
{
    'Channels': [
        {
            'Arn': 'string',
            'Description': 'string',
            'HlsIngest': {
                'IngestEndpoints': [
                    {
                        'Password': 'string',
                        'Url': 'string',
                        'Username': 'string'
                    },
                ]
            },
            'Id': 'string'
        },
    ],

}

Response Structure

  • (dict) -- A collection of Channel records.
    • Channels (list) -- A list of Channel records.
      • (dict) -- A Channel resource configuration.
        • Arn (string) -- The Amazon Resource Name (ARN) assigned to the Channel.
        • Description (string) -- A short text description of the Channel.
        • HlsIngest (dict) -- An HTTP Live Streaming (HLS) ingest resource configuration.
          • IngestEndpoints (list) -- A list of endpoints to which the source stream should be sent.
            • (dict) -- An endpoint for ingesting source content for a Channel.
              • Password (string) -- The system generated password for ingest authentication.
              • Url (string) -- The ingest URL to which the source stream should be sent.
              • Username (string) -- The system generated username for ingest authentication.
        • Id (string) -- The ID of the Channel.
class MediaPackage.Paginator.ListOriginEndpoints
paginator = client.get_paginator('list_origin_endpoints')
paginate(**kwargs)

Creates an iterator that will paginate through responses from MediaPackage.Client.list_origin_endpoints().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    ChannelId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • ChannelId (string) -- When specified, the request will return only OriginEndpoints associated with the given Channel ID.
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'OriginEndpoints': [
        {
            'Arn': 'string',
            'ChannelId': 'string',
            'DashPackage': {
                'Encryption': {
                    'KeyRotationIntervalSeconds': 123,
                    'SpekeKeyProvider': {
                        'ResourceId': 'string',
                        'RoleArn': 'string',
                        'SystemIds': [
                            'string',
                        ],
                        'Url': 'string'
                    }
                },
                'ManifestWindowSeconds': 123,
                'MinBufferTimeSeconds': 123,
                'MinUpdatePeriodSeconds': 123,
                'Profile': 'NONE'|'HBBTV_1_5',
                'SegmentDurationSeconds': 123,
                'StreamSelection': {
                    'MaxVideoBitsPerSecond': 123,
                    'MinVideoBitsPerSecond': 123,
                    'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
                },
                'SuggestedPresentationDelaySeconds': 123
            },
            'Description': 'string',
            'HlsPackage': {
                'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
                'Encryption': {
                    'ConstantInitializationVector': 'string',
                    'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
                    'KeyRotationIntervalSeconds': 123,
                    'RepeatExtXKey': True|False,
                    'SpekeKeyProvider': {
                        'ResourceId': 'string',
                        'RoleArn': 'string',
                        'SystemIds': [
                            'string',
                        ],
                        'Url': 'string'
                    }
                },
                'IncludeIframeOnlyStream': True|False,
                'PlaylistType': 'NONE'|'EVENT'|'VOD',
                'PlaylistWindowSeconds': 123,
                'ProgramDateTimeIntervalSeconds': 123,
                'SegmentDurationSeconds': 123,
                'StreamSelection': {
                    'MaxVideoBitsPerSecond': 123,
                    'MinVideoBitsPerSecond': 123,
                    'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
                },
                'UseAudioRenditionGroup': True|False
            },
            'Id': 'string',
            'ManifestName': 'string',
            'MssPackage': {
                'Encryption': {
                    'SpekeKeyProvider': {
                        'ResourceId': 'string',
                        'RoleArn': 'string',
                        'SystemIds': [
                            'string',
                        ],
                        'Url': 'string'
                    }
                },
                'ManifestWindowSeconds': 123,
                'SegmentDurationSeconds': 123,
                'StreamSelection': {
                    'MaxVideoBitsPerSecond': 123,
                    'MinVideoBitsPerSecond': 123,
                    'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
                }
            },
            'StartoverWindowSeconds': 123,
            'TimeDelaySeconds': 123,
            'Url': 'string',
            'Whitelist': [
                'string',
            ]
        },
    ]
}

Response Structure

  • (dict) -- A collection of OriginEndpoint records.
    • OriginEndpoints (list) -- A list of OriginEndpoint records.
      • (dict) -- An OriginEndpoint resource configuration.
        • Arn (string) -- The Amazon Resource Name (ARN) assigned to the OriginEndpoint.
        • ChannelId (string) -- The ID of the Channel the OriginEndpoint is associated with.
        • DashPackage (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
          • Encryption (dict) -- A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.
            • KeyRotationIntervalSeconds (integer) -- Time (in seconds) between each encryption key rotation.
            • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
              • ResourceId (string) -- The resource ID to include in key requests.
              • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
              • SystemIds (list) -- The system IDs to include in key requests.
                • (string) --
              • Url (string) -- The URL of the external key provider service.
          • ManifestWindowSeconds (integer) -- Time window (in seconds) contained in each manifest.
          • MinBufferTimeSeconds (integer) -- Minimum duration (in seconds) that a player will buffer media before starting the presentation.
          • MinUpdatePeriodSeconds (integer) -- Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).
          • Profile (string) -- The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.
          • SegmentDurationSeconds (integer) -- Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.
          • StreamSelection (dict) -- A StreamSelection configuration.
            • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
            • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
            • StreamOrder (string) -- A directive that determines the order of streams in the output.
          • SuggestedPresentationDelaySeconds (integer) -- Duration (in seconds) to delay live content before presentation.
        • Description (string) -- A short text description of the OriginEndpoint.
        • HlsPackage (dict) -- An HTTP Live Streaming (HLS) packaging configuration.
          • AdMarkers (string) -- This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.
          • Encryption (dict) -- An HTTP Live Streaming (HLS) encryption configuration.
            • ConstantInitializationVector (string) -- A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.
            • EncryptionMethod (string) -- The encryption method to use.
            • KeyRotationIntervalSeconds (integer) -- Interval (in seconds) between each encryption key rotation.
            • RepeatExtXKey (boolean) -- When enabled, the EXT-X-KEY tag will be repeated in output manifests.
            • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
              • ResourceId (string) -- The resource ID to include in key requests.
              • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
              • SystemIds (list) -- The system IDs to include in key requests.
                • (string) --
              • Url (string) -- The URL of the external key provider service.
          • IncludeIframeOnlyStream (boolean) -- When enabled, an I-Frame only stream will be included in the output.
          • PlaylistType (string) -- The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
          • PlaylistWindowSeconds (integer) -- Time window (in seconds) contained in each parent manifest.
          • ProgramDateTimeIntervalSeconds (integer) -- The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
          • SegmentDurationSeconds (integer) -- Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.
          • StreamSelection (dict) -- A StreamSelection configuration.
            • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
            • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
            • StreamOrder (string) -- A directive that determines the order of streams in the output.
          • UseAudioRenditionGroup (boolean) -- When enabled, audio streams will be placed in rendition groups in the output.
        • Id (string) -- The ID of the OriginEndpoint.
        • ManifestName (string) -- A short string appended to the end of the OriginEndpoint URL.
        • MssPackage (dict) -- A Microsoft Smooth Streaming (MSS) packaging configuration.
          • Encryption (dict) -- A Microsoft Smooth Streaming (MSS) encryption configuration.
            • SpekeKeyProvider (dict) -- A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.
              • ResourceId (string) -- The resource ID to include in key requests.
              • RoleArn (string) -- An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.
              • SystemIds (list) -- The system IDs to include in key requests.
                • (string) --
              • Url (string) -- The URL of the external key provider service.
          • ManifestWindowSeconds (integer) -- The time window (in seconds) contained in each manifest.
          • SegmentDurationSeconds (integer) -- The duration (in seconds) of each segment.
          • StreamSelection (dict) -- A StreamSelection configuration.
            • MaxVideoBitsPerSecond (integer) -- The maximum video bitrate (bps) to include in output.
            • MinVideoBitsPerSecond (integer) -- The minimum video bitrate (bps) to include in output.
            • StreamOrder (string) -- A directive that determines the order of streams in the output.
        • StartoverWindowSeconds (integer) -- Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
        • TimeDelaySeconds (integer) -- Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
        • Url (string) -- The URL of the packaged OriginEndpoint for consumption.
        • Whitelist (list) -- A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
          • (string) --