class Awspec::Type::SsmParameter

Public Class Methods

new(name) click to toggle source
Calls superclass method Awspec::Type::ResourceBase::new
# File lib/awspec/type/ssm_parameter.rb, line 3
def initialize(name)
  super
  @display_name = name
end

Public Instance Methods

encrypted?() click to toggle source
# File lib/awspec/type/ssm_parameter.rb, line 16
def encrypted?
  resource_via_client.type.eql? 'SecureString'
end
has_tag?(key, value) click to toggle source
# File lib/awspec/type/ssm_parameter.rb, line 20
def has_tag?(key, value)
  tag = find_parameter_tag(id, key)
  return nil if tag.value != value
  tag
end
id() click to toggle source
# File lib/awspec/type/ssm_parameter.rb, line 12
def id
  @id ||= @display_name if resource_via_client
end
resource_via_client() click to toggle source
# File lib/awspec/type/ssm_parameter.rb, line 8
def resource_via_client
  @resource_via_client ||= find_ssm_parameter(@display_name)
end