aws-sdk-cloudsearchdomain 1.16.0 → 1.17.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
2
  SHA1:
3
- metadata.gz: 31828502076a1e96747f593f9069dd7ffbc894ec
4
- data.tar.gz: 26818e5b51884c1401f938e04acd7d78d30ad066
3
+ metadata.gz: 6cd75695afdc9f3688302900728b8188dd623e85
4
+ data.tar.gz: ff3f16e7480a7cfb7e87ef5be3a369984447dca2
5
5
  SHA512:
6
- metadata.gz: f6f622c140dd891ecd899d443f1d1694d5b38ea037e4cd0a8f0fe85087521347ab2ff9a94114745771da46a85c315bfea7a6f5790129da530a9beb80252b5993
7
- data.tar.gz: 220f2bb2cc76e4d06b5550e252bf53d227c58e0d3622175425bc44039bdfc1fe91adb60534a96091c5a7ecfdf47f5cf227dde714809f78aacff25f202f8442af
6
+ metadata.gz: d2434b231a50b51fe149a610580b08a8999441df712df26be7122ce73fb0418efc52e06a31c5d1da414565fd00621757af680294cbcb19e4b34352d67b75c25f
7
+ data.tar.gz: ba58f4e15b7748b2e31cf723d9de34c404b2960c68eb71bc5fbbffd6d9b8c51be0ec574cfab8e771f3e98f6107b7551701a1179ee7b7c05a054043cb68ff58e9
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-cloudsearchdomain/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # cloud_search_domain = Aws::CloudSearchDomain::Client.new
28
+ # resp = cloud_search_domain.search(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from Amazon CloudSearch Domain all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from Amazon CloudSearch Domain 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::CloudSearchDomain::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all Amazon CloudSearch Domain API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-cloudsearchdomain/customizations'
42
45
  # @service
43
46
  module Aws::CloudSearchDomain
44
47
 
45
- GEM_VERSION = '1.16.0'
48
+ GEM_VERSION = '1.17.0'
46
49
 
47
50
  end
@@ -29,6 +29,18 @@ require 'aws-sdk-cloudsearchdomain/plugins/switch_to_post.rb'
29
29
  Aws::Plugins::GlobalConfiguration.add_identifier(:cloudsearchdomain)
30
30
 
31
31
  module Aws::CloudSearchDomain
32
+ # An API client for CloudSearchDomain. To construct a client, you need to configure a `:region` and `:credentials`.
33
+ #
34
+ # client = Aws::CloudSearchDomain::Client.new(
35
+ # region: region_name,
36
+ # credentials: credentials,
37
+ # # ...
38
+ # )
39
+ #
40
+ # For details on configuring region and credentials see
41
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
42
+ #
43
+ # See {#initialize} for a full list of supported configuration options.
32
44
  class Client < Seahorse::Client::Base
33
45
 
34
46
  include Aws::ClientStubs
@@ -90,6 +102,12 @@ module Aws::CloudSearchDomain
90
102
  #
91
103
  # @option options [String] :access_key_id
92
104
  #
105
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
106
+ # Used only in `adaptive` retry mode. When true, the request will sleep
107
+ # until there is sufficent client side capacity to retry the request.
108
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
109
+ # not retry instead of sleeping.
110
+ #
93
111
  # @option options [Boolean] :client_side_monitoring (false)
94
112
  # When `true`, client-side metrics will be collected for all API requests from
95
113
  # this client.
@@ -114,6 +132,10 @@ module Aws::CloudSearchDomain
114
132
  # When `true`, an attempt is made to coerce request parameters into
115
133
  # the required types.
116
134
  #
135
+ # @option options [Boolean] :correct_clock_skew (true)
136
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
137
+ # a clock skew correction and retry requests with skewed client clocks.
138
+ #
117
139
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
118
140
  # The log formatter.
119
141
  #
@@ -124,15 +146,29 @@ module Aws::CloudSearchDomain
124
146
  # The Logger instance to send log messages to. If this option
125
147
  # is not set, logging will be disabled.
126
148
  #
149
+ # @option options [Integer] :max_attempts (3)
150
+ # An integer representing the maximum number attempts that will be made for
151
+ # a single request, including the initial attempt. For example,
152
+ # setting this value to 5 will result in a request being retried up to
153
+ # 4 times. Used in `standard` and `adaptive` retry modes.
154
+ #
127
155
  # @option options [String] :profile ("default")
128
156
  # Used when loading credentials from the shared credentials file
129
157
  # at HOME/.aws/credentials. When not specified, 'default' is used.
130
158
  #
159
+ # @option options [Proc] :retry_backoff
160
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
161
+ # This option is only used in the `legacy` retry mode.
162
+ #
131
163
  # @option options [Float] :retry_base_delay (0.3)
132
- # The base delay in seconds used by the default backoff function.
164
+ # The base delay in seconds used by the default backoff function. This option
165
+ # is only used in the `legacy` retry mode.
133
166
  #
134
167
  # @option options [Symbol] :retry_jitter (:none)
135
- # 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.
168
+ # A delay randomiser function used by the default backoff function.
169
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
170
+ # otherwise a Proc that takes and returns a number. This option is only used
171
+ # in the `legacy` retry mode.
136
172
  #
137
173
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
138
174
  #
@@ -140,11 +176,26 @@ module Aws::CloudSearchDomain
140
176
  # The maximum number of times to retry failed requests. Only
141
177
  # ~ 500 level server errors and certain ~ 400 level client errors
142
178
  # are retried. Generally, these are throttling errors, data
143
- # checksum errors, networking errors, timeout errors and auth
144
- # errors from expired credentials.
179
+ # checksum errors, networking errors, timeout errors, auth errors,
180
+ # endpoint discovery, and errors from expired credentials.
181
+ # This option is only used in the `legacy` retry mode.
145
182
  #
146
183
  # @option options [Integer] :retry_max_delay (0)
147
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
184
+ # The maximum number of seconds to delay between retries (0 for no limit)
185
+ # used by the default backoff function. This option is only used in the
186
+ # `legacy` retry mode.
187
+ #
188
+ # @option options [String] :retry_mode ("legacy")
189
+ # Specifies which retry algorithm to use. Values are:
190
+ # * `legacy` - The pre-existing retry behavior. This is default value if
191
+ # no retry mode is provided.
192
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
193
+ # This includes support for retry quotas, which limit the number of
194
+ # unsuccessful retries a client can make.
195
+ # * `adaptive` - An experimental retry mode that includes all the
196
+ # functionality of `standard` mode along with automatic client side
197
+ # throttling. This is a provisional mode that may change behavior
198
+ # in the future.
148
199
  #
149
200
  # @option options [String] :secret_access_key
150
201
  #
@@ -171,16 +222,16 @@ module Aws::CloudSearchDomain
171
222
  # requests through. Formatted like 'http://proxy.com:123'.
172
223
  #
173
224
  # @option options [Float] :http_open_timeout (15) The number of
174
- # seconds to wait when opening a HTTP session before rasing a
225
+ # seconds to wait when opening a HTTP session before raising a
175
226
  # `Timeout::Error`.
176
227
  #
177
228
  # @option options [Integer] :http_read_timeout (60) The default
178
229
  # number of seconds to wait for response data. This value can
179
230
  # safely be set
180
- # per-request on the session yeidled by {#session_for}.
231
+ # per-request on the session yielded by {#session_for}.
181
232
  #
182
233
  # @option options [Float] :http_idle_timeout (5) The number of
183
- # seconds a connection is allowed to sit idble before it is
234
+ # seconds a connection is allowed to sit idle before it is
184
235
  # considered stale. Stale connections are closed and removed
185
236
  # from the pool before making a request.
186
237
  #
@@ -189,7 +240,7 @@ module Aws::CloudSearchDomain
189
240
  # request body. This option has no effect unless the request has
190
241
  # "Expect" header set to "100-continue". Defaults to `nil` which
191
242
  # disables this behaviour. This value can safely be set per
192
- # request on the session yeidled by {#session_for}.
243
+ # request on the session yielded by {#session_for}.
193
244
  #
194
245
  # @option options [Boolean] :http_wire_trace (false) When `true`,
195
246
  # HTTP debug output will be sent to the `:logger`.
@@ -815,7 +866,7 @@ module Aws::CloudSearchDomain
815
866
  params: params,
816
867
  config: config)
817
868
  context[:gem_name] = 'aws-sdk-cloudsearchdomain'
818
- context[:gem_version] = '1.16.0'
869
+ context[:gem_version] = '1.17.0'
819
870
  Seahorse::Client::Request.new(handlers, context)
820
871
  end
821
872
 
@@ -6,6 +6,30 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::CloudSearchDomain
9
+
10
+ # When CloudSearchDomain returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::CloudSearchDomain::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all CloudSearchDomain errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::CloudSearchDomain::Errors::ServiceError
18
+ # # rescues all CloudSearchDomain 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
+ # * {DocumentServiceException}
29
+ # * {SearchException}
30
+ #
31
+ # Additionally, error classes are dynamically generated for service errors based on the error code
32
+ # if they are not defined above.
9
33
  module Errors
10
34
 
11
35
  extend Aws::Errors::DynamicErrors
@@ -28,7 +52,6 @@ module Aws::CloudSearchDomain
28
52
  def message
29
53
  @message || @data[:message]
30
54
  end
31
-
32
55
  end
33
56
 
34
57
  class SearchException < ServiceError
@@ -44,7 +67,6 @@ module Aws::CloudSearchDomain
44
67
  def message
45
68
  @message || @data[:message]
46
69
  end
47
-
48
70
  end
49
71
 
50
72
  end
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::CloudSearchDomain
9
+ # This class provides a resource oriented interface for CloudSearchDomain.
10
+ # To create a resource object:
11
+ # resource = Aws::CloudSearchDomain::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::CloudSearchDomain::Client.new(region: 'us-west-2')
15
+ # resource = Aws::CloudSearchDomain::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-cloudsearchdomain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.17.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