Sha256: 7c8272ec24552f23bf6f678cd9c33a785b72d26d66f41bc254f225ac19238125

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
awspec-0.46.0 lib/awspec/type/cloudtrail.rb