Sha256: 3da60f7ec1be7a9b4e1a5a813a189499301eb0281750d97529a86a243496b679

Contents?: true

Size: 558 Bytes

Versions: 21

Compression:

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
awspec-0.80.1 lib/awspec/type/launch_configuration.rb
awspec-0.80.0 lib/awspec/type/launch_configuration.rb
awspec-0.79.2 lib/awspec/type/launch_configuration.rb
awspec-0.79.1 lib/awspec/type/launch_configuration.rb
awspec-0.79.0 lib/awspec/type/launch_configuration.rb
awspec-0.78.1 lib/awspec/type/launch_configuration.rb
awspec-0.77.1 lib/awspec/type/launch_configuration.rb
awspec-0.77.0 lib/awspec/type/launch_configuration.rb
awspec-0.76.1 lib/awspec/type/launch_configuration.rb
awspec-0.76.0 lib/awspec/type/launch_configuration.rb
awspec-0.75.2 lib/awspec/type/launch_configuration.rb
awspec-0.75.1 lib/awspec/type/launch_configuration.rb
awspec-0.75.0 lib/awspec/type/launch_configuration.rb
awspec-0.74.1 lib/awspec/type/launch_configuration.rb
awspec-0.74.0 lib/awspec/type/launch_configuration.rb
awspec-0.73.2 lib/awspec/type/launch_configuration.rb
awspec-0.73.1 lib/awspec/type/launch_configuration.rb
awspec-0.73.0 lib/awspec/type/launch_configuration.rb
awspec-0.72.0 lib/awspec/type/launch_configuration.rb
awspec-0.71.0 lib/awspec/type/launch_configuration.rb