Sha256: db59f50ceab8aba2461d82c3c4bfab66442697bdf3ce020adf56ae0faff84ec1

Contents?: true

Size: 701 Bytes

Versions: 97

Compression:

Stored size: 701 Bytes

Contents

module Awspec::Type
  class LaunchConfiguration < ResourceBase
    def resource_via_client
      @resource_via_client ||= find_launch_configuration(@display_name)
    end

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

    def has_security_group?(sg_id)
      sgs = resource_via_client.security_groups
      ret = sgs.find do |sg|
        sg == sg_id
      end
      return true if ret
      sg2 = find_security_group(sg_id)
      sgs.find do |sg|
        sg == sg2.group_id
      end
    end

    def has_block_device_mapping?(device_id)
      ret = find_block_device_mapping(@display_name, device_id)
      return true if ret
    end
  end
end

Version data entries

97 entries across 97 versions & 4 rubygems

Version Path
awspec-0.87.0 lib/awspec/type/launch_configuration.rb
awspec-0.86.0 lib/awspec/type/launch_configuration.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/type/launch_configuration.rb
awspec-0.85.3 lib/awspec/type/launch_configuration.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/type/launch_configuration.rb
awspec-0.85.2 lib/awspec/type/launch_configuration.rb
awspec-0.85.1 lib/awspec/type/launch_configuration.rb
awspec-0.85.0 lib/awspec/type/launch_configuration.rb
awspec-0.84.1 lib/awspec/type/launch_configuration.rb
awspec-0.84.0 lib/awspec/type/launch_configuration.rb
awspec-0.83.0 lib/awspec/type/launch_configuration.rb
awspec-0.82.3 lib/awspec/type/launch_configuration.rb
awspec-0.82.2 lib/awspec/type/launch_configuration.rb
awspec-0.82.1 lib/awspec/type/launch_configuration.rb
awspec-0.82.0 lib/awspec/type/launch_configuration.rb
awspec-0.81.1 lib/awspec/type/launch_configuration.rb
awspec-0.81.0 lib/awspec/type/launch_configuration.rb