# ClusterLoggingProperty

The cluster control plane logging configuration for your cluster.

> When updating a resource, you must include this `ClusterLogging` property if the previous CloudFormation template of the resource had it.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const clusterLoggingProperty: eks.CfnCluster.ClusterLoggingProperty = {
  enabledTypes: [{
    type: 'type',
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks as eks

cluster_logging_property = eks.CfnCluster.ClusterLoggingProperty(
    enabled_types=[eks.CfnCluster.LoggingTypeConfigProperty(
        type="type"
    )]
)
```

Java:

```java
// 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.*;

ClusterLoggingProperty clusterLoggingProperty = ClusterLoggingProperty.builder()
        .enabledTypes(List.of(LoggingTypeConfigProperty.builder()
                .type("type")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;

var clusterLoggingProperty = new ClusterLoggingProperty {
    EnabledTypes = new [] { new LoggingTypeConfigProperty {
        Type = "type"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

clusterLoggingProperty := &ClusterLoggingProperty{
	EnabledTypes: []interface{}{
		&LoggingTypeConfigProperty{
			Type: jsii.String("type"),
		},
	},
}
```

## Properties

- `enabledTypes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.LoggingTypeConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.CfnCluster.LoggingTypeConfigProperty.html)[] — The enabled control plane logs for your cluster. All log types are disabled if the array is empty.

  > When updating a resource, you must include this `EnabledTypes` property if the previous CloudFormation template of the resource had it.
