Class: AWSCDK::EMR::CfnCluster::PlacementTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnCluster::PlacementTypeProperty
- 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
-
#availability_zone ⇒ String
readonly
The Amazon EC2 Availability Zone for the cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(availability_zone:) ⇒ PlacementTypeProperty
constructor
A new instance of PlacementTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(availability_zone:) ⇒ PlacementTypeProperty
Returns a new instance of PlacementTypeProperty.
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_zone ⇒ String (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_properties ⇒ Object
2622 2623 2624 2625 2626 |
# File 'emr/cfn_cluster.rb', line 2622 def self.jsii_properties { :availability_zone => "availabilityZone", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |