aws-sdk-lambda 1.36.0 → 1.37.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: 346a13eb658da3b79cf33a8e13c7afa7980fafcc
4
- data.tar.gz: a36a78bd6a5b2e6ec24799a80ec6f9b4a104c6d4
3
+ metadata.gz: 70fca6432323fba75c3b10ece938651fe10c2590
4
+ data.tar.gz: bddc6ed974a292177bc06664c276f5cab8a739af
5
5
  SHA512:
6
- metadata.gz: bd4bd85a5ef51af91a5459af5ba64846a9aa171892bb26187e84a468a55cfea74848b30e342560fa4ebe044774492962a7ec6d1e8682910aa2cce76f0b59c521
7
- data.tar.gz: 21222d6774efa6437f5a6f21df5479dcf1c444d95e3edec10ff9df93ce3505b967a0144cc255e6a8b8b5adbb9a4cb58c28ebf13f8c835c9ee244c3b1fefbb01f
6
+ metadata.gz: e6a9708a5bb475c87b4dd2f89195d874b35af3128dbc37bb395e707bef21bbfe6ea30b4e2ed4ae2f38b5b4b5e361412110576325017796dfc5403c4ea674ac13
7
+ data.tar.gz: 1c3925bd8042184c8b9af6d4ab3778efbd90cd2e83e7dc76d806a46cfa2f5a4eed739207222b40db72161bfc3dcd115fb493dac3066d2b16db53c4e7a5247553
@@ -25,17 +25,20 @@ require_relative 'aws-sdk-lambda/customizations'
25
25
  # methods each accept a hash of request parameters and return a response
26
26
  # structure.
27
27
  #
28
+ # lambda = Aws::Lambda::Client.new
29
+ # resp = lambda.add_layer_version_permission(params)
30
+ #
28
31
  # See {Client} for more information.
29
32
  #
30
33
  # # Errors
31
34
  #
32
- # Errors returned from AWS Lambda all
33
- # extend {Errors::ServiceError}.
35
+ # Errors returned from AWS Lambda are defined in the
36
+ # {Errors} module and all extend {Errors::ServiceError}.
34
37
  #
35
38
  # begin
36
39
  # # do stuff
37
40
  # rescue Aws::Lambda::Errors::ServiceError
38
- # # rescues all service API errors
41
+ # # rescues all AWS Lambda API errors
39
42
  # end
40
43
  #
41
44
  # See {Errors} for more information.
@@ -43,6 +46,6 @@ require_relative 'aws-sdk-lambda/customizations'
43
46
  # @service
44
47
  module Aws::Lambda
45
48
 
46
- GEM_VERSION = '1.36.0'
49
+ GEM_VERSION = '1.37.0'
47
50
 
48
51
  end
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:lambda)
31
31
 
32
32
  module Aws::Lambda
33
+ # An API client for Lambda. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::Lambda::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::Lambda
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::Lambda
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::Lambda
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,26 @@ module Aws::Lambda
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
+ # * `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.
190
241
  #
191
242
  # @option options [String] :secret_access_key
192
243
  #
@@ -209,16 +260,16 @@ module Aws::Lambda
209
260
  # requests through. Formatted like 'http://proxy.com:123'.
210
261
  #
211
262
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
263
+ # seconds to wait when opening a HTTP session before raising a
213
264
  # `Timeout::Error`.
214
265
  #
215
266
  # @option options [Integer] :http_read_timeout (60) The default
216
267
  # number of seconds to wait for response data. This value can
217
268
  # safely be set
218
- # per-request on the session yeidled by {#session_for}.
269
+ # per-request on the session yielded by {#session_for}.
219
270
  #
220
271
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
272
+ # seconds a connection is allowed to sit idle before it is
222
273
  # considered stale. Stale connections are closed and removed
223
274
  # from the pool before making a request.
224
275
  #
@@ -227,7 +278,7 @@ module Aws::Lambda
227
278
  # request body. This option has no effect unless the request has
228
279
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
280
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
281
+ # request on the session yielded by {#session_for}.
231
282
  #
232
283
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
284
  # HTTP debug output will be sent to the `:logger`.
@@ -4516,7 +4567,7 @@ module Aws::Lambda
4516
4567
  params: params,
4517
4568
  config: config)
4518
4569
  context[:gem_name] = 'aws-sdk-lambda'
4519
- context[:gem_version] = '1.36.0'
4570
+ context[:gem_version] = '1.37.0'
4520
4571
  Seahorse::Client::Request.new(handlers, context)
4521
4572
  end
4522
4573
 
@@ -6,6 +6,55 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Lambda
9
+
10
+ # When Lambda returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::Lambda::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all Lambda errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::Lambda::Errors::ServiceError
18
+ # # rescues all Lambda 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
+ # * {CodeStorageExceededException}
29
+ # * {EC2AccessDeniedException}
30
+ # * {EC2ThrottledException}
31
+ # * {EC2UnexpectedException}
32
+ # * {ENILimitReachedException}
33
+ # * {InvalidParameterValueException}
34
+ # * {InvalidRequestContentException}
35
+ # * {InvalidRuntimeException}
36
+ # * {InvalidSecurityGroupIDException}
37
+ # * {InvalidSubnetIDException}
38
+ # * {InvalidZipFileException}
39
+ # * {KMSAccessDeniedException}
40
+ # * {KMSDisabledException}
41
+ # * {KMSInvalidStateException}
42
+ # * {KMSNotFoundException}
43
+ # * {PolicyLengthExceededException}
44
+ # * {PreconditionFailedException}
45
+ # * {ProvisionedConcurrencyConfigNotFoundException}
46
+ # * {RequestTooLargeException}
47
+ # * {ResourceConflictException}
48
+ # * {ResourceInUseException}
49
+ # * {ResourceNotFoundException}
50
+ # * {ResourceNotReadyException}
51
+ # * {ServiceException}
52
+ # * {SubnetIPAddressLimitReachedException}
53
+ # * {TooManyRequestsException}
54
+ # * {UnsupportedMediaTypeException}
55
+ #
56
+ # Additionally, error classes are dynamically generated for service errors based on the error code
57
+ # if they are not defined above.
9
58
  module Errors
10
59
 
11
60
  extend Aws::Errors::DynamicErrors
@@ -28,7 +77,6 @@ module Aws::Lambda
28
77
  def message
29
78
  @message || @data[:message]
30
79
  end
31
-
32
80
  end
33
81
 
34
82
  class EC2AccessDeniedException < ServiceError
@@ -49,7 +97,6 @@ module Aws::Lambda
49
97
  def message
50
98
  @message || @data[:message]
51
99
  end
52
-
53
100
  end
54
101
 
55
102
  class EC2ThrottledException < ServiceError
@@ -70,7 +117,6 @@ module Aws::Lambda
70
117
  def message
71
118
  @message || @data[:message]
72
119
  end
73
-
74
120
  end
75
121
 
76
122
  class EC2UnexpectedException < ServiceError
@@ -96,7 +142,6 @@ module Aws::Lambda
96
142
  def ec2_error_code
97
143
  @data[:ec2_error_code]
98
144
  end
99
-
100
145
  end
101
146
 
102
147
  class ENILimitReachedException < ServiceError
@@ -117,7 +162,6 @@ module Aws::Lambda
117
162
  def message
118
163
  @message || @data[:message]
119
164
  end
120
-
121
165
  end
122
166
 
123
167
  class InvalidParameterValueException < ServiceError
@@ -138,7 +182,6 @@ module Aws::Lambda
138
182
  def message
139
183
  @message || @data[:message]
140
184
  end
141
-
142
185
  end
143
186
 
144
187
  class InvalidRequestContentException < ServiceError
@@ -159,7 +202,6 @@ module Aws::Lambda
159
202
  def message
160
203
  @message || @data[:message]
161
204
  end
162
-
163
205
  end
164
206
 
165
207
  class InvalidRuntimeException < ServiceError
@@ -180,7 +222,6 @@ module Aws::Lambda
180
222
  def message
181
223
  @message || @data[:message]
182
224
  end
183
-
184
225
  end
185
226
 
186
227
  class InvalidSecurityGroupIDException < ServiceError
@@ -201,7 +242,6 @@ module Aws::Lambda
201
242
  def message
202
243
  @message || @data[:message]
203
244
  end
204
-
205
245
  end
206
246
 
207
247
  class InvalidSubnetIDException < ServiceError
@@ -222,7 +262,6 @@ module Aws::Lambda
222
262
  def message
223
263
  @message || @data[:message]
224
264
  end
225
-
226
265
  end
227
266
 
228
267
  class InvalidZipFileException < ServiceError
@@ -243,7 +282,6 @@ module Aws::Lambda
243
282
  def message
244
283
  @message || @data[:message]
245
284
  end
246
-
247
285
  end
248
286
 
249
287
  class KMSAccessDeniedException < ServiceError
@@ -264,7 +302,6 @@ module Aws::Lambda
264
302
  def message
265
303
  @message || @data[:message]
266
304
  end
267
-
268
305
  end
269
306
 
270
307
  class KMSDisabledException < ServiceError
@@ -285,7 +322,6 @@ module Aws::Lambda
285
322
  def message
286
323
  @message || @data[:message]
287
324
  end
288
-
289
325
  end
290
326
 
291
327
  class KMSInvalidStateException < ServiceError
@@ -306,7 +342,6 @@ module Aws::Lambda
306
342
  def message
307
343
  @message || @data[:message]
308
344
  end
309
-
310
345
  end
311
346
 
312
347
  class KMSNotFoundException < ServiceError
@@ -327,7 +362,6 @@ module Aws::Lambda
327
362
  def message
328
363
  @message || @data[:message]
329
364
  end
330
-
331
365
  end
332
366
 
333
367
  class PolicyLengthExceededException < ServiceError
@@ -348,7 +382,6 @@ module Aws::Lambda
348
382
  def message
349
383
  @message || @data[:message]
350
384
  end
351
-
352
385
  end
353
386
 
354
387
  class PreconditionFailedException < ServiceError
@@ -369,7 +402,6 @@ module Aws::Lambda
369
402
  def message
370
403
  @message || @data[:message]
371
404
  end
372
-
373
405
  end
374
406
 
375
407
  class ProvisionedConcurrencyConfigNotFoundException < ServiceError
@@ -390,7 +422,6 @@ module Aws::Lambda
390
422
  def message
391
423
  @message || @data[:message]
392
424
  end
393
-
394
425
  end
395
426
 
396
427
  class RequestTooLargeException < ServiceError
@@ -411,7 +442,6 @@ module Aws::Lambda
411
442
  def message
412
443
  @message || @data[:message]
413
444
  end
414
-
415
445
  end
416
446
 
417
447
  class ResourceConflictException < ServiceError
@@ -432,7 +462,6 @@ module Aws::Lambda
432
462
  def message
433
463
  @message || @data[:message]
434
464
  end
435
-
436
465
  end
437
466
 
438
467
  class ResourceInUseException < ServiceError
@@ -453,7 +482,6 @@ module Aws::Lambda
453
482
  def message
454
483
  @message || @data[:message]
455
484
  end
456
-
457
485
  end
458
486
 
459
487
  class ResourceNotFoundException < ServiceError
@@ -474,7 +502,6 @@ module Aws::Lambda
474
502
  def message
475
503
  @message || @data[:message]
476
504
  end
477
-
478
505
  end
479
506
 
480
507
  class ResourceNotReadyException < ServiceError
@@ -495,7 +522,6 @@ module Aws::Lambda
495
522
  def message
496
523
  @message || @data[:message]
497
524
  end
498
-
499
525
  end
500
526
 
501
527
  class ServiceException < ServiceError
@@ -516,7 +542,6 @@ module Aws::Lambda
516
542
  def message
517
543
  @message || @data[:message]
518
544
  end
519
-
520
545
  end
521
546
 
522
547
  class SubnetIPAddressLimitReachedException < ServiceError
@@ -537,7 +562,6 @@ module Aws::Lambda
537
562
  def message
538
563
  @message || @data[:message]
539
564
  end
540
-
541
565
  end
542
566
 
543
567
  class TooManyRequestsException < ServiceError
@@ -568,7 +592,6 @@ module Aws::Lambda
568
592
  def reason
569
593
  @data[:reason]
570
594
  end
571
-
572
595
  end
573
596
 
574
597
  class UnsupportedMediaTypeException < ServiceError
@@ -589,7 +612,6 @@ module Aws::Lambda
589
612
  def message
590
613
  @message || @data[:message]
591
614
  end
592
-
593
615
  end
594
616
 
595
617
  end
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Lambda
9
+ # This class provides a resource oriented interface for Lambda.
10
+ # To create a resource object:
11
+ # resource = Aws::Lambda::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::Lambda::Client.new(region: 'us-west-2')
15
+ # resource = Aws::Lambda::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-lambda
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.36.0
4
+ version: 1.37.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-19 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