Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.auth.policy
Enum Principal.Services

java.lang.Object
  extended by java.lang.Enum<Principal.Services>
      extended by com.amazonaws.auth.policy.Principal.Services
All Implemented Interfaces:
Serializable, Comparable<Principal.Services>
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 Summary
AmazonEC2
           
AmazonElasticTranscoder
           
AWSDataPipeline
           
AWSOpsWorks
           
 
Method Summary
static Principal.Services fromString(String serviceId)
          Construct the Services object from a string representing the service id.
 String getServiceId()
           
static Principal.Services valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Principal.Services[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AWSDataPipeline

public static final Principal.Services AWSDataPipeline

AmazonElasticTranscoder

public static final Principal.Services AmazonElasticTranscoder

AmazonEC2

public static final Principal.Services AmazonEC2

AWSOpsWorks

public static final Principal.Services AWSOpsWorks
Method Detail

values

public static Principal.Services[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Principal.Services c : Principal.Services.values())
    System.out.println(c);

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.



Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.