update_origin_endpoint
¶
update_origin_endpoint(
channel_group_name: ResourceName,
channel_name: ResourceName,
origin_endpoint_name: ResourceName,
container_type: ContainerType,
*,
config_overrides: Optional[MediaPackageV2ClientConfig] = None,
segment: Optional[Segment] = None,
description: Optional[ResourceDescription] = None,
startover_window_seconds: Optional[int] = None,
hls_manifests: Optional[CreateHlsManifests] = None,
low_latency_hls_manifests: Optional[CreateLowLatencyHlsManifests] = None,
dash_manifests: Optional[CreateDashManifests] = None,
mss_manifests: Optional[CreateMssManifests] = None,
force_endpoint_error_configuration: Optional[
ForceEndpointErrorConfiguration
] = None,
uri_separator: Optional[UriSeparator] = None,
stream_name_output_mode: Optional[StreamNameOutputMode] = None,
e_tag: Optional[EntityTag] = None,
) -> UpdateOriginEndpointResponse
Update the specified origin endpoint. Edit the packaging preferences on an endpoint to optimize the viewing experience. You can't edit the name of the endpoint.
Any edits you make that impact the video output may not be reflected for a few minutes.
Parameters:
-
channel_group_name(ResourceName) –The name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.
-
channel_name(ResourceName) –The name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group.
-
origin_endpoint_name(ResourceName) –The name that describes the origin endpoint. The name is the primary identifier for the origin endpoint, and and must be unique for your account in the AWS Region and channel.
-
container_type(ContainerType) –The type of container attached to this origin endpoint. A container type is a file format that encapsulates one or more media streams, such as audio and video, into a single file.
-
segment(Optional[Segment], default:None) –The segment configuration, including the segment name, duration, and other configuration values.
-
description(Optional[ResourceDescription], default:None) –Any descriptive information that you want to add to the origin endpoint for future identification purposes.
-
startover_window_seconds(Optional[int], default:None) –The size of the window (in seconds) to create a window of the live stream that's available for on-demand viewing. Viewers can start-over or catch-up on content that falls within the window. The maximum startover window is 1,209,600 seconds (14 days).
-
hls_manifests(Optional[CreateHlsManifests], default:None) –An HTTP live streaming (HLS) manifest configuration.
-
low_latency_hls_manifests(Optional[CreateLowLatencyHlsManifests], default:None) –A low-latency HLS manifest configuration.
-
dash_manifests(Optional[CreateDashManifests], default:None) –A DASH manifest configuration.
-
mss_manifests(Optional[CreateMssManifests], default:None) –A list of Microsoft Smooth Streaming (MSS) manifest configurations to update for the origin endpoint. This replaces the existing MSS manifest configurations.
-
force_endpoint_error_configuration(Optional[ForceEndpointErrorConfiguration], default:None) –The failover settings for the endpoint.
-
uri_separator(Optional[UriSeparator], default:None) –The separator character to use in generated URIs for this origin endpoint. This setting applies to all manifest types on the endpoint. If you don't specify a value in the update request, the current value is preserved.
-
stream_name_output_mode(Optional[StreamNameOutputMode], default:None) –The output mode for stream names in egress manifests. If you provide a value, it must match the current value. You can't change the stream name output mode after you create the endpoint.
-
e_tag(Optional[EntityTag], default:None) –The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the resource's current entity tag, the update request will be rejected.
Raises:
-
AccessDeniedException–Access is denied because either you don't have permissions to perform the requested operation or MediaPackage is getting throttling errors with CDN authorization. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide. Or, if you're using CDN authorization, you will receive this exception if MediaPackage receives a throttling error from Secrets Manager.
-
ConflictException–Updating or deleting this resource can cause an inconsistent state.
-
InternalServerException–Indicates that an error from the service occurred while trying to process a request.
-
ResourceNotFoundException–The specified resource doesn't exist.
-
ServiceQuotaExceededException–The request would cause a service quota to be exceeded.
-
ThrottlingException–The request throughput limit was exceeded.
-
ValidationException–The input failed to meet the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Updating an OriginEndpoint
>>> client.update_origin_endpoint(channel_group_name='exampleChannelGroup', channel_name='exampleChannel', origin_endpoint_name='exampleOriginEndpointTS', container_type='TS', description='Updated description for exampleOriginEndpointTS', startover_window_seconds=600, force_endpoint_error_configuration={'EndpointErrorConditions': ['STALE_MANIFEST', 'INCOMPLETE_MANIFEST', 'MISSING_DRM_KEY', 'SLATE_INPUT']}, uri_separator='HYPHEN', segment={'SegmentDurationSeconds': 7, 'SegmentName': 'segmentName2', 'TsUseAudioRenditionGroup': True, 'IncludeIframeOnlyStreams': False, 'TsIncludeDvbSubtitles': False, 'Scte': {'ScteFilter': ['SPLICE_INSERT']}, 'Encryption': {'ConstantInitializationVector': 'A382A901F3C1F7718512266CFFBB0B7E', 'EncryptionMethod': {'TsEncryptionMethod': 'AES_128'}, 'KeyRotationIntervalSeconds': 300, 'SpekeKeyProvider': {'EncryptionContractConfiguration': {'PresetSpeke20Audio': 'SHARED', 'PresetSpeke20Video': 'SHARED'}, 'ResourceId': 'ResourceId', 'DrmSystems': ['CLEAR_KEY_AES_128'], 'RoleArn': 'arn:aws:iam::123456789012:role/empRole', 'Url': 'https://foo.com', 'CertificateArn': 'arn:aws:acm:us-west-2:123456789012:certificate/0c6a65f1-7bd3-48ac-be17-f38675def22e'}}}, hls_manifests=[{'ManifestName': 'exampleManifest1', 'ChildManifestName': 'exampleChildManifest1', 'ScteHls': {'AdMarkerHls': 'DATERANGE'}, 'ManifestWindowSeconds': 30, 'ProgramDateTimeIntervalSeconds': 60, 'UriPathType': 'LEAF'}, {'ManifestName': 'exampleManifest2', 'ChildManifestName': 'exampleManifest2', 'ScteHls': {'AdMarkerHls': 'DATERANGE'}, 'ManifestWindowSeconds': 30, 'ProgramDateTimeIntervalSeconds': 60, 'UriPathType': 'LEAF'}], low_latency_hls_manifests=[{'ManifestName': 'exampleLLManifest1', 'ChildManifestName': 'exampleLLChildManifest1', 'ScteHls': {'AdMarkerHls': 'DATERANGE'}, 'ManifestWindowSeconds': 30, 'ProgramDateTimeIntervalSeconds': 60, 'UriPathType': 'ROOT'}, {'ManifestName': 'exampleLLManifest2', 'ChildManifestName': 'exampleLLManifest2', 'ScteHls': {'AdMarkerHls': 'DATERANGE'}, 'ManifestWindowSeconds': 30, 'ProgramDateTimeIntervalSeconds': 60, 'UriPathType': 'ROOT'}])
Updating an OriginEndpoint with ISM container
>>> client.update_origin_endpoint(channel_group_name='exampleChannelGroup', channel_name='exampleChannel', origin_endpoint_name='exampleOriginEndpointISM', container_type='ISM', description='Updated description for exampleOriginEndpointISM', startover_window_seconds=600, force_endpoint_error_configuration={'EndpointErrorConditions': ['STALE_MANIFEST', 'INCOMPLETE_MANIFEST', 'MISSING_DRM_KEY', 'SLATE_INPUT']}, uri_separator='HYPHEN', segment={'SegmentDurationSeconds': 2, 'SegmentName': 'segmentName2', 'Encryption': {'EncryptionMethod': {'IsmEncryptionMethod': 'CENC'}, 'SpekeKeyProvider': {'EncryptionContractConfiguration': {'PresetSpeke20Audio': 'SHARED', 'PresetSpeke20Video': 'SHARED'}, 'ResourceId': 'ResourceId', 'DrmSystems': ['PLAYREADY'], 'RoleArn': 'arn:aws:iam::123456789012:role/empRole', 'Url': 'https://speke-key-provider.example.com'}}}, mss_manifests=[{'ManifestName': 'exampleMssManifest1', 'ManifestWindowSeconds': 60, 'ManifestLayout': 'FULL'}, {'ManifestName': 'exampleMssManifest2', 'ManifestWindowSeconds': 30, 'ManifestLayout': 'COMPACT'}])
Source code in docs_src/capo_mediapackagev2/_services/media_package_v2.py
1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 | |