Interface CloudWatchLoggingOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CloudWatchLoggingOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-10-08T17:00:25.137Z")
@Stability(Experimental)
public interface CloudWatchLoggingOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) Options for CloudWatch logging.
Example:
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.redshift.alpha.ClusterLogging;
import software.amazon.awscdk.services.redshift.alpha.LogExport;
IVpc vpc;
Cluster cluster = Cluster.Builder.create(this, "Redshift")
.masterUser(Login.builder()
.masterUsername("admin")
.build())
.vpc(vpc)
.logging(ClusterLogging.cloudWatch(CloudWatchLoggingOptions.builder()
.logExports(List.of(LogExport.CONNECTION_LOG, LogExport.USER_LOG))
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCloudWatchLoggingOptionsstatic final classAn implementation forCloudWatchLoggingOptions -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLogExports
(experimental) The types of logs to export.Default: - [LogExport.CONNECTION_LOG, LogExport.USER_LOG, LogExport.USER_ACTIVITY_LOG]
-
builder
- Returns:
- a
CloudWatchLoggingOptions.BuilderofCloudWatchLoggingOptions
-