Class RoleGrants
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iam.RoleGrants
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.125.0 (build fdbe357)",
date="2026-01-19T12:03:55.639Z")
@Stability(Stable)
public class RoleGrants
extends software.amazon.jsii.JsiiObject
Collection of grant methods for a IRoleRef.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.iam.*; import software.amazon.awscdk.interfaces.iam.*; IRoleRef roleRef; RoleGrants roleGrants = RoleGrants.fromRole(roleRef);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRoleGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRoleGrants(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionassumeRole(IPrincipal identity) Grant permissions to the given principal to assume this role.static RoleGrantsCreates grants for IRoleRef.passRole(IPrincipal identity) Grant permissions to the given principal to pass this role.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
RoleGrants
protected RoleGrants(software.amazon.jsii.JsiiObjectRef objRef) -
RoleGrants
protected RoleGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromRole
Creates grants for IRoleRef.- Parameters:
role- This parameter is required.
-
assumeRole
Grant permissions to the given principal to assume this role.- Parameters:
identity- This parameter is required.
-
passRole
Grant permissions to the given principal to pass this role.- Parameters:
identity- This parameter is required.
-