List of usage examples for com.amazonaws.services.cloudformation.model DescribeStackSetResult getStackSet
public StackSet getStackSet()
The specified stack set.
From source file:de.taimos.pipeline.aws.cloudformation.stacksets.CloudFormationStackSet.java
License:Apache License
public DescribeStackSetResult waitForStackState(StackSetStatus expectedStatus, long pollInterval) throws InterruptedException { DescribeStackSetResult result = describe(); this.listener.getLogger().println("stackSetId=" + result.getStackSet().getStackSetId() + " status=" + result.getStackSet().getStatus()); StackSetStatus currentStatus = StackSetStatus.fromValue(result.getStackSet().getStatus()); if (currentStatus == expectedStatus) { this.listener.getLogger().println("Stack set operation completed successfully"); return result; } else {// ww w.j a v a2 s .com Thread.sleep(pollInterval); return waitForStackState(expectedStatus, pollInterval); } }