class Awspec::Type::Cloudtrail

Public Instance Methods

has_global_service_events_included?() click to toggle source
# File lib/awspec/type/cloudtrail.rb, line 15
def has_global_service_events_included?
  resource_via_client.include_global_service_events
end
has_log_file_validation_enabled?() click to toggle source
# File lib/awspec/type/cloudtrail.rb, line 23
def has_log_file_validation_enabled?
  resource_via_client.log_file_validation_enabled
end
has_tag?(tag_key, tag_value) click to toggle source
# File lib/awspec/type/cloudtrail.rb, line 31
def has_tag?(tag_key, tag_value)
  get_trail_tags(resource_via_client.trail_arn).find do |tag|
    tag.key == tag_key && tag.value == tag_value
  end
end
id() click to toggle source
# File lib/awspec/type/cloudtrail.rb, line 11
def id
  @id ||= resource_via_client.name if resource_via_client
end
logging?() click to toggle source
# File lib/awspec/type/cloudtrail.rb, line 27
def logging?
  is_logging?(id)
end
multi_region_trail?() click to toggle source
# File lib/awspec/type/cloudtrail.rb, line 19
def multi_region_trail?
  resource_via_client.is_multi_region_trail
end
resource_via_client() click to toggle source
# File lib/awspec/type/cloudtrail.rb, line 7
def resource_via_client
  @resource_via_client ||= find_trail(@display_name)
end