Class: AWSCDK::Elasticsearch::EbsOptions Deprecated
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Elasticsearch::EbsOptions
- Defined in:
- elasticsearch/ebs_options.rb
Overview
use opensearchservice module instead
The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the Amazon ES domain.
For more information, see Configuring EBS-based Storage in the Amazon Elasticsearch Service Developer Guide.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean?
readonly
deprecated
Deprecated.
use opensearchservice module instead
-
#iops ⇒ Numeric?
readonly
deprecated
Deprecated.
use opensearchservice module instead
-
#volume_size ⇒ Numeric?
readonly
deprecated
Deprecated.
use opensearchservice module instead
-
#volume_type ⇒ AWSCDK::EC2::EbsDeviceVolumeType?
readonly
deprecated
Deprecated.
use opensearchservice module instead
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled: nil, iops: nil, volume_size: nil, volume_type: nil) ⇒ EbsOptions
constructor
A new instance of EbsOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled: nil, iops: nil, volume_size: nil, volume_type: nil) ⇒ EbsOptions
Returns a new instance of EbsOptions.
18 19 20 21 22 23 24 25 26 27 |
# File 'elasticsearch/ebs_options.rb', line 18 def initialize(enabled: nil, iops: nil, volume_size: nil, volume_type: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enabled") unless @enabled.nil? @iops = iops Jsii::Type.check_type(@iops, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "iops") unless @iops.nil? @volume_size = volume_size Jsii::Type.check_type(@volume_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "volumeSize") unless @volume_size.nil? @volume_type = volume_type Jsii::Type.check_type(@volume_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLkVic0RldmljZVZvbHVtZVR5cGUifQ==")), "volumeType") unless @volume_type.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean? (readonly)
use opensearchservice module instead
Default: - true
Specifies whether Amazon EBS volumes are attached to data nodes in the Amazon ES domain.
34 35 36 |
# File 'elasticsearch/ebs_options.rb', line 34 def enabled @enabled end |
#iops ⇒ Numeric? (readonly)
use opensearchservice module instead
Default: - iops are not set.
The number of I/O operations per second (IOPS) that the volume supports.
This property applies only to the Provisioned IOPS (SSD) EBS volume type.
43 44 45 |
# File 'elasticsearch/ebs_options.rb', line 43 def iops @iops end |
#volume_size ⇒ Numeric? (readonly)
use opensearchservice module instead
Default: 10
The size (in GiB) of the EBS volume for each data node.
The minimum and maximum size of an EBS volume depends on the EBS volume type and the instance type to which it is attached. For more information, see Configuring EBS-based Storage in the Amazon Elasticsearch Service Developer Guide.
56 57 58 |
# File 'elasticsearch/ebs_options.rb', line 56 def volume_size @volume_size end |
#volume_type ⇒ AWSCDK::EC2::EbsDeviceVolumeType? (readonly)
use opensearchservice module instead
Default: gp2
The EBS volume type to use with the Amazon ES domain, such as standard, gp2, io1.
For more information, seeConfiguring EBS-based Storage in the Amazon Elasticsearch Service Developer Guide.
66 67 68 |
# File 'elasticsearch/ebs_options.rb', line 66 def volume_type @volume_type end |
Class Method Details
.jsii_properties ⇒ Object
68 69 70 71 72 73 74 75 |
# File 'elasticsearch/ebs_options.rb', line 68 def self.jsii_properties { :enabled => "enabled", :iops => "iops", :volume_size => "volumeSize", :volume_type => "volumeType", } end |
Instance Method Details
#to_jsii ⇒ Object
77 78 79 80 81 82 83 84 85 86 |
# File 'elasticsearch/ebs_options.rb', line 77 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "iops" => @iops, "volumeSize" => @volume_size, "volumeType" => @volume_type, }) result.compact end |