Class: AWSCDK::FSX::CfnFileSystem::DataReadCacheConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FSX::CfnFileSystem::DataReadCacheConfigurationProperty
- 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
-
#size_gib ⇒ Numeric?
readonly
Required if
SizingModeis set toUSER_PROVISIONED. -
#sizing_mode ⇒ String?
readonly
Specifies how the provisioned SSD read cache is sized, as follows:.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(size_gib: nil, sizing_mode: nil) ⇒ DataReadCacheConfigurationProperty
constructor
A new instance of DataReadCacheConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(size_gib: nil, sizing_mode: nil) ⇒ DataReadCacheConfigurationProperty
Returns a new instance of DataReadCacheConfigurationProperty.
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_gib ⇒ Numeric? (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_mode ⇒ String? (readonly)
Specifies how the provisioned SSD read cache is sized, as follows:.
- Set to
NO_CACHEif you do not want to use an SSD read cache with your Intelligent-Tiering file system. - Set to
USER_PROVISIONEDto specify the exact size of your SSD read cache. - Set to
PROPORTIONAL_TO_THROUGHPUT_CAPACITYto 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_properties ⇒ Object
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_jsii ⇒ Object
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 |