#!/usr/bin/env ruby require 'aws-sdk' client = AWS::SimpleWorkflow.new(:region => "us-west-2") puts "looking for a domain" mydomain = client.domains['ReInvent2014'] if mydomain.exists? if mydomain.workflow_types['EIPMapper','1.0'].exists? puts "my workflow_type exists" else puts "we have a domain, but workflow_type does not exist" end else puts "this domain does not exist" end