Interface CfnCluster.LoggingProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnCluster.LoggingProperty.Jsii$Proxy
Enclosing class:
CfnCluster

@Stability(Stable) public static interface CfnCluster.LoggingProperty extends software.amazon.jsii.JsiiSerializable
Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs.

By default, cluster control plane logs aren't exported to CloudWatch Logs. For more information, see Amazon EKS Cluster control plane logs in the Amazon EKS User Guide .

When updating a resource, you must include this Logging property if the previous CloudFormation template of the resource had it. > CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported control plane logs. For more information, see CloudWatch Pricing .

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.eks.legacy.*;
 LoggingProperty loggingProperty = LoggingProperty.builder()
         .clusterLogging(ClusterLoggingProperty.builder()
                 .enabledTypes(List.of(LoggingTypeConfigProperty.builder()
                         .type("type")
                         .build()))
                 .build())
         .build();