aws_iam_policyNivis Nix constructor for the aws_iam_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,
delay_after_policy_creation_in_ms ? null,
description ? null,
id ? null,
cfg_name ? null,
name_prefix ? null,
path ? null,
tags ? null,
tags_all ? null,
overrides ? {}
}Required arguments
policy
Optional arguments
delay_after_policy_creation_in_ms(defaults tonull)description(defaults tonull)id(defaults tonull)cfg_name(defaults tonull)name_prefix(defaults tonull)path(defaults tonull)tags(defaults tonull)tags_all(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
arnattachment_countpolicy_id
Example
aws_iam_policy {
name = "iam_policy";
policy = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.