class DrawCloud::WaitHandle::WaitCondition
Attributes
count[RW]
depends_on[RW]
handle[RW]
timeout[RW]
Public Class Methods
new(handle, timeout, count, depends_on)
click to toggle source
# File lib/draw_cloud/wait_handle.rb, line 23 def initialize(handle, timeout, count, depends_on) @handle = handle @timeout = timeout @count = count @depends_on = depends_on end
Public Instance Methods
resource_name()
click to toggle source
# File lib/draw_cloud/wait_handle.rb, line 30 def resource_name DrawCloud.resource_name(handle) + "Condition" end
to_h()
click to toggle source
# File lib/draw_cloud/wait_handle.rb, line 34 def to_h h = { "Type" => "AWS::CloudFormation::WaitCondition", "Properties" => { "Handle" => DrawCloud.ref(handle), "Timeout" => timeout } } h["DependsOn"] = DrawCloud.resource_name(depends_on) if depends_on h["Properties"]["Count"] = count unless count.nil? h end