pub struct FleetResult {Show 19 fields
pub arn: Output<String>,
pub context: Output<Option<String>>,
pub excess_capacity_termination_policy: Output<Option<String>>,
pub fleet_instance_sets: Output<Vec<FleetFleetInstanceSet>>,
pub fleet_state: Output<String>,
pub fulfilled_capacity: Output<f64>,
pub fulfilled_on_demand_capacity: Output<f64>,
pub launch_template_configs: Output<Vec<FleetLaunchTemplateConfig>>,
pub on_demand_options: Output<Option<FleetOnDemandOptions>>,
pub replace_unhealthy_instances: Output<Option<bool>>,
pub spot_options: Output<Option<FleetSpotOptions>>,
pub tags: Output<Option<HashMap<String, String>>>,
pub tags_all: Output<HashMap<String, String>>,
pub target_capacity_specification: Output<FleetTargetCapacitySpecification>,
pub terminate_instances: Output<Option<bool>>,
pub terminate_instances_with_expiration: Output<Option<bool>>,
pub type_: Output<Option<String>>,
pub valid_from: Output<Option<String>>,
pub valid_until: Output<Option<String>>,
}
Fields§
§arn: Output<String>
The ARN of the fleet
context: Output<Option<String>>
Reserved.
excess_capacity_termination_policy: Output<Option<String>>
Whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2. Valid values: no-termination
, termination
. Defaults to termination
. Supported only for fleets of type maintain
.
fleet_instance_sets: Output<Vec<FleetFleetInstanceSet>>
Information about the instances that were launched by the fleet. Available only when type
is set to instant
.
fleet_state: Output<String>
The state of the EC2 Fleet.
fulfilled_capacity: Output<f64>
The number of units fulfilled by this request compared to the set target capacity.
fulfilled_on_demand_capacity: Output<f64>
The number of units fulfilled by this request compared to the set target On-Demand capacity.
launch_template_configs: Output<Vec<FleetLaunchTemplateConfig>>
Nested argument containing EC2 Launch Template configurations. Defined below.
on_demand_options: Output<Option<FleetOnDemandOptions>>
Nested argument containing On-Demand configurations. Defined below.
replace_unhealthy_instances: Output<Option<bool>>
Whether EC2 Fleet should replace unhealthy instances. Defaults to false
. Supported only for fleets of type maintain
.
spot_options: Output<Option<FleetSpotOptions>>
Nested argument containing Spot configurations. Defined below.
Map of Fleet tags. To tag instances at launch, specify the tags in the Launch Template. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
A map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.
target_capacity_specification: Output<FleetTargetCapacitySpecification>
Nested argument containing target capacity configurations. Defined below.
terminate_instances: Output<Option<bool>>
Whether to terminate instances for an EC2 Fleet if it is deleted successfully. Defaults to false
.
terminate_instances_with_expiration: Output<Option<bool>>
Whether running instances should be terminated when the EC2 Fleet expires. Defaults to false
.
type_: Output<Option<String>>
The type of request. Indicates whether the EC2 Fleet only requests the target capacity, or also attempts to maintain it. Valid values: maintain
, request
, instant
. Defaults to maintain
.
valid_from: Output<Option<String>>
The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
valid_until: Output<Option<String>>
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new EC2 Fleet requests are placed or able to fulfill the request. If no value is specified, the request remains until you cancel it.