aws_volume_attachment

Nivis Nix constructor for the aws_volume_attachment 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,
  device_name,
  instance_id,
  volume_id,
  force_detach ? null,
  id ? null,
  region ? null,
  skip_destroy ? null,
  stop_instance_before_detaching ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • device_name
  • instance_id
  • volume_id
Optional arguments
  • force_detach (defaults to null)
  • id (defaults to null)
  • region (defaults to null)
  • skip_destroy (defaults to null)
  • stop_instance_before_detaching (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • (none)
Example
aws_volume_attachment {
  name = "volume_attachment";
  device_name = …;  # required
  instance_id = …;  # required
  volume_id = …;  # required
}

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