aws-sdk-lambda 1.86.0 → 1.88.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.
@@ -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 | 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 |
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
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-lambda/customizations'
53
53
  # @!group service
54
54
  module Aws::Lambda
55
55
 
56
- GEM_VERSION = '1.86.0'
56
+ GEM_VERSION = '1.88.0'
57
57
 
58
58
  end
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.86.0
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-10-25 00:00:00.000000000 Z
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