mediapackagev2 / Client / put_channel_policy

put_channel_policy#

mediapackagev2.Client.put_channel_policy(**kwargs)#

Attaches an IAM policy to the specified channel. With policies, you can specify who has access to AWS resources and what actions they can perform on those resources. You can attach only one policy with each request.

See also: AWS API Documentation

Request Syntax

response = client.put_channel_policy(
    ChannelGroupName='string',
    ChannelName='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.

  • Policy (string) –

    [REQUIRED]

    The policy to attach to the specified channel.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions