Skip to content

ModifySpotFleetRequestRequest

Source code in docs_src/capo_ec2/types/modify_spot_fleet_request_request.py
class ModifySpotFleetRequestRequest(TypedDict, closed=True):
    launch_template_configs: NotRequired[
        "capo_ec2.types.launch_template_config_list.LaunchTemplateConfigList"
    ]
    """<p>The launch template and overrides. You can only use this parameter if you specified a launch template (<code>LaunchTemplateConfigs</code>) in your Spot Fleet request. If you specified <code>LaunchSpecifications</code> in your Spot Fleet request, then omit this parameter.</p>"""
    on_demand_target_capacity: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The number of On-Demand Instances in the fleet.</p>"""
    context: NotRequired["capo_ec2.types.string.String"]
    """<p>Reserved.</p>"""
    spot_fleet_request_id: NotRequired[
        "capo_ec2.types.spot_fleet_request_id.SpotFleetRequestId"
    ]
    """<p>The ID of the Spot Fleet request.</p>"""
    target_capacity: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The size of the fleet.</p>"""
    excess_capacity_termination_policy: NotRequired[
        "capo_ec2.types.excess_capacity_termination_policy.ExcessCapacityTerminationPolicy"
    ]
    """<p>Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.</p> <p>Supported only for fleets of type <code>maintain</code>.</p>"""

context instance-attribute

context: NotRequired[String]

Reserved.

excess_capacity_termination_policy instance-attribute

excess_capacity_termination_policy: NotRequired[ExcessCapacityTerminationPolicy]

Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.

Supported only for fleets of type maintain.

launch_template_configs instance-attribute

launch_template_configs: NotRequired[LaunchTemplateConfigList]

The launch template and overrides. You can only use this parameter if you specified a launch template (LaunchTemplateConfigs) in your Spot Fleet request. If you specified LaunchSpecifications in your Spot Fleet request, then omit this parameter.

on_demand_target_capacity instance-attribute

on_demand_target_capacity: NotRequired[Integer]

The number of On-Demand Instances in the fleet.

spot_fleet_request_id instance-attribute

spot_fleet_request_id: NotRequired[SpotFleetRequestId]

The ID of the Spot Fleet request.

target_capacity instance-attribute

target_capacity: NotRequired[Integer]

The size of the fleet.