

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::PlaybackConfiguration CdnConfiguration
<a name="aws-properties-mediatailor-playbackconfiguration-cdnconfiguration"></a>

The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.

## Syntax
<a name="aws-properties-mediatailor-playbackconfiguration-cdnconfiguration-syntax"></a>

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

### JSON
<a name="aws-properties-mediatailor-playbackconfiguration-cdnconfiguration-syntax.json"></a>

```
{
  "[AdSegmentUrlPrefix](#cfn-mediatailor-playbackconfiguration-cdnconfiguration-adsegmenturlprefix)" : String,
  "[ContentSegmentUrlPrefix](#cfn-mediatailor-playbackconfiguration-cdnconfiguration-contentsegmenturlprefix)" : String
}
```

### YAML
<a name="aws-properties-mediatailor-playbackconfiguration-cdnconfiguration-syntax.yaml"></a>

```
  [AdSegmentUrlPrefix](#cfn-mediatailor-playbackconfiguration-cdnconfiguration-adsegmenturlprefix): String
  [ContentSegmentUrlPrefix](#cfn-mediatailor-playbackconfiguration-cdnconfiguration-contentsegmenturlprefix): String
```

## Properties
<a name="aws-properties-mediatailor-playbackconfiguration-cdnconfiguration-properties"></a>

`AdSegmentUrlPrefix`  <a name="cfn-mediatailor-playbackconfiguration-cdnconfiguration-adsegmenturlprefix"></a>
A non-default content delivery network (CDN) to serve ad segments. By default, Amazon Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.*<region>*.amazonaws.com. Then specify the rule's name in this `AdSegmentUrlPrefix`. When Amazon Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ContentSegmentUrlPrefix`  <a name="cfn-mediatailor-playbackconfiguration-cdnconfiguration-contentsegmenturlprefix"></a>
A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this `ContentSegmentUrlPrefix`. When Amazon Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)