

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::MediaTailor::ChannelPolicy
<a name="aws-resource-mediatailor-channelpolicy"></a>

Specifies an IAM policy for the channel. IAM policies are used to control access to your channel.

## Syntax
<a name="aws-resource-mediatailor-channelpolicy-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-mediatailor-channelpolicy-syntax.json"></a>

```
{
  "Type" : "AWS::MediaTailor::ChannelPolicy",
  "Properties" : {
      "[ChannelName](#cfn-mediatailor-channelpolicy-channelname)" : {{String}},
      "[Policy](#cfn-mediatailor-channelpolicy-policy)" : {{Json}}
    }
}
```

### YAML
<a name="aws-resource-mediatailor-channelpolicy-syntax.yaml"></a>

```
Type: AWS::MediaTailor::ChannelPolicy
Properties:
  [ChannelName](#cfn-mediatailor-channelpolicy-channelname): {{String}}
  [Policy](#cfn-mediatailor-channelpolicy-policy): {{Json}}
```

## Properties
<a name="aws-resource-mediatailor-channelpolicy-properties"></a>

`ChannelName`  <a name="cfn-mediatailor-channelpolicy-channelname"></a>
The name of the channel associated with this Channel Policy.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Policy`  <a name="cfn-mediatailor-channelpolicy-policy"></a>
The IAM policy for the channel. IAM policies are used to control access to your channel.  
*Required*: Yes  
*Type*: Json  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-mediatailor-channelpolicy-return-values"></a>

### Ref
<a name="aws-resource-mediatailor-channelpolicy-return-values-ref"></a>