Interface Ec2InstanceAttributes.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Ec2InstanceAttributes.Builder,Ec2InstanceAttributes>, SdkBuilder<Ec2InstanceAttributes.Builder,Ec2InstanceAttributes>, SdkPojo
Enclosing class:
Ec2InstanceAttributes

public static interface Ec2InstanceAttributes.Builder extends SdkPojo, CopyableBuilder<Ec2InstanceAttributes.Builder,Ec2InstanceAttributes>
  • Method Details

    • ec2KeyName

      Ec2InstanceAttributes.Builder ec2KeyName(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".

      Parameters:
      ec2KeyName - The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ec2SubnetId

      Ec2InstanceAttributes.Builder ec2SubnetId(String ec2SubnetId)

      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.

      Parameters:
      ec2SubnetId - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestedEc2SubnetIds

      Ec2InstanceAttributes.Builder requestedEc2SubnetIds(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 Amazon EC2 cluster instances. Subnets must exist within the same VPC. Amazon EMR chooses the Amazon EC2 subnet with the best fit from among the list of RequestedEc2SubnetIds, and then launches all cluster instances within that Subnet. If this value is not specified, and the account and Region support EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses RequestedEc2AvailabilityZones instead of this setting. If EC2-Classic is not supported, and no Subnet is specified, Amazon EMR chooses the subnet for you. RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified together.

      Parameters:
      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 Amazon EC2 cluster instances. Subnets must exist within the same VPC. Amazon EMR chooses the Amazon EC2 subnet with the best fit from among the list of RequestedEc2SubnetIds, and then launches all cluster instances within that Subnet. If this value is not specified, and the account and Region support EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses RequestedEc2AvailabilityZones instead of this setting. If EC2-Classic is not supported, and no Subnet is specified, Amazon EMR chooses the subnet for you. RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified together.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestedEc2SubnetIds

      Ec2InstanceAttributes.Builder requestedEc2SubnetIds(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 Amazon EC2 cluster instances. Subnets must exist within the same VPC. Amazon EMR chooses the Amazon EC2 subnet with the best fit from among the list of RequestedEc2SubnetIds, and then launches all cluster instances within that Subnet. If this value is not specified, and the account and Region support EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses RequestedEc2AvailabilityZones instead of this setting. If EC2-Classic is not supported, and no Subnet is specified, Amazon EMR chooses the subnet for you. RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified together.

      Parameters:
      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 Amazon EC2 cluster instances. Subnets must exist within the same VPC. Amazon EMR chooses the Amazon EC2 subnet with the best fit from among the list of RequestedEc2SubnetIds, and then launches all cluster instances within that Subnet. If this value is not specified, and the account and Region support EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses RequestedEc2AvailabilityZones instead of this setting. If EC2-Classic is not supported, and no Subnet is specified, Amazon EMR chooses the subnet for you. RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified together.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ec2AvailabilityZone

      Ec2InstanceAttributes.Builder ec2AvailabilityZone(String ec2AvailabilityZone)

      The Availability Zone in which the cluster will run.

      Parameters:
      ec2AvailabilityZone - The Availability Zone in which the cluster will run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestedEc2AvailabilityZones

      Ec2InstanceAttributes.Builder requestedEc2AvailabilityZones(Collection<String> requestedEc2AvailabilityZones)

      Applies to clusters configured with the instance fleets option. Specifies one or more Availability Zones in which to launch Amazon EC2 cluster instances when the EC2-Classic network configuration is supported. Amazon EMR chooses the Availability Zone with the best fit from among the list of RequestedEc2AvailabilityZones, and then launches all cluster instances within that Availability Zone. If you do not specify this value, Amazon EMR chooses the Availability Zone for you. RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified together.

      Parameters:
      requestedEc2AvailabilityZones - Applies to clusters configured with the instance fleets option. Specifies one or more Availability Zones in which to launch Amazon EC2 cluster instances when the EC2-Classic network configuration is supported. Amazon EMR chooses the Availability Zone with the best fit from among the list of RequestedEc2AvailabilityZones, and then launches all cluster instances within that Availability Zone. If you do not specify this value, Amazon EMR chooses the Availability Zone for you. RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified together.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requestedEc2AvailabilityZones

      Ec2InstanceAttributes.Builder requestedEc2AvailabilityZones(String... requestedEc2AvailabilityZones)

      Applies to clusters configured with the instance fleets option. Specifies one or more Availability Zones in which to launch Amazon EC2 cluster instances when the EC2-Classic network configuration is supported. Amazon EMR chooses the Availability Zone with the best fit from among the list of RequestedEc2AvailabilityZones, and then launches all cluster instances within that Availability Zone. If you do not specify this value, Amazon EMR chooses the Availability Zone for you. RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified together.

      Parameters:
      requestedEc2AvailabilityZones - Applies to clusters configured with the instance fleets option. Specifies one or more Availability Zones in which to launch Amazon EC2 cluster instances when the EC2-Classic network configuration is supported. Amazon EMR chooses the Availability Zone with the best fit from among the list of RequestedEc2AvailabilityZones, and then launches all cluster instances within that Availability Zone. If you do not specify this value, Amazon EMR chooses the Availability Zone for you. RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified together.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iamInstanceProfile

      Ec2InstanceAttributes.Builder iamInstanceProfile(String iamInstanceProfile)

      The IAM role that was specified when the cluster was launched. The Amazon EC2 instances of the cluster assume this role.

      Parameters:
      iamInstanceProfile - The IAM role that was specified when the cluster was launched. The Amazon EC2 instances of the cluster assume this role.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • emrManagedMasterSecurityGroup

      Ec2InstanceAttributes.Builder emrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup)

      The identifier of the Amazon EC2 security group for the master node.

      Parameters:
      emrManagedMasterSecurityGroup - The identifier of the Amazon EC2 security group for the master node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • emrManagedSlaveSecurityGroup

      Ec2InstanceAttributes.Builder emrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup)

      The identifier of the Amazon EC2 security group for the core and task nodes.

      Parameters:
      emrManagedSlaveSecurityGroup - The identifier of the Amazon EC2 security group for the core and task nodes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceAccessSecurityGroup

      Ec2InstanceAttributes.Builder serviceAccessSecurityGroup(String serviceAccessSecurityGroup)

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

      Parameters:
      serviceAccessSecurityGroup - The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalMasterSecurityGroups

      Ec2InstanceAttributes.Builder additionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups)

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

      Parameters:
      additionalMasterSecurityGroups - A list of additional Amazon EC2 security group IDs for the master node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalMasterSecurityGroups

      Ec2InstanceAttributes.Builder additionalMasterSecurityGroups(String... additionalMasterSecurityGroups)

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

      Parameters:
      additionalMasterSecurityGroups - A list of additional Amazon EC2 security group IDs for the master node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalSlaveSecurityGroups

      Ec2InstanceAttributes.Builder additionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups)

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

      Parameters:
      additionalSlaveSecurityGroups - A list of additional Amazon EC2 security group IDs for the core and task nodes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalSlaveSecurityGroups

      Ec2InstanceAttributes.Builder additionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups)

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

      Parameters:
      additionalSlaveSecurityGroups - A list of additional Amazon EC2 security group IDs for the core and task nodes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.