Class: AWSCDK::FSX::CfnFileSystem::DataReadCacheConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fsx/cfn_file_system.rb

Overview

The configuration for the optional provisioned SSD read cache on Amazon FSx for Lustre file systems that use the Intelligent-Tiering storage class.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(size_gib: nil, sizing_mode: nil) ⇒ DataReadCacheConfigurationProperty

Returns a new instance of DataReadCacheConfigurationProperty.

Parameters:

  • size_gib (Numeric, nil) (defaults to: nil)

    Required if SizingMode is set to USER_PROVISIONED .

  • sizing_mode (String, nil) (defaults to: nil)

    Specifies how the provisioned SSD read cache is sized, as follows:.



850
851
852
853
854
855
# File 'fsx/cfn_file_system.rb', line 850

def initialize(size_gib: nil, sizing_mode: nil)
  @size_gib = size_gib
  Jsii::Type.check_type(@size_gib, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "sizeGiB") unless @size_gib.nil?
  @sizing_mode = sizing_mode
  Jsii::Type.check_type(@sizing_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sizingMode") unless @sizing_mode.nil?
end

Instance Attribute Details

#size_gibNumeric? (readonly)

Required if SizingMode is set to USER_PROVISIONED .

Specifies the size of the file system's SSD read cache, in gibibytes (GiB).



863
864
865
# File 'fsx/cfn_file_system.rb', line 863

def size_gib
  @size_gib
end

#sizing_modeString? (readonly)

Specifies how the provisioned SSD read cache is sized, as follows:.

  • Set to NO_CACHE if you do not want to use an SSD read cache with your Intelligent-Tiering file system.
  • Set to USER_PROVISIONED to specify the exact size of your SSD read cache.
  • Set to PROPORTIONAL_TO_THROUGHPUT_CAPACITY to have your SSD read cache automatically sized based on your throughput capacity.


872
873
874
# File 'fsx/cfn_file_system.rb', line 872

def sizing_mode
  @sizing_mode
end

Class Method Details

.jsii_propertiesObject



874
875
876
877
878
879
# File 'fsx/cfn_file_system.rb', line 874

def self.jsii_properties
  {
    :size_gib => "sizeGiB",
    :sizing_mode => "sizingMode",
  }
end

Instance Method Details

#to_jsiiObject



881
882
883
884
885
886
887
888
# File 'fsx/cfn_file_system.rb', line 881

def to_jsii
  result = {}
  result.merge!({
    "sizeGiB" => @size_gib,
    "sizingMode" => @sizing_mode,
  })
  result.compact
end