From dee67d03dff77830c9e966b0f135ca1e468a0b6c 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 0c0893f5bf9..96c70ce4230 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ Unreleased Changes ------------------ +* Feature - Aws::CloudFormation - Added `Aws::CloudFormation::Stack#exists?` + * Issue - Aws::APIGateway - Resolved an issue that prevented users from calling `Aws::APIGateway::Client#put_integration`. 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",