Interface CfnLoadBalancer.AccessLoggingPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLoadBalancer.AccessLoggingPolicyProperty.Jsii$Proxy
- Enclosing class:
- CfnLoadBalancer
@Stability(Stable)
public static interface CfnLoadBalancer.AccessLoggingPolicyProperty
extends software.amazon.jsii.JsiiSerializable
Specifies where and how access logs are stored for your Classic Load Balancer.
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.elasticloadbalancing.*; AccessLoggingPolicyProperty accessLoggingPolicyProperty = AccessLoggingPolicyProperty.builder() .enabled(false) .s3BucketName("s3BucketName") // the properties below are optional .emitInterval(123) .s3BucketPrefix("s3BucketPrefix") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLoadBalancer.AccessLoggingPolicyProperty
static final class
An implementation forCfnLoadBalancer.AccessLoggingPolicyProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Number
The interval for publishing the access logs.Specifies whether access logs are enabled for the load balancer.The name of the Amazon S3 bucket where the access logs are stored.default String
The logical hierarchy you created for your Amazon S3 bucket, for examplemy-bucket-prefix/prod
.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEnabled
Specifies whether access logs are enabled for the load balancer. -
getS3BucketName
The name of the Amazon S3 bucket where the access logs are stored. -
getEmitInterval
The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.Default: 60 minutes
-
getS3BucketPrefix
The logical hierarchy you created for your Amazon S3 bucket, for examplemy-bucket-prefix/prod
.If the prefix is not provided, the log is placed at the root level of the bucket.
-
builder
-