

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
<a name="aws-resource-mediapackage-originendpoint"></a>

Create an endpoint on an AWS Elemental MediaPackage channel.

An endpoint represents a single delivery point of a channel, and defines content output handling through various components, such as packaging protocols, DRM and encryption integration, and more.

After it's created, an endpoint provides a fixed public URL. This URL remains the same throughout the lifetime of the endpoint, regardless of any failures or upgrades that might occur. Integrate the URL with a downstream CDN (such as Amazon CloudFront) or playback device.

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

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

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

```
{
  "Type" : "AWS::MediaPackage::OriginEndpoint",
  "Properties" : {
      "[Authorization](#cfn-mediapackage-originendpoint-authorization)" : Authorization,
      "[ChannelId](#cfn-mediapackage-originendpoint-channelid)" : String,
      "[CmafPackage](#cfn-mediapackage-originendpoint-cmafpackage)" : CmafPackage,
      "[DashPackage](#cfn-mediapackage-originendpoint-dashpackage)" : DashPackage,
      "[Description](#cfn-mediapackage-originendpoint-description)" : String,
      "[HlsPackage](#cfn-mediapackage-originendpoint-hlspackage)" : HlsPackage,
      "[Id](#cfn-mediapackage-originendpoint-id)" : String,
      "[ManifestName](#cfn-mediapackage-originendpoint-manifestname)" : String,
      "[MssPackage](#cfn-mediapackage-originendpoint-msspackage)" : MssPackage,
      "[Origination](#cfn-mediapackage-originendpoint-origination)" : String,
      "[StartoverWindowSeconds](#cfn-mediapackage-originendpoint-startoverwindowseconds)" : Integer,
      "[Tags](#cfn-mediapackage-originendpoint-tags)" : [ Tag, ... ],
      "[TimeDelaySeconds](#cfn-mediapackage-originendpoint-timedelayseconds)" : Integer,
      "[Whitelist](#cfn-mediapackage-originendpoint-whitelist)" : [ String, ... ]
    }
}
```

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

```
Type: AWS::MediaPackage::OriginEndpoint
Properties:
  [Authorization](#cfn-mediapackage-originendpoint-authorization): 
    Authorization
  [ChannelId](#cfn-mediapackage-originendpoint-channelid): String
  [CmafPackage](#cfn-mediapackage-originendpoint-cmafpackage): 
    CmafPackage
  [DashPackage](#cfn-mediapackage-originendpoint-dashpackage): 
    DashPackage
  [Description](#cfn-mediapackage-originendpoint-description): String
  [HlsPackage](#cfn-mediapackage-originendpoint-hlspackage): 
    HlsPackage
  [Id](#cfn-mediapackage-originendpoint-id): String
  [ManifestName](#cfn-mediapackage-originendpoint-manifestname): String
  [MssPackage](#cfn-mediapackage-originendpoint-msspackage): 
    MssPackage
  [Origination](#cfn-mediapackage-originendpoint-origination): String
  [StartoverWindowSeconds](#cfn-mediapackage-originendpoint-startoverwindowseconds): Integer
  [Tags](#cfn-mediapackage-originendpoint-tags): 
    - Tag
  [TimeDelaySeconds](#cfn-mediapackage-originendpoint-timedelayseconds): Integer
  [Whitelist](#cfn-mediapackage-originendpoint-whitelist): 
    - String
```

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

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

`ChannelId`  <a name="cfn-mediapackage-originendpoint-channelid"></a>
The ID of the channel associated with this endpoint.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`CmafPackage`  <a name="cfn-mediapackage-originendpoint-cmafpackage"></a>
Parameters for Common Media Application Format (CMAF) packaging.  
*Required*: No  
*Type*: [CmafPackage](aws-properties-mediapackage-originendpoint-cmafpackage.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

`Description`  <a name="cfn-mediapackage-originendpoint-description"></a>
Any descriptive information that you want to add to the endpoint for future identification purposes.  
*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)

`HlsPackage`  <a name="cfn-mediapackage-originendpoint-hlspackage"></a>
Parameters for Apple HLS packaging.  
*Required*: No  
*Type*: [HlsPackage](aws-properties-mediapackage-originendpoint-hlspackage.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Id`  <a name="cfn-mediapackage-originendpoint-id"></a>
The manifest ID is required and must be unique within the OriginEndpoint. The ID can't be changed after the endpoint is created.  
*Required*: Yes  
*Type*: String  
*Pattern*: `\A[0-9a-zA-Z-_]+\Z`  
*Minimum*: `1`  
*Maximum*: `256`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`ManifestName`  <a name="cfn-mediapackage-originendpoint-manifestname"></a>
A short string that's appended to the end of the endpoint URL to create a unique path to this endpoint.  
*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)

`MssPackage`  <a name="cfn-mediapackage-originendpoint-msspackage"></a>
Parameters for Microsoft Smooth Streaming packaging.  
*Required*: No  
*Type*: [MssPackage](aws-properties-mediapackage-originendpoint-msspackage.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Origination`  <a name="cfn-mediapackage-originendpoint-origination"></a>
Controls video origination from this endpoint.  
Valid values:  
+ `ALLOW` - enables this endpoint to serve content to requesting devices.
+ `DENY` - prevents this endpoint from serving content. Denying origination is helpful for harvesting live-to-VOD assets. For more information about harvesting and origination, see [Live-to-VOD Requirements](https://docs.aws.amazon.com/mediapackage/latest/ug/ltov-reqmts.html).
*Required*: No  
*Type*: String  
*Allowed values*: `ALLOW | DENY`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`StartoverWindowSeconds`  <a name="cfn-mediapackage-originendpoint-startoverwindowseconds"></a>
Maximum duration (seconds) of content to retain for startover playback. Omit this attribute or enter `0` to indicate that startover playback is disabled for this endpoint.  
*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)

`Tags`  <a name="cfn-mediapackage-originendpoint-tags"></a>
The tags to assign to the endpoint.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-mediapackage-originendpoint-tag.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TimeDelaySeconds`  <a name="cfn-mediapackage-originendpoint-timedelayseconds"></a>
Minimum duration (seconds) of delay to enforce on the playback of live content. Omit this attribute or enter `0` to indicate that there is no time delay in effect for this endpoint.  
*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)

`Whitelist`  <a name="cfn-mediapackage-originendpoint-whitelist"></a>
The IP addresses that can access this endpoint.  
*Required*: No  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-mediapackage-originendpoint-return-values"></a>

### Ref
<a name="aws-resource-mediapackage-originendpoint-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the name of the origin endpoint.

For example: `{ "Ref": "myOriginEndpoint" }`

For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

### Fn::GetAtt
<a name="aws-resource-mediapackage-originendpoint-return-values-fn--getatt"></a>

The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the `Fn::GetAtt` intrinsic function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html).

#### 
<a name="aws-resource-mediapackage-originendpoint-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
The endpoint's unique system-generated resource name, based on the AWS record.

`Url`  <a name="Url-fn::getatt"></a>
URL for the key provider’s key retrieval API endpoint. Must start with https://.

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

Parameters for enabling CDN authorization on the endpoint.

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

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

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

```
{
  "[CdnIdentifierSecret](#cfn-mediapackage-originendpoint-authorization-cdnidentifiersecret)" : String,
  "[SecretsRoleArn](#cfn-mediapackage-originendpoint-authorization-secretsrolearn)" : String
}
```

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

```
  [CdnIdentifierSecret](#cfn-mediapackage-originendpoint-authorization-cdnidentifiersecret): String
  [SecretsRoleArn](#cfn-mediapackage-originendpoint-authorization-secretsrolearn): String
```

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

`CdnIdentifierSecret`  <a name="cfn-mediapackage-originendpoint-authorization-cdnidentifiersecret"></a>
The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that your Content Delivery Network (CDN) uses for authorization to access your endpoint.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SecretsRoleArn`  <a name="cfn-mediapackage-originendpoint-authorization-secretsrolearn"></a>
The Amazon Resource Name (ARN) for the IAM role that allows AWS Elemental MediaPackage to communicate with AWS Secrets Manager.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

Holds encryption information so that access to the content can be controlled by a DRM solution.

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

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

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

```
{
  "[ConstantInitializationVector](#cfn-mediapackage-originendpoint-cmafencryption-constantinitializationvector)" : String,
  "[EncryptionMethod](#cfn-mediapackage-originendpoint-cmafencryption-encryptionmethod)" : String,
  "[KeyRotationIntervalSeconds](#cfn-mediapackage-originendpoint-cmafencryption-keyrotationintervalseconds)" : Integer,
  "[SpekeKeyProvider](#cfn-mediapackage-originendpoint-cmafencryption-spekekeyprovider)" : SpekeKeyProvider
}
```

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

```
  [ConstantInitializationVector](#cfn-mediapackage-originendpoint-cmafencryption-constantinitializationvector): String
  [EncryptionMethod](#cfn-mediapackage-originendpoint-cmafencryption-encryptionmethod): String
  [KeyRotationIntervalSeconds](#cfn-mediapackage-originendpoint-cmafencryption-keyrotationintervalseconds): Integer
  [SpekeKeyProvider](#cfn-mediapackage-originendpoint-cmafencryption-spekekeyprovider): 
    SpekeKeyProvider
```

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

`ConstantInitializationVector`  <a name="cfn-mediapackage-originendpoint-cmafencryption-constantinitializationvector"></a>
An optional 128-bit, 16-byte hex value represented by a 32-character string, used in conjunction with the key for encrypting blocks. If you don't specify a value, then AWS Elemental MediaPackage creates the constant initialization vector (IV).   
*Required*: No  
*Type*: String  
*Pattern*: `\A[0-9a-fA-F]+\Z`  
*Minimum*: `32`  
*Maximum*: `32`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`EncryptionMethod`  <a name="cfn-mediapackage-originendpoint-cmafencryption-encryptionmethod"></a>
The encryption method to use.  
*Required*: No  
*Type*: String  
*Allowed values*: `SAMPLE_AES | AES_CTR`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`KeyRotationIntervalSeconds`  <a name="cfn-mediapackage-originendpoint-cmafencryption-keyrotationintervalseconds"></a>
Number of seconds before AWS Elemental MediaPackage rotates to a new key. By default, rotation is set to 60 seconds. Set to `0` to disable key rotation.  
*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)

`SpekeKeyProvider`  <a name="cfn-mediapackage-originendpoint-cmafencryption-spekekeyprovider"></a>
Parameters for the SPEKE key provider.  
*Required*: Yes  
*Type*: [SpekeKeyProvider](aws-properties-mediapackage-originendpoint-spekekeyprovider.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# 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)

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

Holds encryption information so that access to the content can be controlled by a DRM solution.

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

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

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

```
{
  "[KeyRotationIntervalSeconds](#cfn-mediapackage-originendpoint-dashencryption-keyrotationintervalseconds)" : Integer,
  "[SpekeKeyProvider](#cfn-mediapackage-originendpoint-dashencryption-spekekeyprovider)" : SpekeKeyProvider
}
```

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

```
  [KeyRotationIntervalSeconds](#cfn-mediapackage-originendpoint-dashencryption-keyrotationintervalseconds): Integer
  [SpekeKeyProvider](#cfn-mediapackage-originendpoint-dashencryption-spekekeyprovider): 
    SpekeKeyProvider
```

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

`KeyRotationIntervalSeconds`  <a name="cfn-mediapackage-originendpoint-dashencryption-keyrotationintervalseconds"></a>
Number of seconds before AWS Elemental MediaPackage rotates to a new key. By default, rotation is set to 60 seconds. Set to `0` to disable key rotation.  
*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)

`SpekeKeyProvider`  <a name="cfn-mediapackage-originendpoint-dashencryption-spekekeyprovider"></a>
Parameters for the SPEKE key provider.  
*Required*: Yes  
*Type*: [SpekeKeyProvider](aws-properties-mediapackage-originendpoint-spekekeyprovider.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

Parameters for DASH packaging.

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

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

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

```
{
  "[AdsOnDeliveryRestrictions](#cfn-mediapackage-originendpoint-dashpackage-adsondeliveryrestrictions)" : String,
  "[AdTriggers](#cfn-mediapackage-originendpoint-dashpackage-adtriggers)" : [ String, ... ],
  "[Encryption](#cfn-mediapackage-originendpoint-dashpackage-encryption)" : DashEncryption,
  "[IncludeIframeOnlyStream](#cfn-mediapackage-originendpoint-dashpackage-includeiframeonlystream)" : Boolean,
  "[ManifestLayout](#cfn-mediapackage-originendpoint-dashpackage-manifestlayout)" : String,
  "[ManifestWindowSeconds](#cfn-mediapackage-originendpoint-dashpackage-manifestwindowseconds)" : Integer,
  "[MinBufferTimeSeconds](#cfn-mediapackage-originendpoint-dashpackage-minbuffertimeseconds)" : Integer,
  "[MinUpdatePeriodSeconds](#cfn-mediapackage-originendpoint-dashpackage-minupdateperiodseconds)" : Integer,
  "[PeriodTriggers](#cfn-mediapackage-originendpoint-dashpackage-periodtriggers)" : [ String, ... ],
  "[Profile](#cfn-mediapackage-originendpoint-dashpackage-profile)" : String,
  "[SegmentDurationSeconds](#cfn-mediapackage-originendpoint-dashpackage-segmentdurationseconds)" : Integer,
  "[SegmentTemplateFormat](#cfn-mediapackage-originendpoint-dashpackage-segmenttemplateformat)" : String,
  "[StreamSelection](#cfn-mediapackage-originendpoint-dashpackage-streamselection)" : StreamSelection,
  "[SuggestedPresentationDelaySeconds](#cfn-mediapackage-originendpoint-dashpackage-suggestedpresentationdelayseconds)" : Integer,
  "[UtcTiming](#cfn-mediapackage-originendpoint-dashpackage-utctiming)" : String,
  "[UtcTimingUri](#cfn-mediapackage-originendpoint-dashpackage-utctiminguri)" : String
}
```

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

```
  [AdsOnDeliveryRestrictions](#cfn-mediapackage-originendpoint-dashpackage-adsondeliveryrestrictions): String
  [AdTriggers](#cfn-mediapackage-originendpoint-dashpackage-adtriggers): 
    - String
  [Encryption](#cfn-mediapackage-originendpoint-dashpackage-encryption): 
    DashEncryption
  [IncludeIframeOnlyStream](#cfn-mediapackage-originendpoint-dashpackage-includeiframeonlystream): Boolean
  [ManifestLayout](#cfn-mediapackage-originendpoint-dashpackage-manifestlayout): String
  [ManifestWindowSeconds](#cfn-mediapackage-originendpoint-dashpackage-manifestwindowseconds): Integer
  [MinBufferTimeSeconds](#cfn-mediapackage-originendpoint-dashpackage-minbuffertimeseconds): Integer
  [MinUpdatePeriodSeconds](#cfn-mediapackage-originendpoint-dashpackage-minupdateperiodseconds): Integer
  [PeriodTriggers](#cfn-mediapackage-originendpoint-dashpackage-periodtriggers): 
    - String
  [Profile](#cfn-mediapackage-originendpoint-dashpackage-profile): String
  [SegmentDurationSeconds](#cfn-mediapackage-originendpoint-dashpackage-segmentdurationseconds): Integer
  [SegmentTemplateFormat](#cfn-mediapackage-originendpoint-dashpackage-segmenttemplateformat): String
  [StreamSelection](#cfn-mediapackage-originendpoint-dashpackage-streamselection): 
    StreamSelection
  [SuggestedPresentationDelaySeconds](#cfn-mediapackage-originendpoint-dashpackage-suggestedpresentationdelayseconds): Integer
  [UtcTiming](#cfn-mediapackage-originendpoint-dashpackage-utctiming): String
  [UtcTimingUri](#cfn-mediapackage-originendpoint-dashpackage-utctiminguri): String
```

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

`AdsOnDeliveryRestrictions`  <a name="cfn-mediapackage-originendpoint-dashpackage-adsondeliveryrestrictions"></a>
The flags on SCTE-35 segmentation descriptors that have to be present for AWS Elemental MediaPackage to insert ad markers in the output manifest. For information about SCTE-35 in AWS Elemental MediaPackage, see [SCTE-35 Message Options in AWS Elemental MediaPackage](https://docs.aws.amazon.com/mediapackage/latest/ug/scte.html).  
*Required*: No  
*Type*: String  
*Allowed values*: `NONE | RESTRICTED | UNRESTRICTED | BOTH`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`AdTriggers`  <a name="cfn-mediapackage-originendpoint-dashpackage-adtriggers"></a>
Specifies the SCTE-35 message types that AWS Elemental MediaPackage treats as ad markers in the output manifest.  
Valid values:  
+  `BREAK` 
+  `DISTRIBUTOR_ADVERTISEMENT` 
+ `DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY`.
+ `DISTRIBUTOR_PLACEMENT_OPPORTUNITY`.
+ `PROVIDER_ADVERTISEMENT`.
+ `PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY`.
+ `PROVIDER_PLACEMENT_OPPORTUNITY`.
+ `SPLICE_INSERT`.
*Required*: No  
*Type*: Array of String  
*Allowed values*: `SPLICE_INSERT | BREAK | PROVIDER_ADVERTISEMENT | DISTRIBUTOR_ADVERTISEMENT | PROVIDER_PLACEMENT_OPPORTUNITY | DISTRIBUTOR_PLACEMENT_OPPORTUNITY | PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY | DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

`IncludeIframeOnlyStream`  <a name="cfn-mediapackage-originendpoint-dashpackage-includeiframeonlystream"></a>
This applies only to stream sets with a single video track. When true, the stream set includes an additional I-frame trick-play only stream, along with the other tracks. If false, this extra stream is not included.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ManifestLayout`  <a name="cfn-mediapackage-originendpoint-dashpackage-manifestlayout"></a>
Determines the position of some tags in the manifest.   
Valid values:  
+ `FULL` - Elements like `SegmentTemplate` and `ContentProtection` are included in each `Representation`.
+ `COMPACT` - Duplicate elements are combined and presented at the `AdaptationSet` level.
*Required*: No  
*Type*: String  
*Allowed values*: `FULL | COMPACT | DRM_TOP_LEVEL_COMPACT`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ManifestWindowSeconds`  <a name="cfn-mediapackage-originendpoint-dashpackage-manifestwindowseconds"></a>
Time window (in seconds) contained in each manifest.  
*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)

`MinBufferTimeSeconds`  <a name="cfn-mediapackage-originendpoint-dashpackage-minbuffertimeseconds"></a>
Minimum amount of content (measured in seconds) that a player must keep available in the buffer.  
*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)

`MinUpdatePeriodSeconds`  <a name="cfn-mediapackage-originendpoint-dashpackage-minupdateperiodseconds"></a>
Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest.  
*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)

`PeriodTriggers`  <a name="cfn-mediapackage-originendpoint-dashpackage-periodtriggers"></a>
Controls whether AWS Elemental MediaPackage produces single-period or multi-period DASH manifests. For more information about periods, see [Multi-period DASH in AWS Elemental MediaPackage](https://docs.aws.amazon.com/mediapackage/latest/ug/multi-period.html).  
Valid values:  
+ `ADS` - AWS Elemental MediaPackage will produce multi-period DASH manifests. Periods are created based on the SCTE-35 ad markers present in the input manifest.
+ *No value* - AWS Elemental MediaPackage will produce single-period DASH manifests. This is the default setting.
*Required*: No  
*Type*: Array of String  
*Allowed values*: `ADS`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Profile`  <a name="cfn-mediapackage-originendpoint-dashpackage-profile"></a>
The DASH profile for the output.  
Valid values:  
+ `NONE` - The output doesn't use a DASH profile.
+ `HBBTV_1_5` - The output is compliant with HbbTV v1.5.
+ `DVB_DASH_2014` - The output is compliant with DVB-DASH 2014.
*Required*: No  
*Type*: String  
*Allowed values*: `NONE | HBBTV_1_5 | HYBRIDCAST | DVB_DASH_2014`  
*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-dashpackage-segmentdurationseconds"></a>
Duration (in seconds) of each fragment. Actual fragments are rounded to the nearest multiple of the source fragment 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)

`SegmentTemplateFormat`  <a name="cfn-mediapackage-originendpoint-dashpackage-segmenttemplateformat"></a>
Determines the type of variable used in the `media` URL of the `SegmentTemplate` tag in the manifest. Also specifies if segment timeline information is included in `SegmentTimeline` or `SegmentTemplate`.  
Valid values:  
+ `NUMBER_WITH_TIMELINE` - The `$Number$` variable is used in the `media` URL. The value of this variable is the sequential number of the segment. A full `SegmentTimeline` object is presented in each `SegmentTemplate`.
+ `NUMBER_WITH_DURATION` - The `$Number$` variable is used in the `media` URL and a `duration` attribute is added to the segment template. The `SegmentTimeline` object is removed from the representation.
+ `TIME_WITH_TIMELINE` - The `$Time$` variable is used in the `media` URL. The value of this variable is the timestamp of when the segment starts. A full `SegmentTimeline` object is presented in each `SegmentTemplate`.
*Required*: No  
*Type*: String  
*Allowed values*: `NUMBER_WITH_TIMELINE | TIME_WITH_TIMELINE | NUMBER_WITH_DURATION`  
*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-dashpackage-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)

`SuggestedPresentationDelaySeconds`  <a name="cfn-mediapackage-originendpoint-dashpackage-suggestedpresentationdelayseconds"></a>
Amount of time (in seconds) that the player should be from the live point at the end of the manifest.  
*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)

`UtcTiming`  <a name="cfn-mediapackage-originendpoint-dashpackage-utctiming"></a>
Determines the type of UTC timing included in the DASH Media Presentation Description (MPD).  
*Required*: No  
*Type*: String  
*Allowed values*: `HTTP-XSDATE | HTTP-ISO | HTTP-HEAD | NONE`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`UtcTimingUri`  <a name="cfn-mediapackage-originendpoint-dashpackage-utctiminguri"></a>
Specifies the value attribute of the UTC timing field when utcTiming is set to HTTP-ISO or HTTP-HEAD.  
*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)

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

Use `encryptionContractConfiguration` to configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines the content keys used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use. For more information about these presets, see [SPEKE Version 2.0 Presets](https://docs.aws.amazon.com/mediapackage/latest/ug/drm-content-speke-v2-presets.html).

Note the following considerations when using `encryptionContractConfiguration`:
+ You can use `encryptionContractConfiguration` for DASH endpoints that use SPEKE Version 2.0. SPEKE Version 2.0 relies on the CPIX Version 2.3 specification.
+ You cannot combine an `UNENCRYPTED` preset with `UNENCRYPTED` or `SHARED` presets across `presetSpeke20Audio` and `presetSpeke20Video`.
+ When you use a `SHARED` preset, you must use it for both `presetSpeke20Audio` and `presetSpeke20Video`.

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

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

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

```
{
  "[PresetSpeke20Audio](#cfn-mediapackage-originendpoint-encryptioncontractconfiguration-presetspeke20audio)" : String,
  "[PresetSpeke20Video](#cfn-mediapackage-originendpoint-encryptioncontractconfiguration-presetspeke20video)" : String
}
```

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

```
  [PresetSpeke20Audio](#cfn-mediapackage-originendpoint-encryptioncontractconfiguration-presetspeke20audio): String
  [PresetSpeke20Video](#cfn-mediapackage-originendpoint-encryptioncontractconfiguration-presetspeke20video): String
```

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

`PresetSpeke20Audio`  <a name="cfn-mediapackage-originendpoint-encryptioncontractconfiguration-presetspeke20audio"></a>
A collection of audio encryption presets.  
Value description:  
+ `PRESET-AUDIO-1` - Use one content key to encrypt all of the audio tracks in your stream.
+ `PRESET-AUDIO-2` - Use one content key to encrypt all of the stereo audio tracks and one content key to encrypt all of the multichannel audio tracks.
+ `PRESET-AUDIO-3` - Use one content key to encrypt all of the stereo audio tracks, one content key to encrypt all of the multichannel audio tracks with 3 to 6 channels, and one content key to encrypt all of the multichannel audio tracks with more than 6 channels.
+ `SHARED` - Use the same content key for all of the audio and video tracks in your stream.
+ `UNENCRYPTED` - Don't encrypt any of the audio tracks in your stream.
*Required*: Yes  
*Type*: String  
*Allowed values*: `PRESET-AUDIO-1 | PRESET-AUDIO-2 | PRESET-AUDIO-3 | SHARED | UNENCRYPTED`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PresetSpeke20Video`  <a name="cfn-mediapackage-originendpoint-encryptioncontractconfiguration-presetspeke20video"></a>
A collection of video encryption presets.  
Value description:   
+ `PRESET-VIDEO-1` - Use one content key to encrypt all of the video tracks in your stream.
+ `PRESET-VIDEO-2` - Use one content key to encrypt all of the SD video tracks and one content key for all HD and higher resolutions video tracks.
+ `PRESET-VIDEO-3` - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks and one content key for all UHD video tracks.
+ `PRESET-VIDEO-4` - Use one content key to encrypt all of the SD video tracks, one content key for HD video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
+ `PRESET-VIDEO-5` - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
+ `PRESET-VIDEO-6` - Use one content key to encrypt all of the SD video tracks, one content key for HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.
+ `PRESET-VIDEO-7` - Use one content key to encrypt all of the SD\$1HD1 video tracks, one content key for HD2 video tracks and one content key for all UHD video tracks.
+ `PRESET-VIDEO-8` - Use one content key to encrypt all of the SD\$1HD1 video tracks, one content key for HD2 video tracks, one content key for all UHD1 video tracks and one content key for all UHD2 video tracks.
+ `SHARED` - Use the same content key for all of the video and audio tracks in your stream.
+ `UNENCRYPTED` - Don't encrypt any of the video tracks in your stream.
*Required*: Yes  
*Type*: String  
*Allowed values*: `PRESET-VIDEO-1 | PRESET-VIDEO-2 | PRESET-VIDEO-3 | PRESET-VIDEO-4 | PRESET-VIDEO-5 | PRESET-VIDEO-6 | PRESET-VIDEO-7 | PRESET-VIDEO-8 | SHARED | UNENCRYPTED`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

Holds encryption information so that access to the content can be controlled by a DRM solution.

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

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

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

```
{
  "[ConstantInitializationVector](#cfn-mediapackage-originendpoint-hlsencryption-constantinitializationvector)" : String,
  "[EncryptionMethod](#cfn-mediapackage-originendpoint-hlsencryption-encryptionmethod)" : String,
  "[KeyRotationIntervalSeconds](#cfn-mediapackage-originendpoint-hlsencryption-keyrotationintervalseconds)" : Integer,
  "[RepeatExtXKey](#cfn-mediapackage-originendpoint-hlsencryption-repeatextxkey)" : Boolean,
  "[SpekeKeyProvider](#cfn-mediapackage-originendpoint-hlsencryption-spekekeyprovider)" : SpekeKeyProvider
}
```

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

```
  [ConstantInitializationVector](#cfn-mediapackage-originendpoint-hlsencryption-constantinitializationvector): String
  [EncryptionMethod](#cfn-mediapackage-originendpoint-hlsencryption-encryptionmethod): String
  [KeyRotationIntervalSeconds](#cfn-mediapackage-originendpoint-hlsencryption-keyrotationintervalseconds): Integer
  [RepeatExtXKey](#cfn-mediapackage-originendpoint-hlsencryption-repeatextxkey): Boolean
  [SpekeKeyProvider](#cfn-mediapackage-originendpoint-hlsencryption-spekekeyprovider): 
    SpekeKeyProvider
```

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

`ConstantInitializationVector`  <a name="cfn-mediapackage-originendpoint-hlsencryption-constantinitializationvector"></a>
A 128-bit, 16-byte hex value represented by a 32-character string, used with the key for encrypting blocks.  
*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)

`EncryptionMethod`  <a name="cfn-mediapackage-originendpoint-hlsencryption-encryptionmethod"></a>
HLS encryption type.  
*Required*: No  
*Type*: String  
*Allowed values*: `AES_128 | SAMPLE_AES`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`KeyRotationIntervalSeconds`  <a name="cfn-mediapackage-originendpoint-hlsencryption-keyrotationintervalseconds"></a>
Number of seconds before AWS Elemental MediaPackage rotates to a new key. By default, rotation is set to 60 seconds. Set to `0` to disable key rotation.  
*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)

`RepeatExtXKey`  <a name="cfn-mediapackage-originendpoint-hlsencryption-repeatextxkey"></a>
Repeat the `EXT-X-KEY `directive for every media segment. This might result in an increase in client requests to the DRM server.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SpekeKeyProvider`  <a name="cfn-mediapackage-originendpoint-hlsencryption-spekekeyprovider"></a>
Parameters for the SPEKE key provider.  
*Required*: Yes  
*Type*: [SpekeKeyProvider](aws-properties-mediapackage-originendpoint-spekekeyprovider.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

An HTTP Live Streaming (HLS) manifest configuration on a CMAF endpoint.

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

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

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

```
{
  "[AdMarkers](#cfn-mediapackage-originendpoint-hlsmanifest-admarkers)" : String,
  "[AdsOnDeliveryRestrictions](#cfn-mediapackage-originendpoint-hlsmanifest-adsondeliveryrestrictions)" : String,
  "[AdTriggers](#cfn-mediapackage-originendpoint-hlsmanifest-adtriggers)" : [ String, ... ],
  "[Id](#cfn-mediapackage-originendpoint-hlsmanifest-id)" : String,
  "[IncludeIframeOnlyStream](#cfn-mediapackage-originendpoint-hlsmanifest-includeiframeonlystream)" : Boolean,
  "[ManifestName](#cfn-mediapackage-originendpoint-hlsmanifest-manifestname)" : String,
  "[PlaylistType](#cfn-mediapackage-originendpoint-hlsmanifest-playlisttype)" : String,
  "[PlaylistWindowSeconds](#cfn-mediapackage-originendpoint-hlsmanifest-playlistwindowseconds)" : Integer,
  "[ProgramDateTimeIntervalSeconds](#cfn-mediapackage-originendpoint-hlsmanifest-programdatetimeintervalseconds)" : Integer,
  "[Url](#cfn-mediapackage-originendpoint-hlsmanifest-url)" : String
}
```

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

```
  [AdMarkers](#cfn-mediapackage-originendpoint-hlsmanifest-admarkers): String
  [AdsOnDeliveryRestrictions](#cfn-mediapackage-originendpoint-hlsmanifest-adsondeliveryrestrictions): String
  [AdTriggers](#cfn-mediapackage-originendpoint-hlsmanifest-adtriggers): 
    - String
  [Id](#cfn-mediapackage-originendpoint-hlsmanifest-id): String
  [IncludeIframeOnlyStream](#cfn-mediapackage-originendpoint-hlsmanifest-includeiframeonlystream): Boolean
  [ManifestName](#cfn-mediapackage-originendpoint-hlsmanifest-manifestname): String
  [PlaylistType](#cfn-mediapackage-originendpoint-hlsmanifest-playlisttype): String
  [PlaylistWindowSeconds](#cfn-mediapackage-originendpoint-hlsmanifest-playlistwindowseconds): Integer
  [ProgramDateTimeIntervalSeconds](#cfn-mediapackage-originendpoint-hlsmanifest-programdatetimeintervalseconds): Integer
  [Url](#cfn-mediapackage-originendpoint-hlsmanifest-url): String
```

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

`AdMarkers`  <a name="cfn-mediapackage-originendpoint-hlsmanifest-admarkers"></a>
Controls how ad markers are included in the packaged endpoint.  
Valid values:  
+ `NONE` - Omits all SCTE-35 ad markers from the output.
+ `PASSTHROUGH` - Creates a copy in the output of the SCTE-35 ad markers (comments) taken directly from the input manifest.
+ `SCTE35_ENHANCED` - Generates ad markers and blackout tags in the output based on the SCTE-35 messages from the input manifest.
*Required*: No  
*Type*: String  
*Allowed values*: `NONE | SCTE35_ENHANCED | PASSTHROUGH | DATERANGE`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`AdsOnDeliveryRestrictions`  <a name="cfn-mediapackage-originendpoint-hlsmanifest-adsondeliveryrestrictions"></a>
The flags on SCTE-35 segmentation descriptors that have to be present for AWS Elemental MediaPackage to insert ad markers in the output manifest. For information about SCTE-35 in AWS Elemental MediaPackage, see [SCTE-35 Message Options in AWS Elemental MediaPackage](https://docs.aws.amazon.com/mediapackage/latest/ug/scte.html).   
*Required*: No  
*Type*: String  
*Allowed values*: `NONE | RESTRICTED | UNRESTRICTED | BOTH`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`AdTriggers`  <a name="cfn-mediapackage-originendpoint-hlsmanifest-adtriggers"></a>
Specifies the SCTE-35 message types that AWS Elemental MediaPackage treats as ad markers in the output manifest.  
Valid values:  
+  `BREAK` 
+  `DISTRIBUTOR_ADVERTISEMENT` 
+  `DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY` 
+  `DISTRIBUTOR_PLACEMENT_OPPORTUNITY` 
+  `PROVIDER_ADVERTISEMENT` 
+  `PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY` 
+  `PROVIDER_PLACEMENT_OPPORTUNITY` 
+  `SPLICE_INSERT` 
*Required*: No  
*Type*: Array of String  
*Allowed values*: `SPLICE_INSERT | BREAK | PROVIDER_ADVERTISEMENT | DISTRIBUTOR_ADVERTISEMENT | PROVIDER_PLACEMENT_OPPORTUNITY | DISTRIBUTOR_PLACEMENT_OPPORTUNITY | PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY | DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Id`  <a name="cfn-mediapackage-originendpoint-hlsmanifest-id"></a>
The manifest ID is required and must be unique within the OriginEndpoint. The ID can't be changed after the endpoint is created.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`IncludeIframeOnlyStream`  <a name="cfn-mediapackage-originendpoint-hlsmanifest-includeiframeonlystream"></a>
Applies to stream sets with a single video track only. When true, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ManifestName`  <a name="cfn-mediapackage-originendpoint-hlsmanifest-manifestname"></a>
A short string that's appended to the end of the endpoint URL to create a unique path to this endpoint. The manifestName on the HLSManifest object overrides the manifestName that you provided on the originEndpoint object.  
*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)

`PlaylistType`  <a name="cfn-mediapackage-originendpoint-hlsmanifest-playlisttype"></a>
When specified as either `event` or `vod`, a corresponding `EXT-X-PLAYLIST-TYPE` entry is included in the media playlist. Indicates if the playlist is live-to-VOD content.   
*Required*: No  
*Type*: String  
*Allowed values*: `NONE | EVENT | VOD`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PlaylistWindowSeconds`  <a name="cfn-mediapackage-originendpoint-hlsmanifest-playlistwindowseconds"></a>
Time window (in seconds) contained in each parent manifest.  
*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)

`ProgramDateTimeIntervalSeconds`  <a name="cfn-mediapackage-originendpoint-hlsmanifest-programdatetimeintervalseconds"></a>
Inserts `EXT-X-PROGRAM-DATE-TIME `tags in the output manifest at the interval that you specify.  
Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.  
Omit this attribute or enter `0` to indicate that the `EXT-X-PROGRAM-DATE-TIME` tags are not included in the manifest.  
*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)

`Url`  <a name="cfn-mediapackage-originendpoint-hlsmanifest-url"></a>
The URL that's used to request this manifest from this endpoint.  
*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)

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

Parameters for Apple HLS packaging.

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

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

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

```
{
  "[AdMarkers](#cfn-mediapackage-originendpoint-hlspackage-admarkers)" : String,
  "[AdsOnDeliveryRestrictions](#cfn-mediapackage-originendpoint-hlspackage-adsondeliveryrestrictions)" : String,
  "[AdTriggers](#cfn-mediapackage-originendpoint-hlspackage-adtriggers)" : [ String, ... ],
  "[Encryption](#cfn-mediapackage-originendpoint-hlspackage-encryption)" : HlsEncryption,
  "[IncludeDvbSubtitles](#cfn-mediapackage-originendpoint-hlspackage-includedvbsubtitles)" : Boolean,
  "[IncludeIframeOnlyStream](#cfn-mediapackage-originendpoint-hlspackage-includeiframeonlystream)" : Boolean,
  "[PlaylistType](#cfn-mediapackage-originendpoint-hlspackage-playlisttype)" : String,
  "[PlaylistWindowSeconds](#cfn-mediapackage-originendpoint-hlspackage-playlistwindowseconds)" : Integer,
  "[ProgramDateTimeIntervalSeconds](#cfn-mediapackage-originendpoint-hlspackage-programdatetimeintervalseconds)" : Integer,
  "[SegmentDurationSeconds](#cfn-mediapackage-originendpoint-hlspackage-segmentdurationseconds)" : Integer,
  "[StreamSelection](#cfn-mediapackage-originendpoint-hlspackage-streamselection)" : StreamSelection,
  "[UseAudioRenditionGroup](#cfn-mediapackage-originendpoint-hlspackage-useaudiorenditiongroup)" : Boolean
}
```

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

```
  [AdMarkers](#cfn-mediapackage-originendpoint-hlspackage-admarkers): String
  [AdsOnDeliveryRestrictions](#cfn-mediapackage-originendpoint-hlspackage-adsondeliveryrestrictions): String
  [AdTriggers](#cfn-mediapackage-originendpoint-hlspackage-adtriggers): 
    - String
  [Encryption](#cfn-mediapackage-originendpoint-hlspackage-encryption): 
    HlsEncryption
  [IncludeDvbSubtitles](#cfn-mediapackage-originendpoint-hlspackage-includedvbsubtitles): Boolean
  [IncludeIframeOnlyStream](#cfn-mediapackage-originendpoint-hlspackage-includeiframeonlystream): Boolean
  [PlaylistType](#cfn-mediapackage-originendpoint-hlspackage-playlisttype): String
  [PlaylistWindowSeconds](#cfn-mediapackage-originendpoint-hlspackage-playlistwindowseconds): Integer
  [ProgramDateTimeIntervalSeconds](#cfn-mediapackage-originendpoint-hlspackage-programdatetimeintervalseconds): Integer
  [SegmentDurationSeconds](#cfn-mediapackage-originendpoint-hlspackage-segmentdurationseconds): Integer
  [StreamSelection](#cfn-mediapackage-originendpoint-hlspackage-streamselection): 
    StreamSelection
  [UseAudioRenditionGroup](#cfn-mediapackage-originendpoint-hlspackage-useaudiorenditiongroup): Boolean
```

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

`AdMarkers`  <a name="cfn-mediapackage-originendpoint-hlspackage-admarkers"></a>
Controls how ad markers are included in the packaged endpoint.  
Valid values:  
+ `NONE` - Omits all SCTE-35 ad markers from the output.
+ `PASSTHROUGH` - Creates a copy in the output of the SCTE-35 ad markers (comments) taken directly from the input manifest.
+ `SCTE35_ENHANCED` - Generates ad markers and blackout tags in the output based on the SCTE-35 messages from the input manifest.
*Required*: No  
*Type*: String  
*Allowed values*: `NONE | SCTE35_ENHANCED | PASSTHROUGH | DATERANGE`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`AdsOnDeliveryRestrictions`  <a name="cfn-mediapackage-originendpoint-hlspackage-adsondeliveryrestrictions"></a>
The flags on SCTE-35 segmentation descriptors that have to be present for AWS Elemental MediaPackage to insert ad markers in the output manifest. For information about SCTE-35 in AWS Elemental MediaPackage, see [SCTE-35 Message Options in AWS Elemental MediaPackage](https://docs.aws.amazon.com/mediapackage/latest/ug/scte.html).  
*Required*: No  
*Type*: String  
*Allowed values*: `NONE | RESTRICTED | UNRESTRICTED | BOTH`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`AdTriggers`  <a name="cfn-mediapackage-originendpoint-hlspackage-adtriggers"></a>
Specifies the SCTE-35 message types that AWS Elemental MediaPackage treats as ad markers in the output manifest.  
Valid values:  
+  `BREAK` 
+  `DISTRIBUTOR_ADVERTISEMENT` 
+  `DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY` 
+  `DISTRIBUTOR_PLACEMENT_OPPORTUNITY` 
+  `PROVIDER_ADVERTISEMENT` 
+  `PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY` 
+  `PROVIDER_PLACEMENT_OPPORTUNITY` 
+  `SPLICE_INSERT` 
*Required*: No  
*Type*: Array of String  
*Allowed values*: `SPLICE_INSERT | BREAK | PROVIDER_ADVERTISEMENT | DISTRIBUTOR_ADVERTISEMENT | PROVIDER_PLACEMENT_OPPORTUNITY | DISTRIBUTOR_PLACEMENT_OPPORTUNITY | PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY | DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

`IncludeDvbSubtitles`  <a name="cfn-mediapackage-originendpoint-hlspackage-includedvbsubtitles"></a>
When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`IncludeIframeOnlyStream`  <a name="cfn-mediapackage-originendpoint-hlspackage-includeiframeonlystream"></a>
Only applies to stream sets with a single video track. When true, the stream set includes an additional I-frame only stream, along with the other tracks. If false, this extra stream is not included.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PlaylistType`  <a name="cfn-mediapackage-originendpoint-hlspackage-playlisttype"></a>
When specified as either `event` or `vod`, a corresponding `EXT-X-PLAYLIST-TYPE` entry is included in the media playlist. Indicates if the playlist is live-to-VOD content.   
*Required*: No  
*Type*: String  
*Allowed values*: `NONE | EVENT | VOD`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PlaylistWindowSeconds`  <a name="cfn-mediapackage-originendpoint-hlspackage-playlistwindowseconds"></a>
Time window (in seconds) contained in each parent manifest.  
*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)

`ProgramDateTimeIntervalSeconds`  <a name="cfn-mediapackage-originendpoint-hlspackage-programdatetimeintervalseconds"></a>
Inserts `EXT-X-PROGRAM-DATE-TIME` tags in the output manifest at the interval that you specify.  
Irrespective of this parameter, if any ID3Timed metadata is in the HLS input, it is passed through to the HLS output.  
Omit this attribute or enter `0` to indicate that the `EXT-X-PROGRAM-DATE-TIME` tags are not included in the manifest.  
*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)

`SegmentDurationSeconds`  <a name="cfn-mediapackage-originendpoint-hlspackage-segmentdurationseconds"></a>
Duration (in seconds) of each fragment. Actual fragments are rounded to the nearest multiple of the source fragment 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)

`StreamSelection`  <a name="cfn-mediapackage-originendpoint-hlspackage-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)

`UseAudioRenditionGroup`  <a name="cfn-mediapackage-originendpoint-hlspackage-useaudiorenditiongroup"></a>
When true, AWS Elemental MediaPackage bundles all audio tracks in a rendition group. All other tracks in the stream can be used with any audio rendition from the group.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

Holds encryption information so that access to the content can be controlled by a DRM solution.

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

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

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

```
{
  "[SpekeKeyProvider](#cfn-mediapackage-originendpoint-mssencryption-spekekeyprovider)" : SpekeKeyProvider
}
```

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

```
  [SpekeKeyProvider](#cfn-mediapackage-originendpoint-mssencryption-spekekeyprovider): 
    SpekeKeyProvider
```

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

`SpekeKeyProvider`  <a name="cfn-mediapackage-originendpoint-mssencryption-spekekeyprovider"></a>
Parameters for the SPEKE key provider.  
*Required*: Yes  
*Type*: [SpekeKeyProvider](aws-properties-mediapackage-originendpoint-spekekeyprovider.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

Parameters for Microsoft Smooth Streaming packaging.

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

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

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

```
{
  "[Encryption](#cfn-mediapackage-originendpoint-msspackage-encryption)" : MssEncryption,
  "[ManifestWindowSeconds](#cfn-mediapackage-originendpoint-msspackage-manifestwindowseconds)" : Integer,
  "[SegmentDurationSeconds](#cfn-mediapackage-originendpoint-msspackage-segmentdurationseconds)" : Integer,
  "[StreamSelection](#cfn-mediapackage-originendpoint-msspackage-streamselection)" : StreamSelection
}
```

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

```
  [Encryption](#cfn-mediapackage-originendpoint-msspackage-encryption): 
    MssEncryption
  [ManifestWindowSeconds](#cfn-mediapackage-originendpoint-msspackage-manifestwindowseconds): Integer
  [SegmentDurationSeconds](#cfn-mediapackage-originendpoint-msspackage-segmentdurationseconds): Integer
  [StreamSelection](#cfn-mediapackage-originendpoint-msspackage-streamselection): 
    StreamSelection
```

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

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

`ManifestWindowSeconds`  <a name="cfn-mediapackage-originendpoint-msspackage-manifestwindowseconds"></a>
Time window (in seconds) contained in each manifest.  
*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)

`SegmentDurationSeconds`  <a name="cfn-mediapackage-originendpoint-msspackage-segmentdurationseconds"></a>
Duration (in seconds) of each fragment. Actual fragments are rounded to the nearest multiple of the source fragment 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)

`StreamSelection`  <a name="cfn-mediapackage-originendpoint-msspackage-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)

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

Key provider settings for DRM.

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

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

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

```
{
  "[CertificateArn](#cfn-mediapackage-originendpoint-spekekeyprovider-certificatearn)" : String,
  "[EncryptionContractConfiguration](#cfn-mediapackage-originendpoint-spekekeyprovider-encryptioncontractconfiguration)" : EncryptionContractConfiguration,
  "[ResourceId](#cfn-mediapackage-originendpoint-spekekeyprovider-resourceid)" : String,
  "[RoleArn](#cfn-mediapackage-originendpoint-spekekeyprovider-rolearn)" : String,
  "[SystemIds](#cfn-mediapackage-originendpoint-spekekeyprovider-systemids)" : [ String, ... ],
  "[Url](#cfn-mediapackage-originendpoint-spekekeyprovider-url)" : String
}
```

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

```
  [CertificateArn](#cfn-mediapackage-originendpoint-spekekeyprovider-certificatearn): String
  [EncryptionContractConfiguration](#cfn-mediapackage-originendpoint-spekekeyprovider-encryptioncontractconfiguration): 
    EncryptionContractConfiguration
  [ResourceId](#cfn-mediapackage-originendpoint-spekekeyprovider-resourceid): String
  [RoleArn](#cfn-mediapackage-originendpoint-spekekeyprovider-rolearn): String
  [SystemIds](#cfn-mediapackage-originendpoint-spekekeyprovider-systemids): 
    - String
  [Url](#cfn-mediapackage-originendpoint-spekekeyprovider-url): String
```

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

`CertificateArn`  <a name="cfn-mediapackage-originendpoint-spekekeyprovider-certificatearn"></a>
The Amazon Resource Name (ARN) for the certificate that you imported to AWS Certificate Manager to add content key encryption to this endpoint. For this feature to work, your DRM key provider must support content key encryption.  
*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)

`EncryptionContractConfiguration`  <a name="cfn-mediapackage-originendpoint-spekekeyprovider-encryptioncontractconfiguration"></a>
Use `encryptionContractConfiguration` to configure one or more content encryption keys for your endpoints that use SPEKE Version 2.0. The encryption contract defines which content keys are used to encrypt the audio and video tracks in your stream. To configure the encryption contract, specify which audio and video encryption presets to use.  
*Required*: No  
*Type*: [EncryptionContractConfiguration](aws-properties-mediapackage-originendpoint-encryptioncontractconfiguration.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ResourceId`  <a name="cfn-mediapackage-originendpoint-spekekeyprovider-resourceid"></a>
Unique identifier for this endpoint, as it is configured in the key provider service.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RoleArn`  <a name="cfn-mediapackage-originendpoint-spekekeyprovider-rolearn"></a>
The ARN for the IAM role that's granted by the key provider to provide access to the key provider API. This role must have a trust policy that allows AWS Elemental MediaPackage to assume the role, and it must have a sufficient permissions policy to allow access to the specific key retrieval URL. Valid format: arn:aws:iam::\$1accountID\$1:role/\$1name\$1   
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`SystemIds`  <a name="cfn-mediapackage-originendpoint-spekekeyprovider-systemids"></a>
List of unique identifiers for the DRM systems to use, as defined in the CPIX specification.  
*Required*: Yes  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Url`  <a name="cfn-mediapackage-originendpoint-spekekeyprovider-url"></a>
URL for the key provider’s key retrieval API endpoint. Must start with https://.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

Limitations for outputs from the endpoint, based on the video bitrate.

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

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

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

```
{
  "[MaxVideoBitsPerSecond](#cfn-mediapackage-originendpoint-streamselection-maxvideobitspersecond)" : Integer,
  "[MinVideoBitsPerSecond](#cfn-mediapackage-originendpoint-streamselection-minvideobitspersecond)" : Integer,
  "[StreamOrder](#cfn-mediapackage-originendpoint-streamselection-streamorder)" : String
}
```

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

```
  [MaxVideoBitsPerSecond](#cfn-mediapackage-originendpoint-streamselection-maxvideobitspersecond): Integer
  [MinVideoBitsPerSecond](#cfn-mediapackage-originendpoint-streamselection-minvideobitspersecond): Integer
  [StreamOrder](#cfn-mediapackage-originendpoint-streamselection-streamorder): String
```

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

`MaxVideoBitsPerSecond`  <a name="cfn-mediapackage-originendpoint-streamselection-maxvideobitspersecond"></a>
The upper limit of the bitrates that this endpoint serves. If the video track exceeds this threshold, then AWS Elemental MediaPackage excludes it from output. If you don't specify a value, it defaults to 2147483647 bits per second.   
*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)

`MinVideoBitsPerSecond`  <a name="cfn-mediapackage-originendpoint-streamselection-minvideobitspersecond"></a>
The lower limit of the bitrates that this endpoint serves. If the video track is below this threshold, then AWS Elemental MediaPackage excludes it from output. If you don't specify a value, it defaults to 0 bits per second.   
*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)

`StreamOrder`  <a name="cfn-mediapackage-originendpoint-streamselection-streamorder"></a>
Order in which the different video bitrates are presented to the player.  
Valid values: `ORIGINAL`, `VIDEO_BITRATE_ASCENDING`, `VIDEO_BITRATE_DESCENDING`.  
*Required*: No  
*Type*: String  
*Allowed values*: `ORIGINAL | VIDEO_BITRATE_ASCENDING | VIDEO_BITRATE_DESCENDING`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

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

<a name="aws-properties-mediapackage-originendpoint-tag-description"></a>The `Tag` property type specifies Property description not available. for an [AWS::MediaPackage::OriginEndpoint](aws-resource-mediapackage-originendpoint.md).

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

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

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

```
{
  "[Key](#cfn-mediapackage-originendpoint-tag-key)" : String,
  "[Value](#cfn-mediapackage-originendpoint-tag-value)" : String
}
```

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

```
  [Key](#cfn-mediapackage-originendpoint-tag-key): String
  [Value](#cfn-mediapackage-originendpoint-tag-value): String
```

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

`Key`  <a name="cfn-mediapackage-originendpoint-tag-key"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-mediapackage-originendpoint-tag-value"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)