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-1.25.1 lib/awspec/type/launch_configuration.rb
awspec-1.25.0 lib/awspec/type/launch_configuration.rb
awspec-1.24.4 lib/awspec/type/launch_configuration.rb
awspec-1.24.3 lib/awspec/type/launch_configuration.rb
awspec-1.24.2 lib/awspec/type/launch_configuration.rb
awspec-1.24.1 lib/awspec/type/launch_configuration.rb
awspec-1.24.0 lib/awspec/type/launch_configuration.rb
awspec-1.23.0 lib/awspec/type/launch_configuration.rb
awspec-1.22.1 lib/awspec/type/launch_configuration.rb
awspec-1.22.0 lib/awspec/type/launch_configuration.rb
awspec-1.21.1 lib/awspec/type/launch_configuration.rb
awspec-1.21.0 lib/awspec/type/launch_configuration.rb
awspec-1.20.0 lib/awspec/type/launch_configuration.rb
awspec-1.19.2 lib/awspec/type/launch_configuration.rb
awspec-1.19.1 lib/awspec/type/launch_configuration.rb
awspec-1.19.0 lib/awspec/type/launch_configuration.rb
cthiesfork-awspec-1.2.4 lib/awspec/type/launch_configuration.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/type/launch_configuration.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/type/launch_configuration.rb
awspec-1.18.6 lib/awspec/type/launch_configuration.rb