aws_spot_fleet_requestNivis Nix constructor for the aws_spot_fleet_request resource (provider aws). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
iam_fleet_role,
target_capacity,
allocation_strategy ? null,
context ? null,
excess_capacity_termination_policy ? null,
fleet_type ? null,
id ? null,
instance_interruption_behaviour ? null,
instance_pools_to_use_count ? null,
load_balancers ? null,
on_demand_allocation_strategy ? null,
on_demand_max_total_price ? null,
on_demand_target_capacity ? null,
region ? null,
replace_unhealthy_instances ? null,
spot_price ? null,
tags ? null,
tags_all ? null,
target_capacity_unit_type ? null,
target_group_arns ? null,
terminate_instances_on_delete ? null,
terminate_instances_with_expiration ? null,
valid_from ? null,
valid_until ? null,
wait_for_fulfillment ? null,
launch_specification ? null,
launch_template_config ? null,
spot_maintenance_strategies ? null,
timeouts ? null,
overrides ? {}
}Required arguments
iam_fleet_roletarget_capacity
Optional arguments
allocation_strategy(defaults tonull)context(defaults tonull)excess_capacity_termination_policy(defaults tonull)fleet_type(defaults tonull)id(defaults tonull)instance_interruption_behaviour(defaults tonull)instance_pools_to_use_count(defaults tonull)load_balancers(defaults tonull)on_demand_allocation_strategy(defaults tonull)on_demand_max_total_price(defaults tonull)on_demand_target_capacity(defaults tonull)region(defaults tonull)replace_unhealthy_instances(defaults tonull)spot_price(defaults tonull)tags(defaults tonull)tags_all(defaults tonull)target_capacity_unit_type(defaults tonull)target_group_arns(defaults tonull)terminate_instances_on_delete(defaults tonull)terminate_instances_with_expiration(defaults tonull)valid_from(defaults tonull)valid_until(defaults tonull)wait_for_fulfillment(defaults tonull)launch_specification(defaults tonull)launch_template_config(defaults tonull)spot_maintenance_strategies(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
client_tokenspot_request_state
Example
aws_spot_fleet_request {
name = "spot_fleet_request";
iam_fleet_role = …; # required
target_capacity = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.