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': {
'EncryptionContractConfiguration': {
'PresetSpeke20Audio': 'PRESET-AUDIO-1'|'PRESET-AUDIO-2'|'PRESET-AUDIO-3'|'SHARED'|'UNENCRYPTED',
'PresetSpeke20Video': 'PRESET-VIDEO-1'|'PRESET-VIDEO-2'|'PRESET-VIDEO-3'|'PRESET-VIDEO-4'|'PRESET-VIDEO-5'|'PRESET-VIDEO-6'|'PRESET-VIDEO-7'|'PRESET-VIDEO-8'|'SHARED'|'UNENCRYPTED'
},
'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': {
'EncryptionContractConfiguration': {
'PresetSpeke20Audio': 'PRESET-AUDIO-1'|'PRESET-AUDIO-2'|'PRESET-AUDIO-3'|'SHARED'|'UNENCRYPTED',
'PresetSpeke20Video': 'PRESET-VIDEO-1'|'PRESET-VIDEO-2'|'PRESET-VIDEO-3'|'PRESET-VIDEO-4'|'PRESET-VIDEO-5'|'PRESET-VIDEO-6'|'PRESET-VIDEO-7'|'PRESET-VIDEO-8'|'SHARED'|'UNENCRYPTED'
},
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeEncoderConfigurationInSegments': True|False,
'IncludeIframeOnlyStream': 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': {
'EncryptionContractConfiguration': {
'PresetSpeke20Audio': 'PRESET-AUDIO-1'|'PRESET-AUDIO-2'|'PRESET-AUDIO-3'|'SHARED'|'UNENCRYPTED',
'PresetSpeke20Video': 'PRESET-VIDEO-1'|'PRESET-VIDEO-2'|'PRESET-VIDEO-3'|'PRESET-VIDEO-4'|'PRESET-VIDEO-5'|'PRESET-VIDEO-6'|'PRESET-VIDEO-7'|'PRESET-VIDEO-8'|'SHARED'|'UNENCRYPTED'
},
'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': {
'EncryptionContractConfiguration': {
'PresetSpeke20Audio': 'PRESET-AUDIO-1'|'PRESET-AUDIO-2'|'PRESET-AUDIO-3'|'SHARED'|'UNENCRYPTED',
'PresetSpeke20Video': 'PRESET-VIDEO-1'|'PRESET-VIDEO-2'|'PRESET-VIDEO-3'|'PRESET-VIDEO-4'|'PRESET-VIDEO-5'|'PRESET-VIDEO-6'|'PRESET-VIDEO-7'|'PRESET-VIDEO-8'|'SHARED'|'UNENCRYPTED'
},
'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': {
'EncryptionContractConfiguration': {
'PresetSpeke20Audio': 'PRESET-AUDIO-1'|'PRESET-AUDIO-2'|'PRESET-AUDIO-3'|'SHARED'|'UNENCRYPTED',
'PresetSpeke20Video': 'PRESET-VIDEO-1'|'PRESET-VIDEO-2'|'PRESET-VIDEO-3'|'PRESET-VIDEO-4'|'PRESET-VIDEO-5'|'PRESET-VIDEO-6'|'PRESET-VIDEO-7'|'PRESET-VIDEO-8'|'SHARED'|'UNENCRYPTED'
},
'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': {
'EncryptionContractConfiguration': {
'PresetSpeke20Audio': 'PRESET-AUDIO-1'|'PRESET-AUDIO-2'|'PRESET-AUDIO-3'|'SHARED'|'UNENCRYPTED',
'PresetSpeke20Video': 'PRESET-VIDEO-1'|'PRESET-VIDEO-2'|'PRESET-VIDEO-3'|'PRESET-VIDEO-4'|'PRESET-VIDEO-5'|'PRESET-VIDEO-6'|'PRESET-VIDEO-7'|'PRESET-VIDEO-8'|'SHARED'|'UNENCRYPTED'
},
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeEncoderConfigurationInSegments': True|False,
'IncludeIframeOnlyStream': 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': {
'EncryptionContractConfiguration': {
'PresetSpeke20Audio': 'PRESET-AUDIO-1'|'PRESET-AUDIO-2'|'PRESET-AUDIO-3'|'SHARED'|'UNENCRYPTED',
'PresetSpeke20Video': 'PRESET-VIDEO-1'|'PRESET-VIDEO-2'|'PRESET-VIDEO-3'|'PRESET-VIDEO-4'|'PRESET-VIDEO-5'|'PRESET-VIDEO-6'|'PRESET-VIDEO-7'|'PRESET-VIDEO-8'|'SHARED'|'UNENCRYPTED'
},
'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': {
'EncryptionContractConfiguration': {
'PresetSpeke20Audio': 'PRESET-AUDIO-1'|'PRESET-AUDIO-2'|'PRESET-AUDIO-3'|'SHARED'|'UNENCRYPTED',
'PresetSpeke20Video': 'PRESET-VIDEO-1'|'PRESET-VIDEO-2'|'PRESET-VIDEO-3'|'PRESET-VIDEO-4'|'PRESET-VIDEO-5'|'PRESET-VIDEO-6'|'PRESET-VIDEO-7'|'PRESET-VIDEO-8'|'SHARED'|'UNENCRYPTED'
},
'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