Skip to content

InstanceGroupConfig

Source code in docs_src/capo_emr/types/instance_group_config.py
class InstanceGroupConfig(TypedDict, closed=True):
    name: NotRequired["capo_emr.types.xml_string_max_len256.XmlStringMaxLen256"]
    """<p>Friendly name given to the instance group.</p>"""
    market: NotRequired["capo_emr.types.market_type.MarketType"]
    """<p>Market type of the Amazon EC2 instances used to create a cluster node.</p>"""
    instance_role: NotRequired["capo_emr.types.instance_role_type.InstanceRoleType"]
    """<p>The role of the instance group in the cluster.</p>"""
    bid_price: NotRequired["capo_emr.types.xml_string_max_len256.XmlStringMaxLen256"]
    """<p>The bid price for each Amazon EC2 Spot Instance type as defined by <code>InstanceType</code>. Expressed in USD. If neither <code>BidPrice</code> nor <code>BidPriceAsPercentageOfOnDemandPrice</code> is provided, <code>BidPriceAsPercentageOfOnDemandPrice</code> defaults to 100%.</p>"""
    instance_type: NotRequired["capo_emr.types.instance_type.InstanceType"]
    """<p>The Amazon EC2 instance type for all instances in the instance group.</p>"""
    instance_count: NotRequired["capo_emr.types.integer.Integer"]
    """<p>Target number of instances for the instance group.</p>"""
    configurations: NotRequired["capo_emr.types.configuration_list.ConfigurationList"]
    """<note> <p>Amazon EMR releases 4.x or later.</p> </note> <p>The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).</p>"""
    ebs_configuration: NotRequired["capo_emr.types.ebs_configuration.EbsConfiguration"]
    """<p>EBS configurations that will be attached to each Amazon EC2 instance in the instance group.</p>"""
    auto_scaling_policy: NotRequired[
        "capo_emr.types.auto_scaling_policy.AutoScalingPolicy"
    ]
    """<p>An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See <a>PutAutoScalingPolicy</a>.</p>"""
    custom_ami_id: NotRequired[
        "capo_emr.types.xml_string_max_len256.XmlStringMaxLen256"
    ]
    """<p>The custom AMI ID to use for the provisioned instance group.</p>"""

auto_scaling_policy instance-attribute

auto_scaling_policy: NotRequired[AutoScalingPolicy]

An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.

bid_price instance-attribute

bid_price: NotRequired[XmlStringMaxLen256]

The bid price for each Amazon EC2 Spot Instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

configurations instance-attribute

configurations: NotRequired[ConfigurationList]

Amazon EMR releases 4.x or later.

The list of configurations supplied for an Amazon EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).

custom_ami_id instance-attribute

custom_ami_id: NotRequired[XmlStringMaxLen256]

The custom AMI ID to use for the provisioned instance group.

ebs_configuration instance-attribute

ebs_configuration: NotRequired[EbsConfiguration]

EBS configurations that will be attached to each Amazon EC2 instance in the instance group.

instance_count instance-attribute

instance_count: NotRequired[Integer]

Target number of instances for the instance group.

instance_role instance-attribute

instance_role: NotRequired[InstanceRoleType]

The role of the instance group in the cluster.

instance_type instance-attribute

instance_type: NotRequired[InstanceType]

The Amazon EC2 instance type for all instances in the instance group.

market instance-attribute

market: NotRequired[MarketType]

Market type of the Amazon EC2 instances used to create a cluster node.

name instance-attribute

name: NotRequired[XmlStringMaxLen256]

Friendly name given to the instance group.