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 +5 -5
- data/VERSION +1 -1
- data/lib/aws-sdk-core/pageable_response.rb +34 -20
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +4 -4
- data/lib/aws-sdk-sts/plugins/sts_regional_endpoints.rb +4 -4
- data/lib/aws-sdk-sts/resource.rb +1 -7
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 68b5967ad4f837060f10fbdc6d5964152a340648
|
4
|
+
data.tar.gz: c0a29433a811d52bf090fef2e7c88819cce99d5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d15be482b75f0b18787e799f8692cad5897ccc5e53609359424da2f8cb25060f0cce06d87e726785e8a5ee1321b2b834921434ab1cc3da08f672a9833716eb86
|
7
|
+
data.tar.gz: 4c5e291a98d2b5e49960d28914e756e7f82f87eed9c54911344152007e19c468c1e231e62117d6ee56109bb8269680e584ed5b65924df8991f575b5aef82d246
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
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
|
-
#
|
6
|
-
#
|
7
|
-
#
|
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
|
-
#
|
10
|
-
# resp = resp.next_page
|
11
|
-
# resp.last_page?
|
12
|
-
# #=> true
|
15
|
+
# s3 = Aws::S3::Client.new
|
13
16
|
#
|
14
|
-
#
|
15
|
-
#
|
17
|
+
# s3.list_objects(bucket:'aws-sdk').each do |response|
|
18
|
+
# puts response.contents.map(&:key)
|
19
|
+
# end
|
16
20
|
#
|
17
|
-
#
|
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
|
-
#
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
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
|
-
#
|
33
|
+
# s3 = Aws::S3::Client.new
|
27
34
|
#
|
28
|
-
#
|
29
|
-
#
|
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
|
|
data/lib/aws-sdk-sts.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -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 ("
|
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')
|
255
|
-
#
|
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.
|
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: '
|
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')
|
13
|
-
|
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 || '
|
25
|
+
env_mode || cfg_mode || 'regional'
|
26
26
|
end
|
27
27
|
|
28
28
|
end
|
data/lib/aws-sdk-sts/resource.rb
CHANGED
@@ -6,13 +6,7 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::STS
|
9
|
-
|
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.
|
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-
|
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
|
-
|
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
|