interface LoggingProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EKS.CfnCluster.LoggingProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseks#CfnCluster_LoggingProperty |
Java | software.amazon.awscdk.services.eks.CfnCluster.LoggingProperty |
Python | aws_cdk.aws_eks.CfnCluster.LoggingProperty |
TypeScript | aws-cdk-lib » aws_eks » CfnCluster » LoggingProperty |
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 { aws_eks as eks } from 'aws-cdk-lib';
const loggingProperty: eks.CfnCluster.LoggingProperty = {
clusterLogging: {
enabledTypes: [{
type: 'type',
}],
},
};
Properties
Name | Type | Description |
---|---|---|
cluster | IResolvable | Cluster | The cluster control plane logging configuration for your cluster. |
clusterLogging?
Type:
IResolvable
|
Cluster
(optional)
The cluster control plane logging configuration for your cluster.