

# AwsCloudFrontDistributionLogging
<a name="API_AwsCloudFrontDistributionLogging"></a>

A complex type that controls whether access logs are written for the CloudFront distribution.

## Contents
<a name="API_AwsCloudFrontDistributionLogging_Contents"></a>

 ** Bucket **   <a name="securityhub-Type-AwsCloudFrontDistributionLogging-Bucket"></a>
The S3 bucket to store the access logs in.  
Type: String  
Pattern: `.*\S.*`   
Required: No

 ** Enabled **   <a name="securityhub-Type-AwsCloudFrontDistributionLogging-Enabled"></a>
With this field, you can enable or disable the selected distribution.  
Type: Boolean  
Required: No

 ** IncludeCookies **   <a name="securityhub-Type-AwsCloudFrontDistributionLogging-IncludeCookies"></a>
Specifies whether you want CloudFront to include cookies in access logs.  
Type: Boolean  
Required: No

 ** Prefix **   <a name="securityhub-Type-AwsCloudFrontDistributionLogging-Prefix"></a>
An optional string that you want CloudFront to use as a prefix to the access log filenames for this distribution.  
Type: String  
Pattern: `.*\S.*`   
Required: No

## See Also
<a name="API_AwsCloudFrontDistributionLogging_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/securityhub-2018-10-26/AwsCloudFrontDistributionLogging) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/securityhub-2018-10-26/AwsCloudFrontDistributionLogging) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/securityhub-2018-10-26/AwsCloudFrontDistributionLogging) 