AWS CloudFormation
User Guide (API Version 2010-05-15)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

AWS::CloudFront::Distribution

Creates an Amazon CloudFront web distribution. For general information about CloudFront distributions, see the Introduction to Amazon CloudFront in the Amazon CloudFront Developer Guide. For specific information about creating CloudFront web distributions, see POST Distribution in the Amazon CloudFront API Reference.

Syntax

{
   "Type" : "AWS::CloudFront::Distribution",
   "Properties" : {
      "DistributionConfig" : DistributionConfig
   }
}
      

Properties

DistributionConfig

The distribution's configuration information.

Required: Yes

Type: DistributionConfig type

Update requires: Replacement

Return Values

Ref

Returns: The CloudFront distribution ID. For example: E27LVI50CSW06W.

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

Fn::GetAtt

Fn::GetAtt returns a value for a specified attribute of this type. This section lists the available attributes and corresponding return values.

DomainName

Returns: The domain name of the resource. For example: d2fadu0nynjpfn.cloudfront.net.

For more information about using Fn:GetAtt, see Fn::GetAtt.

Template Examples

To view AWS::CloudFront::Distribution snippets, see Amazon CloudFront Template Snippets.