aws-sdk-lambda 1.86.0 → 1.88.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +336 -271
- data/lib/aws-sdk-lambda/client_api.rb +32 -0
- data/lib/aws-sdk-lambda/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-lambda/endpoint_provider.rb +75 -75
- data/lib/aws-sdk-lambda/errors.rb +63 -0
- data/lib/aws-sdk-lambda/types.rb +496 -286
- data/lib/aws-sdk-lambda/waiters.rb +59 -7
- data/lib/aws-sdk-lambda.rb +1 -1
- metadata +2 -2
@@ -67,13 +67,14 @@ module Aws::Lambda
|
|
67
67
|
# The following table lists the valid waiter names, the operations they call,
|
68
68
|
# and the default `:delay` and `:max_attempts` values.
|
69
69
|
#
|
70
|
-
# | waiter_name
|
71
|
-
# |
|
72
|
-
# | function_active
|
73
|
-
# | function_active_v2
|
74
|
-
# | function_exists
|
75
|
-
# | function_updated
|
76
|
-
# | function_updated_v2
|
70
|
+
# | waiter_name | params | :delay | :max_attempts |
|
71
|
+
# | ------------------------ | ----------------------------------- | -------- | ------------- |
|
72
|
+
# | function_active | {Client#get_function_configuration} | 5 | 60 |
|
73
|
+
# | function_active_v2 | {Client#get_function} | 1 | 300 |
|
74
|
+
# | function_exists | {Client#get_function} | 1 | 20 |
|
75
|
+
# | function_updated | {Client#get_function_configuration} | 5 | 60 |
|
76
|
+
# | function_updated_v2 | {Client#get_function} | 1 | 300 |
|
77
|
+
# | published_version_active | {Client#get_function_configuration} | 5 | 312 |
|
77
78
|
#
|
78
79
|
module Waiters
|
79
80
|
|
@@ -322,5 +323,56 @@ module Aws::Lambda
|
|
322
323
|
attr_reader :waiter
|
323
324
|
|
324
325
|
end
|
326
|
+
|
327
|
+
# Waits for the published version's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new version is published.
|
328
|
+
class PublishedVersionActive
|
329
|
+
|
330
|
+
# @param [Hash] options
|
331
|
+
# @option options [required, Client] :client
|
332
|
+
# @option options [Integer] :max_attempts (312)
|
333
|
+
# @option options [Integer] :delay (5)
|
334
|
+
# @option options [Proc] :before_attempt
|
335
|
+
# @option options [Proc] :before_wait
|
336
|
+
def initialize(options)
|
337
|
+
@client = options.fetch(:client)
|
338
|
+
@waiter = Aws::Waiters::Waiter.new({
|
339
|
+
max_attempts: 312,
|
340
|
+
delay: 5,
|
341
|
+
poller: Aws::Waiters::Poller.new(
|
342
|
+
operation_name: :get_function_configuration,
|
343
|
+
acceptors: [
|
344
|
+
{
|
345
|
+
"state" => "success",
|
346
|
+
"matcher" => "path",
|
347
|
+
"argument" => "state",
|
348
|
+
"expected" => "Active"
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"state" => "failure",
|
352
|
+
"matcher" => "path",
|
353
|
+
"argument" => "state",
|
354
|
+
"expected" => "Failed"
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"state" => "retry",
|
358
|
+
"matcher" => "path",
|
359
|
+
"argument" => "state",
|
360
|
+
"expected" => "Pending"
|
361
|
+
}
|
362
|
+
]
|
363
|
+
)
|
364
|
+
}.merge(options))
|
365
|
+
end
|
366
|
+
|
367
|
+
# @option (see Client#get_function_configuration)
|
368
|
+
# @return (see Client#get_function_configuration)
|
369
|
+
def wait(params = {})
|
370
|
+
@waiter.wait(client: @client, params: params)
|
371
|
+
end
|
372
|
+
|
373
|
+
# @api private
|
374
|
+
attr_reader :waiter
|
375
|
+
|
376
|
+
end
|
325
377
|
end
|
326
378
|
end
|
data/lib/aws-sdk-lambda.rb
CHANGED
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.
|
4
|
+
version: 1.88.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: 2022-
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|