Class: AWSCDK::EKS::CfnCluster::LoggingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
eks/cfn_cluster.rb

Overview

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 .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cluster_logging: nil) ⇒ LoggingProperty

Returns a new instance of LoggingProperty.

Parameters:



1332
1333
1334
1335
# File 'eks/cfn_cluster.rb', line 1332

def initialize(cluster_logging: nil)
  @cluster_logging = cluster_logging.is_a?(Hash) ? ::AWSCDK::EKS::CfnCluster::ClusterLoggingProperty.new(**cluster_logging.transform_keys(&:to_sym)) : cluster_logging
  Jsii::Type.check_type(@cluster_logging, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19la3MuQ2ZuQ2x1c3Rlci5DbHVzdGVyTG9nZ2luZ1Byb3BlcnR5In1dfX0=")), "clusterLogging") unless @cluster_logging.nil?
end

Instance Attribute Details

#cluster_loggingAWSCDK::IResolvable, ... (readonly)

The cluster control plane logging configuration for your cluster.



1341
1342
1343
# File 'eks/cfn_cluster.rb', line 1341

def cluster_logging
  @cluster_logging
end

Class Method Details

.jsii_propertiesObject



1343
1344
1345
1346
1347
# File 'eks/cfn_cluster.rb', line 1343

def self.jsii_properties
  {
    :cluster_logging => "clusterLogging",
  }
end

Instance Method Details

#to_jsiiObject



1349
1350
1351
1352
1353
1354
1355
# File 'eks/cfn_cluster.rb', line 1349

def to_jsii
  result = {}
  result.merge!({
    "clusterLogging" => @cluster_logging,
  })
  result.compact
end