RoleWithPolicy constructor

const RoleWithPolicy({
  1. Input<String?>? description,
  2. Input<bool?>? forceDetachPolicies,
  3. Input<List<RoleInlinePolicy>?>? inlinePolicies,
  4. Input<List<String>?>? managedPolicyArns,
  5. Input<int?>? maxSessionDuration,
  6. Input<String?>? name,
  7. Input<String?>? namePrefix,
  8. Input<String?>? path,
  9. Input<String?>? permissionsBoundary,
  10. Input<List<String>?>? policyArns,
  11. Input<Map<String, String>?>? tags,
})

Creates a new RoleWithPolicy. description Description of the role. forceDetachPolicies Whether to force detaching any policies the role has before destroying it. Defaults to false. inlinePolicies Configuration block defining an exclusive set of IAM inline policies associated with the IAM role. See below. If no blocks are configured, Pulumi will not manage any inline policies in this resource. Configuring one empty block (i.e., inlinePolicy {}) will cause Pulumi to remove all inline policies added out of band on apply. managedPolicyArns Set of exclusive IAM managed policy ARNs to attach to the IAM role. If this attribute is not configured, Pulumi will ignore policy attachments to this resource. When configured, Pulumi will align the role's managed policy attachments with this set by attaching or detaching managed policies. Configuring an empty set (i.e., managedPolicyArns = []) will cause Pulumi to remove all managed policy attachments. maxSessionDuration Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. name Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information. namePrefix Creates a unique friendly name beginning with the specified prefix. Conflicts with name. path Path to the role. See IAM Identifiers for more information. permissionsBoundary ARN of the policy that is used to set the permissions boundary for the role. policyArns ARNs of the policies to attach to the created role. tags Key-value mapping of tags for the IAM role. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Implementation

const RoleWithPolicy({
  this.description,
  this.forceDetachPolicies,
  this.inlinePolicies,
  this.managedPolicyArns,
  this.maxSessionDuration,
  this.name,
  this.namePrefix,
  this.path,
  this.permissionsBoundary,
  this.policyArns,
  this.tags,
});