Class: AWSCDK::EKS::CfnCluster::BlockStorageProperty

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

Overview

Indicates the current configuration of the block storage capability on your EKS Auto Mode cluster.

For example, if the capability is enabled or disabled. If the block storage capability is enabled, EKS Auto Mode will create and delete EBS volumes in your AWS account. For more information, see EKS Auto Mode block storage capability in the Amazon EKS User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil) ⇒ BlockStorageProperty

Returns a new instance of BlockStorageProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates if the block storage capability is enabled on your EKS Auto Mode cluster.



915
916
917
918
# File 'eks/cfn_cluster.rb', line 915

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

Instance Attribute Details

#enabledBoolean, ... (readonly)

Indicates if the block storage capability is enabled on your EKS Auto Mode cluster.

If the block storage capability is enabled, EKS Auto Mode will create and delete EBS volumes in your AWS account.



926
927
928
# File 'eks/cfn_cluster.rb', line 926

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



928
929
930
931
932
# File 'eks/cfn_cluster.rb', line 928

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

Instance Method Details

#to_jsiiObject



934
935
936
937
938
939
940
# File 'eks/cfn_cluster.rb', line 934

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