Class: AWSCDK::EMR::CfnCluster::PlacementTypeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
emr/cfn_cluster.rb

Overview

PlacementType is a property of the AWS::EMR::Cluster resource.

PlacementType determines the Amazon EC2 Availability Zone configuration of the cluster (job flow).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(availability_zone:) ⇒ PlacementTypeProperty

Returns a new instance of PlacementTypeProperty.

Parameters:

  • availability_zone (String)

    The Amazon EC2 Availability Zone for the cluster.



2609
2610
2611
2612
# File 'emr/cfn_cluster.rb', line 2609

def initialize(availability_zone:)
  @availability_zone = availability_zone
  Jsii::Type.check_type(@availability_zone, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "availabilityZone")
end

Instance Attribute Details

#availability_zoneString (readonly)

The Amazon EC2 Availability Zone for the cluster.

AvailabilityZone is used for uniform instance groups, while AvailabilityZones (plural) is used for instance fleets.



2620
2621
2622
# File 'emr/cfn_cluster.rb', line 2620

def availability_zone
  @availability_zone
end

Class Method Details

.jsii_propertiesObject



2622
2623
2624
2625
2626
# File 'emr/cfn_cluster.rb', line 2622

def self.jsii_properties
  {
    :availability_zone => "availabilityZone",
  }
end

Instance Method Details

#to_jsiiObject



2628
2629
2630
2631
2632
2633
2634
# File 'emr/cfn_cluster.rb', line 2628

def to_jsii
  result = {}
  result.merge!({
    "availabilityZone" => @availability_zone,
  })
  result.compact
end