CloudFront Distribution 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
JSON
{ "
Bucket
" :String
, "IncludeCookies
" :Boolean
, "Prefix
" :String
}
YAML
Bucket
:String
IncludeCookies
:Boolean
Prefix
:String
Properties
Note
For more information about the constraints and valid values of each property, see the LoggingConfig data type 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