aws-sdk-sso 1.1.1 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fd628c39fbee98bad02ffeb8889374c0e7ea4a66
4
- data.tar.gz: f0d04954c20c25b8b5c4bfc48b99d3bae40a3a53
2
+ SHA256:
3
+ metadata.gz: fbc3c0d79e8c99815a6180286a9fe884dad6af35ca9a6ebb7847dc9016edc938
4
+ data.tar.gz: b267220175440e22b744bc6a4b9299cceeab52bfa902fd3cf67cf8f895966925
5
5
  SHA512:
6
- metadata.gz: bcd1fa02f659c89733e25dc479a2e6b597bfcc12fbe98cd6213bf8bf22d000fd30116fa0d9e0d9ac6c778ebabadb3fc3630bb9cbea7d229112bf4da12e9deb89
7
- data.tar.gz: 8ac1b10982689e708b038550e096a8a87b6c1640080b0b3e7c6e3692d51eb1d91e640081816b7f2da5dd030add61b7fba36346d28bf9d2c54bc3426552e4cb9b
6
+ metadata.gz: 0fce2b73540eb49d4f89ac053c5fff791c5ef9d1cbd836b8186b062a570bde62eb4f4771795ba3fc24c39689c77d01bdfe852994aaf50fd8bef05cf635dd602a
7
+ data.tar.gz: 3b2bac965c765cc090895dbd5d3c895b594dd0fcbd513ab6e48a8c42e09db058c0bf4141f48ad99b367ee152451630f304a45f1052b9ae48389f6df0b88c65bb
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,17 +26,20 @@ require_relative 'aws-sdk-sso/customizations'
24
26
  # methods each accept a hash of request parameters and return a response
25
27
  # structure.
26
28
  #
29
+ # sso = Aws::SSO::Client.new
30
+ # resp = sso.get_role_credentials(params)
31
+ #
27
32
  # See {Client} for more information.
28
33
  #
29
34
  # # Errors
30
35
  #
31
- # Errors returned from AWS Single Sign-On all
32
- # extend {Errors::ServiceError}.
36
+ # Errors returned from AWS Single Sign-On are defined in the
37
+ # {Errors} module and all extend {Errors::ServiceError}.
33
38
  #
34
39
  # begin
35
40
  # # do stuff
36
41
  # rescue Aws::SSO::Errors::ServiceError
37
- # # rescues all service API errors
42
+ # # rescues all AWS Single Sign-On API errors
38
43
  # end
39
44
  #
40
45
  # See {Errors} for more information.
@@ -42,6 +47,6 @@ require_relative 'aws-sdk-sso/customizations'
42
47
  # @service
43
48
  module Aws::SSO
44
49
 
45
- GEM_VERSION = '1.1.1'
50
+ GEM_VERSION = '1.6.0'
46
51
 
47
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
32
  require 'aws-sdk-sso/plugins/content_type.rb'
@@ -31,6 +34,18 @@ require 'aws-sdk-sso/plugins/content_type.rb'
31
34
  Aws::Plugins::GlobalConfiguration.add_identifier(:sso)
32
35
 
33
36
  module Aws::SSO
37
+ # An API client for SSO. To construct a client, you need to configure a `:region` and `:credentials`.
38
+ #
39
+ # client = Aws::SSO::Client.new(
40
+ # region: region_name,
41
+ # credentials: credentials,
42
+ # # ...
43
+ # )
44
+ #
45
+ # For details on configuring region and credentials see
46
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
47
+ #
48
+ # See {#initialize} for a full list of supported configuration options.
34
49
  class Client < Seahorse::Client::Base
35
50
 
36
51
  include Aws::ClientStubs
@@ -58,6 +73,7 @@ module Aws::SSO
58
73
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
59
74
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
60
75
  add_plugin(Aws::Plugins::TransferEncoding)
76
+ add_plugin(Aws::Plugins::HttpChecksum)
61
77
  add_plugin(Aws::Plugins::SignatureV4)
62
78
  add_plugin(Aws::Plugins::Protocols::RestJson)
63
79
  add_plugin(Aws::SSO::Plugins::ContentType)
@@ -95,7 +111,7 @@ module Aws::SSO
95
111
  # @option options [required, String] :region
96
112
  # The AWS region to connect to. The configured `:region` is
97
113
  # used to determine the service `:endpoint`. When not passed,
98
- # a default `:region` is search for in the following locations:
114
+ # a default `:region` is searched for in the following locations:
99
115
  #
100
116
  # * `Aws.config[:region]`
101
117
  # * `ENV['AWS_REGION']`
@@ -110,6 +126,12 @@ module Aws::SSO
110
126
  # When set to `true`, a thread polling for endpoints will be running in
111
127
  # the background every 60 secs (default). Defaults to `false`.
112
128
  #
129
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
130
+ # Used only in `adaptive` retry mode. When true, the request will sleep
131
+ # until there is sufficent client side capacity to retry the request.
132
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
133
+ # not retry instead of sleeping.
134
+ #
113
135
  # @option options [Boolean] :client_side_monitoring (false)
114
136
  # When `true`, client-side metrics will be collected for all API requests from
115
137
  # this client.
@@ -134,6 +156,10 @@ module Aws::SSO
134
156
  # When `true`, an attempt is made to coerce request parameters into
135
157
  # the required types.
136
158
  #
159
+ # @option options [Boolean] :correct_clock_skew (true)
160
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
161
+ # a clock skew correction and retry requests with skewed client clocks.
162
+ #
137
163
  # @option options [Boolean] :disable_host_prefix_injection (false)
138
164
  # Set to true to disable SDK automatically adding host prefix
139
165
  # to default service endpoint when available.
@@ -141,7 +167,7 @@ module Aws::SSO
141
167
  # @option options [String] :endpoint
142
168
  # The client endpoint is normally constructed from the `:region`
143
169
  # option. You should only configure an `:endpoint` when connecting
144
- # to test endpoints. This should be avalid HTTP(S) URI.
170
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
145
171
  #
146
172
  # @option options [Integer] :endpoint_cache_max_entries (1000)
147
173
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -156,7 +182,7 @@ module Aws::SSO
156
182
  # requests fetching endpoints information. Defaults to 60 sec.
157
183
  #
158
184
  # @option options [Boolean] :endpoint_discovery (false)
159
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
185
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
160
186
  #
161
187
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
162
188
  # The log formatter.
@@ -168,15 +194,29 @@ module Aws::SSO
168
194
  # The Logger instance to send log messages to. If this option
169
195
  # is not set, logging will be disabled.
170
196
  #
197
+ # @option options [Integer] :max_attempts (3)
198
+ # An integer representing the maximum number attempts that will be made for
199
+ # a single request, including the initial attempt. For example,
200
+ # setting this value to 5 will result in a request being retried up to
201
+ # 4 times. Used in `standard` and `adaptive` retry modes.
202
+ #
171
203
  # @option options [String] :profile ("default")
172
204
  # Used when loading credentials from the shared credentials file
173
205
  # at HOME/.aws/credentials. When not specified, 'default' is used.
174
206
  #
207
+ # @option options [Proc] :retry_backoff
208
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
209
+ # This option is only used in the `legacy` retry mode.
210
+ #
175
211
  # @option options [Float] :retry_base_delay (0.3)
176
- # The base delay in seconds used by the default backoff function.
212
+ # The base delay in seconds used by the default backoff function. This option
213
+ # is only used in the `legacy` retry mode.
177
214
  #
178
215
  # @option options [Symbol] :retry_jitter (:none)
179
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
216
+ # A delay randomiser function used by the default backoff function.
217
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
218
+ # otherwise a Proc that takes and returns a number. This option is only used
219
+ # in the `legacy` retry mode.
180
220
  #
181
221
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
182
222
  #
@@ -184,11 +224,30 @@ module Aws::SSO
184
224
  # The maximum number of times to retry failed requests. Only
185
225
  # ~ 500 level server errors and certain ~ 400 level client errors
186
226
  # are retried. Generally, these are throttling errors, data
187
- # checksum errors, networking errors, timeout errors and auth
188
- # errors from expired credentials.
227
+ # checksum errors, networking errors, timeout errors, auth errors,
228
+ # endpoint discovery, and errors from expired credentials.
229
+ # This option is only used in the `legacy` retry mode.
189
230
  #
190
231
  # @option options [Integer] :retry_max_delay (0)
191
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
232
+ # The maximum number of seconds to delay between retries (0 for no limit)
233
+ # used by the default backoff function. This option is only used in the
234
+ # `legacy` retry mode.
235
+ #
236
+ # @option options [String] :retry_mode ("legacy")
237
+ # Specifies which retry algorithm to use. Values are:
238
+ #
239
+ # * `legacy` - The pre-existing retry behavior. This is default value if
240
+ # no retry mode is provided.
241
+ #
242
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
243
+ # This includes support for retry quotas, which limit the number of
244
+ # unsuccessful retries a client can make.
245
+ #
246
+ # * `adaptive` - An experimental retry mode that includes all the
247
+ # functionality of `standard` mode along with automatic client side
248
+ # throttling. This is a provisional mode that may change behavior
249
+ # in the future.
250
+ #
192
251
  #
193
252
  # @option options [String] :secret_access_key
194
253
  #
@@ -211,16 +270,15 @@ module Aws::SSO
211
270
  # requests through. Formatted like 'http://proxy.com:123'.
212
271
  #
213
272
  # @option options [Float] :http_open_timeout (15) The number of
214
- # seconds to wait when opening a HTTP session before rasing a
273
+ # seconds to wait when opening a HTTP session before raising a
215
274
  # `Timeout::Error`.
216
275
  #
217
276
  # @option options [Integer] :http_read_timeout (60) The default
218
277
  # number of seconds to wait for response data. This value can
219
- # safely be set
220
- # per-request on the session yeidled by {#session_for}.
278
+ # safely be set per-request on the session.
221
279
  #
222
280
  # @option options [Float] :http_idle_timeout (5) The number of
223
- # seconds a connection is allowed to sit idble before it is
281
+ # seconds a connection is allowed to sit idle before it is
224
282
  # considered stale. Stale connections are closed and removed
225
283
  # from the pool before making a request.
226
284
  #
@@ -229,7 +287,7 @@ module Aws::SSO
229
287
  # request body. This option has no effect unless the request has
230
288
  # "Expect" header set to "100-continue". Defaults to `nil` which
231
289
  # disables this behaviour. This value can safely be set per
232
- # request on the session yeidled by {#session_for}.
290
+ # request on the session.
233
291
  #
234
292
  # @option options [Boolean] :http_wire_trace (false) When `true`,
235
293
  # HTTP debug output will be sent to the `:logger`.
@@ -326,6 +384,8 @@ module Aws::SSO
326
384
  # * {Types::ListAccountRolesResponse#next_token #next_token} => String
327
385
  # * {Types::ListAccountRolesResponse#role_list #role_list} => Array&lt;Types::RoleInfo&gt;
328
386
  #
387
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
388
+ #
329
389
  # @example Request syntax with placeholder values
330
390
  #
331
391
  # resp = client.list_account_roles({
@@ -380,6 +440,8 @@ module Aws::SSO
380
440
  # * {Types::ListAccountsResponse#next_token #next_token} => String
381
441
  # * {Types::ListAccountsResponse#account_list #account_list} => Array&lt;Types::AccountInfo&gt;
382
442
  #
443
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
444
+ #
383
445
  # @example Request syntax with placeholder values
384
446
  #
385
447
  # resp = client.list_accounts({
@@ -446,7 +508,7 @@ module Aws::SSO
446
508
  params: params,
447
509
  config: config)
448
510
  context[:gem_name] = 'aws-sdk-sso'
449
- context[:gem_version] = '1.1.1'
511
+ context[:gem_version] = '1.6.0'
450
512
  Seahorse::Client::Request.new(handlers, context)
451
513
  end
452
514
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,6 +8,32 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::SSO
11
+
12
+ # When SSO returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::SSO::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all SSO errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::SSO::Errors::ServiceError
20
+ # # rescues all SSO API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {InvalidRequestException}
31
+ # * {ResourceNotFoundException}
32
+ # * {TooManyRequestsException}
33
+ # * {UnauthorizedException}
34
+ #
35
+ # Additionally, error classes are dynamically generated for service errors based on the error code
36
+ # if they are not defined above.
9
37
  module Errors
10
38
 
11
39
  extend Aws::Errors::DynamicErrors
@@ -23,7 +51,6 @@ module Aws::SSO
23
51
  def message
24
52
  @message || @data[:message]
25
53
  end
26
-
27
54
  end
28
55
 
29
56
  class ResourceNotFoundException < ServiceError
@@ -39,7 +66,6 @@ module Aws::SSO
39
66
  def message
40
67
  @message || @data[:message]
41
68
  end
42
-
43
69
  end
44
70
 
45
71
  class TooManyRequestsException < ServiceError
@@ -55,7 +81,6 @@ module Aws::SSO
55
81
  def message
56
82
  @message || @data[:message]
57
83
  end
58
-
59
84
  end
60
85
 
61
86
  class UnauthorizedException < ServiceError
@@ -71,7 +96,6 @@ module Aws::SSO
71
96
  def message
72
97
  @message || @data[:message]
73
98
  end
74
-
75
99
  end
76
100
 
77
101
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Aws
2
4
  module SSO
3
5
  module Plugins
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -6,6 +8,7 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::SSO
11
+
9
12
  class Resource
10
13
 
11
14
  # @param options ({})
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -28,6 +30,7 @@ module Aws::SSO
28
30
  :account_id,
29
31
  :account_name,
30
32
  :email_address)
33
+ SENSITIVE = []
31
34
  include Aws::Structure
32
35
  end
33
36
 
@@ -64,6 +67,7 @@ module Aws::SSO
64
67
  :role_name,
65
68
  :account_id,
66
69
  :access_token)
70
+ SENSITIVE = [:access_token]
67
71
  include Aws::Structure
68
72
  end
69
73
 
@@ -75,6 +79,7 @@ module Aws::SSO
75
79
  #
76
80
  class GetRoleCredentialsResponse < Struct.new(
77
81
  :role_credentials)
82
+ SENSITIVE = []
78
83
  include Aws::Structure
79
84
  end
80
85
 
@@ -88,6 +93,7 @@ module Aws::SSO
88
93
  #
89
94
  class InvalidRequestException < Struct.new(
90
95
  :message)
96
+ SENSITIVE = []
91
97
  include Aws::Structure
92
98
  end
93
99
 
@@ -131,6 +137,7 @@ module Aws::SSO
131
137
  :max_results,
132
138
  :access_token,
133
139
  :account_id)
140
+ SENSITIVE = [:access_token]
134
141
  include Aws::Structure
135
142
  end
136
143
 
@@ -148,6 +155,7 @@ module Aws::SSO
148
155
  class ListAccountRolesResponse < Struct.new(
149
156
  :next_token,
150
157
  :role_list)
158
+ SENSITIVE = []
151
159
  include Aws::Structure
152
160
  end
153
161
 
@@ -185,6 +193,7 @@ module Aws::SSO
185
193
  :next_token,
186
194
  :max_results,
187
195
  :access_token)
196
+ SENSITIVE = [:access_token]
188
197
  include Aws::Structure
189
198
  end
190
199
 
@@ -202,6 +211,7 @@ module Aws::SSO
202
211
  class ListAccountsResponse < Struct.new(
203
212
  :next_token,
204
213
  :account_list)
214
+ SENSITIVE = []
205
215
  include Aws::Structure
206
216
  end
207
217
 
@@ -226,6 +236,7 @@ module Aws::SSO
226
236
  #
227
237
  class LogoutRequest < Struct.new(
228
238
  :access_token)
239
+ SENSITIVE = [:access_token]
229
240
  include Aws::Structure
230
241
  end
231
242
 
@@ -238,6 +249,7 @@ module Aws::SSO
238
249
  #
239
250
  class ResourceNotFoundException < Struct.new(
240
251
  :message)
252
+ SENSITIVE = []
241
253
  include Aws::Structure
242
254
  end
243
255
 
@@ -285,6 +297,7 @@ module Aws::SSO
285
297
  :secret_access_key,
286
298
  :session_token,
287
299
  :expiration)
300
+ SENSITIVE = [:secret_access_key, :session_token]
288
301
  include Aws::Structure
289
302
  end
290
303
 
@@ -303,6 +316,7 @@ module Aws::SSO
303
316
  class RoleInfo < Struct.new(
304
317
  :role_name,
305
318
  :account_id)
319
+ SENSITIVE = []
306
320
  include Aws::Structure
307
321
  end
308
322
 
@@ -316,6 +330,7 @@ module Aws::SSO
316
330
  #
317
331
  class TooManyRequestsException < Struct.new(
318
332
  :message)
333
+ SENSITIVE = []
319
334
  include Aws::Structure
320
335
  end
321
336
 
@@ -329,6 +344,7 @@ module Aws::SSO
329
344
  #
330
345
  class UnauthorizedException < Struct.new(
331
346
  :message)
347
+ SENSITIVE = []
332
348
  include Aws::Structure
333
349
  end
334
350
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.6.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-01-14 00:00:00.000000000 Z
11
+ date: 2020-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.5.2.3
85
+ rubygems_version: 2.7.6.2
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: AWS SDK for Ruby - SSO