LoggingConfiguration Struct
Logging configuration for incoming requests.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
import { aws_s3 as s3 } from 'aws-cdk-lib';
declare const bucket: s3.Bucket;
const loggingConfiguration: cloudfront.LoggingConfiguration = {
bucket: bucket,
includeCookies: false,
prefix: 'prefix',
};
Properties
bucketIBucketbucketIBucketbucketIBucketBucketIBucketBucketIBucket= A logging bucket is automaticall…#Bucket to log requests to.
default
Default: A logging bucket is automatically created.
includeCookiesbooleaninclude_cookiesboolincludeCookiesBooleanIncludeCookiesboolIncludeCookies*bool= false#Whether to include the cookies in the logs.
Where in the bucket to store logs.