

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::MediaPackageV2::OriginEndpointPolicy CdnAuthConfiguration
<a name="aws-properties-mediapackagev2-originendpointpolicy-cdnauthconfiguration"></a>

The settings to enable CDN authorization headers in MediaPackage.

## Syntax
<a name="aws-properties-mediapackagev2-originendpointpolicy-cdnauthconfiguration-syntax"></a>

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

### JSON
<a name="aws-properties-mediapackagev2-originendpointpolicy-cdnauthconfiguration-syntax.json"></a>

```
{
  "[CdnIdentifierSecretArns](#cfn-mediapackagev2-originendpointpolicy-cdnauthconfiguration-cdnidentifiersecretarns)" : {{[ String, ... ]}},
  "[SecretsRoleArn](#cfn-mediapackagev2-originendpointpolicy-cdnauthconfiguration-secretsrolearn)" : {{String}}
}
```

### YAML
<a name="aws-properties-mediapackagev2-originendpointpolicy-cdnauthconfiguration-syntax.yaml"></a>

```
  [CdnIdentifierSecretArns](#cfn-mediapackagev2-originendpointpolicy-cdnauthconfiguration-cdnidentifiersecretarns): {{
    - String}}
  [SecretsRoleArn](#cfn-mediapackagev2-originendpointpolicy-cdnauthconfiguration-secretsrolearn): {{String}}
```

## Properties
<a name="aws-properties-mediapackagev2-originendpointpolicy-cdnauthconfiguration-properties"></a>

`CdnIdentifierSecretArns`  <a name="cfn-mediapackagev2-originendpointpolicy-cdnauthconfiguration-cdnidentifiersecretarns"></a>
The ARN for the secret in Secrets Manager that your CDN uses for authorization to access the endpoint.  
*Required*: Yes  
*Type*: Array of String  
*Minimum*: `20 | 1`  
*Maximum*: `2048 | 100`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SecretsRoleArn`  <a name="cfn-mediapackagev2-originendpointpolicy-cdnauthconfiguration-secretsrolearn"></a>
The ARN for the IAM role that gives MediaPackage read access to Secrets Manager and Amazon KMS for CDN authorization.  
*Required*: Yes  
*Type*: String  
*Minimum*: `20`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)