@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.779Z") @Stability(value=Stable) public class PermissionsBoundary extends software.amazon.jsii.JsiiObject
IManagedPolicy policy = ManagedPolicy.fromAwsManagedPolicyName("ReadOnlyAccess");
PermissionsBoundary.of(this).apply(policy);
Example:
Project project; PermissionsBoundary.of(project).apply(new UntrustedCodeBoundaryPolicy(this, "Boundary"));
| Modifier | Constructor and Description |
|---|---|
protected |
PermissionsBoundary(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PermissionsBoundary(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(IManagedPolicy boundaryPolicy)
Apply the given policy as Permissions Boundary to all Roles and Users in the scope.
|
void |
clear()
Remove previously applied Permissions Boundaries.
|
static PermissionsBoundary |
of(software.constructs.IConstruct scope)
Access the Permissions Boundaries of a construct tree.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected PermissionsBoundary(software.amazon.jsii.JsiiObjectRef objRef)
protected PermissionsBoundary(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static PermissionsBoundary of(@NotNull software.constructs.IConstruct scope)
scope - This parameter is required.@Stability(value=Stable)
public void apply(@NotNull
IManagedPolicy boundaryPolicy)
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.
boundaryPolicy - This parameter is required.@Stability(value=Stable) public void clear()
Copyright © 2022. All rights reserved.