mediapackagev2 / Client / reset_origin_endpoint_state

reset_origin_endpoint_state#

mediapackagev2.Client.reset_origin_endpoint_state(**kwargs)#

Resetting the origin endpoint can help to resolve unexpected behavior and other content packaging issues. It also helps to preserve special events when you don’t want the previous content to be available for viewing. A reset clears out all previous content from the origin endpoint.

MediaPackage might return old content from this endpoint in the first 30 seconds after the endpoint reset. For best results, when possible, wait 30 seconds from endpoint reset to send playback requests to this endpoint.

See also: AWS API Documentation

Request Syntax

response = client.reset_origin_endpoint_state(
    ChannelGroupName='string',
    ChannelName='string',
    OriginEndpointName='string'
)
Parameters:
  • ChannelGroupName (string) –

    [REQUIRED]

    The name of the channel group that contains the channel with the origin endpoint that you are resetting.

  • ChannelName (string) –

    [REQUIRED]

    The name of the channel with the origin endpoint that you are resetting.

  • OriginEndpointName (string) –

    [REQUIRED]

    The name of the origin endpoint that you are resetting.

Return type:

dict

Returns:

Response Syntax

{
    'ChannelGroupName': 'string',
    'ChannelName': 'string',
    'OriginEndpointName': 'string',
    'Arn': 'string',
    'ResetAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • ChannelGroupName (string) –

      The name of the channel group that contains the channel with the origin endpoint that you just reset.

    • ChannelName (string) –

      The name of the channel with the origin endpoint that you just reset.

    • OriginEndpointName (string) –

      The name of the origin endpoint that you just reset.

    • Arn (string) –

      The Amazon Resource Name (ARN) associated with the endpoint that you just reset.

    • ResetAt (datetime) –

      The time that the origin endpoint was last reset.

Exceptions