Sha256: 45b88f252d618849ee1212780fcd8ef41cd17a2f28abbfe599431fa2fae43b6d

Contents?: true

Size: 549 Bytes

Versions: 13

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

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

13 entries across 13 versions & 1 rubygems

Version Path
awspec-1.31.0 lib/awspec/type/ssm_parameter.rb
awspec-1.30.0 lib/awspec/type/ssm_parameter.rb
awspec-1.29.3 lib/awspec/type/ssm_parameter.rb
awspec-1.29.2 lib/awspec/type/ssm_parameter.rb
awspec-1.29.1 lib/awspec/type/ssm_parameter.rb
awspec-1.29.0 lib/awspec/type/ssm_parameter.rb
awspec-1.28.2 lib/awspec/type/ssm_parameter.rb
awspec-1.28.1 lib/awspec/type/ssm_parameter.rb
awspec-1.28.0 lib/awspec/type/ssm_parameter.rb
awspec-1.27.1 lib/awspec/type/ssm_parameter.rb
awspec-1.27.0 lib/awspec/type/ssm_parameter.rb
awspec-1.26.0 lib/awspec/type/ssm_parameter.rb
awspec-1.25.2 lib/awspec/type/ssm_parameter.rb