aws_kms_grantNivis 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_principalkey_idoperations
Optional arguments
grant_creation_tokens(defaults tonull)id(defaults tonull)cfg_name(defaults tonull)region(defaults tonull)retire_on_delete(defaults tonull)retiring_principal(defaults tonull)constraints(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
grant_idgrant_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.