List of usage examples for com.amazonaws.services.ec2.model IamInstanceProfile getArn
public String getArn()
The Amazon Resource Name (ARN) of the instance profile.
From source file:org.occiware.clouddriver.util.InstanceDataFactory.java
License:Apache License
/** * * @param instance// w ww.j a va 2 s . c o m * @return */ private static IamInstanceProfileDO buildIamInstanceProfileDO(Instance instance) { IamInstanceProfile profile = instance.getIamInstanceProfile(); IamInstanceProfileDO profileDO = new IamInstanceProfileDO(); profileDO.setArn(profile.getArn()); profileDO.setProfileId(profile.getId()); return profileDO; }