aws-sdk-lambda 1.76.0 → 1.79.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 +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +65 -30
- data/lib/aws-sdk-lambda/types.rb +13 -9
- data/lib/aws-sdk-lambda/waiters.rb +111 -7
- data/lib/aws-sdk-lambda.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 335ecae4c16b478744eb8d37645d6cfb8a6bbb54fe801d166067f274fde523b8
|
4
|
+
data.tar.gz: 8660fab559b31cac93171fcef03edd49982b0d7a80f03d1a773c3d81e9403dd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c196b215efb959b7d47e46f4f66132f4759c2d6f00d190628ac7b9a52a9b6e79a7665239205549c5b01015c00d5dc8277948ab3c2fb44591bdcd4a007e95de4
|
7
|
+
data.tar.gz: 9e44bd1edd25cadc5e447c675012f3c115e8380df88439ba91a4cf38ee19884e6244ff0094dc11075f2c0839d479b01837437620c95fe41d9fa520f989473593
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.79.0 (2022-02-23)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Lambda releases .NET 6 managed runtime to be available in all commercial regions.
|
8
|
+
|
9
|
+
1.78.0 (2022-02-03)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.77.0 (2021-12-21)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.76.0 (2021-11-30)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.79.0
|
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
33
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
34
|
|
@@ -73,6 +75,8 @@ module Aws::Lambda
|
|
73
75
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
76
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
77
|
add_plugin(Aws::Plugins::HttpChecksum)
|
78
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
79
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
76
80
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
81
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
78
82
|
|
@@ -175,6 +179,10 @@ module Aws::Lambda
|
|
175
179
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
176
180
|
# a clock skew correction and retry requests with skewed client clocks.
|
177
181
|
#
|
182
|
+
# @option options [String] :defaults_mode ("legacy")
|
183
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
184
|
+
# accepted modes and the configuration defaults that are included.
|
185
|
+
#
|
178
186
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
179
187
|
# Set to true to disable SDK automatically adding host prefix
|
180
188
|
# to default service endpoint when available.
|
@@ -297,7 +305,7 @@ module Aws::Lambda
|
|
297
305
|
# seconds to wait when opening a HTTP session before raising a
|
298
306
|
# `Timeout::Error`.
|
299
307
|
#
|
300
|
-
# @option options [
|
308
|
+
# @option options [Float] :http_read_timeout (60) The default
|
301
309
|
# number of seconds to wait for response data. This value can
|
302
310
|
# safely be set per-request on the session.
|
303
311
|
#
|
@@ -313,6 +321,9 @@ module Aws::Lambda
|
|
313
321
|
# disables this behaviour. This value can safely be set per
|
314
322
|
# request on the session.
|
315
323
|
#
|
324
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
325
|
+
# in seconds.
|
326
|
+
#
|
316
327
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
317
328
|
# HTTP debug output will be sent to the `:logger`.
|
318
329
|
#
|
@@ -1227,7 +1238,7 @@ module Aws::Lambda
|
|
1227
1238
|
#
|
1228
1239
|
# resp = client.create_function({
|
1229
1240
|
# function_name: "FunctionName", # required
|
1230
|
-
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
1241
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
1231
1242
|
# role: "RoleArn", # required
|
1232
1243
|
# handler: "Handler",
|
1233
1244
|
# code: { # required
|
@@ -1281,7 +1292,7 @@ module Aws::Lambda
|
|
1281
1292
|
#
|
1282
1293
|
# resp.function_name #=> String
|
1283
1294
|
# resp.function_arn #=> String
|
1284
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
1295
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
1285
1296
|
# resp.role #=> String
|
1286
1297
|
# resp.handler #=> String
|
1287
1298
|
# resp.code_size #=> Integer
|
@@ -1975,7 +1986,7 @@ module Aws::Lambda
|
|
1975
1986
|
#
|
1976
1987
|
# resp.configuration.function_name #=> String
|
1977
1988
|
# resp.configuration.function_arn #=> String
|
1978
|
-
# resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
1989
|
+
# resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
1979
1990
|
# resp.configuration.role #=> String
|
1980
1991
|
# resp.configuration.handler #=> String
|
1981
1992
|
# resp.configuration.code_size #=> Integer
|
@@ -2036,7 +2047,9 @@ module Aws::Lambda
|
|
2036
2047
|
#
|
2037
2048
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
2038
2049
|
#
|
2050
|
+
# * function_active_v2
|
2039
2051
|
# * function_exists
|
2052
|
+
# * function_updated_v2
|
2040
2053
|
#
|
2041
2054
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction AWS API Documentation
|
2042
2055
|
#
|
@@ -2205,7 +2218,7 @@ module Aws::Lambda
|
|
2205
2218
|
#
|
2206
2219
|
# resp.function_name #=> String
|
2207
2220
|
# resp.function_arn #=> String
|
2208
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
2221
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
2209
2222
|
# resp.role #=> String
|
2210
2223
|
# resp.handler #=> String
|
2211
2224
|
# resp.code_size #=> Integer
|
@@ -2375,7 +2388,7 @@ module Aws::Lambda
|
|
2375
2388
|
# resp.created_date #=> Time
|
2376
2389
|
# resp.version #=> Integer
|
2377
2390
|
# resp.compatible_runtimes #=> Array
|
2378
|
-
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
2391
|
+
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
2379
2392
|
# resp.license_info #=> String
|
2380
2393
|
# resp.compatible_architectures #=> Array
|
2381
2394
|
# resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
|
@@ -2430,7 +2443,7 @@ module Aws::Lambda
|
|
2430
2443
|
# resp.created_date #=> Time
|
2431
2444
|
# resp.version #=> Integer
|
2432
2445
|
# resp.compatible_runtimes #=> Array
|
2433
|
-
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
2446
|
+
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
2434
2447
|
# resp.license_info #=> String
|
2435
2448
|
# resp.compatible_architectures #=> Array
|
2436
2449
|
# resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
|
@@ -3116,7 +3129,7 @@ module Aws::Lambda
|
|
3116
3129
|
# resp.functions #=> Array
|
3117
3130
|
# resp.functions[0].function_name #=> String
|
3118
3131
|
# resp.functions[0].function_arn #=> String
|
3119
|
-
# resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3132
|
+
# resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3120
3133
|
# resp.functions[0].role #=> String
|
3121
3134
|
# resp.functions[0].handler #=> String
|
3122
3135
|
# resp.functions[0].code_size #=> Integer
|
@@ -3260,7 +3273,7 @@ module Aws::Lambda
|
|
3260
3273
|
# @example Request syntax with placeholder values
|
3261
3274
|
#
|
3262
3275
|
# resp = client.list_layer_versions({
|
3263
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3276
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3264
3277
|
# layer_name: "LayerName", # required
|
3265
3278
|
# marker: "String",
|
3266
3279
|
# max_items: 1,
|
@@ -3276,7 +3289,7 @@ module Aws::Lambda
|
|
3276
3289
|
# resp.layer_versions[0].description #=> String
|
3277
3290
|
# resp.layer_versions[0].created_date #=> Time
|
3278
3291
|
# resp.layer_versions[0].compatible_runtimes #=> Array
|
3279
|
-
# resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3292
|
+
# resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3280
3293
|
# resp.layer_versions[0].license_info #=> String
|
3281
3294
|
# resp.layer_versions[0].compatible_architectures #=> Array
|
3282
3295
|
# resp.layer_versions[0].compatible_architectures[0] #=> String, one of "x86_64", "arm64"
|
@@ -3328,7 +3341,7 @@ module Aws::Lambda
|
|
3328
3341
|
# @example Request syntax with placeholder values
|
3329
3342
|
#
|
3330
3343
|
# resp = client.list_layers({
|
3331
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3344
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3332
3345
|
# marker: "String",
|
3333
3346
|
# max_items: 1,
|
3334
3347
|
# compatible_architecture: "x86_64", # accepts x86_64, arm64
|
@@ -3345,7 +3358,7 @@ module Aws::Lambda
|
|
3345
3358
|
# resp.layers[0].latest_matching_version.description #=> String
|
3346
3359
|
# resp.layers[0].latest_matching_version.created_date #=> Time
|
3347
3360
|
# resp.layers[0].latest_matching_version.compatible_runtimes #=> Array
|
3348
|
-
# resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3361
|
+
# resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3349
3362
|
# resp.layers[0].latest_matching_version.license_info #=> String
|
3350
3363
|
# resp.layers[0].latest_matching_version.compatible_architectures #=> Array
|
3351
3364
|
# resp.layers[0].latest_matching_version.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
|
@@ -3507,7 +3520,7 @@ module Aws::Lambda
|
|
3507
3520
|
# resp.versions #=> Array
|
3508
3521
|
# resp.versions[0].function_name #=> String
|
3509
3522
|
# resp.versions[0].function_arn #=> String
|
3510
|
-
# resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3523
|
+
# resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3511
3524
|
# resp.versions[0].role #=> String
|
3512
3525
|
# resp.versions[0].handler #=> String
|
3513
3526
|
# resp.versions[0].code_size #=> Integer
|
@@ -3639,7 +3652,7 @@ module Aws::Lambda
|
|
3639
3652
|
# s3_object_version: "S3ObjectVersion",
|
3640
3653
|
# zip_file: "data",
|
3641
3654
|
# },
|
3642
|
-
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3655
|
+
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3643
3656
|
# license_info: "LicenseInfo",
|
3644
3657
|
# compatible_architectures: ["x86_64"], # accepts x86_64, arm64
|
3645
3658
|
# })
|
@@ -3657,7 +3670,7 @@ module Aws::Lambda
|
|
3657
3670
|
# resp.created_date #=> Time
|
3658
3671
|
# resp.version #=> Integer
|
3659
3672
|
# resp.compatible_runtimes #=> Array
|
3660
|
-
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3673
|
+
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3661
3674
|
# resp.license_info #=> String
|
3662
3675
|
# resp.compatible_architectures #=> Array
|
3663
3676
|
# resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
|
@@ -3766,7 +3779,7 @@ module Aws::Lambda
|
|
3766
3779
|
#
|
3767
3780
|
# resp.function_name #=> String
|
3768
3781
|
# resp.function_arn #=> String
|
3769
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3782
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3770
3783
|
# resp.role #=> String
|
3771
3784
|
# resp.handler #=> String
|
3772
3785
|
# resp.code_size #=> Integer
|
@@ -4678,6 +4691,18 @@ module Aws::Lambda
|
|
4678
4691
|
# function, the code package must be signed by a trusted publisher. For
|
4679
4692
|
# more information, see [Configuring code signing][1].
|
4680
4693
|
#
|
4694
|
+
# If the function's package type is `Image`, you must specify the code
|
4695
|
+
# package in `ImageUri` as the URI of a [container image][2] in the
|
4696
|
+
# Amazon ECR registry.
|
4697
|
+
#
|
4698
|
+
# If the function's package type is `Zip`, you must specify the
|
4699
|
+
# deployment package as a [.zip file archive][3]. Enter the Amazon S3
|
4700
|
+
# bucket and key of the code .zip file location. You can also provide
|
4701
|
+
# the function code inline using the `ZipFile` field.
|
4702
|
+
#
|
4703
|
+
# The code in the deployment package must be compatible with the target
|
4704
|
+
# instruction set architecture of the function (`x86-64` or `arm64`).
|
4705
|
+
#
|
4681
4706
|
# The function's code is locked when you publish a version. You can't
|
4682
4707
|
# modify the code of a published version, only the unpublished version.
|
4683
4708
|
#
|
@@ -4690,6 +4715,8 @@ module Aws::Lambda
|
|
4690
4715
|
#
|
4691
4716
|
#
|
4692
4717
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html
|
4718
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html
|
4719
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip
|
4693
4720
|
#
|
4694
4721
|
# @option params [required, String] :function_name
|
4695
4722
|
# The name of the Lambda function.
|
@@ -4709,22 +4736,26 @@ module Aws::Lambda
|
|
4709
4736
|
# @option params [String, StringIO, File] :zip_file
|
4710
4737
|
# The base64-encoded contents of the deployment package. Amazon Web
|
4711
4738
|
# Services SDK and Amazon Web Services CLI clients handle the encoding
|
4712
|
-
# for you.
|
4739
|
+
# for you. Use only with a function defined with a .zip file archive
|
4740
|
+
# deployment package.
|
4713
4741
|
#
|
4714
4742
|
# @option params [String] :s3_bucket
|
4715
4743
|
# An Amazon S3 bucket in the same Amazon Web Services Region as your
|
4716
4744
|
# function. The bucket can be in a different Amazon Web Services
|
4717
|
-
# account.
|
4745
|
+
# account. Use only with a function defined with a .zip file archive
|
4746
|
+
# deployment package.
|
4718
4747
|
#
|
4719
4748
|
# @option params [String] :s3_key
|
4720
|
-
# The Amazon S3 key of the deployment package.
|
4749
|
+
# The Amazon S3 key of the deployment package. Use only with a function
|
4750
|
+
# defined with a .zip file archive deployment package.
|
4721
4751
|
#
|
4722
4752
|
# @option params [String] :s3_object_version
|
4723
4753
|
# For versioned objects, the version of the deployment package object to
|
4724
4754
|
# use.
|
4725
4755
|
#
|
4726
4756
|
# @option params [String] :image_uri
|
4727
|
-
# URI of a container image in the Amazon ECR registry.
|
4757
|
+
# URI of a container image in the Amazon ECR registry. Do not use for a
|
4758
|
+
# function defined with a .zip file archive.
|
4728
4759
|
#
|
4729
4760
|
# @option params [Boolean] :publish
|
4730
4761
|
# Set to true to publish a new version of the function after updating
|
@@ -4799,7 +4830,7 @@ module Aws::Lambda
|
|
4799
4830
|
#
|
4800
4831
|
# resp.function_name #=> String
|
4801
4832
|
# resp.function_arn #=> String
|
4802
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
4833
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
4803
4834
|
# resp.role #=> String
|
4804
4835
|
# resp.handler #=> String
|
4805
4836
|
# resp.code_size #=> Integer
|
@@ -5056,7 +5087,7 @@ module Aws::Lambda
|
|
5056
5087
|
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
5057
5088
|
# },
|
5058
5089
|
# },
|
5059
|
-
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
5090
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
5060
5091
|
# dead_letter_config: {
|
5061
5092
|
# target_arn: "ResourceArn",
|
5062
5093
|
# },
|
@@ -5083,7 +5114,7 @@ module Aws::Lambda
|
|
5083
5114
|
#
|
5084
5115
|
# resp.function_name #=> String
|
5085
5116
|
# resp.function_arn #=> String
|
5086
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
5117
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "nodejs14.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "python3.9", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "dotnet6", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
5087
5118
|
# resp.role #=> String
|
5088
5119
|
# resp.handler #=> String
|
5089
5120
|
# resp.code_size #=> Integer
|
@@ -5247,7 +5278,7 @@ module Aws::Lambda
|
|
5247
5278
|
params: params,
|
5248
5279
|
config: config)
|
5249
5280
|
context[:gem_name] = 'aws-sdk-lambda'
|
5250
|
-
context[:gem_version] = '1.
|
5281
|
+
context[:gem_version] = '1.79.0'
|
5251
5282
|
Seahorse::Client::Request.new(handlers, context)
|
5252
5283
|
end
|
5253
5284
|
|
@@ -5313,11 +5344,13 @@ module Aws::Lambda
|
|
5313
5344
|
# The following table lists the valid waiter names, the operations they call,
|
5314
5345
|
# and the default `:delay` and `:max_attempts` values.
|
5315
5346
|
#
|
5316
|
-
# | waiter_name
|
5317
|
-
# |
|
5318
|
-
# | function_active
|
5319
|
-
# |
|
5320
|
-
# |
|
5347
|
+
# | waiter_name | params | :delay | :max_attempts |
|
5348
|
+
# | ------------------- | ----------------------------------- | -------- | ------------- |
|
5349
|
+
# | function_active | {Client#get_function_configuration} | 5 | 60 |
|
5350
|
+
# | function_active_v2 | {Client#get_function} | 1 | 300 |
|
5351
|
+
# | function_exists | {Client#get_function} | 1 | 20 |
|
5352
|
+
# | function_updated | {Client#get_function_configuration} | 5 | 60 |
|
5353
|
+
# | function_updated_v2 | {Client#get_function} | 1 | 300 |
|
5321
5354
|
#
|
5322
5355
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
5323
5356
|
# because the waiter has entered a state that it will not transition
|
@@ -5369,8 +5402,10 @@ module Aws::Lambda
|
|
5369
5402
|
def waiters
|
5370
5403
|
{
|
5371
5404
|
function_active: Waiters::FunctionActive,
|
5405
|
+
function_active_v2: Waiters::FunctionActiveV2,
|
5372
5406
|
function_exists: Waiters::FunctionExists,
|
5373
|
-
function_updated: Waiters::FunctionUpdated
|
5407
|
+
function_updated: Waiters::FunctionUpdated,
|
5408
|
+
function_updated_v2: Waiters::FunctionUpdatedV2
|
5374
5409
|
}
|
5375
5410
|
end
|
5376
5411
|
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -846,7 +846,7 @@ module Aws::Lambda
|
|
846
846
|
#
|
847
847
|
# {
|
848
848
|
# function_name: "FunctionName", # required
|
849
|
-
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
849
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
850
850
|
# role: "RoleArn", # required
|
851
851
|
# handler: "Handler",
|
852
852
|
# code: { # required
|
@@ -3906,7 +3906,7 @@ module Aws::Lambda
|
|
3906
3906
|
# data as a hash:
|
3907
3907
|
#
|
3908
3908
|
# {
|
3909
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3909
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3910
3910
|
# layer_name: "LayerName", # required
|
3911
3911
|
# marker: "String",
|
3912
3912
|
# max_items: 1,
|
@@ -3971,7 +3971,7 @@ module Aws::Lambda
|
|
3971
3971
|
# data as a hash:
|
3972
3972
|
#
|
3973
3973
|
# {
|
3974
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3974
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3975
3975
|
# marker: "String",
|
3976
3976
|
# max_items: 1,
|
3977
3977
|
# compatible_architecture: "x86_64", # accepts x86_64, arm64
|
@@ -4346,7 +4346,7 @@ module Aws::Lambda
|
|
4346
4346
|
# s3_object_version: "S3ObjectVersion",
|
4347
4347
|
# zip_file: "data",
|
4348
4348
|
# },
|
4349
|
-
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
4349
|
+
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
4350
4350
|
# license_info: "LicenseInfo",
|
4351
4351
|
# compatible_architectures: ["x86_64"], # accepts x86_64, arm64
|
4352
4352
|
# }
|
@@ -5582,17 +5582,20 @@ module Aws::Lambda
|
|
5582
5582
|
# @!attribute [rw] zip_file
|
5583
5583
|
# The base64-encoded contents of the deployment package. Amazon Web
|
5584
5584
|
# Services SDK and Amazon Web Services CLI clients handle the encoding
|
5585
|
-
# for you.
|
5585
|
+
# for you. Use only with a function defined with a .zip file archive
|
5586
|
+
# deployment package.
|
5586
5587
|
# @return [String]
|
5587
5588
|
#
|
5588
5589
|
# @!attribute [rw] s3_bucket
|
5589
5590
|
# An Amazon S3 bucket in the same Amazon Web Services Region as your
|
5590
5591
|
# function. The bucket can be in a different Amazon Web Services
|
5591
|
-
# account.
|
5592
|
+
# account. Use only with a function defined with a .zip file archive
|
5593
|
+
# deployment package.
|
5592
5594
|
# @return [String]
|
5593
5595
|
#
|
5594
5596
|
# @!attribute [rw] s3_key
|
5595
|
-
# The Amazon S3 key of the deployment package.
|
5597
|
+
# The Amazon S3 key of the deployment package. Use only with a
|
5598
|
+
# function defined with a .zip file archive deployment package.
|
5596
5599
|
# @return [String]
|
5597
5600
|
#
|
5598
5601
|
# @!attribute [rw] s3_object_version
|
@@ -5601,7 +5604,8 @@ module Aws::Lambda
|
|
5601
5604
|
# @return [String]
|
5602
5605
|
#
|
5603
5606
|
# @!attribute [rw] image_uri
|
5604
|
-
# URI of a container image in the Amazon ECR registry.
|
5607
|
+
# URI of a container image in the Amazon ECR registry. Do not use for
|
5608
|
+
# a function defined with a .zip file archive.
|
5605
5609
|
# @return [String]
|
5606
5610
|
#
|
5607
5611
|
# @!attribute [rw] publish
|
@@ -5663,7 +5667,7 @@ module Aws::Lambda
|
|
5663
5667
|
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
5664
5668
|
# },
|
5665
5669
|
# },
|
5666
|
-
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
5670
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, nodejs14.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, python3.9, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, dotnet6, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
5667
5671
|
# dead_letter_config: {
|
5668
5672
|
# target_arn: "ResourceArn",
|
5669
5673
|
# },
|
@@ -67,15 +67,17 @@ 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 |
|
75
77
|
#
|
76
78
|
module Waiters
|
77
79
|
|
78
|
-
# Waits for the function's State to be Active.
|
80
|
+
# Waits for the function's State to be Active. This waiter uses GetFunctionConfiguration API. This should be used after new function creation.
|
79
81
|
class FunctionActive
|
80
82
|
|
81
83
|
# @param [Hash] options
|
@@ -126,6 +128,57 @@ module Aws::Lambda
|
|
126
128
|
|
127
129
|
end
|
128
130
|
|
131
|
+
# Waits for the function's State to be Active. This waiter uses GetFunction API. This should be used after new function creation.
|
132
|
+
class FunctionActiveV2
|
133
|
+
|
134
|
+
# @param [Hash] options
|
135
|
+
# @option options [required, Client] :client
|
136
|
+
# @option options [Integer] :max_attempts (300)
|
137
|
+
# @option options [Integer] :delay (1)
|
138
|
+
# @option options [Proc] :before_attempt
|
139
|
+
# @option options [Proc] :before_wait
|
140
|
+
def initialize(options)
|
141
|
+
@client = options.fetch(:client)
|
142
|
+
@waiter = Aws::Waiters::Waiter.new({
|
143
|
+
max_attempts: 300,
|
144
|
+
delay: 1,
|
145
|
+
poller: Aws::Waiters::Poller.new(
|
146
|
+
operation_name: :get_function,
|
147
|
+
acceptors: [
|
148
|
+
{
|
149
|
+
"state" => "success",
|
150
|
+
"matcher" => "path",
|
151
|
+
"argument" => "configuration.state",
|
152
|
+
"expected" => "Active"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"state" => "failure",
|
156
|
+
"matcher" => "path",
|
157
|
+
"argument" => "configuration.state",
|
158
|
+
"expected" => "Failed"
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"state" => "retry",
|
162
|
+
"matcher" => "path",
|
163
|
+
"argument" => "configuration.state",
|
164
|
+
"expected" => "Pending"
|
165
|
+
}
|
166
|
+
]
|
167
|
+
)
|
168
|
+
}.merge(options))
|
169
|
+
end
|
170
|
+
|
171
|
+
# @option (see Client#get_function)
|
172
|
+
# @return (see Client#get_function)
|
173
|
+
def wait(params = {})
|
174
|
+
@waiter.wait(client: @client, params: params)
|
175
|
+
end
|
176
|
+
|
177
|
+
# @api private
|
178
|
+
attr_reader :waiter
|
179
|
+
|
180
|
+
end
|
181
|
+
|
129
182
|
class FunctionExists
|
130
183
|
|
131
184
|
# @param [Hash] options
|
@@ -168,7 +221,7 @@ module Aws::Lambda
|
|
168
221
|
|
169
222
|
end
|
170
223
|
|
171
|
-
# Waits for the function's LastUpdateStatus to be Successful.
|
224
|
+
# Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunctionConfiguration API. This should be used after function updates.
|
172
225
|
class FunctionUpdated
|
173
226
|
|
174
227
|
# @param [Hash] options
|
@@ -218,5 +271,56 @@ module Aws::Lambda
|
|
218
271
|
attr_reader :waiter
|
219
272
|
|
220
273
|
end
|
274
|
+
|
275
|
+
# Waits for the function's LastUpdateStatus to be Successful. This waiter uses GetFunction API. This should be used after function updates.
|
276
|
+
class FunctionUpdatedV2
|
277
|
+
|
278
|
+
# @param [Hash] options
|
279
|
+
# @option options [required, Client] :client
|
280
|
+
# @option options [Integer] :max_attempts (300)
|
281
|
+
# @option options [Integer] :delay (1)
|
282
|
+
# @option options [Proc] :before_attempt
|
283
|
+
# @option options [Proc] :before_wait
|
284
|
+
def initialize(options)
|
285
|
+
@client = options.fetch(:client)
|
286
|
+
@waiter = Aws::Waiters::Waiter.new({
|
287
|
+
max_attempts: 300,
|
288
|
+
delay: 1,
|
289
|
+
poller: Aws::Waiters::Poller.new(
|
290
|
+
operation_name: :get_function,
|
291
|
+
acceptors: [
|
292
|
+
{
|
293
|
+
"state" => "success",
|
294
|
+
"matcher" => "path",
|
295
|
+
"argument" => "configuration.last_update_status",
|
296
|
+
"expected" => "Successful"
|
297
|
+
},
|
298
|
+
{
|
299
|
+
"state" => "failure",
|
300
|
+
"matcher" => "path",
|
301
|
+
"argument" => "configuration.last_update_status",
|
302
|
+
"expected" => "Failed"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"state" => "retry",
|
306
|
+
"matcher" => "path",
|
307
|
+
"argument" => "configuration.last_update_status",
|
308
|
+
"expected" => "InProgress"
|
309
|
+
}
|
310
|
+
]
|
311
|
+
)
|
312
|
+
}.merge(options))
|
313
|
+
end
|
314
|
+
|
315
|
+
# @option (see Client#get_function)
|
316
|
+
# @return (see Client#get_function)
|
317
|
+
def wait(params = {})
|
318
|
+
@waiter.wait(client: @client, params: params)
|
319
|
+
end
|
320
|
+
|
321
|
+
# @api private
|
322
|
+
attr_reader :waiter
|
323
|
+
|
324
|
+
end
|
221
325
|
end
|
222
326
|
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.79.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: 2022-02-23 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.126.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.126.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|