Class: AWSCDK::EKS::CfnCluster::ClusterLoggingProperty

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

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled_types: nil) ⇒ ClusterLoggingProperty

Returns a new instance of ClusterLoggingProperty.

Parameters:



952
953
954
955
# File 'eks/cfn_cluster.rb', line 952

def initialize(enabled_types: nil)
  @enabled_types = enabled_types
  Jsii::Type.check_type(@enabled_types, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWtzLkNmbkNsdXN0ZXIuTG9nZ2luZ1R5cGVDb25maWdQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "enabledTypes") unless @enabled_types.nil?
end

Instance Attribute Details

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

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.



963
964
965
# File 'eks/cfn_cluster.rb', line 963

def enabled_types
  @enabled_types
end

Class Method Details

.jsii_propertiesObject



965
966
967
968
969
# File 'eks/cfn_cluster.rb', line 965

def self.jsii_properties
  {
    :enabled_types => "enabledTypes",
  }
end

Instance Method Details

#to_jsiiObject



971
972
973
974
975
976
977
# File 'eks/cfn_cluster.rb', line 971

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