Enum Principal.Services

java.lang.Object
java.lang.Enum<Principal.Services>
com.amazonaws.auth.policy.Principal.Services
All Implemented Interfaces:
Serializable, Comparable<Principal.Services>, java.lang.constant.Constable
Enclosing class:
Principal

public static enum Principal.Services extends Enum<Principal.Services>
The services who have the right to do the assume the role action. The AssumeRole action returns a set of temporary security credentials that you can use to access resources that are defined in the role's policy. The returned credentials consist of an Access Key ID, a Secret Access Key, and a security token.
  • Enum Constant Details

  • Method Details

    • values

      public static Principal.Services[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Principal.Services valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getServiceId

      public String getServiceId()
    • fromString

      public static Principal.Services fromString(String serviceId)
      Construct the Services object from a string representing the service id.