Interface PrincipalPolicy

All Known Implementing Classes:
PrincipalPolicyJson

public interface PrincipalPolicy
An access policy attached directly to a principal (user), as returned by the IAM principal-policy operations.

This is a read-only response view (spec schema PrincipalPolicy).

  • Method Details

    • getUserPrincipal

      String getUserPrincipal()
      Returns:
      the user principal this policy is attached to
    • getDescription

      String getDescription()
      Returns:
      the description of the policy (may be null)
    • getTags

      Map<String,String> getTags()
      Returns:
      the user-controlled tags on the policy
    • getPermissions

      List<PolicyExpression> getPermissions()
      Returns:
      the permission entries (polymorphic UserRectSet members), each as a lossless PolicyExpression
    • getRev

      String getRev()
      Returns:
      the opaque revision of the policy (used as lastRev)
    • getDisabledPolicy

      Boolean getDisabledPolicy()
      Returns:
      true when the policy is disabled, otherwise null
    • getCreatedBy

      String getCreatedBy()
      Returns:
      the principal that created the policy
    • getCreatedAt

      String getCreatedAt()
      Returns:
      the creation timestamp
    • getUpdatedBy

      String getUpdatedBy()
      Returns:
      the principal that last updated the policy
    • getUpdatedAt

      String getUpdatedAt()
      Returns:
      the last-updated timestamp
    • getApprovedAt

      String getApprovedAt()
      Returns:
      the approval timestamp (may be null)
    • getApprovedBy

      String getApprovedBy()
      Returns:
      the principal that approved the policy (may be null)