From 4eaa60efecfa654f65438dd8144085c8bf7234a5 Mon Sep 17 00:00:00 2001 From: Joe Ceresini Date: Wed, 21 Apr 2021 12:20:20 -0400 Subject: [PATCH] Add waiter for Datafusion instances --- rpe/resources/gcp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpe/resources/gcp.py b/rpe/resources/gcp.py index c25688d..6dafada 100644 --- a/rpe/resources/gcp.py +++ b/rpe/resources/gcp.py @@ -620,6 +620,10 @@ class GcpDatafusionInstance(GoogleAPIResource): required_resource_data = ['name', 'location', 'project_id'] + readiness_key = 'state' + readiness_value = 'RUNNING' + readiness_terminal_values = ['FAILED', 'DELETING', 'STATUS_UNSPECIFIED'] + resource_components = { 'iam': 'getIamPolicy', }