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