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

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

Introduction

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

Prototype


public String getId() 

Source Link

Document

The ID of the instance profile.

Usage

From source file:org.occiware.clouddriver.util.InstanceDataFactory.java

License:Apache License

/**
 *
 * @param instance/*from   w  ww .  jav  a  2  s .co 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;
}