Interface LoggingConfiguration

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
LoggingConfiguration.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.723Z") @Stability(Stable) public interface LoggingConfiguration extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.cloudfront.*;
 import software.amazon.awscdk.services.s3.*;
 Bucket bucket;
 LoggingConfiguration loggingConfiguration = LoggingConfiguration.builder()
         .bucket(bucket)
         .includeCookies(false)
         .prefix("prefix")
         .build();
 
  • Method Details

    • getBucket

      @Stability(Stable) @Nullable default IBucket getBucket()
      Bucket to log requests to.

      Default: - A logging bucket is automatically created.

    • getIncludeCookies

      @Stability(Stable) @Nullable default Boolean getIncludeCookies()
      Whether to include the cookies in the logs.

      Default: false

    • getPrefix

      @Stability(Stable) @Nullable default String getPrefix()
      Where in the bucket to store logs.

      Default: - No prefix.

    • builder

      @Stability(Stable) static LoggingConfiguration.Builder builder()
      Returns:
      a LoggingConfiguration.Builder of LoggingConfiguration