aws-sdk-clouddirectory 1.21.0 → 1.22.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
2
  SHA1:
3
- metadata.gz: c4b927c9ed72f9fc785d4c91f96562a917a4a2c7
4
- data.tar.gz: 55ba68a3722616af65ee53c6a792e0f32409ddee
3
+ metadata.gz: c298053859d9b8063b811c51304711c6592247bd
4
+ data.tar.gz: 4d159663643ddfcdb52ddf58b6954a097a0cb3b7
5
5
  SHA512:
6
- metadata.gz: c74c7efd6146375563b8a91262dedece5fbd87278dde5ea61e4f2b8d5daf40507934978d63c8d0eb9f1b5a1b74fa252e658e9baa19f06f274ac32f4526d2eb7a
7
- data.tar.gz: 20d69b0c90df410894dd3ec544a568d63266c52d0c9b89a0e687c0633420c662e81f0114a65dce45efd651949153e33cc76d3f0239476e9cadaa63e7f4c1d39c
6
+ metadata.gz: e34ebe3c6e3a8c8cf8805ceb809dbdaee23b951e08a927e9507ee941730c9dd2b9ff12e56606fc7fc0ca43afea4e96a9410bfc4a4033bb01251d33055976a444
7
+ data.tar.gz: 2edbe9af15c2ee6c718ef20de47f48bddca83a17c0f5a11b91e085ed6578b875a40d9d3d16cc837a35434908e60e534a3aeafd47895b645586f1b78ea0dc443c
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-clouddirectory/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # cloud_directory = Aws::CloudDirectory::Client.new
28
+ # resp = cloud_directory.add_facet_to_object(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from Amazon CloudDirectory all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from Amazon CloudDirectory are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::CloudDirectory::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all Amazon CloudDirectory API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-clouddirectory/customizations'
42
45
  # @service
43
46
  module Aws::CloudDirectory
44
47
 
45
- GEM_VERSION = '1.21.0'
48
+ GEM_VERSION = '1.22.0'
46
49
 
47
50
  end
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:clouddirectory)
31
31
 
32
32
  module Aws::CloudDirectory
33
+ # An API client for CloudDirectory. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::CloudDirectory::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
+ #
41
+ # For details on configuring region and credentials see
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
43
+ #
44
+ # See {#initialize} for a full list of supported configuration options.
33
45
  class Client < Seahorse::Client::Base
34
46
 
35
47
  include Aws::ClientStubs
@@ -108,6 +120,12 @@ module Aws::CloudDirectory
108
120
  # When set to `true`, a thread polling for endpoints will be running in
109
121
  # the background every 60 secs (default). Defaults to `false`.
110
122
  #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
111
129
  # @option options [Boolean] :client_side_monitoring (false)
112
130
  # When `true`, client-side metrics will be collected for all API requests from
113
131
  # this client.
@@ -132,6 +150,10 @@ module Aws::CloudDirectory
132
150
  # When `true`, an attempt is made to coerce request parameters into
133
151
  # the required types.
134
152
  #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
135
157
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
158
  # Set to true to disable SDK automatically adding host prefix
137
159
  # to default service endpoint when available.
@@ -166,15 +188,29 @@ module Aws::CloudDirectory
166
188
  # The Logger instance to send log messages to. If this option
167
189
  # is not set, logging will be disabled.
168
190
  #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
169
197
  # @option options [String] :profile ("default")
170
198
  # Used when loading credentials from the shared credentials file
171
199
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
200
  #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
173
205
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
175
208
  #
176
209
  # @option options [Symbol] :retry_jitter (:none)
177
- # 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.
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
178
214
  #
179
215
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
216
  #
@@ -182,11 +218,26 @@ module Aws::CloudDirectory
182
218
  # The maximum number of times to retry failed requests. Only
183
219
  # ~ 500 level server errors and certain ~ 400 level client errors
184
220
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
187
224
  #
188
225
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
232
+ # * `legacy` - The pre-existing retry behavior. This is default value if
233
+ # no retry mode is provided.
234
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
+ # This includes support for retry quotas, which limit the number of
236
+ # unsuccessful retries a client can make.
237
+ # * `adaptive` - An experimental retry mode that includes all the
238
+ # functionality of `standard` mode along with automatic client side
239
+ # throttling. This is a provisional mode that may change behavior
240
+ # in the future.
190
241
  #
191
242
  # @option options [String] :secret_access_key
192
243
  #
@@ -209,16 +260,16 @@ module Aws::CloudDirectory
209
260
  # requests through. Formatted like 'http://proxy.com:123'.
210
261
  #
211
262
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
263
+ # seconds to wait when opening a HTTP session before raising a
213
264
  # `Timeout::Error`.
214
265
  #
215
266
  # @option options [Integer] :http_read_timeout (60) The default
216
267
  # number of seconds to wait for response data. This value can
217
268
  # safely be set
218
- # per-request on the session yeidled by {#session_for}.
269
+ # per-request on the session yielded by {#session_for}.
219
270
  #
220
271
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
272
+ # seconds a connection is allowed to sit idle before it is
222
273
  # considered stale. Stale connections are closed and removed
223
274
  # from the pool before making a request.
224
275
  #
@@ -227,7 +278,7 @@ module Aws::CloudDirectory
227
278
  # request body. This option has no effect unless the request has
228
279
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
280
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
281
+ # request on the session yielded by {#session_for}.
231
282
  #
232
283
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
284
  # HTTP debug output will be sent to the `:logger`.
@@ -4176,7 +4227,7 @@ module Aws::CloudDirectory
4176
4227
  params: params,
4177
4228
  config: config)
4178
4229
  context[:gem_name] = 'aws-sdk-clouddirectory'
4179
- context[:gem_version] = '1.21.0'
4230
+ context[:gem_version] = '1.22.0'
4180
4231
  Seahorse::Client::Request.new(handlers, context)
4181
4232
  end
4182
4233
 
@@ -6,6 +6,63 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::CloudDirectory
9
+
10
+ # When CloudDirectory returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::CloudDirectory::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all CloudDirectory errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::CloudDirectory::Errors::ServiceError
18
+ # # rescues all CloudDirectory API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {AccessDeniedException}
29
+ # * {BatchWriteException}
30
+ # * {CannotListParentOfRootException}
31
+ # * {DirectoryAlreadyExistsException}
32
+ # * {DirectoryDeletedException}
33
+ # * {DirectoryNotDisabledException}
34
+ # * {DirectoryNotEnabledException}
35
+ # * {FacetAlreadyExistsException}
36
+ # * {FacetInUseException}
37
+ # * {FacetNotFoundException}
38
+ # * {FacetValidationException}
39
+ # * {IncompatibleSchemaException}
40
+ # * {IndexedAttributeMissingException}
41
+ # * {InternalServiceException}
42
+ # * {InvalidArnException}
43
+ # * {InvalidAttachmentException}
44
+ # * {InvalidFacetUpdateException}
45
+ # * {InvalidNextTokenException}
46
+ # * {InvalidRuleException}
47
+ # * {InvalidSchemaDocException}
48
+ # * {InvalidTaggingRequestException}
49
+ # * {LimitExceededException}
50
+ # * {LinkNameAlreadyInUseException}
51
+ # * {NotIndexException}
52
+ # * {NotNodeException}
53
+ # * {NotPolicyException}
54
+ # * {ObjectAlreadyDetachedException}
55
+ # * {ObjectNotDetachedException}
56
+ # * {ResourceNotFoundException}
57
+ # * {RetryableConflictException}
58
+ # * {SchemaAlreadyExistsException}
59
+ # * {SchemaAlreadyPublishedException}
60
+ # * {StillContainsLinksException}
61
+ # * {UnsupportedIndexTypeException}
62
+ # * {ValidationException}
63
+ #
64
+ # Additionally, error classes are dynamically generated for service errors based on the error code
65
+ # if they are not defined above.
9
66
  module Errors
10
67
 
11
68
  extend Aws::Errors::DynamicErrors
@@ -23,7 +80,6 @@ module Aws::CloudDirectory
23
80
  def message
24
81
  @message || @data[:message]
25
82
  end
26
-
27
83
  end
28
84
 
29
85
  class BatchWriteException < ServiceError
@@ -49,7 +105,6 @@ module Aws::CloudDirectory
49
105
  def message
50
106
  @message || @data[:message]
51
107
  end
52
-
53
108
  end
54
109
 
55
110
  class CannotListParentOfRootException < ServiceError
@@ -65,7 +120,6 @@ module Aws::CloudDirectory
65
120
  def message
66
121
  @message || @data[:message]
67
122
  end
68
-
69
123
  end
70
124
 
71
125
  class DirectoryAlreadyExistsException < ServiceError
@@ -81,7 +135,6 @@ module Aws::CloudDirectory
81
135
  def message
82
136
  @message || @data[:message]
83
137
  end
84
-
85
138
  end
86
139
 
87
140
  class DirectoryDeletedException < ServiceError
@@ -97,7 +150,6 @@ module Aws::CloudDirectory
97
150
  def message
98
151
  @message || @data[:message]
99
152
  end
100
-
101
153
  end
102
154
 
103
155
  class DirectoryNotDisabledException < ServiceError
@@ -113,7 +165,6 @@ module Aws::CloudDirectory
113
165
  def message
114
166
  @message || @data[:message]
115
167
  end
116
-
117
168
  end
118
169
 
119
170
  class DirectoryNotEnabledException < ServiceError
@@ -129,7 +180,6 @@ module Aws::CloudDirectory
129
180
  def message
130
181
  @message || @data[:message]
131
182
  end
132
-
133
183
  end
134
184
 
135
185
  class FacetAlreadyExistsException < ServiceError
@@ -145,7 +195,6 @@ module Aws::CloudDirectory
145
195
  def message
146
196
  @message || @data[:message]
147
197
  end
148
-
149
198
  end
150
199
 
151
200
  class FacetInUseException < ServiceError
@@ -161,7 +210,6 @@ module Aws::CloudDirectory
161
210
  def message
162
211
  @message || @data[:message]
163
212
  end
164
-
165
213
  end
166
214
 
167
215
  class FacetNotFoundException < ServiceError
@@ -177,7 +225,6 @@ module Aws::CloudDirectory
177
225
  def message
178
226
  @message || @data[:message]
179
227
  end
180
-
181
228
  end
182
229
 
183
230
  class FacetValidationException < ServiceError
@@ -193,7 +240,6 @@ module Aws::CloudDirectory
193
240
  def message
194
241
  @message || @data[:message]
195
242
  end
196
-
197
243
  end
198
244
 
199
245
  class IncompatibleSchemaException < ServiceError
@@ -209,7 +255,6 @@ module Aws::CloudDirectory
209
255
  def message
210
256
  @message || @data[:message]
211
257
  end
212
-
213
258
  end
214
259
 
215
260
  class IndexedAttributeMissingException < ServiceError
@@ -225,7 +270,6 @@ module Aws::CloudDirectory
225
270
  def message
226
271
  @message || @data[:message]
227
272
  end
228
-
229
273
  end
230
274
 
231
275
  class InternalServiceException < ServiceError
@@ -241,7 +285,6 @@ module Aws::CloudDirectory
241
285
  def message
242
286
  @message || @data[:message]
243
287
  end
244
-
245
288
  end
246
289
 
247
290
  class InvalidArnException < ServiceError
@@ -257,7 +300,6 @@ module Aws::CloudDirectory
257
300
  def message
258
301
  @message || @data[:message]
259
302
  end
260
-
261
303
  end
262
304
 
263
305
  class InvalidAttachmentException < ServiceError
@@ -273,7 +315,6 @@ module Aws::CloudDirectory
273
315
  def message
274
316
  @message || @data[:message]
275
317
  end
276
-
277
318
  end
278
319
 
279
320
  class InvalidFacetUpdateException < ServiceError
@@ -289,7 +330,6 @@ module Aws::CloudDirectory
289
330
  def message
290
331
  @message || @data[:message]
291
332
  end
292
-
293
333
  end
294
334
 
295
335
  class InvalidNextTokenException < ServiceError
@@ -305,7 +345,6 @@ module Aws::CloudDirectory
305
345
  def message
306
346
  @message || @data[:message]
307
347
  end
308
-
309
348
  end
310
349
 
311
350
  class InvalidRuleException < ServiceError
@@ -321,7 +360,6 @@ module Aws::CloudDirectory
321
360
  def message
322
361
  @message || @data[:message]
323
362
  end
324
-
325
363
  end
326
364
 
327
365
  class InvalidSchemaDocException < ServiceError
@@ -337,7 +375,6 @@ module Aws::CloudDirectory
337
375
  def message
338
376
  @message || @data[:message]
339
377
  end
340
-
341
378
  end
342
379
 
343
380
  class InvalidTaggingRequestException < ServiceError
@@ -353,7 +390,6 @@ module Aws::CloudDirectory
353
390
  def message
354
391
  @message || @data[:message]
355
392
  end
356
-
357
393
  end
358
394
 
359
395
  class LimitExceededException < ServiceError
@@ -369,7 +405,6 @@ module Aws::CloudDirectory
369
405
  def message
370
406
  @message || @data[:message]
371
407
  end
372
-
373
408
  end
374
409
 
375
410
  class LinkNameAlreadyInUseException < ServiceError
@@ -385,7 +420,6 @@ module Aws::CloudDirectory
385
420
  def message
386
421
  @message || @data[:message]
387
422
  end
388
-
389
423
  end
390
424
 
391
425
  class NotIndexException < ServiceError
@@ -401,7 +435,6 @@ module Aws::CloudDirectory
401
435
  def message
402
436
  @message || @data[:message]
403
437
  end
404
-
405
438
  end
406
439
 
407
440
  class NotNodeException < ServiceError
@@ -417,7 +450,6 @@ module Aws::CloudDirectory
417
450
  def message
418
451
  @message || @data[:message]
419
452
  end
420
-
421
453
  end
422
454
 
423
455
  class NotPolicyException < ServiceError
@@ -433,7 +465,6 @@ module Aws::CloudDirectory
433
465
  def message
434
466
  @message || @data[:message]
435
467
  end
436
-
437
468
  end
438
469
 
439
470
  class ObjectAlreadyDetachedException < ServiceError
@@ -449,7 +480,6 @@ module Aws::CloudDirectory
449
480
  def message
450
481
  @message || @data[:message]
451
482
  end
452
-
453
483
  end
454
484
 
455
485
  class ObjectNotDetachedException < ServiceError
@@ -465,7 +495,6 @@ module Aws::CloudDirectory
465
495
  def message
466
496
  @message || @data[:message]
467
497
  end
468
-
469
498
  end
470
499
 
471
500
  class ResourceNotFoundException < ServiceError
@@ -481,7 +510,6 @@ module Aws::CloudDirectory
481
510
  def message
482
511
  @message || @data[:message]
483
512
  end
484
-
485
513
  end
486
514
 
487
515
  class RetryableConflictException < ServiceError
@@ -497,7 +525,6 @@ module Aws::CloudDirectory
497
525
  def message
498
526
  @message || @data[:message]
499
527
  end
500
-
501
528
  end
502
529
 
503
530
  class SchemaAlreadyExistsException < ServiceError
@@ -513,7 +540,6 @@ module Aws::CloudDirectory
513
540
  def message
514
541
  @message || @data[:message]
515
542
  end
516
-
517
543
  end
518
544
 
519
545
  class SchemaAlreadyPublishedException < ServiceError
@@ -529,7 +555,6 @@ module Aws::CloudDirectory
529
555
  def message
530
556
  @message || @data[:message]
531
557
  end
532
-
533
558
  end
534
559
 
535
560
  class StillContainsLinksException < ServiceError
@@ -545,7 +570,6 @@ module Aws::CloudDirectory
545
570
  def message
546
571
  @message || @data[:message]
547
572
  end
548
-
549
573
  end
550
574
 
551
575
  class UnsupportedIndexTypeException < ServiceError
@@ -561,7 +585,6 @@ module Aws::CloudDirectory
561
585
  def message
562
586
  @message || @data[:message]
563
587
  end
564
-
565
588
  end
566
589
 
567
590
  class ValidationException < ServiceError
@@ -577,7 +600,6 @@ module Aws::CloudDirectory
577
600
  def message
578
601
  @message || @data[:message]
579
602
  end
580
-
581
603
  end
582
604
 
583
605
  end
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::CloudDirectory
9
+ # This class provides a resource oriented interface for CloudDirectory.
10
+ # To create a resource object:
11
+ # resource = Aws::CloudDirectory::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::CloudDirectory::Client.new(region: 'us-west-2')
15
+ # resource = Aws::CloudDirectory::Resource.new(client: client)
9
16
  class Resource
10
17
 
11
18
  # @param options ({})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-clouddirectory
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.22.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: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2020-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core