aws-cdk-lib.aws_cloudfront.LoggingConfiguration

interface LoggingConfiguration

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.LoggingConfiguration
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#LoggingConfiguration
Javasoftware.amazon.awscdk.services.cloudfront.LoggingConfiguration
Pythonaws_cdk.aws_cloudfront.LoggingConfiguration
TypeScript (source)aws-cdk-lib » aws_cloudfront » LoggingConfiguration

Logging configuration for incoming requests.

Example

// 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

NameTypeDescription
bucket?IBucketBucket to log requests to.
includeCookies?booleanWhether to include the cookies in the logs.
prefix?stringWhere in the bucket to store logs.

bucket?

Type: IBucket (optional, default: A logging bucket is automatically created.)

Bucket to log requests to.


includeCookies?

Type: boolean (optional, default: false)

Whether to include the cookies in the logs.


prefix?

Type: string (optional, default: No prefix.)

Where in the bucket to store logs.