Struct aws_sdk_emr::types::InstanceFleetConfig
source · #[non_exhaustive]pub struct InstanceFleetConfig {
pub name: Option<String>,
pub instance_fleet_type: Option<InstanceFleetType>,
pub target_on_demand_capacity: Option<i32>,
pub target_spot_capacity: Option<i32>,
pub instance_type_configs: Option<Vec<InstanceTypeConfig>>,
pub launch_specifications: Option<InstanceFleetProvisioningSpecifications>,
pub resize_specifications: Option<InstanceFleetResizingSpecifications>,
}
Expand description
The configuration that defines an instance fleet.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The friendly name of the instance fleet.
instance_fleet_type: Option<InstanceFleetType>
The node type that the instance fleet hosts. Valid values are MASTER, CORE, and TASK.
target_on_demand_capacity: Option<i32>
The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig
. Each instance configuration has a specified WeightedCapacity
. When an On-Demand Instance is provisioned, the WeightedCapacity
units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity
of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.
If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity
. At least one of TargetSpotCapacity
and TargetOnDemandCapacity
should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity
and TargetOnDemandCapacity
can be specified, and its value must be 1.
target_spot_capacity: Option<i32>
The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig
. Each instance configuration has a specified WeightedCapacity
. When a Spot Instance is provisioned, the WeightedCapacity
units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity
of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.
If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity
and TargetOnDemandCapacity
should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity
and TargetOnDemandCapacity
can be specified, and its value must be 1.
instance_type_configs: Option<Vec<InstanceTypeConfig>>
The instance type configurations that define the Amazon EC2 instances in the instance fleet.
launch_specifications: Option<InstanceFleetProvisioningSpecifications>
The launch specification for the instance fleet.
resize_specifications: Option<InstanceFleetResizingSpecifications>
The resize specification for the instance fleet.
Implementations§
source§impl InstanceFleetConfig
impl InstanceFleetConfig
sourcepub fn instance_fleet_type(&self) -> Option<&InstanceFleetType>
pub fn instance_fleet_type(&self) -> Option<&InstanceFleetType>
The node type that the instance fleet hosts. Valid values are MASTER, CORE, and TASK.
sourcepub fn target_on_demand_capacity(&self) -> Option<i32>
pub fn target_on_demand_capacity(&self) -> Option<i32>
The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand Instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand Instances as specified by InstanceTypeConfig
. Each instance configuration has a specified WeightedCapacity
. When an On-Demand Instance is provisioned, the WeightedCapacity
units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity
of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.
If not specified or set to 0, only Spot Instances are provisioned for the instance fleet using TargetSpotCapacity
. At least one of TargetSpotCapacity
and TargetOnDemandCapacity
should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity
and TargetOnDemandCapacity
can be specified, and its value must be 1.
sourcepub fn target_spot_capacity(&self) -> Option<i32>
pub fn target_spot_capacity(&self) -> Option<i32>
The target capacity of Spot units for the instance fleet, which determines how many Spot Instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot Instances as specified by InstanceTypeConfig
. Each instance configuration has a specified WeightedCapacity
. When a Spot Instance is provisioned, the WeightedCapacity
units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity
of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units.
If not specified or set to 0, only On-Demand Instances are provisioned for the instance fleet. At least one of TargetSpotCapacity
and TargetOnDemandCapacity
should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity
and TargetOnDemandCapacity
can be specified, and its value must be 1.
sourcepub fn instance_type_configs(&self) -> &[InstanceTypeConfig]
pub fn instance_type_configs(&self) -> &[InstanceTypeConfig]
The instance type configurations that define the Amazon EC2 instances in the instance fleet.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .instance_type_configs.is_none()
.
sourcepub fn launch_specifications(
&self
) -> Option<&InstanceFleetProvisioningSpecifications>
pub fn launch_specifications( &self ) -> Option<&InstanceFleetProvisioningSpecifications>
The launch specification for the instance fleet.
sourcepub fn resize_specifications(
&self
) -> Option<&InstanceFleetResizingSpecifications>
pub fn resize_specifications( &self ) -> Option<&InstanceFleetResizingSpecifications>
The resize specification for the instance fleet.
source§impl InstanceFleetConfig
impl InstanceFleetConfig
sourcepub fn builder() -> InstanceFleetConfigBuilder
pub fn builder() -> InstanceFleetConfigBuilder
Creates a new builder-style object to manufacture InstanceFleetConfig
.
Trait Implementations§
source§impl Clone for InstanceFleetConfig
impl Clone for InstanceFleetConfig
source§fn clone(&self) -> InstanceFleetConfig
fn clone(&self) -> InstanceFleetConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceFleetConfig
impl Debug for InstanceFleetConfig
source§impl PartialEq for InstanceFleetConfig
impl PartialEq for InstanceFleetConfig
source§fn eq(&self, other: &InstanceFleetConfig) -> bool
fn eq(&self, other: &InstanceFleetConfig) -> bool
self
and other
values to be equal, and is used
by ==
.