Sha256: 0a3c192c67572bb27c0a0e4a691ed8648bf5903e6f2658948dc1aa148beebbe4

Contents?: true

Size: 517 Bytes

Versions: 59

Compression:

Stored size: 517 Bytes

Contents

module Awspec::Type
  class SsmParameter < ResourceBase
    def initialize(name)
      super
      @display_name = name
    end

    def resource_via_client
      @resource_via_client ||= find_ssm_parameter(@display_name)
    end

    def id
      @id ||= @display_name if resource_via_client
    end

    def encrypted?
      resource_via_client.type.eql? 'SecureString'
    end

    def has_tag?(key, value)
      tag = find_parameter_tag(id, key)
      return nil if tag.value != value
      tag
    end
  end
end

Version data entries

59 entries across 59 versions & 3 rubygems

Version Path
awspec-1.25.1 lib/awspec/type/ssm_parameter.rb
awspec-1.25.0 lib/awspec/type/ssm_parameter.rb
awspec-1.24.4 lib/awspec/type/ssm_parameter.rb
awspec-1.24.3 lib/awspec/type/ssm_parameter.rb
awspec-1.24.2 lib/awspec/type/ssm_parameter.rb
awspec-1.24.1 lib/awspec/type/ssm_parameter.rb
awspec-1.24.0 lib/awspec/type/ssm_parameter.rb
awspec-1.23.0 lib/awspec/type/ssm_parameter.rb
awspec-1.22.1 lib/awspec/type/ssm_parameter.rb
awspec-1.22.0 lib/awspec/type/ssm_parameter.rb
awspec-1.21.1 lib/awspec/type/ssm_parameter.rb
awspec-1.21.0 lib/awspec/type/ssm_parameter.rb
awspec-1.20.0 lib/awspec/type/ssm_parameter.rb
awspec-1.19.2 lib/awspec/type/ssm_parameter.rb
awspec-1.19.1 lib/awspec/type/ssm_parameter.rb
awspec-1.19.0 lib/awspec/type/ssm_parameter.rb
cthiesfork-awspec-1.2.4 lib/awspec/type/ssm_parameter.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/type/ssm_parameter.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/type/ssm_parameter.rb
awspec-1.18.6 lib/awspec/type/ssm_parameter.rb