Class ClusterLogging

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.redshift.alpha.ClusterLogging
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-10-08T17:00:25.139Z") @Stability(Experimental) public abstract class ClusterLogging extends software.amazon.jsii.JsiiObject
(experimental) The logging configuration for a Redshift cluster.

Example:

 import software.amazon.awscdk.services.ec2.*;
 import software.amazon.awscdk.services.s3.*;
 import software.amazon.awscdk.services.redshift.alpha.ClusterLogging;
 IVpc vpc;
 IBucket bucket;
 Cluster cluster = Cluster.Builder.create(this, "Redshift")
         .masterUser(Login.builder()
                 .masterUsername("admin")
                 .build())
         .vpc(vpc)
         .logging(ClusterLogging.s3(S3LoggingOptions.builder()
                 .bucket(bucket)
                 .keyPrefix("redshift-logs/")
                 .build()))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    ClusterLogging(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ClusterLogging(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (experimental) Send logs to CloudWatch.
    (experimental) Send logs to CloudWatch.
    (experimental) Send logs to S3.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • ClusterLogging

      protected ClusterLogging(software.amazon.jsii.JsiiObjectRef objRef)
    • ClusterLogging

      protected ClusterLogging(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ClusterLogging

      @Stability(Experimental) protected ClusterLogging()
  • Method Details

    • cloudWatch

      @Stability(Experimental) @NotNull public static ClusterLogging cloudWatch(@Nullable CloudWatchLoggingOptions options)
      (experimental) Send logs to CloudWatch.

      Parameters:
      options -
    • cloudWatch

      @Stability(Experimental) @NotNull public static ClusterLogging cloudWatch()
      (experimental) Send logs to CloudWatch.
    • s3

      @Stability(Experimental) @NotNull public static ClusterLogging s3(@NotNull S3LoggingOptions options)
      (experimental) Send logs to S3.

      Parameters:
      options - This parameter is required.