From ee1ae466a0154fe1a6bec4ef1f389c86394f35cc Mon Sep 17 00:00:00 2001 From: Brett Powell Date: Mon, 16 Aug 2021 14:11:54 -0500 Subject: [PATCH] added waiters for cloudfunctions --- rpe/resources/gcp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpe/resources/gcp.py b/rpe/resources/gcp.py index af5fd34..3812fb2 100644 --- a/rpe/resources/gcp.py +++ b/rpe/resources/gcp.py @@ -486,6 +486,9 @@ class GcpCloudFunction(GoogleAPIResource): resource_components = { 'iam': 'getIamPolicy', } + readiness_key = 'status' + readiness_value = 'ACTIVE' + readiness_terminal_values = ['CLOUD_FUNCTION_STATUS_UNSPECIFIED','OFFLINE','UNKNOWN'] required_resource_data = ['name', 'location', 'project_id']