List of usage examples for com.amazonaws.services.opsworks.model Instance getInstanceId
public String getInstanceId()
The instance ID.
From source file:com.tispr.aws.OpsWorksClient.java
License:Apache License
protected List<String> getInstancesIds(String layerId) { List<String> instanceIds = new ArrayList<String>(); if (layerId == null || layerId.isEmpty()) { return instanceIds; }//from w w w .ja v a 2 s. c o m DescribeInstancesRequest req = new DescribeInstancesRequest().withLayerId(layerId); DescribeInstancesResult res = opsWorksClient.describeInstances(req); for (Instance i : res.getInstances()) { instanceIds.add(i.getInstanceId()); } return instanceIds; }