aws-sdk-lambda 1.76.0 → 1.107.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/CHANGELOG.md +158 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +1576 -379
- data/lib/aws-sdk-lambda/client_api.rb +396 -0
- data/lib/aws-sdk-lambda/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-lambda/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-lambda/endpoints.rb +940 -0
- data/lib/aws-sdk-lambda/errors.rb +84 -0
- data/lib/aws-sdk-lambda/event_streams.rb +54 -0
- data/lib/aws-sdk-lambda/plugins/endpoints.rb +200 -0
- data/lib/aws-sdk-lambda/types.rb +1933 -1230
- data/lib/aws-sdk-lambda/waiters.rb +163 -7
- data/lib/aws-sdk-lambda.rb +6 -1
- metadata +9 -4
@@ -67,15 +67,18 @@ 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
|
-
# |
|
74
|
-
# |
|
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 |
|
75
78
|
#
|
76
79
|
module Waiters
|
77
80
|
|
78
|
-
# Waits for the function's State to be Active.
|
81
|
+
# Waits for the function's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new function creation.
|
79
82
|
class FunctionActive
|
80
83
|
|
81
84
|
# @param [Hash] options
|
@@ -126,6 +129,57 @@ module Aws::Lambda
|
|
126
129
|
|
127
130
|
end
|
128
131
|
|
132
|
+
# Waits for the function's State to be Active. This waiter uses GetFunction API. This should be used after new function creation.
|
133
|
+
class FunctionActiveV2
|
134
|
+
|
135
|
+
# @param [Hash] options
|
136
|
+
# @option options [required, Client] :client
|
137
|
+
# @option options [Integer] :max_attempts (300)
|
138
|
+
# @option options [Integer] :delay (1)
|
139
|
+
# @option options [Proc] :before_attempt
|
140
|
+
# @option options [Proc] :before_wait
|
141
|
+
def initialize(options)
|
142
|
+
@client = options.fetch(:client)
|
143
|
+
@waiter = Aws::Waiters::Waiter.new({
|
144
|
+
max_attempts: 300,
|
145
|
+
delay: 1,
|
146
|
+
poller: Aws::Waiters::Poller.new(
|
147
|
+
operation_name: :get_function,
|
148
|
+
acceptors: [
|
149
|
+
{
|
150
|
+
"state" => "success",
|
151
|
+
"matcher" => "path",
|
152
|
+
"argument" => "configuration.state",
|
153
|
+
"expected" => "Active"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"state" => "failure",
|
157
|
+
"matcher" => "path",
|
158
|
+
"argument" => "configuration.state",
|
159
|
+
"expected" => "Failed"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"state" => "retry",
|
163
|
+
"matcher" => "path",
|
164
|
+
"argument" => "configuration.state",
|
165
|
+
"expected" => "Pending"
|
166
|
+
}
|
167
|
+
]
|
168
|
+
)
|
169
|
+
}.merge(options))
|
170
|
+
end
|
171
|
+
|
172
|
+
# @option (see Client#get_function)
|
173
|
+
# @return (see Client#get_function)
|
174
|
+
def wait(params = {})
|
175
|
+
@waiter.wait(client: @client, params: params)
|
176
|
+
end
|
177
|
+
|
178
|
+
# @api private
|
179
|
+
attr_reader :waiter
|
180
|
+
|
181
|
+
end
|
182
|
+
|
129
183
|
class FunctionExists
|
130
184
|
|
131
185
|
# @param [Hash] options
|
@@ -168,7 +222,7 @@ module Aws::Lambda
|
|
168
222
|
|
169
223
|
end
|
170
224
|
|
171
|
-
# Waits for the function's LastUpdateStatus to be Successful.
|
225
|
+
# Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunctionConfiguration API. This should be used after function updates.
|
172
226
|
class FunctionUpdated
|
173
227
|
|
174
228
|
# @param [Hash] options
|
@@ -218,5 +272,107 @@ module Aws::Lambda
|
|
218
272
|
attr_reader :waiter
|
219
273
|
|
220
274
|
end
|
275
|
+
|
276
|
+
# Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunction API. This should be used after function updates.
|
277
|
+
class FunctionUpdatedV2
|
278
|
+
|
279
|
+
# @param [Hash] options
|
280
|
+
# @option options [required, Client] :client
|
281
|
+
# @option options [Integer] :max_attempts (300)
|
282
|
+
# @option options [Integer] :delay (1)
|
283
|
+
# @option options [Proc] :before_attempt
|
284
|
+
# @option options [Proc] :before_wait
|
285
|
+
def initialize(options)
|
286
|
+
@client = options.fetch(:client)
|
287
|
+
@waiter = Aws::Waiters::Waiter.new({
|
288
|
+
max_attempts: 300,
|
289
|
+
delay: 1,
|
290
|
+
poller: Aws::Waiters::Poller.new(
|
291
|
+
operation_name: :get_function,
|
292
|
+
acceptors: [
|
293
|
+
{
|
294
|
+
"state" => "success",
|
295
|
+
"matcher" => "path",
|
296
|
+
"argument" => "configuration.last_update_status",
|
297
|
+
"expected" => "Successful"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"state" => "failure",
|
301
|
+
"matcher" => "path",
|
302
|
+
"argument" => "configuration.last_update_status",
|
303
|
+
"expected" => "Failed"
|
304
|
+
},
|
305
|
+
{
|
306
|
+
"state" => "retry",
|
307
|
+
"matcher" => "path",
|
308
|
+
"argument" => "configuration.last_update_status",
|
309
|
+
"expected" => "InProgress"
|
310
|
+
}
|
311
|
+
]
|
312
|
+
)
|
313
|
+
}.merge(options))
|
314
|
+
end
|
315
|
+
|
316
|
+
# @option (see Client#get_function)
|
317
|
+
# @return (see Client#get_function)
|
318
|
+
def wait(params = {})
|
319
|
+
@waiter.wait(client: @client, params: params)
|
320
|
+
end
|
321
|
+
|
322
|
+
# @api private
|
323
|
+
attr_reader :waiter
|
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
|
221
377
|
end
|
222
378
|
end
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -13,11 +13,16 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-lambda/types'
|
15
15
|
require_relative 'aws-sdk-lambda/client_api'
|
16
|
+
require_relative 'aws-sdk-lambda/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-lambda/client'
|
17
18
|
require_relative 'aws-sdk-lambda/errors'
|
18
19
|
require_relative 'aws-sdk-lambda/waiters'
|
19
20
|
require_relative 'aws-sdk-lambda/resource'
|
21
|
+
require_relative 'aws-sdk-lambda/endpoint_parameters'
|
22
|
+
require_relative 'aws-sdk-lambda/endpoint_provider'
|
23
|
+
require_relative 'aws-sdk-lambda/endpoints'
|
20
24
|
require_relative 'aws-sdk-lambda/customizations'
|
25
|
+
require_relative 'aws-sdk-lambda/event_streams'
|
21
26
|
|
22
27
|
# This module provides support for AWS Lambda. This module is available in the
|
23
28
|
# `aws-sdk-lambda` gem.
|
@@ -49,6 +54,6 @@ require_relative 'aws-sdk-lambda/customizations'
|
|
49
54
|
# @!group service
|
50
55
|
module Aws::Lambda
|
51
56
|
|
52
|
-
GEM_VERSION = '1.
|
57
|
+
GEM_VERSION = '1.107.0'
|
53
58
|
|
54
59
|
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.
|
4
|
+
version: 1.107.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:
|
11
|
+
date: 2023-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.184.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.184.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,12 @@ files:
|
|
59
59
|
- lib/aws-sdk-lambda/client.rb
|
60
60
|
- lib/aws-sdk-lambda/client_api.rb
|
61
61
|
- lib/aws-sdk-lambda/customizations.rb
|
62
|
+
- lib/aws-sdk-lambda/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-lambda/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-lambda/endpoints.rb
|
62
65
|
- lib/aws-sdk-lambda/errors.rb
|
66
|
+
- lib/aws-sdk-lambda/event_streams.rb
|
67
|
+
- lib/aws-sdk-lambda/plugins/endpoints.rb
|
63
68
|
- lib/aws-sdk-lambda/resource.rb
|
64
69
|
- lib/aws-sdk-lambda/types.rb
|
65
70
|
- lib/aws-sdk-lambda/waiters.rb
|