Sha256: d27180a2f72d74b8ad1135b5a0d32480d170993556ae95cde97987b838f2818a

Contents?: true

Size: 794 Bytes

Versions: 31

Compression:

Stored size: 794 Bytes

Contents

module Awspec::Type
  class Cloudtrail < ResourceBase
    aws_resource Aws::CloudTrail

    def resource_via_client
      @resource_via_client ||= find_trail(@display_name)
    end

    def id
      @id ||= resource_via_client.name if resource_via_client
    end

    def has_global_service_events_included?
      resource_via_client.include_global_service_events
    end

    def multi_region_trail?
      resource_via_client.is_multi_region_trail
    end

    def has_log_file_validation_enabled?
      resource_via_client.log_file_validation_enabled
    end

    def logging?
      is_logging?(id)
    end

    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
  end
end

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
awspec-1.25.1 lib/awspec/type/cloudtrail.rb
awspec-1.25.0 lib/awspec/type/cloudtrail.rb
awspec-1.24.4 lib/awspec/type/cloudtrail.rb
awspec-1.24.3 lib/awspec/type/cloudtrail.rb
awspec-1.24.2 lib/awspec/type/cloudtrail.rb
awspec-1.24.1 lib/awspec/type/cloudtrail.rb
awspec-1.24.0 lib/awspec/type/cloudtrail.rb
awspec-1.23.0 lib/awspec/type/cloudtrail.rb
awspec-1.22.1 lib/awspec/type/cloudtrail.rb
awspec-1.22.0 lib/awspec/type/cloudtrail.rb
awspec-1.21.1 lib/awspec/type/cloudtrail.rb
awspec-1.21.0 lib/awspec/type/cloudtrail.rb
awspec-1.20.0 lib/awspec/type/cloudtrail.rb
awspec-1.19.2 lib/awspec/type/cloudtrail.rb
awspec-1.19.1 lib/awspec/type/cloudtrail.rb
awspec-1.19.0 lib/awspec/type/cloudtrail.rb
cthiesfork-awspec-1.2.4 lib/awspec/type/cloudtrail.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/type/cloudtrail.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/type/cloudtrail.rb
awspec-1.18.6 lib/awspec/type/cloudtrail.rb