Skip to content

InstanceTypeConfig

Source code in docs_src/capo_emr/types/instance_type_config.py
class InstanceTypeConfig(TypedDict, closed=True):
    instance_type: NotRequired["capo_emr.types.instance_type.InstanceType"]
    """<p>An Amazon EC2 instance type, such as <code>m3.xlarge</code>. </p>"""
    weighted_capacity: NotRequired["capo_emr.types.whole_number.WholeNumber"]
    """<p>The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in <a>InstanceFleetConfig</a>. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified. </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>"""
    bid_price_as_percentage_of_on_demand_price: NotRequired[
        "capo_emr.types.non_negative_double.NonNegativeDouble"
    ]
    """<p>The bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined by <code>InstanceType</code>. Expressed as a number (for example, 20 specifies 20%). If neither <code>BidPrice</code> nor <code>BidPriceAsPercentageOfOnDemandPrice</code> is provided, <code>BidPriceAsPercentageOfOnDemandPrice</code> defaults to 100%.</p>"""
    ebs_configuration: NotRequired["capo_emr.types.ebs_configuration.EbsConfiguration"]
    """<p>The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by <code>InstanceType</code>. </p>"""
    configurations: NotRequired["capo_emr.types.configuration_list.ConfigurationList"]
    """<p>A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.</p>"""
    custom_ami_id: NotRequired[
        "capo_emr.types.xml_string_max_len256.XmlStringMaxLen256"
    ]
    """<p>The custom AMI ID to use for the instance type.</p>"""
    priority: NotRequired["capo_emr.types.non_negative_double.NonNegativeDouble"]
    """<p>The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type. Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.</p>"""

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%.

bid_price_as_percentage_of_on_demand_price instance-attribute

bid_price_as_percentage_of_on_demand_price: NotRequired[NonNegativeDouble]

The bid price, as a percentage of On-Demand price, for each Amazon EC2 Spot Instance as defined by InstanceType. Expressed as a number (for example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.

configurations instance-attribute

configurations: NotRequired[ConfigurationList]

A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.

custom_ami_id instance-attribute

custom_ami_id: NotRequired[XmlStringMaxLen256]

The custom AMI ID to use for the instance type.

ebs_configuration instance-attribute

ebs_configuration: NotRequired[EbsConfiguration]

The configuration of Amazon Elastic Block Store (Amazon EBS) attached to each instance as defined by InstanceType.

instance_type instance-attribute

instance_type: NotRequired[InstanceType]

An Amazon EC2 instance type, such as m3.xlarge.

priority instance-attribute

priority: NotRequired[NonNegativeDouble]

The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type. Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.

weighted_capacity instance-attribute

weighted_capacity: NotRequired[WholeNumber]

The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified.