Skip to content
v2.278.0

ClusterLoggingTypes Enum ​

EKS cluster logging types.

Example ​

ts
const cluster = new eks.Cluster(this, 'Cluster', {
  // ...
  version: eks.KubernetesVersion.V1_37,
  clusterLogging: [
    eks.ClusterLoggingTypes.API,
    eks.ClusterLoggingTypes.AUTHENTICATOR,
    eks.ClusterLoggingTypes.SCHEDULER,
  ],
});
python
cluster = eks.Cluster(self, "Cluster",
    # ...
    version=eks.KubernetesVersion.V1_37,
    cluster_logging=[eks.ClusterLoggingTypes.API, eks.ClusterLoggingTypes.AUTHENTICATOR, eks.ClusterLoggingTypes.SCHEDULER
    ]
)
java
Cluster cluster = Cluster.Builder.create(this, "Cluster")
        // ...
        .version(KubernetesVersion.V1_37)
        .clusterLogging(List.of(ClusterLoggingTypes.API, ClusterLoggingTypes.AUTHENTICATOR, ClusterLoggingTypes.SCHEDULER))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var cluster = new Cluster(this, "Cluster", new ClusterProps {
    // ...
    Version = KubernetesVersion.V1_37,
    ClusterLogging = new [] { ClusterLoggingTypes.API, ClusterLoggingTypes.AUTHENTICATOR, ClusterLoggingTypes.SCHEDULER }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
cluster := eks.NewCluster(this, jsii.String("Cluster"), &ClusterProps{
	// ...
	Version: eks.KubernetesVersion_V1_37(),
	ClusterLogging: []ClusterLoggingTypes{
		eks.ClusterLoggingTypes_API,
		eks.ClusterLoggingTypes_AUTHENTICATOR,
		eks.ClusterLoggingTypes_SCHEDULER,
	},
})

Members ​

MemberDescription
APILogs pertaining to API requests to the cluster.
AUDITLogs pertaining to cluster access via the Kubernetes API.
AUTHENTICATORLogs pertaining to authentication requests into the cluster.
CONTROLLER_MANAGERLogs pertaining to state of cluster controllers.
SCHEDULERLogs pertaining to scheduling decisions.

Referenced by ​