Package org.jclouds.sts
Interface STSApi
-
- All Superinterfaces:
AutoCloseable,Closeable
public interface STSApi extends Closeable
Provides access to Amazon STS via the Query API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserAndSessionCredentialsassumeRole(String roleArn, String sessionName)Assumes a role for a specified session.UserAndSessionCredentialsassumeRole(String roleArn, String sessionName, AssumeRoleOptions options)likeassumeRole(String, String), except you can modify the timeout and other parameters.UserAndSessionCredentialscreateFederatedUser(String userName)Returns a set of temporary credentials for a federated user with the user name specified.UserAndSessionCredentialscreateFederatedUser(String userName, FederatedUserOptions options)likecreateFederatedUser(String), except you can modify the timeout and other parameters.SessionCredentialscreateTemporaryCredentials()Returns a set of temporary credentials for an AWS account or IAM user, with a default timeoutSessionCredentialscreateTemporaryCredentials(SessionCredentialsOptions options)likecreateTemporaryCredentials(), except you can modify the timeout and other parameters.
-
-
-
Method Detail
-
createTemporaryCredentials
@Named("GetSessionToken") @POST @Path("/") SessionCredentials createTemporaryCredentials()Returns a set of temporary credentials for an AWS account or IAM user, with a default timeout
-
createTemporaryCredentials
@Named("GetSessionToken") @POST @Path("/") SessionCredentials createTemporaryCredentials(SessionCredentialsOptions options)likecreateTemporaryCredentials(), except you can modify the timeout and other parameters.
-
assumeRole
@Named("AssumeRole") @POST @Path("/") UserAndSessionCredentials assumeRole(@FormParam("RoleArn") String roleArn, @FormParam("RoleSessionName") String sessionName)Assumes a role for a specified session. Only IAM users can assume a role.- Parameters:
sessionName- An identifier for the assumed role session, included as part ofUser#getId.roleArn- The Amazon Resource Name (ARN) of the role that the caller is assuming.
-
assumeRole
@Named("AssumeRole") @POST @Path("/") UserAndSessionCredentials assumeRole(@FormParam("RoleArn") String roleArn, @FormParam("RoleSessionName") String sessionName, AssumeRoleOptions options)likeassumeRole(String, String), except you can modify the timeout and other parameters.
-
createFederatedUser
@Named("GetFederationToken") @POST @Path("/") UserAndSessionCredentials createFederatedUser(@FormParam("Name") String userName)Returns a set of temporary credentials for a federated user with the user name specified.- Parameters:
userName- The name of the federated user, included as part ofUser#getId.
-
createFederatedUser
@Named("GetFederationToken") @POST @Path("/") UserAndSessionCredentials createFederatedUser(@FormParam("Name") String userName, FederatedUserOptions options)likecreateFederatedUser(String), except you can modify the timeout and other parameters.
-
-