aws_ec2_instance_stateNivis Nix constructor for the aws_ec2_instance_state 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,
instance_id,
state,
force ? null,
id ? null,
region ? null,
timeouts ? null,
overrides ? {}
}Required arguments
instance_idstate
Optional arguments
force(defaults tonull)id(defaults tonull)region(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
(none)
Example
aws_ec2_instance_state {
name = "ec2_instance_state";
instance_id = …; # required
state = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.