Class: AWSCDK::OpenSearchService::EbsOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpenSearchService::EbsOptions
- Defined in:
- open_search_service/ebs_options.rb
Overview
The configurations of Amazon Elastic Block Store (Amazon EBS) volumes that are attached to data nodes in the Amazon OpenSearch Service domain.
For more information, see Amazon EBS in the Amazon Elastic Compute Cloud Developer Guide.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean?
readonly
Specifies whether Amazon EBS volumes are attached to data nodes in the Amazon OpenSearch Service domain.
-
#iops ⇒ Numeric?
readonly
The number of I/O operations per second (IOPS) that the volume supports.
-
#throughput ⇒ Numeric?
readonly
The throughput (in MiB/s) of the EBS volumes attached to data nodes.
-
#volume_size ⇒ Numeric?
readonly
The size (in GiB) of the EBS volume for each data node.
-
#volume_type ⇒ AWSCDK::EC2::EbsDeviceVolumeType?
readonly
The EBS volume type to use with the Amazon OpenSearch Service domain, such as standard, gp2, io1.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled: nil, iops: nil, throughput: nil, volume_size: nil, volume_type: nil) ⇒ EbsOptions
constructor
A new instance of EbsOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled: nil, iops: nil, throughput: nil, volume_size: nil, volume_type: nil) ⇒ EbsOptions
Returns a new instance of EbsOptions.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'open_search_service/ebs_options.rb', line 16 def initialize(enabled: nil, iops: nil, throughput: 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? @throughput = throughput Jsii::Type.check_type(@throughput, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "throughput") unless @throughput.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)
Default: - true
Specifies whether Amazon EBS volumes are attached to data nodes in the Amazon OpenSearch Service domain.
33 34 35 |
# File 'open_search_service/ebs_options.rb', line 33 def enabled @enabled end |
#iops ⇒ Numeric? (readonly)
Default: - iops are not set.
The number of I/O operations per second (IOPS) that the volume supports.
This property applies only to the gp3 and Provisioned IOPS (SSD) EBS volume type.
41 42 43 |
# File 'open_search_service/ebs_options.rb', line 41 def iops @iops end |
#throughput ⇒ Numeric? (readonly)
Default: - throughput is not set.
The throughput (in MiB/s) of the EBS volumes attached to data nodes.
This property applies only to the gp3 volume type.
48 49 50 |
# File 'open_search_service/ebs_options.rb', line 48 def throughput @throughput end |
#volume_size ⇒ Numeric? (readonly)
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 valid values, see EBS volume size limits in the Amazon OpenSearch Service Developer Guide.
59 60 61 |
# File 'open_search_service/ebs_options.rb', line 59 def volume_size @volume_size end |
#volume_type ⇒ AWSCDK::EC2::EbsDeviceVolumeType? (readonly)
Default: gp2
The EBS volume type to use with the Amazon OpenSearch Service domain, such as standard, gp2, io1.
64 65 66 |
# File 'open_search_service/ebs_options.rb', line 64 def volume_type @volume_type end |
Class Method Details
.jsii_properties ⇒ Object
66 67 68 69 70 71 72 73 74 |
# File 'open_search_service/ebs_options.rb', line 66 def self.jsii_properties { :enabled => "enabled", :iops => "iops", :throughput => "throughput", :volume_size => "volumeSize", :volume_type => "volumeType", } end |
Instance Method Details
#to_jsii ⇒ Object
76 77 78 79 80 81 82 83 84 85 86 |
# File 'open_search_service/ebs_options.rb', line 76 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "iops" => @iops, "throughput" => @throughput, "volumeSize" => @volume_size, "volumeType" => @volume_type, }) result.compact end |