FleetData
¶
Source code in docs_src/capo_ec2/types/fleet_data.py
activity_status
instance-attribute
¶
activity_status: NotRequired[FleetActivityStatus]
The progress of the EC2 Fleet.
For fleets of type instant, the status is fulfilled after all requests are placed, regardless of whether target capacity is met (this is the only possible status for instant fleets).
For fleets of type request or maintain, the status is pending_fulfillment after all requests are placed, fulfilled when the fleet size meets or exceeds target capacity, pending_termination while instances are terminating when fleet size is decreased, and error if there's an error.
client_token
instance-attribute
¶
client_token: NotRequired[String]
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraints: Maximum 64 ASCII characters
create_time
instance-attribute
¶
create_time: NotRequired[DateTime]
The creation date and time of the EC2 Fleet.
errors
instance-attribute
¶
errors: NotRequired[DescribeFleetsErrorSet]
Information about the instances that could not be launched by the fleet. Valid only when Type is set to instant.
excess_capacity_termination_policy
instance-attribute
¶
excess_capacity_termination_policy: NotRequired[FleetExcessCapacityTerminationPolicy]
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain.
fleet_state
instance-attribute
¶
fleet_state: NotRequired[FleetStateCode]
The state of the EC2 Fleet.
fulfilled_capacity
instance-attribute
¶
fulfilled_capacity: NotRequired[Double]
The number of units fulfilled by this request compared to the set target capacity.
fulfilled_on_demand_capacity
instance-attribute
¶
fulfilled_on_demand_capacity: NotRequired[Double]
The number of units fulfilled by this request compared to the set target On-Demand capacity.
instances
instance-attribute
¶
instances: NotRequired[DescribeFleetsInstancesSet]
Information about the instances that were launched by the fleet. Valid only when Type is set to instant.
launch_template_configs
instance-attribute
¶
launch_template_configs: NotRequired[FleetLaunchTemplateConfigList]
The launch template and overrides.
on_demand_options
instance-attribute
¶
on_demand_options: NotRequired[OnDemandOptions]
The allocation strategy of On-Demand Instances in an EC2 Fleet.
replace_unhealthy_instances
instance-attribute
¶
replace_unhealthy_instances: NotRequired[Boolean]
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type maintain. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.
reserved_capacity_options
instance-attribute
¶
reserved_capacity_options: NotRequired[ReservedCapacityOptions]
Defines EC2 Fleet preferences for utilizing reserved capacity when DefaultTargetCapacityType is set to reserved-capacity.
spot_options
instance-attribute
¶
spot_options: NotRequired[SpotOptions]
The configuration of Spot Instances in an EC2 Fleet.
target_capacity_specification
instance-attribute
¶
target_capacity_specification: NotRequired[TargetCapacitySpecification]
The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.
terminate_instances_with_expiration
instance-attribute
¶
terminate_instances_with_expiration: NotRequired[Boolean]
Indicates whether running instances should be terminated when the EC2 Fleet expires.
type
instance-attribute
¶
type: NotRequired[FleetType]
The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. If you request a certain target capacity, EC2 Fleet only places the required requests; it does not attempt to replenish instances if capacity is diminished, and it does not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically replenishes any interrupted Spot Instances. Default: maintain.