| Did this page help you? Yes No Tell us about it... |
The StreamingDistributionConfig complex type describes a streaming
distribution's configuration information. For more information about streaming
distributions, go to Working
with Distributions and Streaming Media
Files in the Amazon CloudFront Developer Guide.
Usage:
POST Streaming Distribution (see request parameter)
PUT Streaming Distribution Config (see request parameter)
GET Streaming Distribution (see response element)
GET Streaming Distribution Config (see response element)
<StreamingDistributionConfig xmlns="http://cloudfront.amazonaws.com/doc/2010-11-01/">
<S3Origin>
<DNSName>dns name</DNSName>
</S3Origin>
<CallerReference>ref</CallerReference>
<CNAME>name;</CNAME>
<CNAME>canonical name;/CNAME>
<Comment>The comment.</Comment>
<Enabled>true or false</Enabled>
<Enabled>true or false</Enabled>
<Logging>
<Bucket>mylogs.s3.amazonaws.com</Bucket>
<Prefix/>
</Logging>
</StreamingDistributionConfig>The following table describes the child elements in the
StreamingDistributionConfig datatype. They're presented in the order
they appear in the configuration.
| Name | Description | Required |
|---|---|---|
|
|
S3 Origin information to associate with the distribution. Type: Complex Default: None S3Origin Children: see S3Origin Child Elements |
Yes |
|
|
A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the
If the CallerReference is a value you already sent in a
previous request to create a streaming distribution, and the content
of the If the CallerReference is a value you already sent in a
previous request to create a streaming distribution but the content
of the Type: String Constraints: Allowable characters are any Unicode code points that are legal in an XML 1.0 document. The UTF-8 encoding of the value must be less than 128 bytes. Default: None |
Yes |
|
|
A CNAME alias you want to associate with this streaming distribution. You can have up to 10 CNAME aliases per streaming distribution. For more information, go to Using CNAMEs in the Amazon CloudFront Developer Guide. Only include a Type: String Valid Value: The CNAME alias Default: None |
No |
|
|
Any comments you want to include about the streaming distribution. Type: String Constraints: Maximum 128 characters Default: None |
No |
|
|
Whether the streaming distribution is enabled to accept end user requests for content. Type: Boolean Valid Values: Default: None |
Yes |
|
|
A complex type that controls whether access logs are written for the streaming distribution. If you want to turn on access logs, include this element; if you want to turn off access logs, remove this element. For more information, go to Access Logs in the Amazon CloudFront Developer Guide. Type: Complex type Children: Default: None |
No |
|
|
A complex type that specifies any AWS accounts you want to permit to create signed URLs for private content. If you want the distribution to use signed URLs, include this element; if you want the distribution to use basic URLs, remove this element. For more information, go to Serving Private Content in the Amazon CloudFront Developer Guide. Type: Complex type Children: Default: None |
No |
The following table describes the child elements of the S3Origin element.
| Name | Description | Required |
|---|---|---|
|
|
The DNS name of your Amazon S3 bucket to associate with the distribution. For example:
Type: String Default: None Constraints: Maximum 128 characters |
Yes |
|
|
The CloudFront origin access identity to associate with the streaming distribution. If you want the distribution to serve private content, include this element; if you want the streaming distribution to serve public content, remove this element. For more information, go to Serving Private Content in the Amazon CloudFront Developer Guide. Type: String Default: None Constraints: Must be in format |
Optional |
The following table describes the child elements of the Logging element.
| Name | Description | Required |
|---|---|---|
|
|
The Amazon S3 bucket to store the access logs in. For example:
Type: String Constraints: Maximum 128 characters Default: None |
Yes |
|
|
An optional string of your choice to prefix to the access log
filenames for this distribution. For example:
If you decide not to use a prefix, you must still include the empty
Type: String Constraints: Maximum 256 characters; the string must not start with a slash ( / ). Default: None |
No |
Example without CNAMEs
The following example configuration is for a streaming distribution with no CNAMEs.
<StreamingDistributionConfig xmlns="http://cloudfront.amazonaws.com/doc/2010-11-01/">
<S3Origin>
<DNSName>mystreamingbucket.s3.amazonaws.com</DNSName>
</S3Origin>
<CallerReference>20091130090000</CallerReference>
<Comment>My comments</Comment>
<Enabled>true</Enabled>
</StreamingDistributionConfig>Example with CNAMEs
The following configuration is for a streaming distribution with two CNAMEs and with logging enabled.
<StreamingDistributionConfig xmlns="http://cloudfront.amazonaws.com/doc/2010-11-01/">
<S3Origin>
<DNSName>mystreamingbucket.s3.amazonaws.com</DNSName>
</S3Origin>
<CallerReference>20091130090000</CallerReference>
<CNAME>beagles.com</CNAME>
<CNAME>beagles.dogs.com</CNAME>
<Comment>My comments</Comment>
<Enabled>true</Enabled>
<Enabled>true</Enabled>
<Logging>
<Bucket>mylogs.s3.amazonaws.com</Bucket>
<Prefix>myprefix/</Prefix>
</Logging>
</StreamingDistributionConfig>