Class ManagedPolicyProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iam.ManagedPolicyProps.Jsii$Proxy
All Implemented Interfaces:
ManagedPolicyProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
ManagedPolicyProps

@Stability(Stable) @Internal public static final class ManagedPolicyProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ManagedPolicyProps
An implementation for ManagedPolicyProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(ManagedPolicyProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the ManagedPolicyProps.Builder.
  • Method Details

    • getDescription

      public final String getDescription()
      Description copied from interface: ManagedPolicyProps
      A description of the managed policy.

      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

      Specified by:
      getDescription in interface ManagedPolicyProps
    • getDocument

      public final PolicyDocument getDocument()
      Description copied from interface: ManagedPolicyProps
      Initial PolicyDocument to use for this ManagedPolicy.

      If omited, any PolicyStatement provided in the statements property will be applied against the empty default PolicyDocument.

      Default: - An empty policy.

      Specified by:
      getDocument in interface ManagedPolicyProps
    • getGroups

      public final List<IGroup> getGroups()
      Description copied from interface: ManagedPolicyProps
      Groups to attach this policy to.

      You can also use attachToGroup(group) to attach this policy to a group.

      Default: - No groups.

      Specified by:
      getGroups in interface ManagedPolicyProps
    • getManagedPolicyName

      public final String getManagedPolicyName()
      Description copied from interface: ManagedPolicyProps
      The name of the managed policy.

      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.

      Specified by:
      getManagedPolicyName in interface ManagedPolicyProps
    • getPath

      public final String getPath()
      Description copied from interface: ManagedPolicyProps
      The path for the policy.

      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: - "/"

      Specified by:
      getPath in interface ManagedPolicyProps
    • getRoles

      public final List<IRole> getRoles()
      Description copied from interface: ManagedPolicyProps
      Roles to attach this policy to.

      You can also use attachToRole(role) to attach this policy to a role.

      Default: - No roles.

      Specified by:
      getRoles in interface ManagedPolicyProps
    • getStatements

      public final List<PolicyStatement> getStatements()
      Description copied from interface: ManagedPolicyProps
      Initial set of permissions to add to this policy document.

      You can also use addPermission(statement) to add permissions later.

      Default: - No statements.

      Specified by:
      getStatements in interface ManagedPolicyProps
    • getUsers

      public final List<IUser> getUsers()
      Description copied from interface: ManagedPolicyProps
      Users to attach this policy to.

      You can also use attachToUser(user) to attach this policy to a user.

      Default: - No users.

      Specified by:
      getUsers in interface ManagedPolicyProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object