aws_iam_policy_attachmentNivis Nix constructor for the aws_iam_policy_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,
policy_arn,
groups ? null,
id ? null,
cfg_name ? null,
roles ? null,
users ? null,
overrides ? {}
}Required arguments
policy_arn
Optional arguments
groups(defaults tonull)id(defaults tonull)cfg_name(defaults tonull)roles(defaults tonull)users(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
(none)
Example
aws_iam_policy_attachment {
name = "iam_policy_attachment";
policy_arn = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.