RoleWithPolicy class
The set of arguments for constructing a Role resource and Policy attachments.
Constructors
-
RoleWithPolicy({Input<
String?> ? description, Input<bool?> ? forceDetachPolicies, Input<List< ? inlinePolicies, Input<RoleInlinePolicy> ?>List< ? managedPolicyArns, Input<String> ?>int?> ? maxSessionDuration, Input<String?> ? name, Input<String?> ? namePrefix, Input<String?> ? path, Input<String?> ? permissionsBoundary, Input<List< ? policyArns, Input<String> ?>Map< ? tags})String, String> ?> -
Creates a new RoleWithPolicy.
descriptionDescription of the role.forceDetachPoliciesWhether to force detaching any policies the role has before destroying it. Defaults tofalse.inlinePoliciesConfiguration 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 onapply.managedPolicyArnsSet 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.maxSessionDurationMaximum 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.nameFriendly name of the role. If omitted, the provider will assign a random, unique name. See IAM Identifiers for more information.namePrefixCreates a unique friendly name beginning with the specified prefix. Conflicts withname.pathPath to the role. See IAM Identifiers for more information.permissionsBoundaryARN of the policy that is used to set the permissions boundary for the role.policyArnsARNs of the policies to attach to the created role.tagsKey-value mapping of tags for the IAM role. If configured with a providerdefaultTagsconfiguration 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 onapply.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
-
Key-value mapping of tags for the IAM role. If configured with a provider
defaultTagsconfiguration 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