# ClusterLoggingTypes

EKS cluster logging types.

- Source: [`aws-eks-v2/lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-eks-v2/lib/cluster.ts#L882)
- Type last changed: v2.240.0 · 23 Feb 2026

## Example

TypeScript:

```ts
const cluster = new eks.Cluster(this, 'Cluster', {
  // ...
  version: eks.KubernetesVersion.V1_37,
  clusterLogging: [
    eks.ClusterLoggingTypes.API,
    eks.ClusterLoggingTypes.AUTHENTICATOR,
    eks.ClusterLoggingTypes.SCHEDULER,
  ],
});
```

Python:

```python
cluster = eks.Cluster(self, "Cluster",
    # ...
    version=eks.KubernetesVersion.V1_37,
    cluster_logging=[eks.ClusterLoggingTypes.API, eks.ClusterLoggingTypes.AUTHENTICATOR, eks.ClusterLoggingTypes.SCHEDULER
    ]
)
```

Java:

```java
Cluster cluster = Cluster.Builder.create(this, "Cluster")
        // ...
        .version(KubernetesVersion.V1_37)
        .clusterLogging(List.of(ClusterLoggingTypes.API, ClusterLoggingTypes.AUTHENTICATOR, ClusterLoggingTypes.SCHEDULER))
        .build();
```

C# / .NET:

```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 }
});
```

Golang:

```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

| Member | Description |
| --- | --- |
| `API` | Logs pertaining to API requests to the cluster. |
| `AUDIT` | Logs pertaining to cluster access via the Kubernetes API. |
| `AUTHENTICATOR` | Logs pertaining to authentication requests into the cluster. |
| `CONTROLLER_MANAGER` | Logs pertaining to state of cluster controllers. |
| `SCHEDULER` | Logs pertaining to scheduling decisions. |

## Referenced by

- [`ClusterCommonOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks_v2.ClusterCommonOptions.html).clusterLogging
