Examples of assumeRole()


Examples of com.amazonaws.services.securitytoken.AWSSecurityTokenServiceClient.assumeRole()

        AssumeRoleRequest assumeRoleRequest = new AssumeRoleRequest()
                .withDurationSeconds(durationInSeconds)
                .withExternalId(externalId)
                .withRoleArn(awsCredential.getRoleArn())
                .withRoleSessionName("hadoop-provisioning");
        AssumeRoleResult result = client.assumeRole(assumeRoleRequest);

        cacheSessionCredentials(result, durationInSeconds, awsCredential);

        return new BasicSessionCredentials(
                result.getCredentials().getAccessKeyId(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.