List of usage examples for com.amazonaws.services.identitymanagement AmazonIdentityManagementClient AmazonIdentityManagementClient
@Deprecated
public AmazonIdentityManagementClient()
From source file:com.mweagle.tereus.commands.pipelines.AWSEvaluationPipeline.java
License:Open Source License
protected void publishGlobals(ScriptEngine engine) { // Stuff the arguments in there... Supplier<String> fnAWSInfo = () -> { final Map<String, String> creds = new HashMap<>(); creds.put("accessKeyId", this.getAwsCredentials().getAWSAccessKeyId()); creds.put("secretAccessKey", this.getAwsCredentials().getAWSSecretKey()); final Map<String, Object> awsInfo = new HashMap<>(); awsInfo.put("credentials", creds); awsInfo.put("region", this.getRegion().toString()); Gson gson = new Gson(); return gson.toJson(awsInfo); };/*from w w w. jav a 2s. com*/ engine.put("AWSInfoImpl", fnAWSInfo); // User information final AmazonIdentityManagementClient client = new AmazonIdentityManagementClient(); final GetUserResult result = client.getUser(); engine.put("UserInfoImpl", result); // And the logger engine.put("logger", this.logger); }
From source file:com.vb.aws.services.si.iam.IamUtilsImpl.java
/** * Parameterized constructor. Pass the AWS Region as parameter. * @param region /*from ww w . j a v a 2 s .c om*/ */ public IamUtilsImpl(Regions region) { this.iamClient = new AmazonIdentityManagementClient().withRegion(region); }
From source file:com.vb.aws.services.si.iam.IamUtilsImpl.java
/** * Default constructor. */ public IamUtilsImpl() { this.iamClient = new AmazonIdentityManagementClient(); }