Sha256: 6dc7b979930a7d370fd9c0c6e77f5ec580fc13813038649da5e86607d93f1823

Contents?: true

Size: 896 Bytes

Versions: 81

Compression:

Stored size: 896 Bytes

Contents

# frozen_string_literal: true

module Aws
  module Endpoints
    # This class is deprecated. It is used by the Runtime endpoint
    # resolution approach. It has been replaced by a code generated
    # approach in each service gem. It can be removed in a new
    # major version. It has to exist because
    # old service gems can use a new core version.
    # @api private
    class Rule
      # Resolves a value that is a function, reference, or template string.
      def resolve_value(value, parameters, assigns)
        if value.is_a?(Hash) && value['fn']
          Function.new(fn: value['fn'], argv: value['argv'])
                  .call(parameters, assigns)
        elsif value.is_a?(Hash) && value['ref']
          Reference.new(ref: value['ref']).resolve(parameters, assigns)
        else
          Templater.resolve(value, parameters, assigns)
        end
      end
    end
  end
end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
aws-sdk-core-3.216.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.215.1 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.215.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.214.1 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.214.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.213.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.212.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.211.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.210.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.209.1 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.209.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.208.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.207.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.206.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.205.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.204.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.203.0 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.202.2 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.202.1 lib/aws-sdk-core/endpoints/rule.rb
aws-sdk-core-3.202.0 lib/aws-sdk-core/endpoints/rule.rb