LoggingConfiguration

class aws_cdk.aws_cloudfront.LoggingConfiguration(*, bucket=None, include_cookies=None, prefix=None)

Bases: object

Logging configuration for incoming requests.

Parameters:
  • bucket (Optional[IBucket]) – Bucket to log requests to. Default: - A logging bucket is automatically created.

  • include_cookies (Optional[bool]) – Whether to include the cookies in the logs. Default: false

  • prefix (Optional[str]) – Where in the bucket to store logs. Default: - No prefix.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_cloudfront as cloudfront
import aws_cdk.aws_s3 as s3

# bucket: s3.Bucket

logging_configuration = cloudfront.LoggingConfiguration(
    bucket=bucket,
    include_cookies=False,
    prefix="prefix"
)

Attributes

bucket

Bucket to log requests to.

Default:
  • A logging bucket is automatically created.

include_cookies

Whether to include the cookies in the logs.

Default:

false

prefix

Where in the bucket to store logs.

Default:
  • No prefix.