aws_spot_fleet_request

Nivis 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_role
  • target_capacity
Optional arguments
  • allocation_strategy (defaults to null)
  • context (defaults to null)
  • excess_capacity_termination_policy (defaults to null)
  • fleet_type (defaults to null)
  • id (defaults to null)
  • instance_interruption_behaviour (defaults to null)
  • instance_pools_to_use_count (defaults to null)
  • load_balancers (defaults to null)
  • on_demand_allocation_strategy (defaults to null)
  • on_demand_max_total_price (defaults to null)
  • on_demand_target_capacity (defaults to null)
  • region (defaults to null)
  • replace_unhealthy_instances (defaults to null)
  • spot_price (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • target_capacity_unit_type (defaults to null)
  • target_group_arns (defaults to null)
  • terminate_instances_on_delete (defaults to null)
  • terminate_instances_with_expiration (defaults to null)
  • valid_from (defaults to null)
  • valid_until (defaults to null)
  • wait_for_fulfillment (defaults to null)
  • launch_specification (defaults to null)
  • launch_template_config (defaults to null)
  • spot_maintenance_strategies (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • client_token
  • spot_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.