pub struct FleetArgs {Show 17 fields
pub context: Output<Option<String>>,
pub excess_capacity_termination_policy: Output<Option<String>>,
pub fleet_instance_sets: Output<Option<Vec<FleetFleetInstanceSet>>>,
pub fleet_state: Output<Option<String>>,
pub fulfilled_capacity: Output<Option<f64>>,
pub fulfilled_on_demand_capacity: Output<Option<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 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§
§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<Option<Vec<FleetFleetInstanceSet>>>
Information about the instances that were launched by the fleet. Available only when type
is set to instant
.
fleet_state: Output<Option<String>>
The state of the EC2 Fleet.
fulfilled_capacity: Output<Option<f64>>
The number of units fulfilled by this request compared to the set target capacity.
fulfilled_on_demand_capacity: Output<Option<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.
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.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FleetArgs
impl RefUnwindSafe for FleetArgs
impl Send for FleetArgs
impl Sync for FleetArgs
impl Unpin for FleetArgs
impl UnwindSafe for FleetArgs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)