mediapackagev2 / Client / put_origin_endpoint_policy

put_origin_endpoint_policy#

mediapackagev2.Client.put_origin_endpoint_policy(**kwargs)#

Attaches an IAM policy to the specified origin endpoint. You can attach only one policy with each request.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    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.

  • ChannelName (string) –

    [REQUIRED]

    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.

  • OriginEndpointName (string) –

    [REQUIRED]

    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.

  • Policy (string) –

    [REQUIRED]

    The policy to attach to the specified origin endpoint.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • mediapackagev2.Client.exceptions.ThrottlingException

  • mediapackagev2.Client.exceptions.ConflictException

  • mediapackagev2.Client.exceptions.InternalServerException

  • mediapackagev2.Client.exceptions.AccessDeniedException

  • mediapackagev2.Client.exceptions.ValidationException

  • mediapackagev2.Client.exceptions.ResourceNotFoundException