aws_iam_role_policyNivis Nix constructor for the aws_iam_role_policy 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,
policy,
role,
id ? null,
cfg_name ? null,
name_prefix ? null,
overrides ? {}
}Required arguments
policyrole
Optional arguments
id(defaults tonull)cfg_name(defaults tonull)name_prefix(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
(none)
Example
aws_iam_role_policy {
name = "iam_role_policy";
policy = …; # required
role = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.