Class PermissionsBoundary
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iam.PermissionsBoundary
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:53.607Z")
@Stability(Stable)
public class PermissionsBoundary
extends software.amazon.jsii.JsiiObject
Modify the Permissions Boundaries of Users and Roles in a construct tree.
IManagedPolicy policy = ManagedPolicy.fromAwsManagedPolicyName("ReadOnlyAccess");
PermissionsBoundary.of(this).apply(policy);
Example:
Project project; PermissionsBoundary.of(project).apply(new UntrustedCodeBoundaryPolicy(this, "Boundary"));
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPermissionsBoundary(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPermissionsBoundary(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(IManagedPolicy boundaryPolicy) Apply the given policy as Permissions Boundary to all Roles and Users in the scope.voidclear()Remove previously applied Permissions Boundaries.static PermissionsBoundaryof(software.constructs.IConstruct scope) Access the Permissions Boundaries of a construct tree.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
-
PermissionsBoundary
protected PermissionsBoundary(software.amazon.jsii.JsiiObjectRef objRef) -
PermissionsBoundary
protected PermissionsBoundary(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
of
@Stability(Stable) @NotNull public static PermissionsBoundary of(@NotNull software.constructs.IConstruct scope) Access the Permissions Boundaries of a construct tree.- Parameters:
scope- This parameter is required.
-
apply
Apply the given policy as Permissions Boundary to all Roles and Users in the scope.Will override any Permissions Boundaries configured previously; in case a Permission Boundary is applied in multiple scopes, the Boundary applied closest to the Role wins.
- Parameters:
boundaryPolicy- This parameter is required.
-
clear
@Stability(Stable) public void clear()Remove previously applied Permissions Boundaries.
-