aws-sdk-dax 1.19.0 → 1.24.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 +5 -5
- data/lib/aws-sdk-dax.rb +9 -4
- data/lib/aws-sdk-dax/client.rb +72 -14
- data/lib/aws-sdk-dax/client_api.rb +50 -0
- data/lib/aws-sdk-dax/errors.rb +288 -0
- data/lib/aws-sdk-dax/resource.rb +3 -0
- data/lib/aws-sdk-dax/types.rb +213 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d14b028b2fd90bf269197b21c611800636bef11a8062761a80d9803c1497afae
|
4
|
+
data.tar.gz: 807f11f55eec2d4864d7ba6a4c20c0d5cdecfb4867542a395218217941a0727f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86641880a7bc39990f7e1c344d3e18be385a322824edcc5dd7225844e7e9d1c6209e263f3a27f888bca85a0d049fc798bc53658d2342a3be4b1711753f2d542b
|
7
|
+
data.tar.gz: 959eb545fa4efe8f2937eeb3f1462b2524ead7aa21066506350a01e7079c8cb8130ad44cda559030409bd7bcc12597ef3b4ce506a83ec9cc80e4743bd9c4e7e1
|
data/lib/aws-sdk-dax.rb
CHANGED
@@ -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-dax/customizations'
|
|
24
26
|
# methods each accept a hash of request parameters and return a response
|
25
27
|
# structure.
|
26
28
|
#
|
29
|
+
# dax = Aws::DAX::Client.new
|
30
|
+
# resp = dax.create_cluster(params)
|
31
|
+
#
|
27
32
|
# See {Client} for more information.
|
28
33
|
#
|
29
34
|
# # Errors
|
30
35
|
#
|
31
|
-
# Errors returned from Amazon DynamoDB Accelerator (DAX)
|
32
|
-
# extend {Errors::ServiceError}.
|
36
|
+
# Errors returned from Amazon DynamoDB Accelerator (DAX) 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::DAX::Errors::ServiceError
|
37
|
-
# # rescues all
|
42
|
+
# # rescues all Amazon DynamoDB Accelerator (DAX) API errors
|
38
43
|
# end
|
39
44
|
#
|
40
45
|
# See {Errors} for more information.
|
@@ -42,6 +47,6 @@ require_relative 'aws-sdk-dax/customizations'
|
|
42
47
|
# @service
|
43
48
|
module Aws::DAX
|
44
49
|
|
45
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.24.0'
|
46
51
|
|
47
52
|
end
|
data/lib/aws-sdk-dax/client.rb
CHANGED
@@ -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(:dax)
|
31
34
|
|
32
35
|
module Aws::DAX
|
36
|
+
# An API client for DAX. To construct a client, you need to configure a `:region` and `:credentials`.
|
37
|
+
#
|
38
|
+
# client = Aws::DAX::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::DAX
|
|
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::DAX
|
|
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
|
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::DAX
|
|
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::DAX
|
|
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::DAX
|
|
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
|
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::DAX
|
|
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.
|
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::DAX
|
|
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.
|
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::DAX
|
|
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
|
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)
|
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::DAX
|
|
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
|
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
|
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::DAX
|
|
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
|
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`.
|
@@ -1551,7 +1609,7 @@ module Aws::DAX
|
|
1551
1609
|
params: params,
|
1552
1610
|
config: config)
|
1553
1611
|
context[:gem_name] = 'aws-sdk-dax'
|
1554
|
-
context[:gem_version] = '1.
|
1612
|
+
context[:gem_version] = '1.24.0'
|
1555
1613
|
Seahorse::Client::Request.new(handlers, context)
|
1556
1614
|
end
|
1557
1615
|
|
@@ -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:
|
@@ -147,10 +149,16 @@ module Aws::DAX
|
|
147
149
|
Cluster.add_member(:sse_description, Shapes::ShapeRef.new(shape: SSEDescription, location_name: "SSEDescription"))
|
148
150
|
Cluster.struct_class = Types::Cluster
|
149
151
|
|
152
|
+
ClusterAlreadyExistsFault.struct_class = Types::ClusterAlreadyExistsFault
|
153
|
+
|
150
154
|
ClusterList.member = Shapes::ShapeRef.new(shape: Cluster)
|
151
155
|
|
152
156
|
ClusterNameList.member = Shapes::ShapeRef.new(shape: String)
|
153
157
|
|
158
|
+
ClusterNotFoundFault.struct_class = Types::ClusterNotFoundFault
|
159
|
+
|
160
|
+
ClusterQuotaForCustomerExceededFault.struct_class = Types::ClusterQuotaForCustomerExceededFault
|
161
|
+
|
154
162
|
CreateClusterRequest.add_member(:cluster_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ClusterName"))
|
155
163
|
CreateClusterRequest.add_member(:node_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "NodeType"))
|
156
164
|
CreateClusterRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
|
@@ -289,12 +297,24 @@ module Aws::DAX
|
|
289
297
|
IncreaseReplicationFactorResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "Cluster"))
|
290
298
|
IncreaseReplicationFactorResponse.struct_class = Types::IncreaseReplicationFactorResponse
|
291
299
|
|
300
|
+
InsufficientClusterCapacityFault.struct_class = Types::InsufficientClusterCapacityFault
|
301
|
+
|
302
|
+
InvalidARNFault.struct_class = Types::InvalidARNFault
|
303
|
+
|
304
|
+
InvalidClusterStateFault.struct_class = Types::InvalidClusterStateFault
|
305
|
+
|
292
306
|
InvalidParameterCombinationException.add_member(:message, Shapes::ShapeRef.new(shape: AwsQueryErrorMessage, location_name: "message"))
|
293
307
|
InvalidParameterCombinationException.struct_class = Types::InvalidParameterCombinationException
|
294
308
|
|
309
|
+
InvalidParameterGroupStateFault.struct_class = Types::InvalidParameterGroupStateFault
|
310
|
+
|
295
311
|
InvalidParameterValueException.add_member(:message, Shapes::ShapeRef.new(shape: AwsQueryErrorMessage, location_name: "message"))
|
296
312
|
InvalidParameterValueException.struct_class = Types::InvalidParameterValueException
|
297
313
|
|
314
|
+
InvalidSubnet.struct_class = Types::InvalidSubnet
|
315
|
+
|
316
|
+
InvalidVPCNetworkStateFault.struct_class = Types::InvalidVPCNetworkStateFault
|
317
|
+
|
298
318
|
KeyList.member = Shapes::ShapeRef.new(shape: String)
|
299
319
|
|
300
320
|
ListTagsRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceName"))
|
@@ -317,6 +337,12 @@ module Aws::DAX
|
|
317
337
|
|
318
338
|
NodeList.member = Shapes::ShapeRef.new(shape: Node)
|
319
339
|
|
340
|
+
NodeNotFoundFault.struct_class = Types::NodeNotFoundFault
|
341
|
+
|
342
|
+
NodeQuotaForClusterExceededFault.struct_class = Types::NodeQuotaForClusterExceededFault
|
343
|
+
|
344
|
+
NodeQuotaForCustomerExceededFault.struct_class = Types::NodeQuotaForCustomerExceededFault
|
345
|
+
|
320
346
|
NodeTypeSpecificValue.add_member(:node_type, Shapes::ShapeRef.new(shape: String, location_name: "NodeType"))
|
321
347
|
NodeTypeSpecificValue.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
|
322
348
|
NodeTypeSpecificValue.struct_class = Types::NodeTypeSpecificValue
|
@@ -343,10 +369,16 @@ module Aws::DAX
|
|
343
369
|
ParameterGroup.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
|
344
370
|
ParameterGroup.struct_class = Types::ParameterGroup
|
345
371
|
|
372
|
+
ParameterGroupAlreadyExistsFault.struct_class = Types::ParameterGroupAlreadyExistsFault
|
373
|
+
|
346
374
|
ParameterGroupList.member = Shapes::ShapeRef.new(shape: ParameterGroup)
|
347
375
|
|
348
376
|
ParameterGroupNameList.member = Shapes::ShapeRef.new(shape: String)
|
349
377
|
|
378
|
+
ParameterGroupNotFoundFault.struct_class = Types::ParameterGroupNotFoundFault
|
379
|
+
|
380
|
+
ParameterGroupQuotaExceededFault.struct_class = Types::ParameterGroupQuotaExceededFault
|
381
|
+
|
350
382
|
ParameterGroupStatus.add_member(:parameter_group_name, Shapes::ShapeRef.new(shape: String, location_name: "ParameterGroupName"))
|
351
383
|
ParameterGroupStatus.add_member(:parameter_apply_status, Shapes::ShapeRef.new(shape: String, location_name: "ParameterApplyStatus"))
|
352
384
|
ParameterGroupStatus.add_member(:node_ids_to_reboot, Shapes::ShapeRef.new(shape: NodeIdentifierList, location_name: "NodeIdsToReboot"))
|
@@ -381,6 +413,8 @@ module Aws::DAX
|
|
381
413
|
|
382
414
|
SecurityGroupMembershipList.member = Shapes::ShapeRef.new(shape: SecurityGroupMembership)
|
383
415
|
|
416
|
+
ServiceLinkedRoleNotFoundFault.struct_class = Types::ServiceLinkedRoleNotFoundFault
|
417
|
+
|
384
418
|
Subnet.add_member(:subnet_identifier, Shapes::ShapeRef.new(shape: String, location_name: "SubnetIdentifier"))
|
385
419
|
Subnet.add_member(:subnet_availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "SubnetAvailabilityZone"))
|
386
420
|
Subnet.struct_class = Types::Subnet
|
@@ -391,20 +425,36 @@ module Aws::DAX
|
|
391
425
|
SubnetGroup.add_member(:subnets, Shapes::ShapeRef.new(shape: SubnetList, location_name: "Subnets"))
|
392
426
|
SubnetGroup.struct_class = Types::SubnetGroup
|
393
427
|
|
428
|
+
SubnetGroupAlreadyExistsFault.struct_class = Types::SubnetGroupAlreadyExistsFault
|
429
|
+
|
430
|
+
SubnetGroupInUseFault.struct_class = Types::SubnetGroupInUseFault
|
431
|
+
|
394
432
|
SubnetGroupList.member = Shapes::ShapeRef.new(shape: SubnetGroup)
|
395
433
|
|
396
434
|
SubnetGroupNameList.member = Shapes::ShapeRef.new(shape: String)
|
397
435
|
|
436
|
+
SubnetGroupNotFoundFault.struct_class = Types::SubnetGroupNotFoundFault
|
437
|
+
|
438
|
+
SubnetGroupQuotaExceededFault.struct_class = Types::SubnetGroupQuotaExceededFault
|
439
|
+
|
398
440
|
SubnetIdentifierList.member = Shapes::ShapeRef.new(shape: String)
|
399
441
|
|
442
|
+
SubnetInUse.struct_class = Types::SubnetInUse
|
443
|
+
|
400
444
|
SubnetList.member = Shapes::ShapeRef.new(shape: Subnet)
|
401
445
|
|
446
|
+
SubnetQuotaExceededFault.struct_class = Types::SubnetQuotaExceededFault
|
447
|
+
|
402
448
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: String, location_name: "Key"))
|
403
449
|
Tag.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
|
404
450
|
Tag.struct_class = Types::Tag
|
405
451
|
|
406
452
|
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
407
453
|
|
454
|
+
TagNotFoundFault.struct_class = Types::TagNotFoundFault
|
455
|
+
|
456
|
+
TagQuotaPerResourceExceeded.struct_class = Types::TagQuotaPerResourceExceeded
|
457
|
+
|
408
458
|
TagResourceRequest.add_member(:resource_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ResourceName"))
|
409
459
|
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
410
460
|
TagResourceRequest.struct_class = Types::TagResourceRequest
|
data/lib/aws-sdk-dax/errors.rb
CHANGED
@@ -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,10 +8,118 @@
|
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
8
10
|
module Aws::DAX
|
11
|
+
|
12
|
+
# When DAX returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::DAX::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all DAX errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::DAX::Errors::ServiceError
|
20
|
+
# # rescues all DAX 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
|
+
# * {ClusterAlreadyExistsFault}
|
31
|
+
# * {ClusterNotFoundFault}
|
32
|
+
# * {ClusterQuotaForCustomerExceededFault}
|
33
|
+
# * {InsufficientClusterCapacityFault}
|
34
|
+
# * {InvalidARNFault}
|
35
|
+
# * {InvalidClusterStateFault}
|
36
|
+
# * {InvalidParameterCombinationException}
|
37
|
+
# * {InvalidParameterGroupStateFault}
|
38
|
+
# * {InvalidParameterValueException}
|
39
|
+
# * {InvalidSubnet}
|
40
|
+
# * {InvalidVPCNetworkStateFault}
|
41
|
+
# * {NodeNotFoundFault}
|
42
|
+
# * {NodeQuotaForClusterExceededFault}
|
43
|
+
# * {NodeQuotaForCustomerExceededFault}
|
44
|
+
# * {ParameterGroupAlreadyExistsFault}
|
45
|
+
# * {ParameterGroupNotFoundFault}
|
46
|
+
# * {ParameterGroupQuotaExceededFault}
|
47
|
+
# * {ServiceLinkedRoleNotFoundFault}
|
48
|
+
# * {SubnetGroupAlreadyExistsFault}
|
49
|
+
# * {SubnetGroupInUseFault}
|
50
|
+
# * {SubnetGroupNotFoundFault}
|
51
|
+
# * {SubnetGroupQuotaExceededFault}
|
52
|
+
# * {SubnetInUse}
|
53
|
+
# * {SubnetQuotaExceededFault}
|
54
|
+
# * {TagNotFoundFault}
|
55
|
+
# * {TagQuotaPerResourceExceeded}
|
56
|
+
#
|
57
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
58
|
+
# if they are not defined above.
|
9
59
|
module Errors
|
10
60
|
|
11
61
|
extend Aws::Errors::DynamicErrors
|
12
62
|
|
63
|
+
class ClusterAlreadyExistsFault < ServiceError
|
64
|
+
|
65
|
+
# @param [Seahorse::Client::RequestContext] context
|
66
|
+
# @param [String] message
|
67
|
+
# @param [Aws::DAX::Types::ClusterAlreadyExistsFault] data
|
68
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
69
|
+
super(context, message, data)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
class ClusterNotFoundFault < ServiceError
|
74
|
+
|
75
|
+
# @param [Seahorse::Client::RequestContext] context
|
76
|
+
# @param [String] message
|
77
|
+
# @param [Aws::DAX::Types::ClusterNotFoundFault] data
|
78
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
79
|
+
super(context, message, data)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
class ClusterQuotaForCustomerExceededFault < ServiceError
|
84
|
+
|
85
|
+
# @param [Seahorse::Client::RequestContext] context
|
86
|
+
# @param [String] message
|
87
|
+
# @param [Aws::DAX::Types::ClusterQuotaForCustomerExceededFault] data
|
88
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
89
|
+
super(context, message, data)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
class InsufficientClusterCapacityFault < ServiceError
|
94
|
+
|
95
|
+
# @param [Seahorse::Client::RequestContext] context
|
96
|
+
# @param [String] message
|
97
|
+
# @param [Aws::DAX::Types::InsufficientClusterCapacityFault] data
|
98
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
99
|
+
super(context, message, data)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
class InvalidARNFault < ServiceError
|
104
|
+
|
105
|
+
# @param [Seahorse::Client::RequestContext] context
|
106
|
+
# @param [String] message
|
107
|
+
# @param [Aws::DAX::Types::InvalidARNFault] data
|
108
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
109
|
+
super(context, message, data)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
class InvalidClusterStateFault < ServiceError
|
114
|
+
|
115
|
+
# @param [Seahorse::Client::RequestContext] context
|
116
|
+
# @param [String] message
|
117
|
+
# @param [Aws::DAX::Types::InvalidClusterStateFault] data
|
118
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
119
|
+
super(context, message, data)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
13
123
|
class InvalidParameterCombinationException < ServiceError
|
14
124
|
|
15
125
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -23,7 +133,16 @@ module Aws::DAX
|
|
23
133
|
def message
|
24
134
|
@message || @data[:message]
|
25
135
|
end
|
136
|
+
end
|
26
137
|
|
138
|
+
class InvalidParameterGroupStateFault < ServiceError
|
139
|
+
|
140
|
+
# @param [Seahorse::Client::RequestContext] context
|
141
|
+
# @param [String] message
|
142
|
+
# @param [Aws::DAX::Types::InvalidParameterGroupStateFault] data
|
143
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
144
|
+
super(context, message, data)
|
145
|
+
end
|
27
146
|
end
|
28
147
|
|
29
148
|
class InvalidParameterValueException < ServiceError
|
@@ -39,7 +158,176 @@ module Aws::DAX
|
|
39
158
|
def message
|
40
159
|
@message || @data[:message]
|
41
160
|
end
|
161
|
+
end
|
162
|
+
|
163
|
+
class InvalidSubnet < ServiceError
|
164
|
+
|
165
|
+
# @param [Seahorse::Client::RequestContext] context
|
166
|
+
# @param [String] message
|
167
|
+
# @param [Aws::DAX::Types::InvalidSubnet] data
|
168
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
169
|
+
super(context, message, data)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
class InvalidVPCNetworkStateFault < ServiceError
|
174
|
+
|
175
|
+
# @param [Seahorse::Client::RequestContext] context
|
176
|
+
# @param [String] message
|
177
|
+
# @param [Aws::DAX::Types::InvalidVPCNetworkStateFault] data
|
178
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
179
|
+
super(context, message, data)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
class NodeNotFoundFault < ServiceError
|
184
|
+
|
185
|
+
# @param [Seahorse::Client::RequestContext] context
|
186
|
+
# @param [String] message
|
187
|
+
# @param [Aws::DAX::Types::NodeNotFoundFault] data
|
188
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
189
|
+
super(context, message, data)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
class NodeQuotaForClusterExceededFault < ServiceError
|
194
|
+
|
195
|
+
# @param [Seahorse::Client::RequestContext] context
|
196
|
+
# @param [String] message
|
197
|
+
# @param [Aws::DAX::Types::NodeQuotaForClusterExceededFault] data
|
198
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
199
|
+
super(context, message, data)
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
class NodeQuotaForCustomerExceededFault < ServiceError
|
204
|
+
|
205
|
+
# @param [Seahorse::Client::RequestContext] context
|
206
|
+
# @param [String] message
|
207
|
+
# @param [Aws::DAX::Types::NodeQuotaForCustomerExceededFault] data
|
208
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
209
|
+
super(context, message, data)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
class ParameterGroupAlreadyExistsFault < ServiceError
|
214
|
+
|
215
|
+
# @param [Seahorse::Client::RequestContext] context
|
216
|
+
# @param [String] message
|
217
|
+
# @param [Aws::DAX::Types::ParameterGroupAlreadyExistsFault] data
|
218
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
219
|
+
super(context, message, data)
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
class ParameterGroupNotFoundFault < ServiceError
|
224
|
+
|
225
|
+
# @param [Seahorse::Client::RequestContext] context
|
226
|
+
# @param [String] message
|
227
|
+
# @param [Aws::DAX::Types::ParameterGroupNotFoundFault] data
|
228
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
229
|
+
super(context, message, data)
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
class ParameterGroupQuotaExceededFault < ServiceError
|
234
|
+
|
235
|
+
# @param [Seahorse::Client::RequestContext] context
|
236
|
+
# @param [String] message
|
237
|
+
# @param [Aws::DAX::Types::ParameterGroupQuotaExceededFault] data
|
238
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
239
|
+
super(context, message, data)
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
class ServiceLinkedRoleNotFoundFault < ServiceError
|
244
|
+
|
245
|
+
# @param [Seahorse::Client::RequestContext] context
|
246
|
+
# @param [String] message
|
247
|
+
# @param [Aws::DAX::Types::ServiceLinkedRoleNotFoundFault] data
|
248
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
249
|
+
super(context, message, data)
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
class SubnetGroupAlreadyExistsFault < ServiceError
|
254
|
+
|
255
|
+
# @param [Seahorse::Client::RequestContext] context
|
256
|
+
# @param [String] message
|
257
|
+
# @param [Aws::DAX::Types::SubnetGroupAlreadyExistsFault] data
|
258
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
259
|
+
super(context, message, data)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
class SubnetGroupInUseFault < ServiceError
|
264
|
+
|
265
|
+
# @param [Seahorse::Client::RequestContext] context
|
266
|
+
# @param [String] message
|
267
|
+
# @param [Aws::DAX::Types::SubnetGroupInUseFault] data
|
268
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
269
|
+
super(context, message, data)
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
class SubnetGroupNotFoundFault < ServiceError
|
274
|
+
|
275
|
+
# @param [Seahorse::Client::RequestContext] context
|
276
|
+
# @param [String] message
|
277
|
+
# @param [Aws::DAX::Types::SubnetGroupNotFoundFault] data
|
278
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
279
|
+
super(context, message, data)
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
class SubnetGroupQuotaExceededFault < ServiceError
|
284
|
+
|
285
|
+
# @param [Seahorse::Client::RequestContext] context
|
286
|
+
# @param [String] message
|
287
|
+
# @param [Aws::DAX::Types::SubnetGroupQuotaExceededFault] data
|
288
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
289
|
+
super(context, message, data)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
class SubnetInUse < ServiceError
|
294
|
+
|
295
|
+
# @param [Seahorse::Client::RequestContext] context
|
296
|
+
# @param [String] message
|
297
|
+
# @param [Aws::DAX::Types::SubnetInUse] data
|
298
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
299
|
+
super(context, message, data)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
class SubnetQuotaExceededFault < ServiceError
|
304
|
+
|
305
|
+
# @param [Seahorse::Client::RequestContext] context
|
306
|
+
# @param [String] message
|
307
|
+
# @param [Aws::DAX::Types::SubnetQuotaExceededFault] data
|
308
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
309
|
+
super(context, message, data)
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
class TagNotFoundFault < ServiceError
|
314
|
+
|
315
|
+
# @param [Seahorse::Client::RequestContext] context
|
316
|
+
# @param [String] message
|
317
|
+
# @param [Aws::DAX::Types::TagNotFoundFault] data
|
318
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
319
|
+
super(context, message, data)
|
320
|
+
end
|
321
|
+
end
|
42
322
|
|
323
|
+
class TagQuotaPerResourceExceeded < ServiceError
|
324
|
+
|
325
|
+
# @param [Seahorse::Client::RequestContext] context
|
326
|
+
# @param [String] message
|
327
|
+
# @param [Aws::DAX::Types::TagQuotaPerResourceExceeded] data
|
328
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
329
|
+
super(context, message, data)
|
330
|
+
end
|
43
331
|
end
|
44
332
|
|
45
333
|
end
|