Sha256: 995cbfec4ec512b80d4d65018b5cf6802af30f80f82fec1bcf8b4c97aab25923
Contents?: true
Size: 733 Bytes
Versions: 13
Compression:
Stored size: 733 Bytes
Contents
# frozen_string_literal: true 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
13 entries across 13 versions & 1 rubygems