aws-sdk-lambda 1.77.0 → 1.80.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 +57 -29
- 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: 61b0784a5e3ac354aa2bc8c89559de340c0df2922890087a8fb2c563cc5c1aa8
|
|
4
|
+
data.tar.gz: 340292b3ded20355b8b374fa87d436a5ef1943225509fe990a19f9cae5452247
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41c9c8e3f18beae94d3c09868a9bcd6f2f396d808e3d0e5707a159b0fd686a6932262d4faa5d6896344b70e512f195576e4a6bd2ccfbcab9c1b9b9706a0fd6e0
|
|
7
|
+
data.tar.gz: e2f14ab4cb90abc53b29f68e13ff4343e71fcf98b551062de966c7f23414b99a7c2f456d3da63788412d91d644cc10d79883c60b180892b380ad95028e530b0a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.80.0 (2022-02-24)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
8
|
+
|
|
9
|
+
1.79.0 (2022-02-23)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Lambda releases .NET 6 managed runtime to be available in all commercial regions.
|
|
13
|
+
|
|
14
|
+
1.78.0 (2022-02-03)
|
|
15
|
+
------------------
|
|
16
|
+
|
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
18
|
+
|
|
4
19
|
1.77.0 (2021-12-21)
|
|
5
20
|
------------------
|
|
6
21
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.80.0
|
|
@@ -27,7 +27,9 @@ 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/checksum_algorithm.rb'
|
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
|
32
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
|
31
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
|
32
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
33
35
|
|
|
@@ -74,7 +76,9 @@ module Aws::Lambda
|
|
|
74
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
75
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
|
76
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
|
79
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
|
77
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
|
81
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
|
78
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
|
79
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
|
80
84
|
|
|
@@ -1236,7 +1240,7 @@ module Aws::Lambda
|
|
|
1236
1240
|
#
|
|
1237
1241
|
# resp = client.create_function({
|
|
1238
1242
|
# function_name: "FunctionName", # required
|
|
1239
|
-
# 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
|
|
1243
|
+
# 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
|
|
1240
1244
|
# role: "RoleArn", # required
|
|
1241
1245
|
# handler: "Handler",
|
|
1242
1246
|
# code: { # required
|
|
@@ -1290,7 +1294,7 @@ module Aws::Lambda
|
|
|
1290
1294
|
#
|
|
1291
1295
|
# resp.function_name #=> String
|
|
1292
1296
|
# resp.function_arn #=> String
|
|
1293
|
-
# 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"
|
|
1297
|
+
# 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"
|
|
1294
1298
|
# resp.role #=> String
|
|
1295
1299
|
# resp.handler #=> String
|
|
1296
1300
|
# resp.code_size #=> Integer
|
|
@@ -1984,7 +1988,7 @@ module Aws::Lambda
|
|
|
1984
1988
|
#
|
|
1985
1989
|
# resp.configuration.function_name #=> String
|
|
1986
1990
|
# resp.configuration.function_arn #=> String
|
|
1987
|
-
# 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"
|
|
1991
|
+
# 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"
|
|
1988
1992
|
# resp.configuration.role #=> String
|
|
1989
1993
|
# resp.configuration.handler #=> String
|
|
1990
1994
|
# resp.configuration.code_size #=> Integer
|
|
@@ -2045,7 +2049,9 @@ module Aws::Lambda
|
|
|
2045
2049
|
#
|
|
2046
2050
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
|
2047
2051
|
#
|
|
2052
|
+
# * function_active_v2
|
|
2048
2053
|
# * function_exists
|
|
2054
|
+
# * function_updated_v2
|
|
2049
2055
|
#
|
|
2050
2056
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction AWS API Documentation
|
|
2051
2057
|
#
|
|
@@ -2214,7 +2220,7 @@ module Aws::Lambda
|
|
|
2214
2220
|
#
|
|
2215
2221
|
# resp.function_name #=> String
|
|
2216
2222
|
# resp.function_arn #=> String
|
|
2217
|
-
# 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"
|
|
2223
|
+
# 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"
|
|
2218
2224
|
# resp.role #=> String
|
|
2219
2225
|
# resp.handler #=> String
|
|
2220
2226
|
# resp.code_size #=> Integer
|
|
@@ -2384,7 +2390,7 @@ module Aws::Lambda
|
|
|
2384
2390
|
# resp.created_date #=> Time
|
|
2385
2391
|
# resp.version #=> Integer
|
|
2386
2392
|
# resp.compatible_runtimes #=> Array
|
|
2387
|
-
# 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"
|
|
2393
|
+
# 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"
|
|
2388
2394
|
# resp.license_info #=> String
|
|
2389
2395
|
# resp.compatible_architectures #=> Array
|
|
2390
2396
|
# resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
|
|
@@ -2439,7 +2445,7 @@ module Aws::Lambda
|
|
|
2439
2445
|
# resp.created_date #=> Time
|
|
2440
2446
|
# resp.version #=> Integer
|
|
2441
2447
|
# resp.compatible_runtimes #=> Array
|
|
2442
|
-
# 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"
|
|
2448
|
+
# 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"
|
|
2443
2449
|
# resp.license_info #=> String
|
|
2444
2450
|
# resp.compatible_architectures #=> Array
|
|
2445
2451
|
# resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
|
|
@@ -3125,7 +3131,7 @@ module Aws::Lambda
|
|
|
3125
3131
|
# resp.functions #=> Array
|
|
3126
3132
|
# resp.functions[0].function_name #=> String
|
|
3127
3133
|
# resp.functions[0].function_arn #=> String
|
|
3128
|
-
# 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"
|
|
3134
|
+
# 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"
|
|
3129
3135
|
# resp.functions[0].role #=> String
|
|
3130
3136
|
# resp.functions[0].handler #=> String
|
|
3131
3137
|
# resp.functions[0].code_size #=> Integer
|
|
@@ -3269,7 +3275,7 @@ module Aws::Lambda
|
|
|
3269
3275
|
# @example Request syntax with placeholder values
|
|
3270
3276
|
#
|
|
3271
3277
|
# resp = client.list_layer_versions({
|
|
3272
|
-
# 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
|
|
3278
|
+
# 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
|
|
3273
3279
|
# layer_name: "LayerName", # required
|
|
3274
3280
|
# marker: "String",
|
|
3275
3281
|
# max_items: 1,
|
|
@@ -3285,7 +3291,7 @@ module Aws::Lambda
|
|
|
3285
3291
|
# resp.layer_versions[0].description #=> String
|
|
3286
3292
|
# resp.layer_versions[0].created_date #=> Time
|
|
3287
3293
|
# resp.layer_versions[0].compatible_runtimes #=> Array
|
|
3288
|
-
# 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"
|
|
3294
|
+
# 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"
|
|
3289
3295
|
# resp.layer_versions[0].license_info #=> String
|
|
3290
3296
|
# resp.layer_versions[0].compatible_architectures #=> Array
|
|
3291
3297
|
# resp.layer_versions[0].compatible_architectures[0] #=> String, one of "x86_64", "arm64"
|
|
@@ -3337,7 +3343,7 @@ module Aws::Lambda
|
|
|
3337
3343
|
# @example Request syntax with placeholder values
|
|
3338
3344
|
#
|
|
3339
3345
|
# resp = client.list_layers({
|
|
3340
|
-
# 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
|
|
3346
|
+
# 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
|
|
3341
3347
|
# marker: "String",
|
|
3342
3348
|
# max_items: 1,
|
|
3343
3349
|
# compatible_architecture: "x86_64", # accepts x86_64, arm64
|
|
@@ -3354,7 +3360,7 @@ module Aws::Lambda
|
|
|
3354
3360
|
# resp.layers[0].latest_matching_version.description #=> String
|
|
3355
3361
|
# resp.layers[0].latest_matching_version.created_date #=> Time
|
|
3356
3362
|
# resp.layers[0].latest_matching_version.compatible_runtimes #=> Array
|
|
3357
|
-
# 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"
|
|
3363
|
+
# 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"
|
|
3358
3364
|
# resp.layers[0].latest_matching_version.license_info #=> String
|
|
3359
3365
|
# resp.layers[0].latest_matching_version.compatible_architectures #=> Array
|
|
3360
3366
|
# resp.layers[0].latest_matching_version.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
|
|
@@ -3516,7 +3522,7 @@ module Aws::Lambda
|
|
|
3516
3522
|
# resp.versions #=> Array
|
|
3517
3523
|
# resp.versions[0].function_name #=> String
|
|
3518
3524
|
# resp.versions[0].function_arn #=> String
|
|
3519
|
-
# 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"
|
|
3525
|
+
# 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"
|
|
3520
3526
|
# resp.versions[0].role #=> String
|
|
3521
3527
|
# resp.versions[0].handler #=> String
|
|
3522
3528
|
# resp.versions[0].code_size #=> Integer
|
|
@@ -3648,7 +3654,7 @@ module Aws::Lambda
|
|
|
3648
3654
|
# s3_object_version: "S3ObjectVersion",
|
|
3649
3655
|
# zip_file: "data",
|
|
3650
3656
|
# },
|
|
3651
|
-
# 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
|
|
3657
|
+
# 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
|
|
3652
3658
|
# license_info: "LicenseInfo",
|
|
3653
3659
|
# compatible_architectures: ["x86_64"], # accepts x86_64, arm64
|
|
3654
3660
|
# })
|
|
@@ -3666,7 +3672,7 @@ module Aws::Lambda
|
|
|
3666
3672
|
# resp.created_date #=> Time
|
|
3667
3673
|
# resp.version #=> Integer
|
|
3668
3674
|
# resp.compatible_runtimes #=> Array
|
|
3669
|
-
# 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"
|
|
3675
|
+
# 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"
|
|
3670
3676
|
# resp.license_info #=> String
|
|
3671
3677
|
# resp.compatible_architectures #=> Array
|
|
3672
3678
|
# resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
|
|
@@ -3775,7 +3781,7 @@ module Aws::Lambda
|
|
|
3775
3781
|
#
|
|
3776
3782
|
# resp.function_name #=> String
|
|
3777
3783
|
# resp.function_arn #=> String
|
|
3778
|
-
# 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"
|
|
3784
|
+
# 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"
|
|
3779
3785
|
# resp.role #=> String
|
|
3780
3786
|
# resp.handler #=> String
|
|
3781
3787
|
# resp.code_size #=> Integer
|
|
@@ -4687,6 +4693,18 @@ module Aws::Lambda
|
|
|
4687
4693
|
# function, the code package must be signed by a trusted publisher. For
|
|
4688
4694
|
# more information, see [Configuring code signing][1].
|
|
4689
4695
|
#
|
|
4696
|
+
# If the function's package type is `Image`, you must specify the code
|
|
4697
|
+
# package in `ImageUri` as the URI of a [container image][2] in the
|
|
4698
|
+
# Amazon ECR registry.
|
|
4699
|
+
#
|
|
4700
|
+
# If the function's package type is `Zip`, you must specify the
|
|
4701
|
+
# deployment package as a [.zip file archive][3]. Enter the Amazon S3
|
|
4702
|
+
# bucket and key of the code .zip file location. You can also provide
|
|
4703
|
+
# the function code inline using the `ZipFile` field.
|
|
4704
|
+
#
|
|
4705
|
+
# The code in the deployment package must be compatible with the target
|
|
4706
|
+
# instruction set architecture of the function (`x86-64` or `arm64`).
|
|
4707
|
+
#
|
|
4690
4708
|
# The function's code is locked when you publish a version. You can't
|
|
4691
4709
|
# modify the code of a published version, only the unpublished version.
|
|
4692
4710
|
#
|
|
@@ -4699,6 +4717,8 @@ module Aws::Lambda
|
|
|
4699
4717
|
#
|
|
4700
4718
|
#
|
|
4701
4719
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html
|
|
4720
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html
|
|
4721
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip
|
|
4702
4722
|
#
|
|
4703
4723
|
# @option params [required, String] :function_name
|
|
4704
4724
|
# The name of the Lambda function.
|
|
@@ -4718,22 +4738,26 @@ module Aws::Lambda
|
|
|
4718
4738
|
# @option params [String, StringIO, File] :zip_file
|
|
4719
4739
|
# The base64-encoded contents of the deployment package. Amazon Web
|
|
4720
4740
|
# Services SDK and Amazon Web Services CLI clients handle the encoding
|
|
4721
|
-
# for you.
|
|
4741
|
+
# for you. Use only with a function defined with a .zip file archive
|
|
4742
|
+
# deployment package.
|
|
4722
4743
|
#
|
|
4723
4744
|
# @option params [String] :s3_bucket
|
|
4724
4745
|
# An Amazon S3 bucket in the same Amazon Web Services Region as your
|
|
4725
4746
|
# function. The bucket can be in a different Amazon Web Services
|
|
4726
|
-
# account.
|
|
4747
|
+
# account. Use only with a function defined with a .zip file archive
|
|
4748
|
+
# deployment package.
|
|
4727
4749
|
#
|
|
4728
4750
|
# @option params [String] :s3_key
|
|
4729
|
-
# The Amazon S3 key of the deployment package.
|
|
4751
|
+
# The Amazon S3 key of the deployment package. Use only with a function
|
|
4752
|
+
# defined with a .zip file archive deployment package.
|
|
4730
4753
|
#
|
|
4731
4754
|
# @option params [String] :s3_object_version
|
|
4732
4755
|
# For versioned objects, the version of the deployment package object to
|
|
4733
4756
|
# use.
|
|
4734
4757
|
#
|
|
4735
4758
|
# @option params [String] :image_uri
|
|
4736
|
-
# URI of a container image in the Amazon ECR registry.
|
|
4759
|
+
# URI of a container image in the Amazon ECR registry. Do not use for a
|
|
4760
|
+
# function defined with a .zip file archive.
|
|
4737
4761
|
#
|
|
4738
4762
|
# @option params [Boolean] :publish
|
|
4739
4763
|
# Set to true to publish a new version of the function after updating
|
|
@@ -4808,7 +4832,7 @@ module Aws::Lambda
|
|
|
4808
4832
|
#
|
|
4809
4833
|
# resp.function_name #=> String
|
|
4810
4834
|
# resp.function_arn #=> String
|
|
4811
|
-
# 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"
|
|
4835
|
+
# 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"
|
|
4812
4836
|
# resp.role #=> String
|
|
4813
4837
|
# resp.handler #=> String
|
|
4814
4838
|
# resp.code_size #=> Integer
|
|
@@ -5065,7 +5089,7 @@ module Aws::Lambda
|
|
|
5065
5089
|
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
|
5066
5090
|
# },
|
|
5067
5091
|
# },
|
|
5068
|
-
# 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
|
|
5092
|
+
# 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
|
|
5069
5093
|
# dead_letter_config: {
|
|
5070
5094
|
# target_arn: "ResourceArn",
|
|
5071
5095
|
# },
|
|
@@ -5092,7 +5116,7 @@ module Aws::Lambda
|
|
|
5092
5116
|
#
|
|
5093
5117
|
# resp.function_name #=> String
|
|
5094
5118
|
# resp.function_arn #=> String
|
|
5095
|
-
# 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"
|
|
5119
|
+
# 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"
|
|
5096
5120
|
# resp.role #=> String
|
|
5097
5121
|
# resp.handler #=> String
|
|
5098
5122
|
# resp.code_size #=> Integer
|
|
@@ -5256,7 +5280,7 @@ module Aws::Lambda
|
|
|
5256
5280
|
params: params,
|
|
5257
5281
|
config: config)
|
|
5258
5282
|
context[:gem_name] = 'aws-sdk-lambda'
|
|
5259
|
-
context[:gem_version] = '1.
|
|
5283
|
+
context[:gem_version] = '1.80.0'
|
|
5260
5284
|
Seahorse::Client::Request.new(handlers, context)
|
|
5261
5285
|
end
|
|
5262
5286
|
|
|
@@ -5322,11 +5346,13 @@ module Aws::Lambda
|
|
|
5322
5346
|
# The following table lists the valid waiter names, the operations they call,
|
|
5323
5347
|
# and the default `:delay` and `:max_attempts` values.
|
|
5324
5348
|
#
|
|
5325
|
-
# | waiter_name
|
|
5326
|
-
# |
|
|
5327
|
-
# | function_active
|
|
5328
|
-
# |
|
|
5329
|
-
# |
|
|
5349
|
+
# | waiter_name | params | :delay | :max_attempts |
|
|
5350
|
+
# | ------------------- | ----------------------------------- | -------- | ------------- |
|
|
5351
|
+
# | function_active | {Client#get_function_configuration} | 5 | 60 |
|
|
5352
|
+
# | function_active_v2 | {Client#get_function} | 1 | 300 |
|
|
5353
|
+
# | function_exists | {Client#get_function} | 1 | 20 |
|
|
5354
|
+
# | function_updated | {Client#get_function_configuration} | 5 | 60 |
|
|
5355
|
+
# | function_updated_v2 | {Client#get_function} | 1 | 300 |
|
|
5330
5356
|
#
|
|
5331
5357
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
|
5332
5358
|
# because the waiter has entered a state that it will not transition
|
|
@@ -5378,8 +5404,10 @@ module Aws::Lambda
|
|
|
5378
5404
|
def waiters
|
|
5379
5405
|
{
|
|
5380
5406
|
function_active: Waiters::FunctionActive,
|
|
5407
|
+
function_active_v2: Waiters::FunctionActiveV2,
|
|
5381
5408
|
function_exists: Waiters::FunctionExists,
|
|
5382
|
-
function_updated: Waiters::FunctionUpdated
|
|
5409
|
+
function_updated: Waiters::FunctionUpdated,
|
|
5410
|
+
function_updated_v2: Waiters::FunctionUpdatedV2
|
|
5383
5411
|
}
|
|
5384
5412
|
end
|
|
5385
5413
|
|
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.80.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-24 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.127.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.127.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: aws-sigv4
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|