use of com.amazonaws.services.cloudformation.model.DescribeStacksResult in project pipeline-aws-plugin by jenkinsci.
the class CloudFormationStack method describeOutputs.
public Map<String, String> describeOutputs() {
DescribeStacksResult result = this.client.describeStacks(new DescribeStacksRequest().withStackName(this.stack));
Stack cfnStack = result.getStacks().get(0);
Map<String, String> map = new HashMap<>();
for (Output output : cfnStack.getOutputs()) {
map.put(output.getOutputKey(), output.getOutputValue());
}
return map;
}
Aggregations