class Awspec::Type::CloudwatchEvent

Public Instance Methods

enable?() click to toggle source
# File lib/awspec/type/cloudwatch_event.rb, line 11
def enable?
  resource_via_client.state == 'ENABLED'
end
id() click to toggle source
# File lib/awspec/type/cloudwatch_event.rb, line 7
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 3
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 15
def scheduled?(schedule)
  resource_via_client.schedule_expression == schedule
end