AWS CloudFormation
User Guide (Version )

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

AWS::CloudFront::StreamingDistribution

A streaming distribution tells CloudFront where you want RTMP content to be delivered from, and the details about how to track and manage content delivery.

Syntax

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

JSON

{ "Type" : "AWS::CloudFront::StreamingDistribution", "Properties" : { "StreamingDistributionConfig" : StreamingDistributionConfig, "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::CloudFront::StreamingDistribution Properties: StreamingDistributionConfig: StreamingDistributionConfig Tags: - Tag

Properties

StreamingDistributionConfig

The current configuration information for the RTMP distribution.

Required: Yes

Type: StreamingDistributionConfig

Update requires: No interruption

Tags

A complex type that contains zero or more Tag elements.

Required: Yes

Type: List of Tag

Update requires: No interruption

Return Values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the streaming distribution ID, such as E1E7FEN9T35R9W.

For more information about using the Ref function, see Ref.

Fn::GetAtt

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 Fn::GetAtt.

DomainName

The domain name of the resource, such as sct27g85mgx04.cloudfront.net.

Examples

Create a streaming distribution

The following example specifies a streaming distribution and assigns it a single tag.

JSON

{ "AWSTemplateFormatVersion": "2010-09-09", "Resources": { "streamingdistribution": { "Type": "AWS::CloudFront::StreamingDistribution", "Properties": { "StreamingDistributionConfig": { "Aliases": [ "string-values" ], "Comment": "string-value", "Enabled": "boolean-value", "Logging": { "Bucket": "string-value", "Enabled": "boolean-value", "Prefix": "string-value" }, "PriceClass": "string-value", "S3Origin": { "DomainName": "string-value", "OriginAccessIdentity": "string-value" }, "TrustedSigners": { "Enabled": "boolean-value", "AwsAccountNumbers": [ "string-values" ] } }, "Tags": [ { "Key": "string-value", "Value": "string-value" } ] } } } }

YAML

AWSTemplateFormatVersion: 2010-09-09 Resources: streamingdistribution: Type: AWS::CloudFront::StreamingDistribution Properties: StreamingDistributionConfig: Aliases: - string-values Comment: string-value Enabled: boolean-value Logging: Bucket: string-value Enabled: boolean-value Prefix: string-value PriceClass: string-value S3Origin: DomainName: string-value OriginAccessIdentity: string-value TrustedSigners: Enabled: boolean-value AwsAccountNumbers: - string-values Tags: - Key: string-value Value: string-value