@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:31.423Z") @Stability(value=Experimental) public class Policy extends Resource implements IPolicy
For more information about IAM policies, see Overview of IAM Policies in the IAM User Guide guide.
| Modifier and Type | Class and Description |
|---|---|
static class |
Policy.Builder
(experimental) A fluent builder for
Policy. |
software.amazon.jsii.JsiiObject.InitializationModeIPolicy.Jsii$Default, IPolicy.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Policy(software.constructs.Construct scope,
String id) |
|
Policy(software.constructs.Construct scope,
String id,
PolicyProps props) |
protected |
Policy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Policy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatements(PolicyStatement... statement)
(experimental) Adds a statement to the policy document.
|
void |
attachToGroup(IGroup group)
(experimental) Attaches this policy to a group.
|
void |
attachToRole(IRole role)
(experimental) Attaches this policy to a role.
|
void |
attachToUser(IUser user)
(experimental) Attaches this policy to a user.
|
static IPolicy |
fromPolicyName(software.constructs.Construct scope,
String id,
String policyName)
(experimental) Import a policy in this app based on its name.
|
PolicyDocument |
getDocument()
(experimental) The policy document.
|
String |
getPolicyName()
(experimental) The name of this policy.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Policy(software.amazon.jsii.JsiiObjectRef objRef)
protected Policy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Policy(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
PolicyProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public Policy(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static IPolicy fromPolicyName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String policyName)
scope - This parameter is required.id - This parameter is required.policyName - This parameter is required.@Stability(value=Experimental)
public void addStatements(@NotNull
PolicyStatement... statement)
statement - This parameter is required.@Stability(value=Experimental)
public void attachToGroup(@NotNull
IGroup group)
group - This parameter is required.@Stability(value=Experimental)
public void attachToRole(@NotNull
IRole role)
role - This parameter is required.@Stability(value=Experimental)
public void attachToUser(@NotNull
IUser user)
user - This parameter is required.@Stability(value=Experimental) @NotNull public PolicyDocument getDocument()
@Stability(value=Experimental) @NotNull public String getPolicyName()
getPolicyName in interface IPolicyCopyright © 2021. All rights reserved.