aws_kms_grant

Nivis Nix constructor for the aws_kms_grant 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,
  grantee_principal,
  key_id,
  operations,
  grant_creation_tokens ? null,
  id ? null,
  cfg_name ? null,
  region ? null,
  retire_on_delete ? null,
  retiring_principal ? null,
  constraints ? null,
  overrides ? {}
}
Required arguments
  • grantee_principal
  • key_id
  • operations
Optional arguments
  • grant_creation_tokens (defaults to null)
  • id (defaults to null)
  • cfg_name (defaults to null)
  • region (defaults to null)
  • retire_on_delete (defaults to null)
  • retiring_principal (defaults to null)
  • constraints (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • grant_id
  • grant_token
Example
aws_kms_grant {
  name = "kms_grant";
  grantee_principal = …;  # required
  key_id = …;  # required
  operations = …;  # required
}

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