@Stability(value=Stable) @Internal public static final class ManagedPolicyProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ManagedPolicyProps
ManagedPolicyPropssoftware.amazon.jsii.JsiiObject.InitializationModeManagedPolicyProps.Builder, ManagedPolicyProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(ManagedPolicyProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
ManagedPolicyProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getDescription()
A description of the managed policy.
|
PolicyDocument |
getDocument()
Initial PolicyDocument to use for this ManagedPolicy.
|
List<IGroup> |
getGroups()
Groups to attach this policy to.
|
String |
getManagedPolicyName()
The name of the managed policy.
|
String |
getPath()
The path for the policy.
|
List<IRole> |
getRoles()
Roles to attach this policy to.
|
List<PolicyStatement> |
getStatements()
Initial set of permissions to add to this policy document.
|
List<IUser> |
getUsers()
Users to attach this policy to.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(ManagedPolicyProps.Builder builder)
ManagedPolicyProps.Builder.public final String getDescription()
ManagedPolicyPropsTypically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables." The policy description is immutable. After a value is assigned, it cannot be changed.
Default: - empty
getDescription in interface ManagedPolicyPropspublic final PolicyDocument getDocument()
ManagedPolicyProps
If omited, any
PolicyStatement provided in the statements property will be applied
against the empty default PolicyDocument.
Default: - An empty policy.
getDocument in interface ManagedPolicyPropspublic final List<IGroup> getGroups()
ManagedPolicyProps
You can also use attachToGroup(group) to attach this policy to a group.
Default: - No groups.
getGroups in interface ManagedPolicyPropspublic final String getManagedPolicyName()
ManagedPolicyPropsIf you specify multiple policies for an entity, specify unique names. For example, if you specify a list of policies for an IAM role, each policy must have a unique name.
Default: - A name is automatically generated.
getManagedPolicyName in interface ManagedPolicyPropspublic final String getPath()
ManagedPolicyPropsThis parameter allows (through its regex pattern) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (!) through the DEL character (), including most punctuation characters, digits, and upper and lowercased letters.
For more information about paths, see IAM Identifiers in the IAM User Guide.
Default: - "/"
getPath in interface ManagedPolicyPropspublic final List<IRole> getRoles()
ManagedPolicyProps
You can also use attachToRole(role) to attach this policy to a role.
Default: - No roles.
getRoles in interface ManagedPolicyPropspublic final List<PolicyStatement> getStatements()
ManagedPolicyProps
You can also use addPermission(statement) to add permissions later.
Default: - No statements.
getStatements in interface ManagedPolicyPropspublic final List<IUser> getUsers()
ManagedPolicyProps
You can also use attachToUser(user) to attach this policy to a user.
Default: - No users.
getUsers in interface ManagedPolicyProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.