aws-sdk-core 3.96.1 → 3.97.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/VERSION +1 -1
 - data/lib/aws-sdk-core/plugins/endpoint_discovery.rb +9 -3
 - data/lib/aws-sdk-sts.rb +1 -1
 - data/lib/aws-sdk-sts/client.rb +2 -2
 - data/lib/seahorse/client/plugin.rb +3 -3
 - data/lib/seahorse/model/api.rb +4 -0
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8040701313c65f31f4fb21f28cd445117a92efe0e8a20c68c9e45dd809eb51c0
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 60761f067db272bd8d3ac08e37c59df4f9ab9590ccda3841231edb0f9838e427
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 750115a58ba1d6cc4bdcda1d879ed7f2a70bf61759680dc4302665ac35819c897a151b0317aa05392cddfff97fb93c7ca34fb3524d98b3ee32893953f72e5733
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 177614051a23194fbb686326a248f014483de6218e3f57934d092bc819bbbf77d12e52e5a460038cf57691f033b0226db959cd26563ee5f3933f526d04d89a3a
         
     | 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            3. 
     | 
| 
      
 1 
     | 
    
         
            +
            3.97.0
         
     | 
| 
         @@ -4,10 +4,10 @@ module Aws 
     | 
|
| 
       4 
4 
     | 
    
         
             
                class EndpointDiscovery < Seahorse::Client::Plugin
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
                  option(:endpoint_discovery,
         
     | 
| 
       7 
     | 
    
         
            -
                     
     | 
| 
      
 7 
     | 
    
         
            +
                    doc_default: Proc.new { |options| options[:require_endpoint_discovery] },
         
     | 
| 
       8 
8 
     | 
    
         
             
                    doc_type: 'Boolean',
         
     | 
| 
       9 
9 
     | 
    
         
             
                    docstring: <<-DOCS) do |cfg|
         
     | 
| 
       10 
     | 
    
         
            -
            When set to `true`, endpoint discovery will be enabled for operations when available. 
     | 
| 
      
 10 
     | 
    
         
            +
            When set to `true`, endpoint discovery will be enabled for operations when available.
         
     | 
| 
       11 
11 
     | 
    
         
             
                    DOCS
         
     | 
| 
       12 
12 
     | 
    
         
             
                    resolve_endpoint_discovery(cfg)
         
     | 
| 
       13 
13 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -102,6 +102,10 @@ the background every 60 secs (default). Defaults to `false`. 
     | 
|
| 
       102 
102 
     | 
    
         
             
                      key = cache.extract_key(ctx)
         
     | 
| 
       103 
103 
     | 
    
         | 
| 
       104 
104 
     | 
    
         
             
                      if required
         
     | 
| 
      
 105 
     | 
    
         
            +
                        unless ctx.config.endpoint_discovery
         
     | 
| 
      
 106 
     | 
    
         
            +
                          raise ArgumentError, "Operation #{ctx.operation.name} requires "\
         
     | 
| 
      
 107 
     | 
    
         
            +
                            'endpoint_discovery to be enabled.'
         
     | 
| 
      
 108 
     | 
    
         
            +
                        end
         
     | 
| 
       105 
109 
     | 
    
         
             
                        # required for the operation
         
     | 
| 
       106 
110 
     | 
    
         
             
                        unless cache.key?(key)
         
     | 
| 
       107 
111 
     | 
    
         
             
                          cache.update(key, ctx)
         
     | 
| 
         @@ -151,8 +155,10 @@ the background every 60 secs (default). Defaults to `false`. 
     | 
|
| 
       151 
155 
     | 
    
         | 
| 
       152 
156 
     | 
    
         
             
                  def self.resolve_endpoint_discovery(cfg)
         
     | 
| 
       153 
157 
     | 
    
         
             
                    env = ENV['AWS_ENABLE_ENDPOINT_DISCOVERY']
         
     | 
| 
      
 158 
     | 
    
         
            +
                    default = cfg.api.require_endpoint_discovery
         
     | 
| 
       154 
159 
     | 
    
         
             
                    shared_cfg = Aws.shared_config.endpoint_discovery_enabled(profile: cfg.profile)
         
     | 
| 
       155 
     | 
    
         
            -
                    Aws::Util.str_2_bool(env) || Aws::Util.str_2_bool(shared_cfg)
         
     | 
| 
      
 160 
     | 
    
         
            +
                    resolved = Aws::Util.str_2_bool(env) || Aws::Util.str_2_bool(shared_cfg)
         
     | 
| 
      
 161 
     | 
    
         
            +
                    env.nil? && shared_cfg.nil? ? default : !!resolved
         
     | 
| 
       156 
162 
     | 
    
         
             
                  end
         
     | 
| 
       157 
163 
     | 
    
         | 
| 
       158 
164 
     | 
    
         
             
                end
         
     | 
    
        data/lib/aws-sdk-sts.rb
    CHANGED
    
    
    
        data/lib/aws-sdk-sts/client.rb
    CHANGED
    
    | 
         @@ -178,7 +178,7 @@ module Aws::STS 
     | 
|
| 
       178 
178 
     | 
    
         
             
                #     requests fetching endpoints information. Defaults to 60 sec.
         
     | 
| 
       179 
179 
     | 
    
         
             
                #
         
     | 
| 
       180 
180 
     | 
    
         
             
                #   @option options [Boolean] :endpoint_discovery (false)
         
     | 
| 
       181 
     | 
    
         
            -
                #     When set to `true`, endpoint discovery will be enabled for operations when available. 
     | 
| 
      
 181 
     | 
    
         
            +
                #     When set to `true`, endpoint discovery will be enabled for operations when available.
         
     | 
| 
       182 
182 
     | 
    
         
             
                #
         
     | 
| 
       183 
183 
     | 
    
         
             
                #   @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
         
     | 
| 
       184 
184 
     | 
    
         
             
                #     The log formatter.
         
     | 
| 
         @@ -2185,7 +2185,7 @@ module Aws::STS 
     | 
|
| 
       2185 
2185 
     | 
    
         
             
                    params: params,
         
     | 
| 
       2186 
2186 
     | 
    
         
             
                    config: config)
         
     | 
| 
       2187 
2187 
     | 
    
         
             
                  context[:gem_name] = 'aws-sdk-core'
         
     | 
| 
       2188 
     | 
    
         
            -
                  context[:gem_version] = '3. 
     | 
| 
      
 2188 
     | 
    
         
            +
                  context[:gem_version] = '3.97.0'
         
     | 
| 
       2189 
2189 
     | 
    
         
             
                  Seahorse::Client::Request.new(handlers, context)
         
     | 
| 
       2190 
2190 
     | 
    
         
             
                end
         
     | 
| 
       2191 
2191 
     | 
    
         | 
| 
         @@ -53,7 +53,7 @@ module Seahorse 
     | 
|
| 
       53 
53 
     | 
    
         
             
                      # For backwards-compat reasons, the default value can be passed as 2nd
         
     | 
| 
       54 
54 
     | 
    
         
             
                      # positional argument (before the options hash) or as the `:default` option
         
     | 
| 
       55 
55 
     | 
    
         
             
                      # in the options hash.
         
     | 
| 
       56 
     | 
    
         
            -
                      if Hash 
     | 
| 
      
 56 
     | 
    
         
            +
                      if default.is_a? Hash
         
     | 
| 
       57 
57 
     | 
    
         
             
                        options = default
         
     | 
| 
       58 
58 
     | 
    
         
             
                      else
         
     | 
| 
       59 
59 
     | 
    
         
             
                        options[:default] = default
         
     | 
| 
         @@ -123,11 +123,11 @@ module Seahorse 
     | 
|
| 
       123 
123 
     | 
    
         
             
                    attr_writer :doc_default
         
     | 
| 
       124 
124 
     | 
    
         
             
                    attr_accessor :docstring
         
     | 
| 
       125 
125 
     | 
    
         | 
| 
       126 
     | 
    
         
            -
                    def doc_default
         
     | 
| 
      
 126 
     | 
    
         
            +
                    def doc_default(options)
         
     | 
| 
       127 
127 
     | 
    
         
             
                      if @doc_default.nil? && !default.is_a?(Proc)
         
     | 
| 
       128 
128 
     | 
    
         
             
                        default
         
     | 
| 
       129 
129 
     | 
    
         
             
                      else
         
     | 
| 
       130 
     | 
    
         
            -
                        @doc_default
         
     | 
| 
      
 130 
     | 
    
         
            +
                        @doc_default.respond_to?(:call) ? @doc_default.call(options) : @doc_default
         
     | 
| 
       131 
131 
     | 
    
         
             
                      end
         
     | 
| 
       132 
132 
     | 
    
         
             
                    end
         
     | 
| 
       133 
133 
     | 
    
         | 
    
        data/lib/seahorse/model/api.rb
    CHANGED
    
    | 
         @@ -7,6 +7,7 @@ module Seahorse 
     | 
|
| 
       7 
7 
     | 
    
         
             
                    @operations = {}
         
     | 
| 
       8 
8 
     | 
    
         
             
                    @authorizers = {}
         
     | 
| 
       9 
9 
     | 
    
         
             
                    @endpoint_operation = nil
         
     | 
| 
      
 10 
     | 
    
         
            +
                    @require_endpoint_discovery = false
         
     | 
| 
       10 
11 
     | 
    
         
             
                  end
         
     | 
| 
       11 
12 
     | 
    
         | 
| 
       12 
13 
     | 
    
         
             
                  # @return [String, nil]
         
     | 
| 
         @@ -18,6 +19,9 @@ module Seahorse 
     | 
|
| 
       18 
19 
     | 
    
         
             
                  # @return [Symbol|nil]
         
     | 
| 
       19 
20 
     | 
    
         
             
                  attr_accessor :endpoint_operation
         
     | 
| 
       20 
21 
     | 
    
         | 
| 
      
 22 
     | 
    
         
            +
                  # @return [Boolean|nil]
         
     | 
| 
      
 23 
     | 
    
         
            +
                  attr_accessor :require_endpoint_discovery
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
       21 
25 
     | 
    
         
             
                  def operations(&block)
         
     | 
| 
       22 
26 
     | 
    
         
             
                    if block_given?
         
     | 
| 
       23 
27 
     | 
    
         
             
                      @operations.each(&block)
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: aws-sdk-core
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.97.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Amazon Web Services
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2020-05- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2020-05-28 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: jmespath
         
     |