Example usage for com.amazonaws.services.cloudformation.model DescribeStackSetRequest DescribeStackSetRequest

List of usage examples for com.amazonaws.services.cloudformation.model DescribeStackSetRequest DescribeStackSetRequest

Introduction

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

Prototype

DescribeStackSetRequest

Source Link

Usage

From source file:de.taimos.pipeline.aws.cloudformation.stacksets.CloudFormationStackSet.java

License:Apache License

public boolean exists() {
    try {//from www .ja v  a2  s  .  c  o  m
        this.client.describeStackSet(new DescribeStackSetRequest().withStackSetName(this.stackSet));
        return true;
    } catch (AmazonCloudFormationException e) {
        if ("StackSetNotFoundException".equals(e.getErrorCode())) {
            return false;
        } else {
            this.listener.getLogger().format("Got error from describeStacks: %s %n", e.getErrorMessage());
            throw e;
        }
    }
}

From source file:de.taimos.pipeline.aws.cloudformation.stacksets.CloudFormationStackSet.java

License:Apache License

DescribeStackSetResult describe() {
    return this.client.describeStackSet(new DescribeStackSetRequest().withStackSetName(this.stackSet));
}