aws_ec2_capacity_reservationNivis 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_zoneinstance_countinstance_platforminstance_type
Optional arguments
ebs_optimized(defaults tonull)end_date(defaults tonull)end_date_type(defaults tonull)ephemeral_storage(defaults tonull)id(defaults tonull)instance_match_criteria(defaults tonull)outpost_arn(defaults tonull)placement_group_arn(defaults tonull)region(defaults tonull)tags(defaults tonull)tags_all(defaults tonull)tenancy(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
arnowner_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.