aws-sdk-elasticsearchservice 1.30.0 → 1.31.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: 5d172c07d025864b054deab7e2484a54d6c345f4
4
- data.tar.gz: 6896b8658b2206f89692a7e7b72154e974530ea3
2
+ SHA256:
3
+ metadata.gz: 004206072f3b830908d5d55d38b840e47493c7a0446f962d7614507d563a3ac0
4
+ data.tar.gz: ce7926f710c665858ee5088fd0bcf7995fa5995ed86d55b951fda56d7ec0006b
5
5
  SHA512:
6
- metadata.gz: 91086990db61f04025ac6693b96a68e1f29f8c554460e4abc467a2473dff0601416b757924c0547972dc6e7366b953e1a88bd67c97c922ea2a5e0452033678a4
7
- data.tar.gz: 45cc98eb5dbc5258abb4c49cab8120036c4a55e1e4d850dfdcf3317968e6dbb73ccc19d190333bd8f5445efc73e0057813be9f469e9d478096c1465656c9a9e3
6
+ metadata.gz: c040b723ad1bfd362c3f66f43f0639a0349e3cf45b28643b06ed5178c2f623a35c0a4ff6868575954b4824f407a3c598ee4038863c2d0bd7d57c7f3c1f0f1f97
7
+ data.tar.gz: 25360d137cefadb9c7abf14b4120a2ede632b1c13df4737c9ee648f0afb2bae4e4cc51c38e5a585f6c933166a58bacd2fb4098be076a0ea4f96b2e88e28465cd
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-elasticsearchservice/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # elasticsearch_service = Aws::ElasticsearchService::Client.new
28
+ # resp = elasticsearch_service.add_tags(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from Amazon Elasticsearch Service all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from Amazon Elasticsearch Service 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::ElasticsearchService::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all Amazon Elasticsearch Service API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-elasticsearchservice/customizations'
42
45
  # @service
43
46
  module Aws::ElasticsearchService
44
47
 
45
- GEM_VERSION = '1.30.0'
48
+ GEM_VERSION = '1.31.0'
46
49
 
47
50
  end
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:elasticsearchservice)
31
31
 
32
32
  module Aws::ElasticsearchService
33
+ # An API client for ElasticsearchService. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::ElasticsearchService::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
+ #
41
+ # For details on configuring region and credentials see
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
43
+ #
44
+ # See {#initialize} for a full list of supported configuration options.
33
45
  class Client < Seahorse::Client::Base
34
46
 
35
47
  include Aws::ClientStubs
@@ -108,6 +120,12 @@ module Aws::ElasticsearchService
108
120
  # When set to `true`, a thread polling for endpoints will be running in
109
121
  # the background every 60 secs (default). Defaults to `false`.
110
122
  #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
111
129
  # @option options [Boolean] :client_side_monitoring (false)
112
130
  # When `true`, client-side metrics will be collected for all API requests from
113
131
  # this client.
@@ -132,6 +150,10 @@ module Aws::ElasticsearchService
132
150
  # When `true`, an attempt is made to coerce request parameters into
133
151
  # the required types.
134
152
  #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
135
157
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
158
  # Set to true to disable SDK automatically adding host prefix
137
159
  # to default service endpoint when available.
@@ -166,15 +188,29 @@ module Aws::ElasticsearchService
166
188
  # The Logger instance to send log messages to. If this option
167
189
  # is not set, logging will be disabled.
168
190
  #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
169
197
  # @option options [String] :profile ("default")
170
198
  # Used when loading credentials from the shared credentials file
171
199
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
200
  #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
173
205
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
175
208
  #
176
209
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
178
214
  #
179
215
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
216
  #
@@ -182,11 +218,30 @@ module Aws::ElasticsearchService
182
218
  # The maximum number of times to retry failed requests. Only
183
219
  # ~ 500 level server errors and certain ~ 400 level client errors
184
220
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
187
224
  #
188
225
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
190
245
  #
191
246
  # @option options [String] :secret_access_key
192
247
  #
@@ -209,16 +264,16 @@ module Aws::ElasticsearchService
209
264
  # requests through. Formatted like 'http://proxy.com:123'.
210
265
  #
211
266
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
267
+ # seconds to wait when opening a HTTP session before raising a
213
268
  # `Timeout::Error`.
214
269
  #
215
270
  # @option options [Integer] :http_read_timeout (60) The default
216
271
  # number of seconds to wait for response data. This value can
217
272
  # safely be set
218
- # per-request on the session yeidled by {#session_for}.
273
+ # per-request on the session yielded by {#session_for}.
219
274
  #
220
275
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
276
+ # seconds a connection is allowed to sit idle before it is
222
277
  # considered stale. Stale connections are closed and removed
223
278
  # from the pool before making a request.
224
279
  #
@@ -227,7 +282,7 @@ module Aws::ElasticsearchService
227
282
  # request body. This option has no effect unless the request has
228
283
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
284
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
285
+ # request on the session yielded by {#session_for}.
231
286
  #
232
287
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
288
  # HTTP debug output will be sent to the `:logger`.
@@ -1758,7 +1813,7 @@ module Aws::ElasticsearchService
1758
1813
  params: params,
1759
1814
  config: config)
1760
1815
  context[:gem_name] = 'aws-sdk-elasticsearchservice'
1761
- context[:gem_version] = '1.30.0'
1816
+ context[:gem_version] = '1.31.0'
1762
1817
  Seahorse::Client::Request.new(handlers, context)
1763
1818
  end
1764
1819
 
@@ -305,6 +305,8 @@ module Aws::ElasticsearchService
305
305
  DescribeReservedElasticsearchInstancesResponse.add_member(:reserved_elasticsearch_instances, Shapes::ShapeRef.new(shape: ReservedElasticsearchInstanceList, location_name: "ReservedElasticsearchInstances"))
306
306
  DescribeReservedElasticsearchInstancesResponse.struct_class = Types::DescribeReservedElasticsearchInstancesResponse
307
307
 
308
+ DisabledOperationException.struct_class = Types::DisabledOperationException
309
+
308
310
  DomainEndpointOptions.add_member(:enforce_https, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnforceHTTPS"))
309
311
  DomainEndpointOptions.add_member(:tls_security_policy, Shapes::ShapeRef.new(shape: TLSSecurityPolicy, location_name: "TLSSecurityPolicy"))
310
312
  DomainEndpointOptions.struct_class = Types::DomainEndpointOptions
@@ -437,8 +439,14 @@ module Aws::ElasticsearchService
437
439
  InstanceLimits.add_member(:instance_count_limits, Shapes::ShapeRef.new(shape: InstanceCountLimits, location_name: "InstanceCountLimits"))
438
440
  InstanceLimits.struct_class = Types::InstanceLimits
439
441
 
442
+ InternalException.struct_class = Types::InternalException
443
+
444
+ InvalidTypeException.struct_class = Types::InvalidTypeException
445
+
440
446
  Issues.member = Shapes::ShapeRef.new(shape: Issue)
441
447
 
448
+ LimitExceededException.struct_class = Types::LimitExceededException
449
+
442
450
  LimitValueList.member = Shapes::ShapeRef.new(shape: LimitValue)
443
451
 
444
452
  Limits.add_member(:storage_types, Shapes::ShapeRef.new(shape: StorageTypeList, location_name: "StorageTypes"))
@@ -554,6 +562,10 @@ module Aws::ElasticsearchService
554
562
 
555
563
  ReservedElasticsearchInstanceOfferingList.member = Shapes::ShapeRef.new(shape: ReservedElasticsearchInstanceOffering)
556
564
 
565
+ ResourceAlreadyExistsException.struct_class = Types::ResourceAlreadyExistsException
566
+
567
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
568
+
557
569
  ServiceSoftwareOptions.add_member(:current_version, Shapes::ShapeRef.new(shape: String, location_name: "CurrentVersion"))
558
570
  ServiceSoftwareOptions.add_member(:new_version, Shapes::ShapeRef.new(shape: String, location_name: "NewVersion"))
559
571
  ServiceSoftwareOptions.add_member(:update_available, Shapes::ShapeRef.new(shape: Boolean, location_name: "UpdateAvailable"))
@@ -653,6 +665,8 @@ module Aws::ElasticsearchService
653
665
  VPCOptions.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: StringList, location_name: "SecurityGroupIds"))
654
666
  VPCOptions.struct_class = Types::VPCOptions
655
667
 
668
+ ValidationException.struct_class = Types::ValidationException
669
+
656
670
  ZoneAwarenessConfig.add_member(:availability_zone_count, Shapes::ShapeRef.new(shape: IntegerClass, location_name: "AvailabilityZoneCount"))
657
671
  ZoneAwarenessConfig.struct_class = Types::ZoneAwarenessConfig
658
672
 
@@ -6,6 +6,36 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::ElasticsearchService
9
+
10
+ # When ElasticsearchService returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::ElasticsearchService::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all ElasticsearchService errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::ElasticsearchService::Errors::ServiceError
18
+ # # rescues all ElasticsearchService 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
+ # * {BaseException}
29
+ # * {DisabledOperationException}
30
+ # * {InternalException}
31
+ # * {InvalidTypeException}
32
+ # * {LimitExceededException}
33
+ # * {ResourceAlreadyExistsException}
34
+ # * {ResourceNotFoundException}
35
+ # * {ValidationException}
36
+ #
37
+ # Additionally, error classes are dynamically generated for service errors based on the error code
38
+ # if they are not defined above.
9
39
  module Errors
10
40
 
11
41
  extend Aws::Errors::DynamicErrors
@@ -23,7 +53,76 @@ module Aws::ElasticsearchService
23
53
  def message
24
54
  @message || @data[:message]
25
55
  end
56
+ end
57
+
58
+ class DisabledOperationException < ServiceError
59
+
60
+ # @param [Seahorse::Client::RequestContext] context
61
+ # @param [String] message
62
+ # @param [Aws::ElasticsearchService::Types::DisabledOperationException] data
63
+ def initialize(context, message, data = Aws::EmptyStructure.new)
64
+ super(context, message, data)
65
+ end
66
+ end
67
+
68
+ class InternalException < ServiceError
69
+
70
+ # @param [Seahorse::Client::RequestContext] context
71
+ # @param [String] message
72
+ # @param [Aws::ElasticsearchService::Types::InternalException] data
73
+ def initialize(context, message, data = Aws::EmptyStructure.new)
74
+ super(context, message, data)
75
+ end
76
+ end
77
+
78
+ class InvalidTypeException < ServiceError
79
+
80
+ # @param [Seahorse::Client::RequestContext] context
81
+ # @param [String] message
82
+ # @param [Aws::ElasticsearchService::Types::InvalidTypeException] data
83
+ def initialize(context, message, data = Aws::EmptyStructure.new)
84
+ super(context, message, data)
85
+ end
86
+ end
87
+
88
+ class LimitExceededException < ServiceError
89
+
90
+ # @param [Seahorse::Client::RequestContext] context
91
+ # @param [String] message
92
+ # @param [Aws::ElasticsearchService::Types::LimitExceededException] data
93
+ def initialize(context, message, data = Aws::EmptyStructure.new)
94
+ super(context, message, data)
95
+ end
96
+ end
97
+
98
+ class ResourceAlreadyExistsException < ServiceError
99
+
100
+ # @param [Seahorse::Client::RequestContext] context
101
+ # @param [String] message
102
+ # @param [Aws::ElasticsearchService::Types::ResourceAlreadyExistsException] data
103
+ def initialize(context, message, data = Aws::EmptyStructure.new)
104
+ super(context, message, data)
105
+ end
106
+ end
107
+
108
+ class ResourceNotFoundException < ServiceError
109
+
110
+ # @param [Seahorse::Client::RequestContext] context
111
+ # @param [String] message
112
+ # @param [Aws::ElasticsearchService::Types::ResourceNotFoundException] data
113
+ def initialize(context, message, data = Aws::EmptyStructure.new)
114
+ super(context, message, data)
115
+ end
116
+ end
117
+
118
+ class ValidationException < ServiceError
26
119
 
120
+ # @param [Seahorse::Client::RequestContext] context
121
+ # @param [String] message
122
+ # @param [Aws::ElasticsearchService::Types::ValidationException] data
123
+ def initialize(context, message, data = Aws::EmptyStructure.new)
124
+ super(context, message, data)
125
+ end
27
126
  end
28
127
 
29
128
  end
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::ElasticsearchService
9
+ # This class provides a resource oriented interface for ElasticsearchService.
10
+ # To create a resource object:
11
+ # resource = Aws::ElasticsearchService::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::ElasticsearchService::Client.new(region: 'us-west-2')
15
+ # resource = Aws::ElasticsearchService::Resource.new(client: client)
9
16
  class Resource
10
17
 
11
18
  # @param options ({})
@@ -789,6 +789,11 @@ module Aws::ElasticsearchService
789
789
  include Aws::Structure
790
790
  end
791
791
 
792
+ # An error occured because the client wanted to access a not supported
793
+ # operation. Gives http status code of 409.
794
+ #
795
+ class DisabledOperationException < Aws::EmptyStructure; end
796
+
792
797
  # Options to configure endpoint for the Elasticsearch domain.
793
798
  #
794
799
  # @note When making an API call, you may pass DomainEndpointOptions
@@ -1493,6 +1498,22 @@ module Aws::ElasticsearchService
1493
1498
  include Aws::Structure
1494
1499
  end
1495
1500
 
1501
+ # The request processing has failed because of an unknown error,
1502
+ # exception or failure (the failure is internal to the service) . Gives
1503
+ # http status code of 500.
1504
+ #
1505
+ class InternalException < Aws::EmptyStructure; end
1506
+
1507
+ # An exception for trying to create or access sub-resource that is
1508
+ # either invalid or not supported. Gives http status code of 409.
1509
+ #
1510
+ class InvalidTypeException < Aws::EmptyStructure; end
1511
+
1512
+ # An exception for trying to create more than allowed resources or
1513
+ # sub-resources. Gives http status code of 409.
1514
+ #
1515
+ class LimitExceededException < Aws::EmptyStructure; end
1516
+
1496
1517
  # Limits for given InstanceType and for each of it's role.
1497
1518
  # Limits contains following ` StorageTypes, ` ` InstanceLimits ` and `
1498
1519
  # AdditionalLimits `
@@ -2050,6 +2071,16 @@ module Aws::ElasticsearchService
2050
2071
  include Aws::Structure
2051
2072
  end
2052
2073
 
2074
+ # An exception for creating a resource that already exists. Gives http
2075
+ # status code of 400.
2076
+ #
2077
+ class ResourceAlreadyExistsException < Aws::EmptyStructure; end
2078
+
2079
+ # An exception for accessing or deleting a resource that does not exist.
2080
+ # Gives http status code of 400.
2081
+ #
2082
+ class ResourceNotFoundException < Aws::EmptyStructure; end
2083
+
2053
2084
  # The current options of an Elasticsearch domain service software
2054
2085
  # options.
2055
2086
  #
@@ -2628,6 +2659,11 @@ module Aws::ElasticsearchService
2628
2659
  include Aws::Structure
2629
2660
  end
2630
2661
 
2662
+ # An exception for missing / invalid input fields. Gives http status
2663
+ # code of 400.
2664
+ #
2665
+ class ValidationException < Aws::EmptyStructure; end
2666
+
2631
2667
  # Specifies the zone awareness configuration for the domain cluster,
2632
2668
  # such as the number of availability zones.
2633
2669
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-elasticsearchservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.30.0
4
+ version: 1.31.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: 2020-02-12 00:00:00.000000000 Z
11
+ date: 2020-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -80,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.5.2.3
83
+ rubygems_version: 3.0.3
85
84
  signing_key:
86
85
  specification_version: 4
87
86
  summary: AWS SDK for Ruby - Amazon Elasticsearch Service