aws-sdk-core 3.91.1 → 3.92.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 3c1fbacace50e0f25fdf2055b3881d1d12ca187a34009b26dc94ceded9ab5cec
4
- data.tar.gz: b0f1c6b91e78d28b2ae9cc303bf93c4654a8d309a6ce34ac612fe2ce72e9a052
2
+ SHA1:
3
+ metadata.gz: 68b5967ad4f837060f10fbdc6d5964152a340648
4
+ data.tar.gz: c0a29433a811d52bf090fef2e7c88819cce99d5e
5
5
  SHA512:
6
- metadata.gz: a598be184e28664f405dd2e3dff5ea7562fbaabeafe4b1c3047b6d795510e9e7b613107b90df7f9ff6b8a89070acfb0b35a5e31fd2db219ee3daca8a3497fa2c
7
- data.tar.gz: 79f72a46988468762042e55a2f543a0faca9ca3cf66b00081e23b335f80ae9440ec49877aa4e1b645c899566a686e0673c261c928f0893cd120c51e4239333c4
6
+ metadata.gz: d15be482b75f0b18787e799f8692cad5897ccc5e53609359424da2f8cb25060f0cce06d87e726785e8a5ee1321b2b834921434ab1cc3da08f672a9833716eb86
7
+ data.tar.gz: 4c5e291a98d2b5e49960d28914e756e7f82f87eed9c54911344152007e19c468c1e231e62117d6ee56109bb8269680e584ed5b65924df8991f575b5aef82d246
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.91.1
1
+ 3.92.0
@@ -1,32 +1,46 @@
1
1
  module Aws
2
2
 
3
- # Decorates a {Seahorse::Client::Response} with paging methods:
3
+ # Decorates a {Seahorse::Client::Response} with paging convenience methods.
4
+ # Some AWS calls provide paged responses to limit the amount of data returned
5
+ # with each response. To optimize for latency, some APIs may return an
6
+ # inconsistent number of responses per page. You should rely on the values of
7
+ # the `next_page?` method or using enumerable methods such as `each`
8
+ # rather than the number of items returned to iterate through results.
9
+ # See below for examples.
4
10
  #
5
- # resp = s3.list_objects(params)
6
- # resp.last_page?
7
- # #=> false
11
+ # # Paged Responses Are Enumerable
12
+ # The simplest way to handle paged response data is to use the built-in
13
+ # enumerator in the response object, as shown in the following example.
8
14
  #
9
- # # sends a request to receive the next response page
10
- # resp = resp.next_page
11
- # resp.last_page?
12
- # #=> true
15
+ # s3 = Aws::S3::Client.new
13
16
  #
14
- # resp.next_page
15
- # #=> raises PageableResponse::LastPageError
17
+ # s3.list_objects(bucket:'aws-sdk').each do |response|
18
+ # puts response.contents.map(&:key)
19
+ # end
16
20
  #
17
- # You can enumerate all response pages with a block
21
+ # This yields one response object per API call made, and enumerates objects
22
+ # in the named bucket. The SDK retrieves additional pages of data to
23
+ # complete the request.
18
24
  #
19
- # ec2.describe_instances(params).each do |page|
20
- # # yields once per page
21
- # page.reservations.each do |r|
22
- # # ...
23
- # end
24
- # end
25
+ # # Handling Paged Responses Manually
26
+ # To handle paging yourself, use the response’s `next_page?` method to verify
27
+ # there are more pages to retrieve, or use the last_page? method to verify
28
+ # there are no more pages to retrieve.
29
+ #
30
+ # If there are more pages, use the `next_page` method to retrieve the
31
+ # next page of results, as shown in the following example.
25
32
  #
26
- # Or using {#next_page} and {#last_page?}:
33
+ # s3 = Aws::S3::Client.new
27
34
  #
28
- # resp.last_page?
29
- # resp = resp.next_page until resp.last_page?
35
+ # # Get the first page of data
36
+ # response = s3.list_objects(bucket:'aws-sdk')
37
+ #
38
+ # # Get additional pages
39
+ # while response.next_page? do
40
+ # response = response.next_page
41
+ # # Use the response data here...
42
+ # puts response.contents.map(&:key)
43
+ # end
30
44
  #
31
45
  module PageableResponse
32
46
 
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-sts/customizations'
43
43
  # @service
44
44
  module Aws::STS
45
45
 
46
- GEM_VERSION = '3.91.1'
46
+ GEM_VERSION = '3.92.0'
47
47
 
48
48
  end
@@ -249,10 +249,10 @@ module Aws::STS
249
249
  #
250
250
  # @option options [String] :session_token
251
251
  #
252
- # @option options [String] :sts_regional_endpoints ("legacy")
252
+ # @option options [String] :sts_regional_endpoints ("regional")
253
253
  # Passing in 'regional' to enable regional endpoint for STS for all supported
254
- # regions (except 'aws-global'), defaults to 'legacy' mode, using global endpoint
255
- # for legacy regions.
254
+ # regions (except 'aws-global'). Using 'legacy' mode will force all legacy
255
+ # regions to resolve to the STS global endpoint.
256
256
  #
257
257
  # @option options [Boolean] :stub_responses (false)
258
258
  # Causes the client to return stubbed responses. By default
@@ -2186,7 +2186,7 @@ module Aws::STS
2186
2186
  params: params,
2187
2187
  config: config)
2188
2188
  context[:gem_name] = 'aws-sdk-core'
2189
- context[:gem_version] = '3.91.1'
2189
+ context[:gem_version] = '3.92.0'
2190
2190
  Seahorse::Client::Request.new(handlers, context)
2191
2191
  end
2192
2192
 
@@ -5,12 +5,12 @@ module Aws
5
5
  class STSRegionalEndpoints < Seahorse::Client::Plugin
6
6
 
7
7
  option(:sts_regional_endpoints,
8
- default: 'legacy',
8
+ default: 'regional',
9
9
  doc_type: String,
10
10
  docstring: <<-DOCS) do |cfg|
11
11
  Passing in 'regional' to enable regional endpoint for STS for all supported
12
- regions (except 'aws-global'), defaults to 'legacy' mode, using global endpoint
13
- for legacy regions.
12
+ regions (except 'aws-global'). Using 'legacy' mode will force all legacy
13
+ regions to resolve to the STS global endpoint.
14
14
  DOCS
15
15
  resolve_sts_regional_endpoints(cfg)
16
16
  end
@@ -22,7 +22,7 @@ for legacy regions.
22
22
  env_mode = nil if env_mode == ''
23
23
  cfg_mode = Aws.shared_config.sts_regional_endpoints(
24
24
  profile: cfg.profile)
25
- env_mode || cfg_mode || 'legacy'
25
+ env_mode || cfg_mode || 'regional'
26
26
  end
27
27
 
28
28
  end
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::STS
9
- # This class provides a resource oriented interface for STS.
10
- # To create a resource object:
11
- # resource = Aws::STS::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::STS::Client.new(region: 'us-west-2')
15
- # resource = Aws::STS::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
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.91.1
4
+ version: 3.92.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-03-16 00:00:00.000000000 Z
11
+ date: 2020-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -293,7 +293,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
293
  - !ruby/object:Gem::Version
294
294
  version: '0'
295
295
  requirements: []
296
- rubygems_version: 3.0.3
296
+ rubyforge_project:
297
+ rubygems_version: 2.5.2.3
297
298
  signing_key:
298
299
  specification_version: 4
299
300
  summary: AWS SDK for Ruby - Core