RoleWithPolicy class

The set of arguments for constructing a Role resource and Policy attachments.

Constructors

RoleWithPolicy({Input<String?>? description, Input<bool?>? forceDetachPolicies, Input<List<RoleInlinePolicy>?>? inlinePolicies, Input<List<String>?>? managedPolicyArns, Input<int?>? maxSessionDuration, Input<String?>? name, Input<String?>? namePrefix, Input<String?>? path, Input<String?>? permissionsBoundary, Input<List<String>?>? policyArns, 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.
const
RoleWithPolicy.fromMap(Map<String, dynamic> map)
factory

Properties

description → Input<String?>?
Description of the role.
final
forceDetachPolicies → Input<bool?>?
Whether to force detaching any policies the role has before destroying it. Defaults to false.
final
hashCode → int
The hash code for this object.
no setterinherited
inlinePolicies → Input<List<RoleInlinePolicy>?>?
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.
final
managedPolicyArns → Input<List<String>?>?
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.
final
maxSessionDuration → Input<int?>?
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.
final
name → Input<String?>?
Friendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.
final
namePrefix → Input<String?>?
Creates a unique friendly name beginning with the specified prefix. Conflicts with name.
final
path → Input<String?>?
Path to the role. See IAM Identifiers for more information.
final
permissionsBoundary → Input<String?>?
ARN of the policy that is used to set the permissions boundary for the role.
final
policyArns → Input<List<String>?>?
ARNs of the policies to attach to the created role.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags → Input<Map<String, String>?>?
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.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited