diff --git a/CHANGELOG.md b/CHANGELOG.md index d2bae554692..908dc9933f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ Unreleased Changes ------------------ +* Feature - Aws::CloudFormation - Added `Aws::CloudFormation::Stack#exists?` + 2.1.33 (2015-10-28) ------------------ diff --git a/aws-sdk-core/apis/cloudformation/2010-05-15/resources-1.json b/aws-sdk-core/apis/cloudformation/2010-05-15/resources-1.json index 31e017c0570..5fa2e6f7395 100644 --- a/aws-sdk-core/apis/cloudformation/2010-05-15/resources-1.json +++ b/aws-sdk-core/apis/cloudformation/2010-05-15/resources-1.json @@ -94,6 +94,14 @@ } } }, + "waiters": { + "Exists": { + "waiterName": "StackExists", + "params": [ + { "target": "StackName", "source": "identifier", "name": "Name" } + ] + } + }, "has": { "Resource": { "resource": { diff --git a/aws-sdk-core/apis/cloudformation/2010-05-15/waiters-2.json b/aws-sdk-core/apis/cloudformation/2010-05-15/waiters-2.json index 31f77cc4d3b..f7f5383e810 100644 --- a/aws-sdk-core/apis/cloudformation/2010-05-15/waiters-2.json +++ b/aws-sdk-core/apis/cloudformation/2010-05-15/waiters-2.json @@ -1,6 +1,23 @@ { "version": 2, "waiters": { + "StackExists": { + "delay": 1, + "operation": "DescribeStacks", + "maxAttempts": 20, + "acceptors": [ + { + "matcher": "status", + "expected": 200, + "state": "success" + }, + { + "matcher": "error", + "expected": "ValidationError", + "state": "retry" + } + ] + }, "StackCreateComplete": { "delay": 30, "operation": "DescribeStacks",