update_origin_endpoint
(**kwargs)¶Updates an existing OriginEndpoint.
See also: AWS API Documentation
Request Syntax
response = client.update_origin_endpoint(
Authorization={
'CdnIdentifierSecret': 'string',
'SecretsRoleArn': 'string'
},
CmafPackage={
'Encryption': {
'ConstantInitializationVector': 'string',
'EncryptionMethod': 'SAMPLE_AES'|'AES_CTR',
'KeyRotationIntervalSeconds': 123,
'SpekeKeyProvider': {
'CertificateArn': 'string',
'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'
},
'ResourceId': 'string',
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH'|'DATERANGE',
'AdTriggers': [
'SPLICE_INSERT'|'BREAK'|'PROVIDER_ADVERTISEMENT'|'DISTRIBUTOR_ADVERTISEMENT'|'PROVIDER_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_PLACEMENT_OPPORTUNITY'|'PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY',
],
'AdsOnDeliveryRestrictions': 'NONE'|'RESTRICTED'|'UNRESTRICTED'|'BOTH',
'Id': 'string',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'PlaylistType': 'NONE'|'EVENT'|'VOD',
'PlaylistWindowSeconds': 123,
'ProgramDateTimeIntervalSeconds': 123
},
],
'SegmentDurationSeconds': 123,
'SegmentPrefix': 'string',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
DashPackage={
'AdTriggers': [
'SPLICE_INSERT'|'BREAK'|'PROVIDER_ADVERTISEMENT'|'DISTRIBUTOR_ADVERTISEMENT'|'PROVIDER_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_PLACEMENT_OPPORTUNITY'|'PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY',
],
'AdsOnDeliveryRestrictions': 'NONE'|'RESTRICTED'|'UNRESTRICTED'|'BOTH',
'Encryption': {
'KeyRotationIntervalSeconds': 123,
'SpekeKeyProvider': {
'CertificateArn': 'string',
'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'
},
'ResourceId': 'string',
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeIframeOnlyStream': True|False,
'ManifestLayout': 'FULL'|'COMPACT',
'ManifestWindowSeconds': 123,
'MinBufferTimeSeconds': 123,
'MinUpdatePeriodSeconds': 123,
'PeriodTriggers': [
'ADS',
],
'Profile': 'NONE'|'HBBTV_1_5'|'HYBRIDCAST'|'DVB_DASH_2014',
'SegmentDurationSeconds': 123,
'SegmentTemplateFormat': 'NUMBER_WITH_TIMELINE'|'TIME_WITH_TIMELINE'|'NUMBER_WITH_DURATION',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
},
'SuggestedPresentationDelaySeconds': 123,
'UtcTiming': 'NONE'|'HTTP-HEAD'|'HTTP-ISO'|'HTTP-XSDATE',
'UtcTimingUri': 'string'
},
Description='string',
HlsPackage={
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH'|'DATERANGE',
'AdTriggers': [
'SPLICE_INSERT'|'BREAK'|'PROVIDER_ADVERTISEMENT'|'DISTRIBUTOR_ADVERTISEMENT'|'PROVIDER_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_PLACEMENT_OPPORTUNITY'|'PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY',
],
'AdsOnDeliveryRestrictions': 'NONE'|'RESTRICTED'|'UNRESTRICTED'|'BOTH',
'Encryption': {
'ConstantInitializationVector': 'string',
'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
'KeyRotationIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'SpekeKeyProvider': {
'CertificateArn': 'string',
'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'
},
'ResourceId': 'string',
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeDvbSubtitles': True|False,
'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': {
'CertificateArn': 'string',
'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'
},
'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'
}
},
Origination='ALLOW'|'DENY',
StartoverWindowSeconds=123,
TimeDelaySeconds=123,
Whitelist=[
'string',
]
)
CDN Authorization credentials
A Common Media Application Format (CMAF) packaging configuration.
A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
An HTTP Live Streaming (HLS) packaging configuration.
A Microsoft Smooth Streaming (MSS) packaging configuration.
A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
dict
Response Syntax
{
'Arn': 'string',
'Authorization': {
'CdnIdentifierSecret': 'string',
'SecretsRoleArn': 'string'
},
'ChannelId': 'string',
'CmafPackage': {
'Encryption': {
'ConstantInitializationVector': 'string',
'EncryptionMethod': 'SAMPLE_AES'|'AES_CTR',
'KeyRotationIntervalSeconds': 123,
'SpekeKeyProvider': {
'CertificateArn': 'string',
'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'
},
'ResourceId': 'string',
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'HlsManifests': [
{
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH'|'DATERANGE',
'Id': 'string',
'IncludeIframeOnlyStream': True|False,
'ManifestName': 'string',
'PlaylistType': 'NONE'|'EVENT'|'VOD',
'PlaylistWindowSeconds': 123,
'ProgramDateTimeIntervalSeconds': 123,
'Url': 'string',
'AdTriggers': [
'SPLICE_INSERT'|'BREAK'|'PROVIDER_ADVERTISEMENT'|'DISTRIBUTOR_ADVERTISEMENT'|'PROVIDER_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_PLACEMENT_OPPORTUNITY'|'PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY',
],
'AdsOnDeliveryRestrictions': 'NONE'|'RESTRICTED'|'UNRESTRICTED'|'BOTH'
},
],
'SegmentDurationSeconds': 123,
'SegmentPrefix': 'string',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
}
},
'DashPackage': {
'AdTriggers': [
'SPLICE_INSERT'|'BREAK'|'PROVIDER_ADVERTISEMENT'|'DISTRIBUTOR_ADVERTISEMENT'|'PROVIDER_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_PLACEMENT_OPPORTUNITY'|'PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY',
],
'AdsOnDeliveryRestrictions': 'NONE'|'RESTRICTED'|'UNRESTRICTED'|'BOTH',
'Encryption': {
'KeyRotationIntervalSeconds': 123,
'SpekeKeyProvider': {
'CertificateArn': 'string',
'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'
},
'ResourceId': 'string',
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeIframeOnlyStream': True|False,
'ManifestLayout': 'FULL'|'COMPACT',
'ManifestWindowSeconds': 123,
'MinBufferTimeSeconds': 123,
'MinUpdatePeriodSeconds': 123,
'PeriodTriggers': [
'ADS',
],
'Profile': 'NONE'|'HBBTV_1_5'|'HYBRIDCAST'|'DVB_DASH_2014',
'SegmentDurationSeconds': 123,
'SegmentTemplateFormat': 'NUMBER_WITH_TIMELINE'|'TIME_WITH_TIMELINE'|'NUMBER_WITH_DURATION',
'StreamSelection': {
'MaxVideoBitsPerSecond': 123,
'MinVideoBitsPerSecond': 123,
'StreamOrder': 'ORIGINAL'|'VIDEO_BITRATE_ASCENDING'|'VIDEO_BITRATE_DESCENDING'
},
'SuggestedPresentationDelaySeconds': 123,
'UtcTiming': 'NONE'|'HTTP-HEAD'|'HTTP-ISO'|'HTTP-XSDATE',
'UtcTimingUri': 'string'
},
'Description': 'string',
'HlsPackage': {
'AdMarkers': 'NONE'|'SCTE35_ENHANCED'|'PASSTHROUGH'|'DATERANGE',
'AdTriggers': [
'SPLICE_INSERT'|'BREAK'|'PROVIDER_ADVERTISEMENT'|'DISTRIBUTOR_ADVERTISEMENT'|'PROVIDER_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_PLACEMENT_OPPORTUNITY'|'PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY'|'DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY',
],
'AdsOnDeliveryRestrictions': 'NONE'|'RESTRICTED'|'UNRESTRICTED'|'BOTH',
'Encryption': {
'ConstantInitializationVector': 'string',
'EncryptionMethod': 'AES_128'|'SAMPLE_AES',
'KeyRotationIntervalSeconds': 123,
'RepeatExtXKey': True|False,
'SpekeKeyProvider': {
'CertificateArn': 'string',
'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'
},
'ResourceId': 'string',
'RoleArn': 'string',
'SystemIds': [
'string',
],
'Url': 'string'
}
},
'IncludeDvbSubtitles': True|False,
'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': {
'CertificateArn': 'string',
'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'
},
'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'
}
},
'Origination': 'ALLOW'|'DENY',
'StartoverWindowSeconds': 123,
'Tags': {
'string': 'string'
},
'TimeDelaySeconds': 123,
'Url': 'string',
'Whitelist': [
'string',
]
}
Response Structure
Exceptions
MediaPackage.Client.exceptions.UnprocessableEntityException
MediaPackage.Client.exceptions.InternalServerErrorException
MediaPackage.Client.exceptions.ForbiddenException
MediaPackage.Client.exceptions.NotFoundException
MediaPackage.Client.exceptions.ServiceUnavailableException
MediaPackage.Client.exceptions.TooManyRequestsException