@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:31.421Z") @Stability(value=Experimental) public interface ManagedPolicyProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
ManagedPolicyProps.Builder
A builder for
ManagedPolicyProps |
static class |
ManagedPolicyProps.Jsii$Proxy
An implementation for
ManagedPolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static ManagedPolicyProps.Builder |
builder() |
default String |
getDescription()
(experimental) A description of the managed policy.
|
default PolicyDocument |
getDocument()
(experimental) Initial PolicyDocument to use for this ManagedPolicy.
|
default List<IGroup> |
getGroups()
(experimental) Groups to attach this policy to.
|
default String |
getManagedPolicyName()
(experimental) The name of the managed policy.
|
default String |
getPath()
(experimental) The path for the policy.
|
default List<IRole> |
getRoles()
(experimental) Roles to attach this policy to.
|
default List<PolicyStatement> |
getStatements()
(experimental) Initial set of permissions to add to this policy document.
|
default List<IUser> |
getUsers()
(experimental) Users to attach this policy to.
|
@Stability(value=Experimental) @Nullable default String getDescription()
Typically 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
@Stability(value=Experimental) @Nullable default PolicyDocument getDocument()
If omited, any
PolicyStatement provided in the statements property will be applied
against the empty default PolicyDocument.
Default: - An empty policy.
@Stability(value=Experimental) @Nullable default List<IGroup> getGroups()
You can also use attachToGroup(group) to attach this policy to a group.
Default: - No groups.
@Stability(value=Experimental) @Nullable default String getManagedPolicyName()
If 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.
@Stability(value=Experimental) @Nullable default String getPath()
This 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: - "/"
@Stability(value=Experimental) @Nullable default List<IRole> getRoles()
You can also use attachToRole(role) to attach this policy to a role.
Default: - No roles.
@Stability(value=Experimental) @Nullable default List<PolicyStatement> getStatements()
You can also use addPermission(statement) to add permissions later.
Default: - No statements.
@Stability(value=Experimental) @Nullable default List<IUser> getUsers()
You can also use attachToUser(user) to attach this policy to a user.
Default: - No users.
@Stability(value=Experimental) static ManagedPolicyProps.Builder builder()
ManagedPolicyProps.Builder of ManagedPolicyPropsCopyright © 2021. All rights reserved.