Interface CfnLoadBalancer.IAccessLoggingPolicyProperty
- Namespace
- Amazon.CDK.AWS.ElasticLoadBalancing
- Assembly
- Amazon.CDK.AWS.ElasticLoadBalancing.dll
Specifies where and how access logs are stored for your Classic Load Balancer.
public interface CfnLoadBalancer.IAccessLoggingPolicyProperty
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticLoadBalancing;
var accessLoggingPolicyProperty = new AccessLoggingPolicyProperty {
Enabled = false,
S3BucketName = "s3BucketName",
// the properties below are optional
EmitInterval = 123,
S3BucketPrefix = "s3BucketPrefix"
};
Remarks
ExampleMetadata: fixture=_generated
Properties
EmitInterval
The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
double? EmitInterval { get; }
Property Value
Remarks
Default: 60 minutes
Enabled
Specifies whether access logs are enabled for the load balancer.
object Enabled { get; }
Property Value
Remarks
S3BucketName
The name of the Amazon S3 bucket where the access logs are stored.
string S3BucketName { get; }
Property Value
Remarks
S3BucketPrefix
The logical hierarchy you created for your Amazon S3 bucket, for example my-bucket-prefix/prod
.
string? S3BucketPrefix { get; }
Property Value
Remarks
If the prefix is not provided, the log is placed at the root level of the bucket.