aws_ec2_capacity_reservation

Nivis Nix constructor for the aws_ec2_capacity_reservation 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,
  availability_zone,
  instance_count,
  instance_platform,
  instance_type,
  ebs_optimized ? null,
  end_date ? null,
  end_date_type ? null,
  ephemeral_storage ? null,
  id ? null,
  instance_match_criteria ? null,
  outpost_arn ? null,
  placement_group_arn ? null,
  region ? null,
  tags ? null,
  tags_all ? null,
  tenancy ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • availability_zone
  • instance_count
  • instance_platform
  • instance_type
Optional arguments
  • ebs_optimized (defaults to null)
  • end_date (defaults to null)
  • end_date_type (defaults to null)
  • ephemeral_storage (defaults to null)
  • id (defaults to null)
  • instance_match_criteria (defaults to null)
  • outpost_arn (defaults to null)
  • placement_group_arn (defaults to null)
  • region (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • tenancy (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • owner_id
Example
aws_ec2_capacity_reservation {
  name = "ec2_capacity_reservation";
  availability_zone = …;  # required
  instance_count = …;  # required
  instance_platform = …;  # required
  instance_type = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.