public abstract class AWSClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,com.amazonaws.auth.profile.internal.BasicProfile> |
cache |
protected com.amazonaws.auth.AWSCredentials |
credentials |
protected java.lang.String |
defaultRegion |
protected java.lang.String |
profileName |
protected java.lang.String |
uri |
Constructor and Description |
---|
AWSClient(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static java.lang.String |
getConsoleUrl(java.lang.String id,
java.lang.String key,
java.lang.String token)
returns console url for the temporary credentials or null otherwise
|
com.amazonaws.auth.AWSCredentials |
getCredentials(java.lang.String profileName)
returns the credentials for the profileName or null if not found
|
abstract java.util.List |
getList(java.util.Map<java.lang.String,java.lang.String> req) |
com.amazonaws.auth.profile.internal.BasicProfile |
getProfile(java.lang.String profileName)
returns the basic profile for the profileName or null if not found
|
java.lang.String |
getRegion(java.lang.String profileName)
returns the region for the profileName or the default one if not found
|
abstract java.util.Map |
getResponse(java.util.Map<java.lang.String,java.lang.String> req) |
protected java.util.Map<java.lang.String,com.amazonaws.auth.profile.internal.BasicProfile> cache
protected com.amazonaws.auth.AWSCredentials credentials
protected java.lang.String profileName
protected java.lang.String defaultRegion
protected java.lang.String uri
public java.lang.String getRegion(java.lang.String profileName)
public com.amazonaws.auth.AWSCredentials getCredentials(java.lang.String profileName)
public com.amazonaws.auth.profile.internal.BasicProfile getProfile(java.lang.String profileName)
public static java.lang.String getConsoleUrl(java.lang.String id, java.lang.String key, java.lang.String token) throws java.io.IOException
java.io.IOException
public abstract java.util.Map getResponse(java.util.Map<java.lang.String,java.lang.String> req) throws java.io.IOException
java.io.IOException
public abstract java.util.List getList(java.util.Map<java.lang.String,java.lang.String> req) throws java.io.IOException
java.io.IOException
public void close()