Struct aws_sdk_emr::model::JobFlowInstancesConfig
source · #[non_exhaustive]pub struct JobFlowInstancesConfig { /* private fields */ }Expand description
A description of the Amazon EC2 instance on which the cluster (job flow) runs. A valid JobFlowInstancesConfig must contain either InstanceGroups or InstanceFleets. They cannot be used together. You may also have MasterInstanceType, SlaveInstanceType, and InstanceCount (all three must be present), but we don't recommend this configuration.
Implementations§
source§impl JobFlowInstancesConfig
impl JobFlowInstancesConfig
sourcepub fn master_instance_type(&self) -> Option<&str>
pub fn master_instance_type(&self) -> Option<&str>
The EC2 instance type of the master node.
sourcepub fn slave_instance_type(&self) -> Option<&str>
pub fn slave_instance_type(&self) -> Option<&str>
The EC2 instance type of the core and task nodes.
sourcepub fn instance_count(&self) -> Option<i32>
pub fn instance_count(&self) -> Option<i32>
The number of EC2 instances in the cluster.
sourcepub fn instance_groups(&self) -> Option<&[InstanceGroupConfig]>
pub fn instance_groups(&self) -> Option<&[InstanceGroupConfig]>
Configuration for the instance groups in a cluster.
sourcepub fn instance_fleets(&self) -> Option<&[InstanceFleetConfig]>
pub fn instance_fleets(&self) -> Option<&[InstanceFleetConfig]>
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.
sourcepub fn ec2_key_name(&self) -> Option<&str>
pub fn ec2_key_name(&self) -> Option<&str>
The name of the EC2 key pair that can be used to connect to the master node using SSH as the user called "hadoop."
sourcepub fn placement(&self) -> Option<&PlacementType>
pub fn placement(&self) -> Option<&PlacementType>
The Availability Zone in which the cluster runs.
sourcepub fn keep_job_flow_alive_when_no_steps(&self) -> bool
pub fn keep_job_flow_alive_when_no_steps(&self) -> bool
Specifies whether the cluster should remain available after completing all steps. Defaults to true. For more information about configuring cluster termination, see Control Cluster Termination in the EMR Management Guide.
sourcepub fn termination_protected(&self) -> bool
pub fn termination_protected(&self) -> bool
Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error.
sourcepub fn hadoop_version(&self) -> Option<&str>
pub fn hadoop_version(&self) -> Option<&str>
Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version for the cluster. Valid inputs are "0.18" (no longer maintained), "0.20" (no longer maintained), "0.20.205" (no longer maintained), "1.0.3", "2.2.0", or "2.4.0". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.
sourcepub fn ec2_subnet_id(&self) -> Option<&str>
pub fn ec2_subnet_id(&self) -> Option<&str>
Applies to clusters that use the uniform instance group configuration. To launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. If you do not specify this value and your account supports EC2-Classic, the cluster launches in EC2-Classic.
sourcepub fn ec2_subnet_ids(&self) -> Option<&[String]>
pub fn ec2_subnet_ids(&self) -> Option<&[String]>
Applies to clusters that use the instance fleet configuration. When multiple EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances in the optimal subnet.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
sourcepub fn emr_managed_master_security_group(&self) -> Option<&str>
pub fn emr_managed_master_security_group(&self) -> Option<&str>
The identifier of the Amazon EC2 security group for the master node. If you specify EmrManagedMasterSecurityGroup, you must also specify EmrManagedSlaveSecurityGroup.
sourcepub fn emr_managed_slave_security_group(&self) -> Option<&str>
pub fn emr_managed_slave_security_group(&self) -> Option<&str>
The identifier of the Amazon EC2 security group for the core and task nodes. If you specify EmrManagedSlaveSecurityGroup, you must also specify EmrManagedMasterSecurityGroup.
sourcepub fn service_access_security_group(&self) -> Option<&str>
pub fn service_access_security_group(&self) -> Option<&str>
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
sourcepub fn additional_master_security_groups(&self) -> Option<&[String]>
pub fn additional_master_security_groups(&self) -> Option<&[String]>
A list of additional Amazon EC2 security group IDs for the master node.
sourcepub fn additional_slave_security_groups(&self) -> Option<&[String]>
pub fn additional_slave_security_groups(&self) -> Option<&[String]>
A list of additional Amazon EC2 security group IDs for the core and task nodes.
source§impl JobFlowInstancesConfig
impl JobFlowInstancesConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture JobFlowInstancesConfig.
Trait Implementations§
source§impl Clone for JobFlowInstancesConfig
impl Clone for JobFlowInstancesConfig
source§fn clone(&self) -> JobFlowInstancesConfig
fn clone(&self) -> JobFlowInstancesConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more