https://pulumi.com logo
#python
Title
# python
h

handsome-rocket-92204

05/21/2019, 6:43 PM
But can I use the values returned by async functions outside of a Pulumi resource? Ex:
Copy code
async def get_restapi(name):
  result = await apigateway.get_rest_api(name=name)
  return result.id

if get_restapi('test-jenkins') == None:
  rest_api = apigateway.RestApi(name, name=name)
Obviously this wouldn't work but that's the functionality I'm looking for