interface LoggingConfiguration
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.LoggingConfiguration |
![]() | software.amazon.awscdk.services.cloudfront.LoggingConfiguration |
![]() | aws_cdk.aws_cloudfront.LoggingConfiguration |
![]() | @aws-cdk/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 * as cloudfront from '@aws-cdk/aws-cloudfront';
import * as s3 from '@aws-cdk/aws-s3';
declare const bucket: s3.Bucket;
const loggingConfiguration: cloudfront.LoggingConfiguration = {
bucket: bucket,
includeCookies: false,
prefix: 'prefix',
};
Properties
Name | Type | Description |
---|---|---|
bucket? | IBucket | Bucket to log requests to. |
include | boolean | Whether to include the cookies in the logs. |
prefix? | string | Where 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.