Package org.jclouds.sts
Interface STSApi
- All Superinterfaces:
AutoCloseable,Closeable
Provides access to Amazon STS via the Query API
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionassumeRole(String roleArn, String sessionName) Assumes a role for a specified session.assumeRole(String roleArn, String sessionName, AssumeRoleOptions options) likeassumeRole(String, String), except you can modify the timeout and other parameters.createFederatedUser(String userName) Returns a set of temporary credentials for a federated user with the user name specified.createFederatedUser(String userName, FederatedUserOptions options) likecreateFederatedUser(String), except you can modify the timeout and other parameters.Returns a set of temporary credentials for an AWS account or IAM user, with a default timeoutlikecreateTemporaryCredentials(), except you can modify the timeout and other parameters.
-
Method Details
-
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:
roleArn- The Amazon Resource Name (ARN) of the role that the caller is assuming.sessionName- An identifier for the assumed role session, included as part of.invalid reference
User#getId
-
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 of.invalid reference
User#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.
-