Class: AWSCDK::StepFunctionsTasks::EMRCreateCluster::EbsBlockDeviceConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/emr_create_cluster.rb

Overview

Configuration of requested EBS block device associated with the instance group with count of volumes that will be associated to every instance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(volume_specification:, volumes_per_instance: nil) ⇒ EbsBlockDeviceConfigProperty

Returns a new instance of EbsBlockDeviceConfigProperty.

Parameters:

  • volume_specification (AWSCDK::StepFunctionsTasks::EMRCreateCluster::VolumeSpecificationProperty)

    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.

  • volumes_per_instance (Numeric, nil) (defaults to: nil)

    Number of EBS volumes with a specific volume configuration that will be associated with every instance in the instance group.



1220
1221
1222
1223
1224
1225
# File 'step_functions_tasks/emr_create_cluster.rb', line 1220

def initialize(volume_specification:, volumes_per_instance: nil)
  @volume_specification = volume_specification.is_a?(Hash) ? ::AWSCDK::StepFunctionsTasks::EMRCreateCluster::VolumeSpecificationProperty.new(**volume_specification.transform_keys(&:to_sym)) : volume_specification
  Jsii::Type.check_type(@volume_specification, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FbXJDcmVhdGVDbHVzdGVyLlZvbHVtZVNwZWNpZmljYXRpb25Qcm9wZXJ0eSJ9")), "volumeSpecification")
  @volumes_per_instance = volumes_per_instance
  Jsii::Type.check_type(@volumes_per_instance, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "volumesPerInstance") unless @volumes_per_instance.nil?
end

Instance Attribute Details

#volume_specificationAWSCDK::StepFunctionsTasks::EMRCreateCluster::VolumeSpecificationProperty (readonly)

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.



1230
1231
1232
# File 'step_functions_tasks/emr_create_cluster.rb', line 1230

def volume_specification
  @volume_specification
end

#volumes_per_instanceNumeric? (readonly)

Note:

Default: EMR selected default

Number of EBS volumes with a specific volume configuration that will be associated with every instance in the instance group.

Returns:

  • (Numeric, nil)


1235
1236
1237
# File 'step_functions_tasks/emr_create_cluster.rb', line 1235

def volumes_per_instance
  @volumes_per_instance
end

Class Method Details

.jsii_propertiesObject



1237
1238
1239
1240
1241
1242
# File 'step_functions_tasks/emr_create_cluster.rb', line 1237

def self.jsii_properties
  {
    :volume_specification => "volumeSpecification",
    :volumes_per_instance => "volumesPerInstance",
  }
end

Instance Method Details

#to_jsiiObject



1244
1245
1246
1247
1248
1249
1250
1251
# File 'step_functions_tasks/emr_create_cluster.rb', line 1244

def to_jsii
  result = {}
  result.merge!({
    "volumeSpecification" => @volume_specification,
    "volumesPerInstance" => @volumes_per_instance,
  })
  result.compact
end