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 5
def initialize(name)
  super
  @display_name = name
end

Public Instance Methods

encrypted?() click to toggle source
# File lib/awspec/type/ssm_parameter.rb, line 18
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 22
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 14
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 10
def resource_via_client
  @resource_via_client ||= find_ssm_parameter(@display_name)
end