Example usage for com.amazonaws.services.ec2.model IamInstanceProfile getArn

List of usage examples for com.amazonaws.services.ec2.model IamInstanceProfile getArn

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model IamInstanceProfile getArn.

Prototype


public String getArn() 

Source Link

Document

The Amazon Resource Name (ARN) of the instance profile.

Usage

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;
}