Table of Contents
MediaPackageVod.
Client
¶A low-level client representing AWS Elemental MediaPackage VOD AWS Elemental MediaPackage VOD:
import boto3
client = boto3.client('mediapackage-vod')
These are the available methods:
can_paginate()
close()
configure_logs()
create_asset()
create_packaging_configuration()
create_packaging_group()
delete_asset()
delete_packaging_configuration()
delete_packaging_group()
describe_asset()
describe_packaging_configuration()
describe_packaging_group()
get_paginator()
get_waiter()
list_assets()
list_packaging_configurations()
list_packaging_groups()
list_tags_for_resource()
tag_resource()
untag_resource()
update_packaging_group()
can_paginate
(operation_name)¶Check if an operation can be paginated.
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")
.True
if the operation can be paginated,
False
otherwise.close
()¶Closes underlying endpoint connections.
configure_logs
(**kwargs)¶Changes the packaging group's properities to configure log subscription
See also: AWS API Documentation
Request Syntax
response = client.configure_logs(
EgressAccessLogs={
'LogGroupName': 'string'
},
Id='string'
)
Configure egress access logging.
dict
Response Syntax
{
'Arn': 'string',
'Authorization': {
'CdnIdentifierSecret': 'string',
'SecretsRoleArn': 'string'
},
'DomainName': 'string',
'EgressAccessLogs': {
'LogGroupName': 'string'
},
'Id': 'string',
'Tags': {
'string': 'string'
}
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
create_asset
(**kwargs)¶Creates a new MediaPackage VOD Asset resource.
See also: AWS API Documentation
Request Syntax
response = client.create_asset(
Id='string',
PackagingGroupId='string',
ResourceId='string',
SourceArn='string',
SourceRoleArn='string',
Tags={
'string': 'string'
}
)
A collection of tags associated with a resource
dict
Response Syntax
{
'Arn': 'string',
'CreatedAt': 'string',
'EgressEndpoints': [
{
'PackagingConfigurationId': 'string',
'Status': 'string',
'Url': 'string'
},
],
'Id': 'string',
'PackagingGroupId': 'string',
'ResourceId': 'string',
'SourceArn': 'string',
'SourceRoleArn': 'string',
'Tags': {
'string': 'string'
}
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
create_packaging_configuration
(**kwargs)¶Creates a new MediaPackage VOD PackagingConfiguration resource.
See also: AWS API Documentation
Request Syntax
response = client.create_packaging_configuration(
CmafPackage={
'Encryption': {
'ConstantInitializationVector': 'string',
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'ProgramDateTimeIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'IncludeEncoderConfigurationInSegments': True|False,
'SegmentDurationSeconds': 123
},
DashPackage={
'DashManifests': [
{
'ManifestLayout': 'FULL'|'COMPACT',
'ManifestName': 'string',
'MinBufferTimeSeconds': 123,
'Profile': 'NONE'|'HBBTV_1_5',
'ScteMarkersSource': 'SEGMENTS'|'MANIFEST',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'Encryption': {
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeEncoderConfigurationInSegments': True|False,
'PeriodTriggers': [
'ADS',
],
'SegmentDurationSeconds': 123,
'SegmentTemplateFormat': 'NUMBER_WITH_TIMELINE'|'TIME_WITH_TIMELINE'|'NUMBER_WITH_DURATION'
},
HlsPackage={
'Encryption': {
'ConstantInitializationVector': 'string',
'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'ProgramDateTimeIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'IncludeDvbSubtitles': True|False,
'SegmentDurationSeconds': 123,
'UseAudioRenditionGroup': True|False
},
Id='string',
MssPackage={
'Encryption': {
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'MssManifests': [
{
'ManifestName': 'string',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'SegmentDurationSeconds': 123
},
PackagingGroupId='string',
Tags={
'string': 'string'
}
)
A CMAF packaging configuration.
A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
An HTTP Live Streaming (HLS) packaging configuration.
A Microsoft Smooth Streaming (MSS) PackagingConfiguration.
A collection of tags associated with a resource
dict
Response Syntax
{
'Arn': 'string',
'CmafPackage': {
'Encryption': {
'ConstantInitializationVector': 'string',
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'ProgramDateTimeIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'IncludeEncoderConfigurationInSegments': True|False,
'SegmentDurationSeconds': 123
},
'DashPackage': {
'DashManifests': [
{
'ManifestLayout': 'FULL'|'COMPACT',
'ManifestName': 'string',
'MinBufferTimeSeconds': 123,
'Profile': 'NONE'|'HBBTV_1_5',
'ScteMarkersSource': 'SEGMENTS'|'MANIFEST',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'Encryption': {
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeEncoderConfigurationInSegments': True|False,
'PeriodTriggers': [
'ADS',
],
'SegmentDurationSeconds': 123,
'SegmentTemplateFormat': 'NUMBER_WITH_TIMELINE'|'TIME_WITH_TIMELINE'|'NUMBER_WITH_DURATION'
},
'HlsPackage': {
'Encryption': {
'ConstantInitializationVector': 'string',
'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'ProgramDateTimeIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'IncludeDvbSubtitles': True|False,
'SegmentDurationSeconds': 123,
'UseAudioRenditionGroup': True|False
},
'Id': 'string',
'MssPackage': {
'Encryption': {
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'MssManifests': [
{
'ManifestName': 'string',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'SegmentDurationSeconds': 123
},
'PackagingGroupId': 'string',
'Tags': {
'string': 'string'
}
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
create_packaging_group
(**kwargs)¶Creates a new MediaPackage VOD PackagingGroup resource.
See also: AWS API Documentation
Request Syntax
response = client.create_packaging_group(
Authorization={
'CdnIdentifierSecret': 'string',
'SecretsRoleArn': 'string'
},
EgressAccessLogs={
'LogGroupName': 'string'
},
Id='string',
Tags={
'string': 'string'
}
)
CDN Authorization credentials
Configure egress access logging.
A collection of tags associated with a resource
dict
Response Syntax
{
'Arn': 'string',
'Authorization': {
'CdnIdentifierSecret': 'string',
'SecretsRoleArn': 'string'
},
'DomainName': 'string',
'EgressAccessLogs': {
'LogGroupName': 'string'
},
'Id': 'string',
'Tags': {
'string': 'string'
}
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
delete_asset
(**kwargs)¶Deletes an existing MediaPackage VOD Asset resource.
See also: AWS API Documentation
Request Syntax
response = client.delete_asset(
Id='string'
)
{}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
delete_packaging_configuration
(**kwargs)¶Deletes a MediaPackage VOD PackagingConfiguration resource.
See also: AWS API Documentation
Request Syntax
response = client.delete_packaging_configuration(
Id='string'
)
{}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
delete_packaging_group
(**kwargs)¶Deletes a MediaPackage VOD PackagingGroup resource.
See also: AWS API Documentation
Request Syntax
response = client.delete_packaging_group(
Id='string'
)
{}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
describe_asset
(**kwargs)¶Returns a description of a MediaPackage VOD Asset resource.
See also: AWS API Documentation
Request Syntax
response = client.describe_asset(
Id='string'
)
{
'Arn': 'string',
'CreatedAt': 'string',
'EgressEndpoints': [
{
'PackagingConfigurationId': 'string',
'Status': 'string',
'Url': 'string'
},
],
'Id': 'string',
'PackagingGroupId': 'string',
'ResourceId': 'string',
'SourceArn': 'string',
'SourceRoleArn': 'string',
'Tags': {
'string': 'string'
}
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
describe_packaging_configuration
(**kwargs)¶Returns a description of a MediaPackage VOD PackagingConfiguration resource.
See also: AWS API Documentation
Request Syntax
response = client.describe_packaging_configuration(
Id='string'
)
{
'Arn': 'string',
'CmafPackage': {
'Encryption': {
'ConstantInitializationVector': 'string',
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'ProgramDateTimeIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'IncludeEncoderConfigurationInSegments': True|False,
'SegmentDurationSeconds': 123
},
'DashPackage': {
'DashManifests': [
{
'ManifestLayout': 'FULL'|'COMPACT',
'ManifestName': 'string',
'MinBufferTimeSeconds': 123,
'Profile': 'NONE'|'HBBTV_1_5',
'ScteMarkersSource': 'SEGMENTS'|'MANIFEST',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'Encryption': {
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeEncoderConfigurationInSegments': True|False,
'PeriodTriggers': [
'ADS',
],
'SegmentDurationSeconds': 123,
'SegmentTemplateFormat': 'NUMBER_WITH_TIMELINE'|'TIME_WITH_TIMELINE'|'NUMBER_WITH_DURATION'
},
'HlsPackage': {
'Encryption': {
'ConstantInitializationVector': 'string',
'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'ProgramDateTimeIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'IncludeDvbSubtitles': True|False,
'SegmentDurationSeconds': 123,
'UseAudioRenditionGroup': True|False
},
'Id': 'string',
'MssPackage': {
'Encryption': {
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'MssManifests': [
{
'ManifestName': 'string',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'SegmentDurationSeconds': 123
},
'PackagingGroupId': 'string',
'Tags': {
'string': 'string'
}
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
describe_packaging_group
(**kwargs)¶Returns a description of a MediaPackage VOD PackagingGroup resource.
See also: AWS API Documentation
Request Syntax
response = client.describe_packaging_group(
Id='string'
)
{
'Arn': 'string',
'Authorization': {
'CdnIdentifierSecret': 'string',
'SecretsRoleArn': 'string'
},
'DomainName': 'string',
'EgressAccessLogs': {
'LogGroupName': 'string'
},
'Id': 'string',
'Tags': {
'string': 'string'
}
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
get_paginator
(operation_name)¶Create a paginator for an operation.
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")
.client.can_paginate
method to
check if an operation is pageable.get_waiter
(waiter_name)¶Returns an object that can wait for some condition.
list_assets
(**kwargs)¶Returns a collection of MediaPackage VOD Asset resources.
See also: AWS API Documentation
Request Syntax
response = client.list_assets(
MaxResults=123,
NextToken='string',
PackagingGroupId='string'
)
dict
Response Syntax
{
'Assets': [
{
'Arn': 'string',
'CreatedAt': 'string',
'Id': 'string',
'PackagingGroupId': 'string',
'ResourceId': 'string',
'SourceArn': 'string',
'SourceRoleArn': 'string',
'Tags': {
'string': 'string'
}
},
],
'NextToken': 'string'
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
list_packaging_configurations
(**kwargs)¶Returns a collection of MediaPackage VOD PackagingConfiguration resources.
See also: AWS API Documentation
Request Syntax
response = client.list_packaging_configurations(
MaxResults=123,
NextToken='string',
PackagingGroupId='string'
)
dict
Response Syntax
{
'NextToken': 'string',
'PackagingConfigurations': [
{
'Arn': 'string',
'CmafPackage': {
'Encryption': {
'ConstantInitializationVector': 'string',
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'ProgramDateTimeIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'IncludeEncoderConfigurationInSegments': True|False,
'SegmentDurationSeconds': 123
},
'DashPackage': {
'DashManifests': [
{
'ManifestLayout': 'FULL'|'COMPACT',
'ManifestName': 'string',
'MinBufferTimeSeconds': 123,
'Profile': 'NONE'|'HBBTV_1_5',
'ScteMarkersSource': 'SEGMENTS'|'MANIFEST',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'Encryption': {
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeEncoderConfigurationInSegments': True|False,
'PeriodTriggers': [
'ADS',
],
'SegmentDurationSeconds': 123,
'SegmentTemplateFormat': 'NUMBER_WITH_TIMELINE'|'TIME_WITH_TIMELINE'|'NUMBER_WITH_DURATION'
},
'HlsPackage': {
'Encryption': {
'ConstantInitializationVector': 'string',
'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'ProgramDateTimeIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'IncludeDvbSubtitles': True|False,
'SegmentDurationSeconds': 123,
'UseAudioRenditionGroup': True|False
},
'Id': 'string',
'MssPackage': {
'Encryption': {
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'MssManifests': [
{
'ManifestName': 'string',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'SegmentDurationSeconds': 123
},
'PackagingGroupId': 'string',
'Tags': {
'string': 'string'
}
},
]
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
list_packaging_groups
(**kwargs)¶Returns a collection of MediaPackage VOD PackagingGroup resources.
See also: AWS API Documentation
Request Syntax
response = client.list_packaging_groups(
MaxResults=123,
NextToken='string'
)
dict
Response Syntax
{
'NextToken': 'string',
'PackagingGroups': [
{
'Arn': 'string',
'Authorization': {
'CdnIdentifierSecret': 'string',
'SecretsRoleArn': 'string'
},
'DomainName': 'string',
'EgressAccessLogs': {
'LogGroupName': 'string'
},
'Id': 'string',
'Tags': {
'string': 'string'
}
},
]
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
Returns a list of the tags assigned to the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceArn='string'
)
{
'Tags': {
'string': 'string'
}
}
Response Structure
tag_resource
(**kwargs)¶Adds tags to the specified resource. You can specify one or more tags to add.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceArn='string',
Tags={
'string': 'string'
}
)
[REQUIRED] A collection of tags associated with a resource
None
untag_resource
(**kwargs)¶Removes tags from the specified resource. You can specify one or more tags to remove.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
ResourceArn='string',
TagKeys=[
'string',
]
)
[REQUIRED] A comma-separated list of the tag keys to remove from the resource.
None
update_packaging_group
(**kwargs)¶Updates a specific packaging group. You can't change the id attribute or any other system-generated attributes.
See also: AWS API Documentation
Request Syntax
response = client.update_packaging_group(
Authorization={
'CdnIdentifierSecret': 'string',
'SecretsRoleArn': 'string'
},
Id='string'
)
CDN Authorization credentials
dict
Response Syntax
{
'Arn': 'string',
'Authorization': {
'CdnIdentifierSecret': 'string',
'SecretsRoleArn': 'string'
},
'DomainName': 'string',
'EgressAccessLogs': {
'LogGroupName': 'string'
},
'Id': 'string',
'Tags': {
'string': 'string'
}
}
Response Structure
Exceptions
MediaPackageVod.Client.exceptions.UnprocessableEntityException
MediaPackageVod.Client.exceptions.InternalServerErrorException
MediaPackageVod.Client.exceptions.ForbiddenException
MediaPackageVod.Client.exceptions.NotFoundException
MediaPackageVod.Client.exceptions.ServiceUnavailableException
MediaPackageVod.Client.exceptions.TooManyRequestsException
The available paginators are:
MediaPackageVod.Paginator.ListAssets
MediaPackageVod.Paginator.ListPackagingConfigurations
MediaPackageVod.Paginator.ListPackagingGroups
MediaPackageVod.Paginator.
ListAssets
¶paginator = client.get_paginator('list_assets')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MediaPackageVod.Client.list_assets()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PackagingGroupId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'Assets': [
{
'Arn': 'string',
'CreatedAt': 'string',
'Id': 'string',
'PackagingGroupId': 'string',
'ResourceId': 'string',
'SourceArn': 'string',
'SourceRoleArn': 'string',
'Tags': {
'string': 'string'
}
},
],
}
Response Structure
MediaPackageVod.Paginator.
ListPackagingConfigurations
¶paginator = client.get_paginator('list_packaging_configurations')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MediaPackageVod.Client.list_packaging_configurations()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PackagingGroupId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'PackagingConfigurations': [
{
'Arn': 'string',
'CmafPackage': {
'Encryption': {
'ConstantInitializationVector': 'string',
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'ProgramDateTimeIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'IncludeEncoderConfigurationInSegments': True|False,
'SegmentDurationSeconds': 123
},
'DashPackage': {
'DashManifests': [
{
'ManifestLayout': 'FULL'|'COMPACT',
'ManifestName': 'string',
'MinBufferTimeSeconds': 123,
'Profile': 'NONE'|'HBBTV_1_5',
'ScteMarkersSource': 'SEGMENTS'|'MANIFEST',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'Encryption': {
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeEncoderConfigurationInSegments': True|False,
'PeriodTriggers': [
'ADS',
],
'SegmentDurationSeconds': 123,
'SegmentTemplateFormat': 'NUMBER_WITH_TIMELINE'|'TIME_WITH_TIMELINE'|'NUMBER_WITH_DURATION'
},
'HlsPackage': {
'Encryption': {
'ConstantInitializationVector': 'string',
'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'ProgramDateTimeIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'IncludeDvbSubtitles': True|False,
'SegmentDurationSeconds': 123,
'UseAudioRenditionGroup': True|False
},
'Id': 'string',
'MssPackage': {
'Encryption': {
'SpekeKeyProvider': {
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'MssManifests': [
{
'ManifestName': 'string',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
],
'SegmentDurationSeconds': 123
},
'PackagingGroupId': 'string',
'Tags': {
'string': 'string'
}
},
]
}
Response Structure
MediaPackageVod.Paginator.
ListPackagingGroups
¶paginator = client.get_paginator('list_packaging_groups')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MediaPackageVod.Client.list_packaging_groups()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
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.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
{
'PackagingGroups': [
{
'Arn': 'string',
'Authorization': {
'CdnIdentifierSecret': 'string',
'SecretsRoleArn': 'string'
},
'DomainName': 'string',
'EgressAccessLogs': {
'LogGroupName': 'string'
},
'Id': 'string',
'Tags': {
'string': 'string'
}
},
]
}
Response Structure