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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forLoggingConfiguration
static final class
An implementation forLoggingConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingConfiguration.Builder
builder()
default IBucket
Bucket to log requests to.default Boolean
Whether to include the cookies in the logs.default String
Where in the bucket to store logs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBucket
Bucket to log requests to.Default: - A logging bucket is automatically created.
-
getIncludeCookies
Whether to include the cookies in the logs.Default: false
-
getPrefix
Where in the bucket to store logs.Default: - No prefix.
-
builder
- Returns:
- a
LoggingConfiguration.Builder
ofLoggingConfiguration
-