Class LoggingConfiguration
Logging configuration for incoming requests.
Inheritance
System.Object
LoggingConfiguration
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LoggingConfiguration : Object, ILoggingConfiguration
Syntax (vb)
Public Class LoggingConfiguration
Inherits Object
Implements ILoggingConfiguration
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
using Amazon.CDK.AWS.S3;
Bucket bucket;
var loggingConfiguration = new LoggingConfiguration {
Bucket = bucket,
IncludeCookies = false,
Prefix = "prefix"
};
Synopsis
Constructors
LoggingConfiguration() |
Properties
Bucket | Bucket to log requests to. |
IncludeCookies | Whether to include the cookies in the logs. |
Prefix | Where in the bucket to store logs. |
Constructors
LoggingConfiguration()
public LoggingConfiguration()
Properties
Bucket
Bucket to log requests to.
public IBucket Bucket { get; set; }
Property Value
Remarks
Default: - A logging bucket is automatically created.
IncludeCookies
Whether to include the cookies in the logs.
public Nullable<bool> IncludeCookies { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Prefix
Where in the bucket to store logs.
public string Prefix { get; set; }
Property Value
System.String
Remarks
Default: - No prefix.