AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Inheritance Hierarchy

System.Object
  Amazon.ElasticMapReduce.Model.JobFlowInstancesConfig

Namespace: Amazon.ElasticMapReduce.Model
Assembly: AWSSDK.ElasticMapReduce.dll
Version: 3.x.y.z

Syntax

C#
public class JobFlowInstancesConfig

The JobFlowInstancesConfig type exposes the following members

Constructors

NameDescription
Public Method JobFlowInstancesConfig()

Empty constructor used to set properties independently even when a simple constructor is available

Properties

NameTypeDescription
Public Property AdditionalMasterSecurityGroups System.Collections.Generic.List<System.String>

Gets and sets the property AdditionalMasterSecurityGroups.

A list of additional Amazon EC2 security group IDs for the master node.

Public Property AdditionalSlaveSecurityGroups System.Collections.Generic.List<System.String>

Gets and sets the property AdditionalSlaveSecurityGroups.

A list of additional Amazon EC2 security group IDs for the core and task nodes.

Public Property Ec2KeyName System.String

Gets and sets the property Ec2KeyName.

The name of the Amazon EC2 key pair that can be used to connect to the master node using SSH as the user called "hadoop."

Public Property Ec2SubnetId System.String

Gets and sets the property Ec2SubnetId.

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.

Public Property Ec2SubnetIds System.Collections.Generic.List<System.String>

Gets and sets the property Ec2SubnetIds.

Applies to clusters that use the instance fleet configuration. When multiple Amazon 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 releases 4.8.0 and later, excluding 5.0.x versions.

Public Property EmrManagedMasterSecurityGroup System.String

Gets and sets the property EmrManagedMasterSecurityGroup.

The identifier of the Amazon EC2 security group for the master node. If you specify EmrManagedMasterSecurityGroup, you must also specify EmrManagedSlaveSecurityGroup.

Public Property EmrManagedSlaveSecurityGroup System.String

Gets and sets the property EmrManagedSlaveSecurityGroup.

The identifier of the Amazon EC2 security group for the core and task nodes. If you specify EmrManagedSlaveSecurityGroup, you must also specify EmrManagedMasterSecurityGroup.

Public Property HadoopVersion System.String

Gets and sets the property HadoopVersion.

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.

Public Property InstanceCount System.Int32

Gets and sets the property InstanceCount.

The number of Amazon EC2 instances in the cluster.

Public Property InstanceFleets System.Collections.Generic.List<Amazon.ElasticMapReduce.Model.InstanceFleetConfig>

Gets and sets the property InstanceFleets.

The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.

Describes the Amazon EC2 instances and instance configurations for clusters that use the instance fleet configuration.

Public Property InstanceGroups System.Collections.Generic.List<Amazon.ElasticMapReduce.Model.InstanceGroupConfig>

Gets and sets the property InstanceGroups.

Configuration for the instance groups in a cluster.

Public Property KeepJobFlowAliveWhenNoSteps System.Boolean

Gets and sets the property KeepJobFlowAliveWhenNoSteps.

Specifies whether the cluster should remain available after completing all steps. Defaults to false. For more information about configuring cluster termination, see Control Cluster Termination in the EMR Management Guide.

Public Property MasterInstanceType System.String

Gets and sets the property MasterInstanceType.

The Amazon EC2 instance type of the master node.

Public Property Placement Amazon.ElasticMapReduce.Model.PlacementType

Gets and sets the property Placement.

The Availability Zone in which the cluster runs.

Public Property ServiceAccessSecurityGroup System.String

Gets and sets the property ServiceAccessSecurityGroup.

The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.

Public Property SlaveInstanceType System.String

Gets and sets the property SlaveInstanceType.

The Amazon EC2 instance type of the core and task nodes.

Public Property TerminationProtected System.Boolean

Gets and sets the property TerminationProtected.

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.

Public Property UnhealthyNodeReplacement System.Boolean

Gets and sets the property UnhealthyNodeReplacement.

Indicates whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5