Class CfnLoadBalancer.AccessLoggingPolicyProperty
Specifies where and how access logs are stored for your Classic Load Balancer.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancing
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AccessLoggingPolicyProperty : Object, CfnLoadBalancer.IAccessLoggingPolicyProperty
Syntax (vb)
Public Class AccessLoggingPolicyProperty
Inherits Object
Implements CfnLoadBalancer.IAccessLoggingPolicyProperty
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.ElasticLoadBalancing;
var accessLoggingPolicyProperty = new AccessLoggingPolicyProperty {
Enabled = false,
S3BucketName = "s3BucketName",
// the properties below are optional
EmitInterval = 123,
S3BucketPrefix = "s3BucketPrefix"
};
Synopsis
Constructors
AccessLoggingPolicyProperty() |
Properties
EmitInterval | The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes. |
Enabled | Specifies whether access logs are enabled for the load balancer. |
S3BucketName | The name of the Amazon S3 bucket where the access logs are stored. |
S3BucketPrefix | The logical hierarchy you created for your Amazon S3 bucket, for example |
Constructors
AccessLoggingPolicyProperty()
public AccessLoggingPolicyProperty()
Properties
EmitInterval
The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
public Nullable<double> EmitInterval { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Enabled
Specifies whether access logs are enabled for the load balancer.
public object Enabled { get; set; }
Property Value
System.Object
Remarks
S3BucketName
The name of the Amazon S3 bucket where the access logs are stored.
public string S3BucketName { get; set; }
Property Value
System.String
Remarks
S3BucketPrefix
The logical hierarchy you created for your Amazon S3 bucket, for example my-bucket-prefix/prod
.
public string S3BucketPrefix { get; set; }
Property Value
System.String
Remarks
If the prefix is not provided, the log is placed at the root level of the bucket.