Class: AWSCDK::FSX::CfnFileSystem::ReadCacheConfigurationProperty

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 OpenZFS 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) ⇒ ReadCacheConfigurationProperty

Returns a new instance of ReadCacheConfigurationProperty.

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:.



1732
1733
1734
1735
1736
1737
# File 'fsx/cfn_file_system.rb', line 1732

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).



1745
1746
1747
# File 'fsx/cfn_file_system.rb', line 1745

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.


1754
1755
1756
# File 'fsx/cfn_file_system.rb', line 1754

def sizing_mode
  @sizing_mode
end

Class Method Details

.jsii_propertiesObject



1756
1757
1758
1759
1760
1761
# File 'fsx/cfn_file_system.rb', line 1756

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

Instance Method Details

#to_jsiiObject



1763
1764
1765
1766
1767
1768
1769
1770
# File 'fsx/cfn_file_system.rb', line 1763

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