aws-sdk-directoryservice 1.25.0 → 1.30.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: 13683781d1023da18e0437b6a571001dbe05ecac
4
- data.tar.gz: 8a61f6e7376a5915db053ca5905ec8da5f57ff91
2
+ SHA256:
3
+ metadata.gz: 276be2fd8ab24bbf2e4e57eb2a33b6ed0ddd2b5359a46b6a513ac909c701a48c
4
+ data.tar.gz: f8fb1ca7c745d31700ff1dafb0cadac57096a75ea8db3cfb88f1e7d5d8819a74
5
5
  SHA512:
6
- metadata.gz: 7ca4aa67e40f5c4d7317d219ab524c2ebe5da8e3c948c35f60fb44f190538f8145cb5daaeae8461813ec522f29b79964ec7ce107631984d9d585de3da4046747
7
- data.tar.gz: 7b1351944e961072e7c1a333b43e669fa7469411ea104366059c8b7db66107c7a4fc30d0f6f9db346477bb47bd96667d90910ca471f3ad9c88e1f9852a0e2c5e
6
+ metadata.gz: fff902523197cea2ec631c3cb203fba7a681c154330abe1ae07aba8188f9469496fb0a4b346a51b078a06e7d5047665f0e3ba1031a91c720657f7abe714d1b31
7
+ data.tar.gz: 44290630acd47d0548e083a01f1a0a94a6b8543471efe29e24611e0784b70f3ed77385eba7d2fa929d62dbe81efde7464318b0dbbfd31cf9c06e30e975021d0e
@@ -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-directoryservice/customizations'
24
26
  # methods each accept a hash of request parameters and return a response
25
27
  # structure.
26
28
  #
29
+ # directory_service = Aws::DirectoryService::Client.new
30
+ # resp = directory_service.accept_shared_directory(params)
31
+ #
27
32
  # See {Client} for more information.
28
33
  #
29
34
  # # Errors
30
35
  #
31
- # Errors returned from AWS Directory Service all
32
- # extend {Errors::ServiceError}.
36
+ # Errors returned from AWS Directory Service 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::DirectoryService::Errors::ServiceError
37
- # # rescues all service API errors
42
+ # # rescues all AWS Directory Service API errors
38
43
  # end
39
44
  #
40
45
  # See {Errors} for more information.
@@ -42,6 +47,6 @@ require_relative 'aws-sdk-directoryservice/customizations'
42
47
  # @service
43
48
  module Aws::DirectoryService
44
49
 
45
- GEM_VERSION = '1.25.0'
50
+ GEM_VERSION = '1.30.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,12 +26,25 @@ 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/json_rpc.rb'
29
32
 
30
33
  Aws::Plugins::GlobalConfiguration.add_identifier(:directoryservice)
31
34
 
32
35
  module Aws::DirectoryService
36
+ # An API client for DirectoryService. To construct a client, you need to configure a `:region` and `:credentials`.
37
+ #
38
+ # client = Aws::DirectoryService::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
43
+ #
44
+ # For details on configuring region and credentials see
45
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
46
+ #
47
+ # See {#initialize} for a full list of supported configuration options.
33
48
  class Client < Seahorse::Client::Base
34
49
 
35
50
  include Aws::ClientStubs
@@ -57,6 +72,7 @@ module Aws::DirectoryService
57
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
60
76
  add_plugin(Aws::Plugins::SignatureV4)
61
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
62
78
 
@@ -93,7 +109,7 @@ module Aws::DirectoryService
93
109
  # @option options [required, String] :region
94
110
  # The AWS region to connect to. The configured `:region` is
95
111
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
97
113
  #
98
114
  # * `Aws.config[:region]`
99
115
  # * `ENV['AWS_REGION']`
@@ -108,6 +124,12 @@ module Aws::DirectoryService
108
124
  # When set to `true`, a thread polling for endpoints will be running in
109
125
  # the background every 60 secs (default). Defaults to `false`.
110
126
  #
127
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
128
+ # Used only in `adaptive` retry mode. When true, the request will sleep
129
+ # until there is sufficent client side capacity to retry the request.
130
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
131
+ # not retry instead of sleeping.
132
+ #
111
133
  # @option options [Boolean] :client_side_monitoring (false)
112
134
  # When `true`, client-side metrics will be collected for all API requests from
113
135
  # this client.
@@ -132,6 +154,10 @@ module Aws::DirectoryService
132
154
  # When `true`, an attempt is made to coerce request parameters into
133
155
  # the required types.
134
156
  #
157
+ # @option options [Boolean] :correct_clock_skew (true)
158
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
159
+ # a clock skew correction and retry requests with skewed client clocks.
160
+ #
135
161
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
162
  # Set to true to disable SDK automatically adding host prefix
137
163
  # to default service endpoint when available.
@@ -139,7 +165,7 @@ module Aws::DirectoryService
139
165
  # @option options [String] :endpoint
140
166
  # The client endpoint is normally constructed from the `:region`
141
167
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
169
  #
144
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +180,7 @@ module Aws::DirectoryService
154
180
  # requests fetching endpoints information. Defaults to 60 sec.
155
181
  #
156
182
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
184
  #
159
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
186
  # The log formatter.
@@ -166,15 +192,29 @@ module Aws::DirectoryService
166
192
  # The Logger instance to send log messages to. If this option
167
193
  # is not set, logging will be disabled.
168
194
  #
195
+ # @option options [Integer] :max_attempts (3)
196
+ # An integer representing the maximum number attempts that will be made for
197
+ # a single request, including the initial attempt. For example,
198
+ # setting this value to 5 will result in a request being retried up to
199
+ # 4 times. Used in `standard` and `adaptive` retry modes.
200
+ #
169
201
  # @option options [String] :profile ("default")
170
202
  # Used when loading credentials from the shared credentials file
171
203
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
204
  #
205
+ # @option options [Proc] :retry_backoff
206
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
207
+ # This option is only used in the `legacy` retry mode.
208
+ #
173
209
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
210
+ # The base delay in seconds used by the default backoff function. This option
211
+ # is only used in the `legacy` retry mode.
175
212
  #
176
213
  # @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.
214
+ # A delay randomiser function used by the default backoff function.
215
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
216
+ # otherwise a Proc that takes and returns a number. This option is only used
217
+ # in the `legacy` retry mode.
178
218
  #
179
219
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
220
  #
@@ -182,11 +222,30 @@ module Aws::DirectoryService
182
222
  # The maximum number of times to retry failed requests. Only
183
223
  # ~ 500 level server errors and certain ~ 400 level client errors
184
224
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
225
+ # checksum errors, networking errors, timeout errors, auth errors,
226
+ # endpoint discovery, and errors from expired credentials.
227
+ # This option is only used in the `legacy` retry mode.
187
228
  #
188
229
  # @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.
230
+ # The maximum number of seconds to delay between retries (0 for no limit)
231
+ # used by the default backoff function. This option is only used in the
232
+ # `legacy` retry mode.
233
+ #
234
+ # @option options [String] :retry_mode ("legacy")
235
+ # Specifies which retry algorithm to use. Values are:
236
+ #
237
+ # * `legacy` - The pre-existing retry behavior. This is default value if
238
+ # no retry mode is provided.
239
+ #
240
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
241
+ # This includes support for retry quotas, which limit the number of
242
+ # unsuccessful retries a client can make.
243
+ #
244
+ # * `adaptive` - An experimental retry mode that includes all the
245
+ # functionality of `standard` mode along with automatic client side
246
+ # throttling. This is a provisional mode that may change behavior
247
+ # in the future.
248
+ #
190
249
  #
191
250
  # @option options [String] :secret_access_key
192
251
  #
@@ -219,16 +278,15 @@ module Aws::DirectoryService
219
278
  # requests through. Formatted like 'http://proxy.com:123'.
220
279
  #
221
280
  # @option options [Float] :http_open_timeout (15) The number of
222
- # seconds to wait when opening a HTTP session before rasing a
281
+ # seconds to wait when opening a HTTP session before raising a
223
282
  # `Timeout::Error`.
224
283
  #
225
284
  # @option options [Integer] :http_read_timeout (60) The default
226
285
  # number of seconds to wait for response data. This value can
227
- # safely be set
228
- # per-request on the session yeidled by {#session_for}.
286
+ # safely be set per-request on the session.
229
287
  #
230
288
  # @option options [Float] :http_idle_timeout (5) The number of
231
- # seconds a connection is allowed to sit idble before it is
289
+ # seconds a connection is allowed to sit idle before it is
232
290
  # considered stale. Stale connections are closed and removed
233
291
  # from the pool before making a request.
234
292
  #
@@ -237,7 +295,7 @@ module Aws::DirectoryService
237
295
  # request body. This option has no effect unless the request has
238
296
  # "Expect" header set to "100-continue". Defaults to `nil` which
239
297
  # disables this behaviour. This value can safely be set per
240
- # request on the session yeidled by {#session_for}.
298
+ # request on the session.
241
299
  #
242
300
  # @option options [Boolean] :http_wire_trace (false) When `true`,
243
301
  # HTTP debug output will be sent to the `:logger`.
@@ -1408,6 +1466,8 @@ module Aws::DirectoryService
1408
1466
  # * {Types::DescribeDomainControllersResult#domain_controllers #domain_controllers} => Array&lt;Types::DomainController&gt;
1409
1467
  # * {Types::DescribeDomainControllersResult#next_token #next_token} => String
1410
1468
  #
1469
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1470
+ #
1411
1471
  # @example Request syntax with placeholder values
1412
1472
  #
1413
1473
  # resp = client.describe_domain_controllers({
@@ -2759,7 +2819,7 @@ module Aws::DirectoryService
2759
2819
  params: params,
2760
2820
  config: config)
2761
2821
  context[:gem_name] = 'aws-sdk-directoryservice'
2762
- context[:gem_version] = '1.25.0'
2822
+ context[:gem_version] = '1.30.0'
2763
2823
  Seahorse::Client::Request.new(handlers, context)
2764
2824
  end
2765
2825
 
@@ -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,4 @@
1
+ # frozen_string_literal: true
1
2
  # WARNING ABOUT GENERATED CODE
2
3
  #
3
4
  # This file is generated. See the contributing for info on making contributions:
@@ -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,59 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::DirectoryService
11
+
12
+ # When DirectoryService returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::DirectoryService::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all DirectoryService errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::DirectoryService::Errors::ServiceError
20
+ # # rescues all DirectoryService 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
+ # * {AccessDeniedException}
31
+ # * {AuthenticationFailedException}
32
+ # * {CertificateAlreadyExistsException}
33
+ # * {CertificateDoesNotExistException}
34
+ # * {CertificateInUseException}
35
+ # * {CertificateLimitExceededException}
36
+ # * {ClientException}
37
+ # * {DirectoryAlreadySharedException}
38
+ # * {DirectoryDoesNotExistException}
39
+ # * {DirectoryLimitExceededException}
40
+ # * {DirectoryNotSharedException}
41
+ # * {DirectoryUnavailableException}
42
+ # * {DomainControllerLimitExceededException}
43
+ # * {EntityAlreadyExistsException}
44
+ # * {EntityDoesNotExistException}
45
+ # * {InsufficientPermissionsException}
46
+ # * {InvalidCertificateException}
47
+ # * {InvalidLDAPSStatusException}
48
+ # * {InvalidNextTokenException}
49
+ # * {InvalidParameterException}
50
+ # * {InvalidPasswordException}
51
+ # * {InvalidTargetException}
52
+ # * {IpRouteLimitExceededException}
53
+ # * {NoAvailableCertificateException}
54
+ # * {OrganizationsException}
55
+ # * {ServiceException}
56
+ # * {ShareLimitExceededException}
57
+ # * {SnapshotLimitExceededException}
58
+ # * {TagLimitExceededException}
59
+ # * {UnsupportedOperationException}
60
+ # * {UserDoesNotExistException}
61
+ #
62
+ # Additionally, error classes are dynamically generated for service errors based on the error code
63
+ # if they are not defined above.
9
64
  module Errors
10
65
 
11
66
  extend Aws::Errors::DynamicErrors
@@ -28,7 +83,6 @@ module Aws::DirectoryService
28
83
  def request_id
29
84
  @data[:request_id]
30
85
  end
31
-
32
86
  end
33
87
 
34
88
  class AuthenticationFailedException < ServiceError
@@ -49,7 +103,6 @@ module Aws::DirectoryService
49
103
  def request_id
50
104
  @data[:request_id]
51
105
  end
52
-
53
106
  end
54
107
 
55
108
  class CertificateAlreadyExistsException < ServiceError
@@ -70,7 +123,6 @@ module Aws::DirectoryService
70
123
  def request_id
71
124
  @data[:request_id]
72
125
  end
73
-
74
126
  end
75
127
 
76
128
  class CertificateDoesNotExistException < ServiceError
@@ -91,7 +143,6 @@ module Aws::DirectoryService
91
143
  def request_id
92
144
  @data[:request_id]
93
145
  end
94
-
95
146
  end
96
147
 
97
148
  class CertificateInUseException < ServiceError
@@ -112,7 +163,6 @@ module Aws::DirectoryService
112
163
  def request_id
113
164
  @data[:request_id]
114
165
  end
115
-
116
166
  end
117
167
 
118
168
  class CertificateLimitExceededException < ServiceError
@@ -133,7 +183,6 @@ module Aws::DirectoryService
133
183
  def request_id
134
184
  @data[:request_id]
135
185
  end
136
-
137
186
  end
138
187
 
139
188
  class ClientException < ServiceError
@@ -154,7 +203,6 @@ module Aws::DirectoryService
154
203
  def request_id
155
204
  @data[:request_id]
156
205
  end
157
-
158
206
  end
159
207
 
160
208
  class DirectoryAlreadySharedException < ServiceError
@@ -175,7 +223,6 @@ module Aws::DirectoryService
175
223
  def request_id
176
224
  @data[:request_id]
177
225
  end
178
-
179
226
  end
180
227
 
181
228
  class DirectoryDoesNotExistException < ServiceError
@@ -196,7 +243,6 @@ module Aws::DirectoryService
196
243
  def request_id
197
244
  @data[:request_id]
198
245
  end
199
-
200
246
  end
201
247
 
202
248
  class DirectoryLimitExceededException < ServiceError
@@ -217,7 +263,6 @@ module Aws::DirectoryService
217
263
  def request_id
218
264
  @data[:request_id]
219
265
  end
220
-
221
266
  end
222
267
 
223
268
  class DirectoryNotSharedException < ServiceError
@@ -238,7 +283,6 @@ module Aws::DirectoryService
238
283
  def request_id
239
284
  @data[:request_id]
240
285
  end
241
-
242
286
  end
243
287
 
244
288
  class DirectoryUnavailableException < ServiceError
@@ -259,7 +303,6 @@ module Aws::DirectoryService
259
303
  def request_id
260
304
  @data[:request_id]
261
305
  end
262
-
263
306
  end
264
307
 
265
308
  class DomainControllerLimitExceededException < ServiceError
@@ -280,7 +323,6 @@ module Aws::DirectoryService
280
323
  def request_id
281
324
  @data[:request_id]
282
325
  end
283
-
284
326
  end
285
327
 
286
328
  class EntityAlreadyExistsException < ServiceError
@@ -301,7 +343,6 @@ module Aws::DirectoryService
301
343
  def request_id
302
344
  @data[:request_id]
303
345
  end
304
-
305
346
  end
306
347
 
307
348
  class EntityDoesNotExistException < ServiceError
@@ -322,7 +363,6 @@ module Aws::DirectoryService
322
363
  def request_id
323
364
  @data[:request_id]
324
365
  end
325
-
326
366
  end
327
367
 
328
368
  class InsufficientPermissionsException < ServiceError
@@ -343,7 +383,6 @@ module Aws::DirectoryService
343
383
  def request_id
344
384
  @data[:request_id]
345
385
  end
346
-
347
386
  end
348
387
 
349
388
  class InvalidCertificateException < ServiceError
@@ -364,7 +403,6 @@ module Aws::DirectoryService
364
403
  def request_id
365
404
  @data[:request_id]
366
405
  end
367
-
368
406
  end
369
407
 
370
408
  class InvalidLDAPSStatusException < ServiceError
@@ -385,7 +423,6 @@ module Aws::DirectoryService
385
423
  def request_id
386
424
  @data[:request_id]
387
425
  end
388
-
389
426
  end
390
427
 
391
428
  class InvalidNextTokenException < ServiceError
@@ -406,7 +443,6 @@ module Aws::DirectoryService
406
443
  def request_id
407
444
  @data[:request_id]
408
445
  end
409
-
410
446
  end
411
447
 
412
448
  class InvalidParameterException < ServiceError
@@ -427,7 +463,6 @@ module Aws::DirectoryService
427
463
  def request_id
428
464
  @data[:request_id]
429
465
  end
430
-
431
466
  end
432
467
 
433
468
  class InvalidPasswordException < ServiceError
@@ -448,7 +483,6 @@ module Aws::DirectoryService
448
483
  def request_id
449
484
  @data[:request_id]
450
485
  end
451
-
452
486
  end
453
487
 
454
488
  class InvalidTargetException < ServiceError
@@ -469,7 +503,6 @@ module Aws::DirectoryService
469
503
  def request_id
470
504
  @data[:request_id]
471
505
  end
472
-
473
506
  end
474
507
 
475
508
  class IpRouteLimitExceededException < ServiceError
@@ -490,7 +523,6 @@ module Aws::DirectoryService
490
523
  def request_id
491
524
  @data[:request_id]
492
525
  end
493
-
494
526
  end
495
527
 
496
528
  class NoAvailableCertificateException < ServiceError
@@ -511,7 +543,6 @@ module Aws::DirectoryService
511
543
  def request_id
512
544
  @data[:request_id]
513
545
  end
514
-
515
546
  end
516
547
 
517
548
  class OrganizationsException < ServiceError
@@ -532,7 +563,6 @@ module Aws::DirectoryService
532
563
  def request_id
533
564
  @data[:request_id]
534
565
  end
535
-
536
566
  end
537
567
 
538
568
  class ServiceException < ServiceError
@@ -553,7 +583,6 @@ module Aws::DirectoryService
553
583
  def request_id
554
584
  @data[:request_id]
555
585
  end
556
-
557
586
  end
558
587
 
559
588
  class ShareLimitExceededException < ServiceError
@@ -574,7 +603,6 @@ module Aws::DirectoryService
574
603
  def request_id
575
604
  @data[:request_id]
576
605
  end
577
-
578
606
  end
579
607
 
580
608
  class SnapshotLimitExceededException < ServiceError
@@ -595,7 +623,6 @@ module Aws::DirectoryService
595
623
  def request_id
596
624
  @data[:request_id]
597
625
  end
598
-
599
626
  end
600
627
 
601
628
  class TagLimitExceededException < ServiceError
@@ -616,7 +643,6 @@ module Aws::DirectoryService
616
643
  def request_id
617
644
  @data[:request_id]
618
645
  end
619
-
620
646
  end
621
647
 
622
648
  class UnsupportedOperationException < ServiceError
@@ -637,7 +663,6 @@ module Aws::DirectoryService
637
663
  def request_id
638
664
  @data[:request_id]
639
665
  end
640
-
641
666
  end
642
667
 
643
668
  class UserDoesNotExistException < ServiceError
@@ -658,7 +683,6 @@ module Aws::DirectoryService
658
683
  def request_id
659
684
  @data[:request_id]
660
685
  end
661
-
662
686
  end
663
687
 
664
688
  end