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();
 
  • Method Details

    • getEnabled

      @Stability(Stable) @NotNull Object getEnabled()
      Specifies whether access logs are enabled for the load balancer.
    • getS3BucketName

      @Stability(Stable) @NotNull String getS3BucketName()
      The name of the Amazon S3 bucket where the access logs are stored.
    • getEmitInterval

      @Stability(Stable) @Nullable default Number getEmitInterval()
      The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.

      Default: 60 minutes

    • getS3BucketPrefix

      @Stability(Stable) @Nullable default String getS3BucketPrefix()
      The logical hierarchy you created for your Amazon S3 bucket, for example my-bucket-prefix/prod .

      If the prefix is not provided, the log is placed at the root level of the bucket.

    • builder

      @Stability(Stable) static CfnLoadBalancer.AccessLoggingPolicyProperty.Builder builder()
      Returns:
      a CfnLoadBalancer.AccessLoggingPolicyProperty.Builder of CfnLoadBalancer.AccessLoggingPolicyProperty