Interface CfnLoadBalancer.AccessLoggingPolicyProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnLoadBalancer.AccessLoggingPolicyProperty extends
Specifies where and how access logs are stored for your Classic Load Balancer.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 AccessLoggingPolicyProperty accessLoggingPolicyProperty = AccessLoggingPolicyProperty.builder()
         // the properties below are optional
  • 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()
      a CfnLoadBalancer.AccessLoggingPolicyProperty.Builder of CfnLoadBalancer.AccessLoggingPolicyProperty