Menu
Amazon CloudFront
API Reference (API Version 2016-11-25)

CreateStreamingDistributionWithTags

Create a new streaming distribution with tags.

Request Syntax

POST /2016-11-25/streaming-distribution?WithTags HTTP/1.1
<?xml version="1.0" encoding="UTF-8"?>
<CreateStreamingDistributionWithTagsRequest>
   <StreamingDistributionConfigWithTags>
      <StreamingDistributionConfig>
         <Aliases>
            <Items>
               <CNAME>string</CNAME></Items>
            <Quantity>integer</Quantity>
         </Aliases>
         <CallerReference>string</CallerReference>
         <Comment>string</Comment>
         <Enabled>boolean</Enabled>
         <Logging>
            <Bucket>string</Bucket>
            <Enabled>boolean</Enabled>
            <Prefix>string</Prefix>
         </Logging>
         <PriceClass>string</PriceClass>
         <S3Origin>
            <DomainName>string</DomainName>
            <OriginAccessIdentity>string</OriginAccessIdentity>
         </S3Origin>
         <TrustedSigners>
            <Enabled>boolean</Enabled>
            <Items>
               <AwsAccountNumber>string</AwsAccountNumber></Items>
            <Quantity>integer</Quantity>
         </TrustedSigners>
      </StreamingDistributionConfig>
      <Tags>
         <Items>
            <Tag>
               <Key>string</Key>
               <Value>string</Value>
            </Tag></Items>
      </Tags>
   </StreamingDistributionConfigWithTags>
</CreateStreamingDistributionWithTagsRequest>

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request requires the following data in XML format.

CreateStreamingDistributionWithTagsRequest

Root level tag for the CreateStreamingDistributionWithTagsRequest parameters.

Required: Yes

StreamingDistributionConfigWithTags

The streaming distribution's configuration information.

Type: StreamingDistributionConfigWithTags object

Required: Yes

Response Syntax

HTTP/1.1 201
Location: Location
ETag: ETag
<?xml version="1.0" encoding="UTF-8"?>
<CreateStreamingDistributionWithTagsResult>
   <StreamingDistribution>
      <ActiveTrustedSigners>
         <Enabled>boolean</Enabled>
         <Items>
            <Signer>
               <AwsAccountNumber>string</AwsAccountNumber>
               <KeyPairIds>
                  <Items>
                     <KeyPairId>string</KeyPairId></Items>
                  <Quantity>integer</Quantity>
               </KeyPairIds>
            </Signer></Items>
         <Quantity>integer</Quantity>
      </ActiveTrustedSigners>
      <ARN>string</ARN>
      <DomainName>string</DomainName>
      <Id>string</Id>
      <LastModifiedTime>timestamp</LastModifiedTime>
      <Status>string</Status>
      <StreamingDistributionConfig>
         <Aliases>
            <Items>
               <CNAME>string</CNAME></Items>
            <Quantity>integer</Quantity>
         </Aliases>
         <CallerReference>string</CallerReference>
         <Comment>string</Comment>
         <Enabled>boolean</Enabled>
         <Logging>
            <Bucket>string</Bucket>
            <Enabled>boolean</Enabled>
            <Prefix>string</Prefix>
         </Logging>
         <PriceClass>string</PriceClass>
         <S3Origin>
            <DomainName>string</DomainName>
            <OriginAccessIdentity>string</OriginAccessIdentity>
         </S3Origin>
         <TrustedSigners>
            <Enabled>boolean</Enabled>
            <Items>
               <AwsAccountNumber>string</AwsAccountNumber></Items>
            <Quantity>integer</Quantity>
         </TrustedSigners>
      </StreamingDistributionConfig>
   </StreamingDistribution>
</CreateStreamingDistributionWithTagsResult>

Response Elements

If the action is successful, the service sends back an HTTP 201 response.

The response returns the following HTTP headers.

ETag
Location

The fully qualified URI of the new streaming distribution resource just created. For example: https://cloudfront.amazonaws.com/2010-11-01/streaming-distribution/EGTXBD79H29TRA8.

The following data is returned in XML format by the service.

CreateStreamingDistributionWithTagsResult

Root level tag for the CreateStreamingDistributionWithTagsResult parameters.

Required: Yes

StreamingDistribution

The streaming distribution's information.

Type: StreamingDistribution object

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDenied

Access denied.

HTTP Status Code: 403

CNAMEAlreadyExists

HTTP Status Code: 409

InconsistentQuantities

The value of Quantity and the size of Items do not match.

HTTP Status Code: 400

InvalidArgument

The argument is invalid.

HTTP Status Code: 400

InvalidOrigin

The Amazon S3 origin server specified does not refer to a valid Amazon S3 bucket.

HTTP Status Code: 400

InvalidOriginAccessIdentity

The origin access identity is not valid or doesn't exist.

HTTP Status Code: 400

InvalidTagging

HTTP Status Code: 400

MissingBody

This operation requires a body. Ensure that the body is present and the Content-Type header is set.

HTTP Status Code: 400

StreamingDistributionAlreadyExists

HTTP Status Code: 409

TooManyStreamingDistributionCNAMEs

HTTP Status Code: 400

TooManyStreamingDistributions

Processing your request would cause you to exceed the maximum number of streaming distributions allowed.

HTTP Status Code: 400

TooManyTrustedSigners

Your request contains more trusted signers than are allowed per distribution.

HTTP Status Code: 400

TrustedSignerDoesNotExist

One or more of your trusted signers do not exist.

HTTP Status Code: 400