class Awspec::Type::CloudwatchEvent
Public Instance Methods
Source
# File lib/awspec/type/cloudwatch_event.rb, line 13 def enable? resource_via_client.state == 'ENABLED' end
Source
# File lib/awspec/type/cloudwatch_event.rb, line 9 def id @id ||= resource_via_client.arn if resource_via_client end
Source
# File lib/awspec/type/cloudwatch_event.rb, line 5 def resource_via_client @resource_via_client ||= find_cloudwatch_event(@display_name) end
Source
# File lib/awspec/type/cloudwatch_event.rb, line 17 def scheduled?(schedule) resource_via_client.schedule_expression == schedule end