

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

# AWS::MediaPackage::OriginEndpoint CmafPackage
<a name="aws-properties-mediapackage-originendpoint-cmafpackage"></a>

Parameters for Common Media Application Format (CMAF) packaging.

## Syntax
<a name="aws-properties-mediapackage-originendpoint-cmafpackage-syntax"></a>

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

### JSON
<a name="aws-properties-mediapackage-originendpoint-cmafpackage-syntax.json"></a>

```
{
  "[Encryption](#cfn-mediapackage-originendpoint-cmafpackage-encryption)" : CmafEncryption,
  "[HlsManifests](#cfn-mediapackage-originendpoint-cmafpackage-hlsmanifests)" : [ HlsManifest, ... ],
  "[SegmentDurationSeconds](#cfn-mediapackage-originendpoint-cmafpackage-segmentdurationseconds)" : Integer,
  "[SegmentPrefix](#cfn-mediapackage-originendpoint-cmafpackage-segmentprefix)" : String,
  "[StreamSelection](#cfn-mediapackage-originendpoint-cmafpackage-streamselection)" : StreamSelection
}
```

### YAML
<a name="aws-properties-mediapackage-originendpoint-cmafpackage-syntax.yaml"></a>

```
  [Encryption](#cfn-mediapackage-originendpoint-cmafpackage-encryption): 
    CmafEncryption
  [HlsManifests](#cfn-mediapackage-originendpoint-cmafpackage-hlsmanifests): 
    - HlsManifest
  [SegmentDurationSeconds](#cfn-mediapackage-originendpoint-cmafpackage-segmentdurationseconds): Integer
  [SegmentPrefix](#cfn-mediapackage-originendpoint-cmafpackage-segmentprefix): String
  [StreamSelection](#cfn-mediapackage-originendpoint-cmafpackage-streamselection): 
    StreamSelection
```

## Properties
<a name="aws-properties-mediapackage-originendpoint-cmafpackage-properties"></a>

`Encryption`  <a name="cfn-mediapackage-originendpoint-cmafpackage-encryption"></a>
Parameters for encrypting content.  
*Required*: No  
*Type*: [CmafEncryption](aws-properties-mediapackage-originendpoint-cmafencryption.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`HlsManifests`  <a name="cfn-mediapackage-originendpoint-cmafpackage-hlsmanifests"></a>
A list of HLS manifest configurations that are available from this endpoint.  
*Required*: No  
*Type*: Array of [HlsManifest](aws-properties-mediapackage-originendpoint-hlsmanifest.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SegmentDurationSeconds`  <a name="cfn-mediapackage-originendpoint-cmafpackage-segmentdurationseconds"></a>
Duration (in seconds) of each segment. Actual segments are rounded to the nearest multiple of the source segment duration.  
*Required*: No  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SegmentPrefix`  <a name="cfn-mediapackage-originendpoint-cmafpackage-segmentprefix"></a>
An optional custom string that is prepended to the name of each segment. If not specified, the segment prefix defaults to the ChannelId.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`StreamSelection`  <a name="cfn-mediapackage-originendpoint-cmafpackage-streamselection"></a>
Limitations for outputs from the endpoint, based on the video bitrate.  
*Required*: No  
*Type*: [StreamSelection](aws-properties-mediapackage-originendpoint-streamselection.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)