Class: AWSCDK::StepFunctionsTasks::EMRCreateCluster::VolumeSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::EMRCreateCluster::VolumeSpecificationProperty
- Defined in:
- step_functions_tasks/emr_create_cluster.rb
Overview
EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.
Instance Attribute Summary collapse
-
#iops ⇒ Numeric?
readonly
The number of I/O operations per second (IOPS) that the volume supports.
-
#volume_size ⇒ AWSCDK::Size
readonly
The volume size.
-
#volume_type ⇒ AWSCDK::StepFunctionsTasks::EMRCreateCluster::EbsBlockDeviceVolumeType
readonly
The volume type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(volume_size:, volume_type:, iops: nil) ⇒ VolumeSpecificationProperty
constructor
A new instance of VolumeSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(volume_size:, volume_type:, iops: nil) ⇒ VolumeSpecificationProperty
Returns a new instance of VolumeSpecificationProperty.
2715 2716 2717 2718 2719 2720 2721 2722 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2715 def initialize(volume_size:, volume_type:, iops: nil) @volume_size = volume_size Jsii::Type.check_type(@volume_size, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5TaXplIn0=")), "volumeSize") @volume_type = volume_type Jsii::Type.check_type(@volume_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FbXJDcmVhdGVDbHVzdGVyLkVic0Jsb2NrRGV2aWNlVm9sdW1lVHlwZSJ9")), "volumeType") @iops = iops Jsii::Type.check_type(@iops, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "iops") unless @iops.nil? end |
Instance Attribute Details
#iops ⇒ Numeric? (readonly)
Note:
Default: - EMR selected default
The number of I/O operations per second (IOPS) that the volume supports.
2741 2742 2743 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2741 def iops @iops end |
#volume_size ⇒ AWSCDK::Size (readonly)
The volume size.
If the volume type is EBS-optimized, the minimum value is 10GiB. Maximum size is 1TiB
2730 2731 2732 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2730 def volume_size @volume_size end |
#volume_type ⇒ AWSCDK::StepFunctionsTasks::EMRCreateCluster::EbsBlockDeviceVolumeType (readonly)
The volume type.
Volume types supported are gp2, io1, standard.
2736 2737 2738 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2736 def volume_type @volume_type end |
Class Method Details
.jsii_properties ⇒ Object
2743 2744 2745 2746 2747 2748 2749 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2743 def self.jsii_properties { :volume_size => "volumeSize", :volume_type => "volumeType", :iops => "iops", } end |
Instance Method Details
#to_jsii ⇒ Object
2751 2752 2753 2754 2755 2756 2757 2758 2759 |
# File 'step_functions_tasks/emr_create_cluster.rb', line 2751 def to_jsii result = {} result.merge!({ "volumeSize" => @volume_size, "volumeType" => @volume_type, "iops" => @iops, }) result.compact end |