Skip to content

Ec2InstanceAttributes

Source code in docs_src/capo_emr/types/ec2_instance_attributes.py
class Ec2InstanceAttributes(TypedDict, closed=True):
    ec2_key_name: NotRequired["capo_emr.types.string.String"]
    """<p>The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".</p>"""
    ec2_subnet_id: NotRequired["capo_emr.types.string.String"]
    """<p>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.</p>"""
    requested_ec2_subnet_ids: NotRequired[
        "capo_emr.types.xml_string_max_len256_list.XmlStringMaxLen256List"
    ]
    """<p>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 <code>RequestedEc2SubnetIds</code>, 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 <code>RequestedEc2AvailabilityZones</code> instead of this setting. If EC2-Classic is not supported, and no Subnet is specified, Amazon EMR chooses the subnet for you. <code>RequestedEc2SubnetIDs</code> and <code>RequestedEc2AvailabilityZones</code> cannot be specified together.</p>"""
    ec2_availability_zone: NotRequired["capo_emr.types.string.String"]
    """<p>The Availability Zone in which the cluster will run. </p>"""
    requested_ec2_availability_zones: NotRequired[
        "capo_emr.types.xml_string_max_len256_list.XmlStringMaxLen256List"
    ]
    """<p>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 <code>RequestedEc2AvailabilityZones</code>, 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. <code>RequestedEc2SubnetIDs</code> and <code>RequestedEc2AvailabilityZones</code> cannot be specified together.</p>"""
    iam_instance_profile: NotRequired["capo_emr.types.string.String"]
    """<p>The IAM role that was specified when the cluster was launched. The Amazon EC2 instances of the cluster assume this role.</p>"""
    emr_managed_master_security_group: NotRequired["capo_emr.types.string.String"]
    """<p>The identifier of the Amazon EC2 security group for the master node.</p>"""
    emr_managed_slave_security_group: NotRequired["capo_emr.types.string.String"]
    """<p>The identifier of the Amazon EC2 security group for the core and task nodes.</p>"""
    service_access_security_group: NotRequired["capo_emr.types.string.String"]
    """<p>The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.</p>"""
    additional_master_security_groups: NotRequired[
        "capo_emr.types.string_list.StringList"
    ]
    """<p>A list of additional Amazon EC2 security group IDs for the master node.</p>"""
    additional_slave_security_groups: NotRequired[
        "capo_emr.types.string_list.StringList"
    ]
    """<p>A list of additional Amazon EC2 security group IDs for the core and task nodes.</p>"""

additional_master_security_groups instance-attribute

additional_master_security_groups: NotRequired[StringList]

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

additional_slave_security_groups instance-attribute

additional_slave_security_groups: NotRequired[StringList]

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

ec2_availability_zone instance-attribute

ec2_availability_zone: NotRequired[String]

The Availability Zone in which the cluster will run.

ec2_key_name instance-attribute

ec2_key_name: NotRequired[String]

The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".

ec2_subnet_id instance-attribute

ec2_subnet_id: NotRequired[String]

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.

emr_managed_master_security_group instance-attribute

emr_managed_master_security_group: NotRequired[String]

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

emr_managed_slave_security_group instance-attribute

emr_managed_slave_security_group: NotRequired[String]

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

iam_instance_profile instance-attribute

iam_instance_profile: NotRequired[String]

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

requested_ec2_availability_zones instance-attribute

requested_ec2_availability_zones: NotRequired[XmlStringMaxLen256List]

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.

requested_ec2_subnet_ids instance-attribute

requested_ec2_subnet_ids: NotRequired[XmlStringMaxLen256List]

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.

service_access_security_group instance-attribute

service_access_security_group: NotRequired[String]

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