Sha256: 85ac7cfaf933e40e7ac6990f6ed6e1d4c7b42e2ff547a417f2007f53c4c478a3
Contents?: true
Size: 534 Bytes
Versions: 13
Compression:
Stored size: 534 Bytes
Contents
module Awspec::Type class Msk < ResourceBase def initialize(name) super @desplay_name = name end def resource_via_client @resource_via_client ||= find_msk_cluster_by_name(@display_name) end def id @id ||= resource_via_client.cluster_arn if resource_via_client end STATES = %w( active creating updating deleting failed ) STATES.each do |state| define_method state + '?' do resource_via_client.state == state.upcase end end end end
Version data entries
13 entries across 13 versions & 1 rubygems