Skip to content

ModifyFleetRequest

Source code in docs_src/capo_ec2/types/modify_fleet_request.py
class ModifyFleetRequest(TypedDict, closed=True):
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""
    excess_capacity_termination_policy: NotRequired[
        "capo_ec2.types.fleet_excess_capacity_termination_policy.FleetExcessCapacityTerminationPolicy"
    ]
    """<p>Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.</p> <p>Supported only for fleets of type <code>maintain</code>.</p>"""
    launch_template_configs: NotRequired[
        "capo_ec2.types.fleet_launch_template_config_list_request.FleetLaunchTemplateConfigListRequest"
    ]
    """<p>The launch template and overrides.</p>"""
    fleet_id: NotRequired["capo_ec2.types.fleet_id.FleetId"]
    """<p>The ID of the EC2 Fleet.</p>"""
    target_capacity_specification: NotRequired[
        "capo_ec2.types.target_capacity_specification_request.TargetCapacitySpecificationRequest"
    ]
    """<p>The size of the EC2 Fleet.</p>"""
    context: NotRequired["capo_ec2.types.string.String"]
    """<p>Reserved.</p>"""

context instance-attribute

context: NotRequired[String]

Reserved.

dry_run instance-attribute

dry_run: NotRequired[Boolean]

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

excess_capacity_termination_policy instance-attribute

excess_capacity_termination_policy: NotRequired[FleetExcessCapacityTerminationPolicy]

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

Supported only for fleets of type maintain.

fleet_id instance-attribute

fleet_id: NotRequired[FleetId]

The ID of the EC2 Fleet.

launch_template_configs instance-attribute

launch_template_configs: NotRequired[FleetLaunchTemplateConfigListRequest]

The launch template and overrides.

target_capacity_specification instance-attribute

target_capacity_specification: NotRequired[TargetCapacitySpecificationRequest]

The size of the EC2 Fleet.