aws-sdk-appmesh 1.20.0 → 1.21.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 +4 -4
- data/lib/aws-sdk-appmesh.rb +1 -1
- data/lib/aws-sdk-appmesh/client.rb +54 -13
- data/lib/aws-sdk-appmesh/errors.rb +4 -18
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35906a590842afbc894af4c070724b4c05f46d2f
|
4
|
+
data.tar.gz: db6dbb971935804a589a9c25e597c0c58fac08b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8037008b0b1f3cdd0c61993a72d7fd90008d8ef4761229f9cda9ff2c381c481f5526690dddf9624e8c9752b68bb569bff3f9ecfac61d6147ba4962f5d02550b5
|
7
|
+
data.tar.gz: 81d4a86650430d1b55c8f3b8526e0537c396415a47dc9c0af12b1303dc49cfeff9331d8e7885ad912dec690c9f8fc5b526cb4888f7df76fda0ed83e42330f7cc
|
data/lib/aws-sdk-appmesh.rb
CHANGED
@@ -30,14 +30,16 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:appmesh)
|
31
31
|
|
32
32
|
module Aws::AppMesh
|
33
|
-
# An API client for AppMesh. To construct a client, you need to configure a
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
33
|
+
# An API client for AppMesh. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
|
+
#
|
35
|
+
# client = Aws::AppMesh::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
|
+
#
|
39
41
|
# For details on configuring region and credentials see
|
40
|
-
# the
|
42
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
41
43
|
#
|
42
44
|
# See {#initialize} for a full list of supported configuration options.
|
43
45
|
class Client < Seahorse::Client::Base
|
@@ -118,6 +120,12 @@ module Aws::AppMesh
|
|
118
120
|
# When set to `true`, a thread polling for endpoints will be running in
|
119
121
|
# the background every 60 secs (default). Defaults to `false`.
|
120
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
|
+
#
|
121
129
|
# @option options [Boolean] :client_side_monitoring (false)
|
122
130
|
# When `true`, client-side metrics will be collected for all API requests from
|
123
131
|
# this client.
|
@@ -142,6 +150,10 @@ module Aws::AppMesh
|
|
142
150
|
# When `true`, an attempt is made to coerce request parameters into
|
143
151
|
# the required types.
|
144
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
|
+
#
|
145
157
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
146
158
|
# Set to true to disable SDK automatically adding host prefix
|
147
159
|
# to default service endpoint when available.
|
@@ -176,15 +188,29 @@ module Aws::AppMesh
|
|
176
188
|
# The Logger instance to send log messages to. If this option
|
177
189
|
# is not set, logging will be disabled.
|
178
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
|
+
#
|
179
197
|
# @option options [String] :profile ("default")
|
180
198
|
# Used when loading credentials from the shared credentials file
|
181
199
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
182
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
|
+
#
|
183
205
|
# @option options [Float] :retry_base_delay (0.3)
|
184
|
-
# 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.
|
185
208
|
#
|
186
209
|
# @option options [Symbol] :retry_jitter (:none)
|
187
|
-
# A delay randomiser function used by the default backoff function.
|
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.
|
188
214
|
#
|
189
215
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
190
216
|
#
|
@@ -192,11 +218,26 @@ module Aws::AppMesh
|
|
192
218
|
# The maximum number of times to retry failed requests. Only
|
193
219
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
194
220
|
# are retried. Generally, these are throttling errors, data
|
195
|
-
# checksum errors, networking errors, timeout errors
|
196
|
-
# 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.
|
197
224
|
#
|
198
225
|
# @option options [Integer] :retry_max_delay (0)
|
199
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
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
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
233
|
+
# no retry mode is provided.
|
234
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
235
|
+
# This includes support for retry quotas, which limit the number of
|
236
|
+
# unsuccessful retries a client can make.
|
237
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
238
|
+
# functionality of `standard` mode along with automatic client side
|
239
|
+
# throttling. This is a provisional mode that may change behavior
|
240
|
+
# in the future.
|
200
241
|
#
|
201
242
|
# @option options [String] :secret_access_key
|
202
243
|
#
|
@@ -2948,7 +2989,7 @@ module Aws::AppMesh
|
|
2948
2989
|
params: params,
|
2949
2990
|
config: config)
|
2950
2991
|
context[:gem_name] = 'aws-sdk-appmesh'
|
2951
|
-
context[:gem_version] = '1.
|
2992
|
+
context[:gem_version] = '1.21.0'
|
2952
2993
|
Seahorse::Client::Request.new(handlers, context)
|
2953
2994
|
end
|
2954
2995
|
|
@@ -11,22 +11,17 @@ module Aws::AppMesh
|
|
11
11
|
# These errors all extend Aws::AppMesh::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
12
|
#
|
13
13
|
# You can rescue all AppMesh errors using ServiceError:
|
14
|
+
#
|
14
15
|
# begin
|
15
16
|
# # do stuff
|
16
17
|
# rescue Aws::AppMesh::Errors::ServiceError
|
17
18
|
# # rescues all AppMesh API errors
|
18
19
|
# end
|
19
20
|
#
|
21
|
+
#
|
20
22
|
# ## Request Context
|
21
23
|
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
22
|
-
# information about the request that generated the error
|
23
|
-
# *
|
24
|
-
# * #params - The request params
|
25
|
-
# * #operation_name - Name of the API operation invoked
|
26
|
-
# * #http_request
|
27
|
-
# * #http_response
|
28
|
-
# * etc ...
|
29
|
-
#
|
24
|
+
# information about the request that generated the error.
|
30
25
|
# See {Seahorse::Client::RequestContext} for more information.
|
31
26
|
#
|
32
27
|
# ## Error Classes
|
@@ -40,6 +35,7 @@ module Aws::AppMesh
|
|
40
35
|
# * {LimitExceededException}
|
41
36
|
# * {TooManyRequestsException}
|
42
37
|
# * {TooManyTagsException}
|
38
|
+
#
|
43
39
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
44
40
|
# if they are not defined above.
|
45
41
|
module Errors
|
@@ -59,7 +55,6 @@ module Aws::AppMesh
|
|
59
55
|
def message
|
60
56
|
@message || @data[:message]
|
61
57
|
end
|
62
|
-
|
63
58
|
end
|
64
59
|
|
65
60
|
class BadRequestException < ServiceError
|
@@ -75,7 +70,6 @@ module Aws::AppMesh
|
|
75
70
|
def message
|
76
71
|
@message || @data[:message]
|
77
72
|
end
|
78
|
-
|
79
73
|
end
|
80
74
|
|
81
75
|
class ConflictException < ServiceError
|
@@ -91,7 +85,6 @@ module Aws::AppMesh
|
|
91
85
|
def message
|
92
86
|
@message || @data[:message]
|
93
87
|
end
|
94
|
-
|
95
88
|
end
|
96
89
|
|
97
90
|
class InternalServerErrorException < ServiceError
|
@@ -107,7 +100,6 @@ module Aws::AppMesh
|
|
107
100
|
def message
|
108
101
|
@message || @data[:message]
|
109
102
|
end
|
110
|
-
|
111
103
|
end
|
112
104
|
|
113
105
|
class ForbiddenException < ServiceError
|
@@ -123,7 +115,6 @@ module Aws::AppMesh
|
|
123
115
|
def message
|
124
116
|
@message || @data[:message]
|
125
117
|
end
|
126
|
-
|
127
118
|
end
|
128
119
|
|
129
120
|
class NotFoundException < ServiceError
|
@@ -139,7 +130,6 @@ module Aws::AppMesh
|
|
139
130
|
def message
|
140
131
|
@message || @data[:message]
|
141
132
|
end
|
142
|
-
|
143
133
|
end
|
144
134
|
|
145
135
|
class ServiceUnavailableException < ServiceError
|
@@ -155,7 +145,6 @@ module Aws::AppMesh
|
|
155
145
|
def message
|
156
146
|
@message || @data[:message]
|
157
147
|
end
|
158
|
-
|
159
148
|
end
|
160
149
|
|
161
150
|
class LimitExceededException < ServiceError
|
@@ -171,7 +160,6 @@ module Aws::AppMesh
|
|
171
160
|
def message
|
172
161
|
@message || @data[:message]
|
173
162
|
end
|
174
|
-
|
175
163
|
end
|
176
164
|
|
177
165
|
class TooManyRequestsException < ServiceError
|
@@ -187,7 +175,6 @@ module Aws::AppMesh
|
|
187
175
|
def message
|
188
176
|
@message || @data[:message]
|
189
177
|
end
|
190
|
-
|
191
178
|
end
|
192
179
|
|
193
180
|
class TooManyTagsException < ServiceError
|
@@ -203,7 +190,6 @@ module Aws::AppMesh
|
|
203
190
|
def message
|
204
191
|
@message || @data[:message]
|
205
192
|
end
|
206
|
-
|
207
193
|
end
|
208
194
|
|
209
195
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-appmesh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.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-03-
|
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
|