Class CfnCluster.LoggingProperty
Enable or disable exporting the Kubernetes control plane logs for your cluster to CloudWatch Logs.
Inheritance
System.Object
CfnCluster.LoggingProperty
Implements
Namespace: Amazon.CDK.AWS.EKS.Legacy
Assembly: Amazon.CDK.AWS.EKS.Legacy.dll
Syntax (csharp)
public class LoggingProperty : Object, CfnCluster.ILoggingProperty
Syntax (vb)
Public Class LoggingProperty
Inherits Object
Implements CfnCluster.ILoggingProperty
Remarks
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 .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS.Legacy;
var loggingProperty = new LoggingProperty {
ClusterLogging = new ClusterLoggingProperty {
EnabledTypes = new [] { new LoggingTypeConfigProperty {
Type = "type"
} }
}
};
Synopsis
Constructors
LoggingProperty() |
Properties
ClusterLogging | The cluster control plane logging configuration for your cluster. |
Constructors
LoggingProperty()
public LoggingProperty()
Properties
ClusterLogging
The cluster control plane logging configuration for your cluster.
public object ClusterLogging { get; set; }
Property Value
System.Object