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
cthiesfork-awspec-1.2.2 lib/awspec/type/launch_configuration.rb
cthiesfork-awspec-1.2.1 lib/awspec/type/launch_configuration.rb
awspec-1.18.5 lib/awspec/type/launch_configuration.rb
cthiesfork-awspec-1.2.0 lib/awspec/type/launch_configuration.rb
cthiesfork-awspec-1.1.0 lib/awspec/type/launch_configuration.rb
cthiesfork-awspec-1.0.0 lib/awspec/type/launch_configuration.rb
awspec-1.18.4 lib/awspec/type/launch_configuration.rb
awspec-1.18.3 lib/awspec/type/launch_configuration.rb
awspec-1.18.2 lib/awspec/type/launch_configuration.rb
awspec-1.18.1 lib/awspec/type/launch_configuration.rb
awspec-1.18.0 lib/awspec/type/launch_configuration.rb
awspec-1.17.4 lib/awspec/type/launch_configuration.rb
awspec-1.17.3 lib/awspec/type/launch_configuration.rb
awspec-1.17.2 lib/awspec/type/launch_configuration.rb
awspec-1.17.1 lib/awspec/type/launch_configuration.rb
awspec-1.17.0 lib/awspec/type/launch_configuration.rb
awspec-1.16.1 lib/awspec/type/launch_configuration.rb
awspec-1.16.0 lib/awspec/type/launch_configuration.rb
awspec-1.15.3 lib/awspec/type/launch_configuration.rb
awspec-1.15.2 lib/awspec/type/launch_configuration.rb