AWS CloudFormation
User Guide (API Version 2010-05-15)
Did this page help you?  Yes | No |  Tell us about it...
« 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.

CloudFront Logging

Logging is a property of the DistributionConfig property that enables Amazon CloudFront to deliver access logs for each distribution to an Amazon Simple Storage Service (S3) bucket.

Syntax

{
  "Bucket" : String,
  "IncludeCookies" : Boolean,
  "Prefix" : String
}

Properties

Note

For more information about the constraints and valid values of each property, see the elements table in the DistributionConfig Complex Type topic in the Amazon CloudFront API Reference.

Bucket

The Amazon S3 bucket address where access logs are stored, for example, mybucket.s3.amazonaws.com.

Required: Yes

Type: String

IncludeCookies

Indicates whether CloudFront includes cookies in access logs.

Required: No

Type: Boolean

Prefix

A prefix for the access log file names for this distribution.

Required: No

Type: String

Template Examples

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