Sha256: a8f9f16d0bcf558ab5eb80d95f877e8706e9585844b9f4353890e64cf4b60adc

Contents?: true

Size: 589 Bytes

Versions: 12

Compression:

Stored size: 589 Bytes

Contents

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

    def initialize(id)
      super
      @resource_via_client = find_trail(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
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
awspec-0.55.0 lib/awspec/type/cloudtrail.rb
awspec-0.54.0 lib/awspec/type/cloudtrail.rb
awspec-0.52.4 lib/awspec/type/cloudtrail.rb
awspec-0.52.3 lib/awspec/type/cloudtrail.rb
awspec-0.52.2 lib/awspec/type/cloudtrail.rb
awspec-0.52.1 lib/awspec/type/cloudtrail.rb
awspec-0.52.0 lib/awspec/type/cloudtrail.rb
awspec-0.51.0 lib/awspec/type/cloudtrail.rb
awspec-0.50.0 lib/awspec/type/cloudtrail.rb
awspec-0.49.0 lib/awspec/type/cloudtrail.rb
awspec-0.48.0 lib/awspec/type/cloudtrail.rb
awspec-0.47.0 lib/awspec/type/cloudtrail.rb