@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Ec2InstanceAttributes extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the EC2 instances in a cluster grouped by category. For example, key name, subnet ID, IAM instance profile, and so on.
Constructor and Description |
---|
Ec2InstanceAttributes() |
Modifier and Type | Method and Description |
---|---|
Ec2InstanceAttributes |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAdditionalMasterSecurityGroups()
A list of additional Amazon EC2 security group IDs for the master node.
|
List<String> |
getAdditionalSlaveSecurityGroups()
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
String |
getEc2AvailabilityZone()
The Availability Zone in which the cluster will run.
|
String |
getEc2KeyName()
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named
"hadoop".
|
String |
getEc2SubnetId()
To launch the cluster in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want
the cluster to launch.
|
String |
getEmrManagedMasterSecurityGroup()
The identifier of the Amazon EC2 security group for the master node.
|
String |
getEmrManagedSlaveSecurityGroup()
The identifier of the Amazon EC2 security group for the slave nodes.
|
String |
getIamInstanceProfile()
The IAM role that was specified when the cluster was launched.
|
List<String> |
getRequestedEc2AvailabilityZones()
Applies to clusters configured with the The list of availability zones to choose from.
|
List<String> |
getRequestedEc2SubnetIds()
Applies to clusters configured with the instance fleets option.
|
String |
getServiceAccessSecurityGroup()
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private
subnets.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAdditionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
|
void |
setAdditionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
void |
setEc2AvailabilityZone(String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.
|
void |
setEc2KeyName(String ec2KeyName)
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named
"hadoop".
|
void |
setEc2SubnetId(String ec2SubnetId)
To launch the cluster in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want
the cluster to launch.
|
void |
setEmrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group for the master node.
|
void |
setEmrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group for the slave nodes.
|
void |
setIamInstanceProfile(String iamInstanceProfile)
The IAM role that was specified when the cluster was launched.
|
void |
setRequestedEc2AvailabilityZones(Collection<String> requestedEc2AvailabilityZones)
Applies to clusters configured with the The list of availability zones to choose from.
|
void |
setRequestedEc2SubnetIds(Collection<String> requestedEc2SubnetIds)
Applies to clusters configured with the instance fleets option.
|
void |
setServiceAccessSecurityGroup(String serviceAccessSecurityGroup)
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private
subnets.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Ec2InstanceAttributes |
withAdditionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
|
Ec2InstanceAttributes |
withAdditionalMasterSecurityGroups(String... additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
|
Ec2InstanceAttributes |
withAdditionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
Ec2InstanceAttributes |
withAdditionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
Ec2InstanceAttributes |
withEc2AvailabilityZone(String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.
|
Ec2InstanceAttributes |
withEc2KeyName(String ec2KeyName)
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named
"hadoop".
|
Ec2InstanceAttributes |
withEc2SubnetId(String ec2SubnetId)
To launch the cluster in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want
the cluster to launch.
|
Ec2InstanceAttributes |
withEmrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group for the master node.
|
Ec2InstanceAttributes |
withEmrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group for the slave nodes.
|
Ec2InstanceAttributes |
withIamInstanceProfile(String iamInstanceProfile)
The IAM role that was specified when the cluster was launched.
|
Ec2InstanceAttributes |
withRequestedEc2AvailabilityZones(Collection<String> requestedEc2AvailabilityZones)
Applies to clusters configured with the The list of availability zones to choose from.
|
Ec2InstanceAttributes |
withRequestedEc2AvailabilityZones(String... requestedEc2AvailabilityZones)
Applies to clusters configured with the The list of availability zones to choose from.
|
Ec2InstanceAttributes |
withRequestedEc2SubnetIds(Collection<String> requestedEc2SubnetIds)
Applies to clusters configured with the instance fleets option.
|
Ec2InstanceAttributes |
withRequestedEc2SubnetIds(String... requestedEc2SubnetIds)
Applies to clusters configured with the instance fleets option.
|
Ec2InstanceAttributes |
withServiceAccessSecurityGroup(String serviceAccessSecurityGroup)
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private
subnets.
|
public void setEc2KeyName(String ec2KeyName)
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
ec2KeyName
- The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named
"hadoop".public String getEc2KeyName()
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
public Ec2InstanceAttributes withEc2KeyName(String ec2KeyName)
The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
ec2KeyName
- The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named
"hadoop".public void setEc2SubnetId(String ec2SubnetId)
To launch the cluster in 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, the cluster is launched in the normal AWS cloud, outside of a VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a cluster launched in a VPC.
ec2SubnetId
- To launch the cluster in 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, the cluster is launched in the normal
AWS cloud, outside of a VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a cluster launched in a VPC.
public String getEc2SubnetId()
To launch the cluster in 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, the cluster is launched in the normal AWS cloud, outside of a VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a cluster launched in a VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a cluster launched in a VPC.
public Ec2InstanceAttributes withEc2SubnetId(String ec2SubnetId)
To launch the cluster in 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, the cluster is launched in the normal AWS cloud, outside of a VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a cluster launched in a VPC.
ec2SubnetId
- To launch the cluster in 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, the cluster is launched in the normal
AWS cloud, outside of a VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a cluster launched in a VPC.
public List<String> getRequestedEc2SubnetIds()
Applies to clusters configured with the instance fleets option. Specifies the unique identifier of one or more Amazon EC2 subnets in which to launch EC2 cluster instances. Amazon EMR chooses the EC2 subnet with the best performance and cost characteristics from among the list of RequestedEc2SubnetIds and launches all cluster instances within that subnet. If this value is not specified, and the account supports EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses Requested
public void setRequestedEc2SubnetIds(Collection<String> requestedEc2SubnetIds)
Applies to clusters configured with the instance fleets option. Specifies the unique identifier of one or more Amazon EC2 subnets in which to launch EC2 cluster instances. Amazon EMR chooses the EC2 subnet with the best performance and cost characteristics from among the list of RequestedEc2SubnetIds and launches all cluster instances within that subnet. If this value is not specified, and the account supports EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses Requested
requestedEc2SubnetIds
- Applies to clusters configured with the instance fleets option. Specifies the unique identifier of one or
more Amazon EC2 subnets in which to launch EC2 cluster instances. Amazon EMR chooses the EC2 subnet with
the best performance and cost characteristics from among the list of RequestedEc2SubnetIds and launches
all cluster instances within that subnet. If this value is not specified, and the account supports
EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses Requestedpublic Ec2InstanceAttributes withRequestedEc2SubnetIds(String... requestedEc2SubnetIds)
Applies to clusters configured with the instance fleets option. Specifies the unique identifier of one or more Amazon EC2 subnets in which to launch EC2 cluster instances. Amazon EMR chooses the EC2 subnet with the best performance and cost characteristics from among the list of RequestedEc2SubnetIds and launches all cluster instances within that subnet. If this value is not specified, and the account supports EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses Requested
NOTE: This method appends the values to the existing list (if any). Use
setRequestedEc2SubnetIds(java.util.Collection)
or
withRequestedEc2SubnetIds(java.util.Collection)
if you want to override the existing values.
requestedEc2SubnetIds
- Applies to clusters configured with the instance fleets option. Specifies the unique identifier of one or
more Amazon EC2 subnets in which to launch EC2 cluster instances. Amazon EMR chooses the EC2 subnet with
the best performance and cost characteristics from among the list of RequestedEc2SubnetIds and launches
all cluster instances within that subnet. If this value is not specified, and the account supports
EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses Requestedpublic Ec2InstanceAttributes withRequestedEc2SubnetIds(Collection<String> requestedEc2SubnetIds)
Applies to clusters configured with the instance fleets option. Specifies the unique identifier of one or more Amazon EC2 subnets in which to launch EC2 cluster instances. Amazon EMR chooses the EC2 subnet with the best performance and cost characteristics from among the list of RequestedEc2SubnetIds and launches all cluster instances within that subnet. If this value is not specified, and the account supports EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses Requested
requestedEc2SubnetIds
- Applies to clusters configured with the instance fleets option. Specifies the unique identifier of one or
more Amazon EC2 subnets in which to launch EC2 cluster instances. Amazon EMR chooses the EC2 subnet with
the best performance and cost characteristics from among the list of RequestedEc2SubnetIds and launches
all cluster instances within that subnet. If this value is not specified, and the account supports
EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses Requestedpublic void setEc2AvailabilityZone(String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.
ec2AvailabilityZone
- The Availability Zone in which the cluster will run.public String getEc2AvailabilityZone()
The Availability Zone in which the cluster will run.
public Ec2InstanceAttributes withEc2AvailabilityZone(String ec2AvailabilityZone)
The Availability Zone in which the cluster will run.
ec2AvailabilityZone
- The Availability Zone in which the cluster will run.public List<String> getRequestedEc2AvailabilityZones()
Applies to clusters configured with the The list of availability zones to choose from. The service will choose the availability zone with the best mix of available capacity and lowest cost to launch the cluster. If you do not specify this value, the cluster is launched in any availability zone that the customer account has access to.
public void setRequestedEc2AvailabilityZones(Collection<String> requestedEc2AvailabilityZones)
Applies to clusters configured with the The list of availability zones to choose from. The service will choose the availability zone with the best mix of available capacity and lowest cost to launch the cluster. If you do not specify this value, the cluster is launched in any availability zone that the customer account has access to.
requestedEc2AvailabilityZones
- Applies to clusters configured with the The list of availability zones to choose from. The service will
choose the availability zone with the best mix of available capacity and lowest cost to launch the
cluster. If you do not specify this value, the cluster is launched in any availability zone that the
customer account has access to.public Ec2InstanceAttributes withRequestedEc2AvailabilityZones(String... requestedEc2AvailabilityZones)
Applies to clusters configured with the The list of availability zones to choose from. The service will choose the availability zone with the best mix of available capacity and lowest cost to launch the cluster. If you do not specify this value, the cluster is launched in any availability zone that the customer account has access to.
NOTE: This method appends the values to the existing list (if any). Use
setRequestedEc2AvailabilityZones(java.util.Collection)
or
withRequestedEc2AvailabilityZones(java.util.Collection)
if you want to override the existing values.
requestedEc2AvailabilityZones
- Applies to clusters configured with the The list of availability zones to choose from. The service will
choose the availability zone with the best mix of available capacity and lowest cost to launch the
cluster. If you do not specify this value, the cluster is launched in any availability zone that the
customer account has access to.public Ec2InstanceAttributes withRequestedEc2AvailabilityZones(Collection<String> requestedEc2AvailabilityZones)
Applies to clusters configured with the The list of availability zones to choose from. The service will choose the availability zone with the best mix of available capacity and lowest cost to launch the cluster. If you do not specify this value, the cluster is launched in any availability zone that the customer account has access to.
requestedEc2AvailabilityZones
- Applies to clusters configured with the The list of availability zones to choose from. The service will
choose the availability zone with the best mix of available capacity and lowest cost to launch the
cluster. If you do not specify this value, the cluster is launched in any availability zone that the
customer account has access to.public void setIamInstanceProfile(String iamInstanceProfile)
The IAM role that was specified when the cluster was launched. The EC2 instances of the cluster assume this role.
iamInstanceProfile
- The IAM role that was specified when the cluster was launched. The EC2 instances of the cluster assume
this role.public String getIamInstanceProfile()
The IAM role that was specified when the cluster was launched. The EC2 instances of the cluster assume this role.
public Ec2InstanceAttributes withIamInstanceProfile(String iamInstanceProfile)
The IAM role that was specified when the cluster was launched. The EC2 instances of the cluster assume this role.
iamInstanceProfile
- The IAM role that was specified when the cluster was launched. The EC2 instances of the cluster assume
this role.public void setEmrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group for the master node.
emrManagedMasterSecurityGroup
- The identifier of the Amazon EC2 security group for the master node.public String getEmrManagedMasterSecurityGroup()
The identifier of the Amazon EC2 security group for the master node.
public Ec2InstanceAttributes withEmrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)
The identifier of the Amazon EC2 security group for the master node.
emrManagedMasterSecurityGroup
- The identifier of the Amazon EC2 security group for the master node.public void setEmrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group for the slave nodes.
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group for the slave nodes.public String getEmrManagedSlaveSecurityGroup()
The identifier of the Amazon EC2 security group for the slave nodes.
public Ec2InstanceAttributes withEmrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)
The identifier of the Amazon EC2 security group for the slave nodes.
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group for the slave nodes.public void setServiceAccessSecurityGroup(String serviceAccessSecurityGroup)
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
serviceAccessSecurityGroup
- The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC
private subnets.public String getServiceAccessSecurityGroup()
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
public Ec2InstanceAttributes withServiceAccessSecurityGroup(String serviceAccessSecurityGroup)
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
serviceAccessSecurityGroup
- The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC
private subnets.public List<String> getAdditionalMasterSecurityGroups()
A list of additional Amazon EC2 security group IDs for the master node.
public void setAdditionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master node.public Ec2InstanceAttributes withAdditionalMasterSecurityGroups(String... additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
NOTE: This method appends the values to the existing list (if any). Use
setAdditionalMasterSecurityGroups(java.util.Collection)
or
withAdditionalMasterSecurityGroups(java.util.Collection)
if you want to override the existing values.
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master node.public Ec2InstanceAttributes withAdditionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)
A list of additional Amazon EC2 security group IDs for the master node.
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master node.public List<String> getAdditionalSlaveSecurityGroups()
A list of additional Amazon EC2 security group IDs for the slave nodes.
public void setAdditionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave nodes.public Ec2InstanceAttributes withAdditionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
NOTE: This method appends the values to the existing list (if any). Use
setAdditionalSlaveSecurityGroups(java.util.Collection)
or
withAdditionalSlaveSecurityGroups(java.util.Collection)
if you want to override the existing values.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave nodes.public Ec2InstanceAttributes withAdditionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)
A list of additional Amazon EC2 security group IDs for the slave nodes.
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the slave nodes.public String toString()
toString
in class Object
Object.toString()
public Ec2InstanceAttributes clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2017. All rights reserved.