aws_iam_roleNivis Nix constructor for the aws_iam_role 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,
assume_role_policy,
description ? null,
force_detach_policies ? null,
id ? null,
managed_policy_arns ? null,
max_session_duration ? null,
cfg_name ? null,
name_prefix ? null,
path ? null,
permissions_boundary ? null,
tags ? null,
tags_all ? null,
inline_policy ? null,
overrides ? {}
}Required arguments
assume_role_policy
Optional arguments
description(defaults tonull)force_detach_policies(defaults tonull)id(defaults tonull)managed_policy_arns(defaults tonull)max_session_duration(defaults tonull)cfg_name(defaults tonull)name_prefix(defaults tonull)path(defaults tonull)permissions_boundary(defaults tonull)tags(defaults tonull)tags_all(defaults tonull)inline_policy(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
arncreate_dateunique_id
Example
aws_iam_role {
name = "iam_role";
assume_role_policy = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.