aws-sdk-clouddirectory 1.21.0 → 1.26.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
- SHA1:
3
- metadata.gz: c4b927c9ed72f9fc785d4c91f96562a917a4a2c7
4
- data.tar.gz: 55ba68a3722616af65ee53c6a792e0f32409ddee
2
+ SHA256:
3
+ metadata.gz: 2d5142c243c312b38f988b99a71d2b759a6e4bad6aa25b5bbba41d361b76ffc4
4
+ data.tar.gz: 4dc553f664fc3af6f4ed969533ff139d7c9ccbc664f7e022afbf6614f94e3c8d
5
5
  SHA512:
6
- metadata.gz: c74c7efd6146375563b8a91262dedece5fbd87278dde5ea61e4f2b8d5daf40507934978d63c8d0eb9f1b5a1b74fa252e658e9baa19f06f274ac32f4526d2eb7a
7
- data.tar.gz: 20d69b0c90df410894dd3ec544a568d63266c52d0c9b89a0e687c0633420c662e81f0114a65dce45efd651949153e33cc76d3f0239476e9cadaa63e7f4c1d39c
6
+ metadata.gz: eece7f7b974e15b281ec544edbe819dca7b0d329e65c7ae783d48a91f2dfe618337dff15d843fbf3b039b2805f20bf4955ac467a75608c0659bfd19c309baae8
7
+ data.tar.gz: c1d393755d12699b97b6cfc10595c91bff731c97814cf52d2a4827ea643bdce3f1f0acbf88810a5602835b5862c9809cb9811a5fc7a21a27069e3c8176ad6de9
@@ -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-clouddirectory/customizations'
24
26
  # methods each accept a hash of request parameters and return a response
25
27
  # structure.
26
28
  #
29
+ # cloud_directory = Aws::CloudDirectory::Client.new
30
+ # resp = cloud_directory.add_facet_to_object(params)
31
+ #
27
32
  # See {Client} for more information.
28
33
  #
29
34
  # # Errors
30
35
  #
31
- # Errors returned from Amazon CloudDirectory all
32
- # extend {Errors::ServiceError}.
36
+ # Errors returned from Amazon CloudDirectory 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::CloudDirectory::Errors::ServiceError
37
- # # rescues all service API errors
42
+ # # rescues all Amazon CloudDirectory API errors
38
43
  # end
39
44
  #
40
45
  # See {Errors} for more information.
@@ -42,6 +47,6 @@ require_relative 'aws-sdk-clouddirectory/customizations'
42
47
  # @service
43
48
  module Aws::CloudDirectory
44
49
 
45
- GEM_VERSION = '1.21.0'
50
+ GEM_VERSION = '1.26.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/rest_json.rb'
29
32
 
30
33
  Aws::Plugins::GlobalConfiguration.add_identifier(:clouddirectory)
31
34
 
32
35
  module Aws::CloudDirectory
36
+ # An API client for CloudDirectory. To construct a client, you need to configure a `:region` and `:credentials`.
37
+ #
38
+ # client = Aws::CloudDirectory::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::CloudDirectory
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::RestJson)
62
78
 
@@ -93,7 +109,7 @@ module Aws::CloudDirectory
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::CloudDirectory
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::CloudDirectory
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::CloudDirectory
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::CloudDirectory
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::CloudDirectory
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::CloudDirectory
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
  #
@@ -209,16 +268,15 @@ module Aws::CloudDirectory
209
268
  # requests through. Formatted like 'http://proxy.com:123'.
210
269
  #
211
270
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
271
+ # seconds to wait when opening a HTTP session before raising a
213
272
  # `Timeout::Error`.
214
273
  #
215
274
  # @option options [Integer] :http_read_timeout (60) The default
216
275
  # number of seconds to wait for response data. This value can
217
- # safely be set
218
- # per-request on the session yeidled by {#session_for}.
276
+ # safely be set per-request on the session.
219
277
  #
220
278
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
279
+ # seconds a connection is allowed to sit idle before it is
222
280
  # considered stale. Stale connections are closed and removed
223
281
  # from the pool before making a request.
224
282
  #
@@ -227,7 +285,7 @@ module Aws::CloudDirectory
227
285
  # request body. This option has no effect unless the request has
228
286
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
287
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
288
+ # request on the session.
231
289
  #
232
290
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
291
  # HTTP debug output will be sent to the `:logger`.
@@ -2354,6 +2412,8 @@ module Aws::CloudDirectory
2354
2412
  # * {Types::ListAppliedSchemaArnsResponse#schema_arns #schema_arns} => Array&lt;String&gt;
2355
2413
  # * {Types::ListAppliedSchemaArnsResponse#next_token #next_token} => String
2356
2414
  #
2415
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2416
+ #
2357
2417
  # @example Request syntax with placeholder values
2358
2418
  #
2359
2419
  # resp = client.list_applied_schema_arns({
@@ -2400,6 +2460,8 @@ module Aws::CloudDirectory
2400
2460
  # * {Types::ListAttachedIndicesResponse#index_attachments #index_attachments} => Array&lt;Types::IndexAttachment&gt;
2401
2461
  # * {Types::ListAttachedIndicesResponse#next_token #next_token} => String
2402
2462
  #
2463
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2464
+ #
2403
2465
  # @example Request syntax with placeholder values
2404
2466
  #
2405
2467
  # resp = client.list_attached_indices({
@@ -2450,6 +2512,8 @@ module Aws::CloudDirectory
2450
2512
  # * {Types::ListDevelopmentSchemaArnsResponse#schema_arns #schema_arns} => Array&lt;String&gt;
2451
2513
  # * {Types::ListDevelopmentSchemaArnsResponse#next_token #next_token} => String
2452
2514
  #
2515
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2516
+ #
2453
2517
  # @example Request syntax with placeholder values
2454
2518
  #
2455
2519
  # resp = client.list_development_schema_arns({
@@ -2489,6 +2553,8 @@ module Aws::CloudDirectory
2489
2553
  # * {Types::ListDirectoriesResponse#directories #directories} => Array&lt;Types::Directory&gt;
2490
2554
  # * {Types::ListDirectoriesResponse#next_token #next_token} => String
2491
2555
  #
2556
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2557
+ #
2492
2558
  # @example Request syntax with placeholder values
2493
2559
  #
2494
2560
  # resp = client.list_directories({
@@ -2534,6 +2600,8 @@ module Aws::CloudDirectory
2534
2600
  # * {Types::ListFacetAttributesResponse#attributes #attributes} => Array&lt;Types::FacetAttribute&gt;
2535
2601
  # * {Types::ListFacetAttributesResponse#next_token #next_token} => String
2536
2602
  #
2603
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2604
+ #
2537
2605
  # @example Request syntax with placeholder values
2538
2606
  #
2539
2607
  # resp = client.list_facet_attributes({
@@ -2588,6 +2656,8 @@ module Aws::CloudDirectory
2588
2656
  # * {Types::ListFacetNamesResponse#facet_names #facet_names} => Array&lt;String&gt;
2589
2657
  # * {Types::ListFacetNamesResponse#next_token #next_token} => String
2590
2658
  #
2659
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2660
+ #
2591
2661
  # @example Request syntax with placeholder values
2592
2662
  #
2593
2663
  # resp = client.list_facet_names({
@@ -2746,6 +2816,8 @@ module Aws::CloudDirectory
2746
2816
  # * {Types::ListIndexResponse#index_attachments #index_attachments} => Array&lt;Types::IndexAttachment&gt;
2747
2817
  # * {Types::ListIndexResponse#next_token #next_token} => String
2748
2818
  #
2819
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2820
+ #
2749
2821
  # @example Request syntax with placeholder values
2750
2822
  #
2751
2823
  # resp = client.list_index({
@@ -2828,6 +2900,8 @@ module Aws::CloudDirectory
2828
2900
  # * {Types::ListManagedSchemaArnsResponse#schema_arns #schema_arns} => Array&lt;String&gt;
2829
2901
  # * {Types::ListManagedSchemaArnsResponse#next_token #next_token} => String
2830
2902
  #
2903
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2904
+ #
2831
2905
  # @example Request syntax with placeholder values
2832
2906
  #
2833
2907
  # resp = client.list_managed_schema_arns({
@@ -2882,6 +2956,8 @@ module Aws::CloudDirectory
2882
2956
  # * {Types::ListObjectAttributesResponse#attributes #attributes} => Array&lt;Types::AttributeKeyAndValue&gt;
2883
2957
  # * {Types::ListObjectAttributesResponse#next_token #next_token} => String
2884
2958
  #
2959
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2960
+ #
2885
2961
  # @example Request syntax with placeholder values
2886
2962
  #
2887
2963
  # resp = client.list_object_attributes({
@@ -2948,6 +3024,8 @@ module Aws::CloudDirectory
2948
3024
  # * {Types::ListObjectChildrenResponse#children #children} => Hash&lt;String,String&gt;
2949
3025
  # * {Types::ListObjectChildrenResponse#next_token #next_token} => String
2950
3026
  #
3027
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3028
+ #
2951
3029
  # @example Request syntax with placeholder values
2952
3030
  #
2953
3031
  # resp = client.list_object_children({
@@ -3010,6 +3088,8 @@ module Aws::CloudDirectory
3010
3088
  # * {Types::ListObjectParentPathsResponse#path_to_object_identifiers_list #path_to_object_identifiers_list} => Array&lt;Types::PathToObjectIdentifiers&gt;
3011
3089
  # * {Types::ListObjectParentPathsResponse#next_token #next_token} => String
3012
3090
  #
3091
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3092
+ #
3013
3093
  # @example Request syntax with placeholder values
3014
3094
  #
3015
3095
  # resp = client.list_object_parent_paths({
@@ -3071,6 +3151,8 @@ module Aws::CloudDirectory
3071
3151
  # * {Types::ListObjectParentsResponse#next_token #next_token} => String
3072
3152
  # * {Types::ListObjectParentsResponse#parent_links #parent_links} => Array&lt;Types::ObjectIdentifierAndLinkNameTuple&gt;
3073
3153
  #
3154
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3155
+ #
3074
3156
  # @example Request syntax with placeholder values
3075
3157
  #
3076
3158
  # resp = client.list_object_parents({
@@ -3129,6 +3211,8 @@ module Aws::CloudDirectory
3129
3211
  # * {Types::ListObjectPoliciesResponse#attached_policy_ids #attached_policy_ids} => Array&lt;String&gt;
3130
3212
  # * {Types::ListObjectPoliciesResponse#next_token #next_token} => String
3131
3213
  #
3214
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3215
+ #
3132
3216
  # @example Request syntax with placeholder values
3133
3217
  #
3134
3218
  # resp = client.list_object_policies({
@@ -3288,6 +3372,8 @@ module Aws::CloudDirectory
3288
3372
  # * {Types::ListPolicyAttachmentsResponse#object_identifiers #object_identifiers} => Array&lt;String&gt;
3289
3373
  # * {Types::ListPolicyAttachmentsResponse#next_token #next_token} => String
3290
3374
  #
3375
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3376
+ #
3291
3377
  # @example Request syntax with placeholder values
3292
3378
  #
3293
3379
  # resp = client.list_policy_attachments({
@@ -3334,6 +3420,8 @@ module Aws::CloudDirectory
3334
3420
  # * {Types::ListPublishedSchemaArnsResponse#schema_arns #schema_arns} => Array&lt;String&gt;
3335
3421
  # * {Types::ListPublishedSchemaArnsResponse#next_token #next_token} => String
3336
3422
  #
3423
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3424
+ #
3337
3425
  # @example Request syntax with placeholder values
3338
3426
  #
3339
3427
  # resp = client.list_published_schema_arns({
@@ -3379,6 +3467,8 @@ module Aws::CloudDirectory
3379
3467
  # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
3380
3468
  # * {Types::ListTagsForResourceResponse#next_token #next_token} => String
3381
3469
  #
3470
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3471
+ #
3382
3472
  # @example Request syntax with placeholder values
3383
3473
  #
3384
3474
  # resp = client.list_tags_for_resource({
@@ -3428,6 +3518,8 @@ module Aws::CloudDirectory
3428
3518
  # * {Types::ListTypedLinkFacetAttributesResponse#attributes #attributes} => Array&lt;Types::TypedLinkAttributeDefinition&gt;
3429
3519
  # * {Types::ListTypedLinkFacetAttributesResponse#next_token #next_token} => String
3430
3520
  #
3521
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3522
+ #
3431
3523
  # @example Request syntax with placeholder values
3432
3524
  #
3433
3525
  # resp = client.list_typed_link_facet_attributes({
@@ -3486,6 +3578,8 @@ module Aws::CloudDirectory
3486
3578
  # * {Types::ListTypedLinkFacetNamesResponse#facet_names #facet_names} => Array&lt;String&gt;
3487
3579
  # * {Types::ListTypedLinkFacetNamesResponse#next_token #next_token} => String
3488
3580
  #
3581
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3582
+ #
3489
3583
  # @example Request syntax with placeholder values
3490
3584
  #
3491
3585
  # resp = client.list_typed_link_facet_names({
@@ -3540,6 +3634,8 @@ module Aws::CloudDirectory
3540
3634
  # * {Types::LookupPolicyResponse#policy_to_path_list #policy_to_path_list} => Array&lt;Types::PolicyToPath&gt;
3541
3635
  # * {Types::LookupPolicyResponse#next_token #next_token} => String
3542
3636
  #
3637
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3638
+ #
3543
3639
  # @example Request syntax with placeholder values
3544
3640
  #
3545
3641
  # resp = client.lookup_policy({
@@ -4176,7 +4272,7 @@ module Aws::CloudDirectory
4176
4272
  params: params,
4177
4273
  config: config)
4178
4274
  context[:gem_name] = 'aws-sdk-clouddirectory'
4179
- context[:gem_version] = '1.21.0'
4275
+ context[:gem_version] = '1.26.0'
4180
4276
  Seahorse::Client::Request.new(handlers, context)
4181
4277
  end
4182
4278
 
@@ -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,63 @@
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
8
10
  module Aws::CloudDirectory
11
+
12
+ # When CloudDirectory returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::CloudDirectory::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all CloudDirectory errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::CloudDirectory::Errors::ServiceError
20
+ # # rescues all CloudDirectory 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
+ # * {BatchWriteException}
32
+ # * {CannotListParentOfRootException}
33
+ # * {DirectoryAlreadyExistsException}
34
+ # * {DirectoryDeletedException}
35
+ # * {DirectoryNotDisabledException}
36
+ # * {DirectoryNotEnabledException}
37
+ # * {FacetAlreadyExistsException}
38
+ # * {FacetInUseException}
39
+ # * {FacetNotFoundException}
40
+ # * {FacetValidationException}
41
+ # * {IncompatibleSchemaException}
42
+ # * {IndexedAttributeMissingException}
43
+ # * {InternalServiceException}
44
+ # * {InvalidArnException}
45
+ # * {InvalidAttachmentException}
46
+ # * {InvalidFacetUpdateException}
47
+ # * {InvalidNextTokenException}
48
+ # * {InvalidRuleException}
49
+ # * {InvalidSchemaDocException}
50
+ # * {InvalidTaggingRequestException}
51
+ # * {LimitExceededException}
52
+ # * {LinkNameAlreadyInUseException}
53
+ # * {NotIndexException}
54
+ # * {NotNodeException}
55
+ # * {NotPolicyException}
56
+ # * {ObjectAlreadyDetachedException}
57
+ # * {ObjectNotDetachedException}
58
+ # * {ResourceNotFoundException}
59
+ # * {RetryableConflictException}
60
+ # * {SchemaAlreadyExistsException}
61
+ # * {SchemaAlreadyPublishedException}
62
+ # * {StillContainsLinksException}
63
+ # * {UnsupportedIndexTypeException}
64
+ # * {ValidationException}
65
+ #
66
+ # Additionally, error classes are dynamically generated for service errors based on the error code
67
+ # if they are not defined above.
9
68
  module Errors
10
69
 
11
70
  extend Aws::Errors::DynamicErrors
@@ -23,7 +82,6 @@ module Aws::CloudDirectory
23
82
  def message
24
83
  @message || @data[:message]
25
84
  end
26
-
27
85
  end
28
86
 
29
87
  class BatchWriteException < ServiceError
@@ -49,7 +107,6 @@ module Aws::CloudDirectory
49
107
  def message
50
108
  @message || @data[:message]
51
109
  end
52
-
53
110
  end
54
111
 
55
112
  class CannotListParentOfRootException < ServiceError
@@ -65,7 +122,6 @@ module Aws::CloudDirectory
65
122
  def message
66
123
  @message || @data[:message]
67
124
  end
68
-
69
125
  end
70
126
 
71
127
  class DirectoryAlreadyExistsException < ServiceError
@@ -81,7 +137,6 @@ module Aws::CloudDirectory
81
137
  def message
82
138
  @message || @data[:message]
83
139
  end
84
-
85
140
  end
86
141
 
87
142
  class DirectoryDeletedException < ServiceError
@@ -97,7 +152,6 @@ module Aws::CloudDirectory
97
152
  def message
98
153
  @message || @data[:message]
99
154
  end
100
-
101
155
  end
102
156
 
103
157
  class DirectoryNotDisabledException < ServiceError
@@ -113,7 +167,6 @@ module Aws::CloudDirectory
113
167
  def message
114
168
  @message || @data[:message]
115
169
  end
116
-
117
170
  end
118
171
 
119
172
  class DirectoryNotEnabledException < ServiceError
@@ -129,7 +182,6 @@ module Aws::CloudDirectory
129
182
  def message
130
183
  @message || @data[:message]
131
184
  end
132
-
133
185
  end
134
186
 
135
187
  class FacetAlreadyExistsException < ServiceError
@@ -145,7 +197,6 @@ module Aws::CloudDirectory
145
197
  def message
146
198
  @message || @data[:message]
147
199
  end
148
-
149
200
  end
150
201
 
151
202
  class FacetInUseException < ServiceError
@@ -161,7 +212,6 @@ module Aws::CloudDirectory
161
212
  def message
162
213
  @message || @data[:message]
163
214
  end
164
-
165
215
  end
166
216
 
167
217
  class FacetNotFoundException < ServiceError
@@ -177,7 +227,6 @@ module Aws::CloudDirectory
177
227
  def message
178
228
  @message || @data[:message]
179
229
  end
180
-
181
230
  end
182
231
 
183
232
  class FacetValidationException < ServiceError
@@ -193,7 +242,6 @@ module Aws::CloudDirectory
193
242
  def message
194
243
  @message || @data[:message]
195
244
  end
196
-
197
245
  end
198
246
 
199
247
  class IncompatibleSchemaException < ServiceError
@@ -209,7 +257,6 @@ module Aws::CloudDirectory
209
257
  def message
210
258
  @message || @data[:message]
211
259
  end
212
-
213
260
  end
214
261
 
215
262
  class IndexedAttributeMissingException < ServiceError
@@ -225,7 +272,6 @@ module Aws::CloudDirectory
225
272
  def message
226
273
  @message || @data[:message]
227
274
  end
228
-
229
275
  end
230
276
 
231
277
  class InternalServiceException < ServiceError
@@ -241,7 +287,6 @@ module Aws::CloudDirectory
241
287
  def message
242
288
  @message || @data[:message]
243
289
  end
244
-
245
290
  end
246
291
 
247
292
  class InvalidArnException < ServiceError
@@ -257,7 +302,6 @@ module Aws::CloudDirectory
257
302
  def message
258
303
  @message || @data[:message]
259
304
  end
260
-
261
305
  end
262
306
 
263
307
  class InvalidAttachmentException < ServiceError
@@ -273,7 +317,6 @@ module Aws::CloudDirectory
273
317
  def message
274
318
  @message || @data[:message]
275
319
  end
276
-
277
320
  end
278
321
 
279
322
  class InvalidFacetUpdateException < ServiceError
@@ -289,7 +332,6 @@ module Aws::CloudDirectory
289
332
  def message
290
333
  @message || @data[:message]
291
334
  end
292
-
293
335
  end
294
336
 
295
337
  class InvalidNextTokenException < ServiceError
@@ -305,7 +347,6 @@ module Aws::CloudDirectory
305
347
  def message
306
348
  @message || @data[:message]
307
349
  end
308
-
309
350
  end
310
351
 
311
352
  class InvalidRuleException < ServiceError
@@ -321,7 +362,6 @@ module Aws::CloudDirectory
321
362
  def message
322
363
  @message || @data[:message]
323
364
  end
324
-
325
365
  end
326
366
 
327
367
  class InvalidSchemaDocException < ServiceError
@@ -337,7 +377,6 @@ module Aws::CloudDirectory
337
377
  def message
338
378
  @message || @data[:message]
339
379
  end
340
-
341
380
  end
342
381
 
343
382
  class InvalidTaggingRequestException < ServiceError
@@ -353,7 +392,6 @@ module Aws::CloudDirectory
353
392
  def message
354
393
  @message || @data[:message]
355
394
  end
356
-
357
395
  end
358
396
 
359
397
  class LimitExceededException < ServiceError
@@ -369,7 +407,6 @@ module Aws::CloudDirectory
369
407
  def message
370
408
  @message || @data[:message]
371
409
  end
372
-
373
410
  end
374
411
 
375
412
  class LinkNameAlreadyInUseException < ServiceError
@@ -385,7 +422,6 @@ module Aws::CloudDirectory
385
422
  def message
386
423
  @message || @data[:message]
387
424
  end
388
-
389
425
  end
390
426
 
391
427
  class NotIndexException < ServiceError
@@ -401,7 +437,6 @@ module Aws::CloudDirectory
401
437
  def message
402
438
  @message || @data[:message]
403
439
  end
404
-
405
440
  end
406
441
 
407
442
  class NotNodeException < ServiceError
@@ -417,7 +452,6 @@ module Aws::CloudDirectory
417
452
  def message
418
453
  @message || @data[:message]
419
454
  end
420
-
421
455
  end
422
456
 
423
457
  class NotPolicyException < ServiceError
@@ -433,7 +467,6 @@ module Aws::CloudDirectory
433
467
  def message
434
468
  @message || @data[:message]
435
469
  end
436
-
437
470
  end
438
471
 
439
472
  class ObjectAlreadyDetachedException < ServiceError
@@ -449,7 +482,6 @@ module Aws::CloudDirectory
449
482
  def message
450
483
  @message || @data[:message]
451
484
  end
452
-
453
485
  end
454
486
 
455
487
  class ObjectNotDetachedException < ServiceError
@@ -465,7 +497,6 @@ module Aws::CloudDirectory
465
497
  def message
466
498
  @message || @data[:message]
467
499
  end
468
-
469
500
  end
470
501
 
471
502
  class ResourceNotFoundException < ServiceError
@@ -481,7 +512,6 @@ module Aws::CloudDirectory
481
512
  def message
482
513
  @message || @data[:message]
483
514
  end
484
-
485
515
  end
486
516
 
487
517
  class RetryableConflictException < ServiceError
@@ -497,7 +527,6 @@ module Aws::CloudDirectory
497
527
  def message
498
528
  @message || @data[:message]
499
529
  end
500
-
501
530
  end
502
531
 
503
532
  class SchemaAlreadyExistsException < ServiceError
@@ -513,7 +542,6 @@ module Aws::CloudDirectory
513
542
  def message
514
543
  @message || @data[:message]
515
544
  end
516
-
517
545
  end
518
546
 
519
547
  class SchemaAlreadyPublishedException < ServiceError
@@ -529,7 +557,6 @@ module Aws::CloudDirectory
529
557
  def message
530
558
  @message || @data[:message]
531
559
  end
532
-
533
560
  end
534
561
 
535
562
  class StillContainsLinksException < ServiceError
@@ -545,7 +572,6 @@ module Aws::CloudDirectory
545
572
  def message
546
573
  @message || @data[:message]
547
574
  end
548
-
549
575
  end
550
576
 
551
577
  class UnsupportedIndexTypeException < ServiceError
@@ -561,7 +587,6 @@ module Aws::CloudDirectory
561
587
  def message
562
588
  @message || @data[:message]
563
589
  end
564
-
565
590
  end
566
591
 
567
592
  class ValidationException < ServiceError
@@ -577,7 +602,6 @@ module Aws::CloudDirectory
577
602
  def message
578
603
  @message || @data[:message]
579
604
  end
580
-
581
605
  end
582
606
 
583
607
  end