Example usage for com.amazonaws.services.cloudformation.model DescribeStackSetResult getStackSet

List of usage examples for com.amazonaws.services.cloudformation.model DescribeStackSetResult getStackSet

Introduction

In this page you can find the example usage for com.amazonaws.services.cloudformation.model DescribeStackSetResult getStackSet.

Prototype


public StackSet getStackSet() 

Source Link

Document

The specified stack set.

Usage

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