From 24b3dfa2409fca921d35a52c1d8db00e954804a8 Mon Sep 17 00:00:00 2001 From: stopdropandrew Date: Wed, 28 Oct 2015 13:46:26 -0700 Subject: [PATCH] Added Aws::CloudFormation::Stack#exists? --- CHANGELOG.md | 2 ++ .../cloudformation/2010-05-15/resources-1.json | 8 ++++++++ .../cloudformation/2010-05-15/waiters-2.json | 17 +++++++++++++++++ 3 files changed, 27 insertions(+) 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",