aws-sdk-lambda 1.78.0 → 1.81.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae0cf84f03d7e0a488b1147562509e3ff31cb49b5acede6df6777202fedb7170
4
- data.tar.gz: 2e680376ade400c263cfdc7595a6ff0128a0adca8332c20d8f4520650a5d747e
3
+ metadata.gz: cbf59df8bb6ab3666f3d34cb78b5dddec8124414d09814709c7178788e769c1f
4
+ data.tar.gz: 9f87dcc69f1a2935ba755481b129cccd3a2a217a5b51b35b76228fb691d7c6f1
5
5
  SHA512:
6
- metadata.gz: 341d16c71196455760f065a3f0cb13a27559ccd013867c89da7107b12d056a9dbcbe6903ff8da6e64392b6ad6bc5dbe2f717e01d8134b99fe5e39289281ab193
7
- data.tar.gz: db5c42306c9363a0f99f9dea1dc2c53786033f76be547442253ada59bc475aa316400bbbfac1848348dee611d4f7051ac711b59f9ca6ede758b67b5c390baacc
6
+ metadata.gz: fedfc4453b4be2e63cdc6b8340bb8435544a7b263aa100dbc31dd170eabc22b43effee24f5aab9f24edbc5270a4c88ce49b592236fb28fdb4543db625a8018c5
7
+ data.tar.gz: 975b04e9066c91b8ad57c13350356795f0968e0d15e56aac24bb0dd5ec4c2cfbde476800d76fdffd81bb1aa1ac6ed3823f92dca611b0c12d71cc04f1b1cf1fc4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.81.0 (2022-03-11)
5
+ ------------------
6
+
7
+ * Feature - Adds PrincipalOrgID support to AddPermission API. Customers can use it to manage permissions to lambda functions at AWS Organizations level.
8
+
9
+ 1.80.0 (2022-02-24)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.79.0 (2022-02-23)
15
+ ------------------
16
+
17
+ * Feature - Lambda releases .NET 6 managed runtime to be available in all commercial regions.
18
+
4
19
  1.78.0 (2022-02-03)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.78.0
1
+ 1.81.0
@@ -27,6 +27,7 @@ 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'
31
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
32
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
@@ -75,6 +76,7 @@ module Aws::Lambda
75
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
77
  add_plugin(Aws::Plugins::TransferEncoding)
77
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
78
80
  add_plugin(Aws::Plugins::DefaultsMode)
79
81
  add_plugin(Aws::Plugins::RecursionDetection)
80
82
  add_plugin(Aws::Plugins::SignatureV4)
@@ -422,21 +424,23 @@ module Aws::Lambda
422
424
  req.send_request(options)
423
425
  end
424
426
 
425
- # Grants an Amazon Web Services service or another account permission to
426
- # use a function. You can apply the policy at the function level, or
427
- # specify a qualifier to restrict access to a single version or alias.
428
- # If you use a qualifier, the invoker must use the full Amazon Resource
429
- # Name (ARN) of that version or alias to invoke the function. Note:
430
- # Lambda does not support adding policies to version $LATEST.
427
+ # Grants an Amazon Web Services service, account, or organization
428
+ # permission to use a function. You can apply the policy at the function
429
+ # level, or specify a qualifier to restrict access to a single version
430
+ # or alias. If you use a qualifier, the invoker must use the full Amazon
431
+ # Resource Name (ARN) of that version or alias to invoke the function.
432
+ # Note: Lambda does not support adding policies to version $LATEST.
431
433
  #
432
434
  # To grant permission to another account, specify the account ID as the
433
- # `Principal`. For Amazon Web Services services, the principal is a
434
- # domain-style identifier defined by the service, like
435
- # `s3.amazonaws.com` or `sns.amazonaws.com`. For Amazon Web Services
436
- # services, you can also specify the ARN of the associated resource as
437
- # the `SourceArn`. If you grant permission to a service principal
438
- # without specifying the source, other accounts could potentially
439
- # configure resources in their account to invoke your Lambda function.
435
+ # `Principal`. To grant permission to an organization defined in
436
+ # Organizations, specify the organization ID as the `PrincipalOrgID`.
437
+ # For Amazon Web Services services, the principal is a domain-style
438
+ # identifier defined by the service, like `s3.amazonaws.com` or
439
+ # `sns.amazonaws.com`. For Amazon Web Services services, you can also
440
+ # specify the ARN of the associated resource as the `SourceArn`. If you
441
+ # grant permission to a service principal without specifying the source,
442
+ # other accounts could potentially configure resources in their account
443
+ # to invoke your Lambda function.
440
444
  #
441
445
  # This action adds a statement to a resource-based permissions policy
442
446
  # for the function. For more information about function policies, see
@@ -503,6 +507,11 @@ module Aws::Lambda
503
507
  # specified. Use this option to avoid modifying a policy that has
504
508
  # changed since you last read it.
505
509
  #
510
+ # @option params [String] :principal_org_id
511
+ # The identifier for your organization in Organizations. Use this to
512
+ # grant permissions to all the Amazon Web Services accounts under this
513
+ # organization.
514
+ #
506
515
  # @return [Types::AddPermissionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
507
516
  #
508
517
  # * {Types::AddPermissionResponse#statement #statement} => String
@@ -519,6 +528,7 @@ module Aws::Lambda
519
528
  # event_source_token: "EventSourceToken",
520
529
  # qualifier: "Qualifier",
521
530
  # revision_id: "String",
531
+ # principal_org_id: "PrincipalOrgID",
522
532
  # })
523
533
  #
524
534
  # @example Response structure
@@ -1238,7 +1248,7 @@ module Aws::Lambda
1238
1248
  #
1239
1249
  # resp = client.create_function({
1240
1250
  # function_name: "FunctionName", # required
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, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
1251
+ # 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
1242
1252
  # role: "RoleArn", # required
1243
1253
  # handler: "Handler",
1244
1254
  # code: { # required
@@ -1292,7 +1302,7 @@ module Aws::Lambda
1292
1302
  #
1293
1303
  # resp.function_name #=> String
1294
1304
  # resp.function_arn #=> String
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", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
1305
+ # 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"
1296
1306
  # resp.role #=> String
1297
1307
  # resp.handler #=> String
1298
1308
  # resp.code_size #=> Integer
@@ -1986,7 +1996,7 @@ module Aws::Lambda
1986
1996
  #
1987
1997
  # resp.configuration.function_name #=> String
1988
1998
  # resp.configuration.function_arn #=> String
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", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
1999
+ # 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"
1990
2000
  # resp.configuration.role #=> String
1991
2001
  # resp.configuration.handler #=> String
1992
2002
  # resp.configuration.code_size #=> Integer
@@ -2047,7 +2057,9 @@ module Aws::Lambda
2047
2057
  #
2048
2058
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2049
2059
  #
2060
+ # * function_active_v2
2050
2061
  # * function_exists
2062
+ # * function_updated_v2
2051
2063
  #
2052
2064
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction AWS API Documentation
2053
2065
  #
@@ -2216,7 +2228,7 @@ module Aws::Lambda
2216
2228
  #
2217
2229
  # resp.function_name #=> String
2218
2230
  # resp.function_arn #=> String
2219
- # 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"
2231
+ # 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"
2220
2232
  # resp.role #=> String
2221
2233
  # resp.handler #=> String
2222
2234
  # resp.code_size #=> Integer
@@ -2386,7 +2398,7 @@ module Aws::Lambda
2386
2398
  # resp.created_date #=> Time
2387
2399
  # resp.version #=> Integer
2388
2400
  # resp.compatible_runtimes #=> Array
2389
- # 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"
2401
+ # 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"
2390
2402
  # resp.license_info #=> String
2391
2403
  # resp.compatible_architectures #=> Array
2392
2404
  # resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
@@ -2441,7 +2453,7 @@ module Aws::Lambda
2441
2453
  # resp.created_date #=> Time
2442
2454
  # resp.version #=> Integer
2443
2455
  # resp.compatible_runtimes #=> Array
2444
- # 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"
2456
+ # 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"
2445
2457
  # resp.license_info #=> String
2446
2458
  # resp.compatible_architectures #=> Array
2447
2459
  # resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
@@ -3127,7 +3139,7 @@ module Aws::Lambda
3127
3139
  # resp.functions #=> Array
3128
3140
  # resp.functions[0].function_name #=> String
3129
3141
  # resp.functions[0].function_arn #=> String
3130
- # 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"
3142
+ # 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"
3131
3143
  # resp.functions[0].role #=> String
3132
3144
  # resp.functions[0].handler #=> String
3133
3145
  # resp.functions[0].code_size #=> Integer
@@ -3271,7 +3283,7 @@ module Aws::Lambda
3271
3283
  # @example Request syntax with placeholder values
3272
3284
  #
3273
3285
  # resp = client.list_layer_versions({
3274
- # 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
3286
+ # 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
3275
3287
  # layer_name: "LayerName", # required
3276
3288
  # marker: "String",
3277
3289
  # max_items: 1,
@@ -3287,7 +3299,7 @@ module Aws::Lambda
3287
3299
  # resp.layer_versions[0].description #=> String
3288
3300
  # resp.layer_versions[0].created_date #=> Time
3289
3301
  # resp.layer_versions[0].compatible_runtimes #=> Array
3290
- # 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"
3302
+ # 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"
3291
3303
  # resp.layer_versions[0].license_info #=> String
3292
3304
  # resp.layer_versions[0].compatible_architectures #=> Array
3293
3305
  # resp.layer_versions[0].compatible_architectures[0] #=> String, one of "x86_64", "arm64"
@@ -3339,7 +3351,7 @@ module Aws::Lambda
3339
3351
  # @example Request syntax with placeholder values
3340
3352
  #
3341
3353
  # resp = client.list_layers({
3342
- # 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
3354
+ # 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
3343
3355
  # marker: "String",
3344
3356
  # max_items: 1,
3345
3357
  # compatible_architecture: "x86_64", # accepts x86_64, arm64
@@ -3356,7 +3368,7 @@ module Aws::Lambda
3356
3368
  # resp.layers[0].latest_matching_version.description #=> String
3357
3369
  # resp.layers[0].latest_matching_version.created_date #=> Time
3358
3370
  # resp.layers[0].latest_matching_version.compatible_runtimes #=> Array
3359
- # 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"
3371
+ # 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"
3360
3372
  # resp.layers[0].latest_matching_version.license_info #=> String
3361
3373
  # resp.layers[0].latest_matching_version.compatible_architectures #=> Array
3362
3374
  # resp.layers[0].latest_matching_version.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
@@ -3518,7 +3530,7 @@ module Aws::Lambda
3518
3530
  # resp.versions #=> Array
3519
3531
  # resp.versions[0].function_name #=> String
3520
3532
  # resp.versions[0].function_arn #=> String
3521
- # 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"
3533
+ # 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"
3522
3534
  # resp.versions[0].role #=> String
3523
3535
  # resp.versions[0].handler #=> String
3524
3536
  # resp.versions[0].code_size #=> Integer
@@ -3650,7 +3662,7 @@ module Aws::Lambda
3650
3662
  # s3_object_version: "S3ObjectVersion",
3651
3663
  # zip_file: "data",
3652
3664
  # },
3653
- # 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
3665
+ # 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
3654
3666
  # license_info: "LicenseInfo",
3655
3667
  # compatible_architectures: ["x86_64"], # accepts x86_64, arm64
3656
3668
  # })
@@ -3668,7 +3680,7 @@ module Aws::Lambda
3668
3680
  # resp.created_date #=> Time
3669
3681
  # resp.version #=> Integer
3670
3682
  # resp.compatible_runtimes #=> Array
3671
- # 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"
3683
+ # 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"
3672
3684
  # resp.license_info #=> String
3673
3685
  # resp.compatible_architectures #=> Array
3674
3686
  # resp.compatible_architectures[0] #=> String, one of "x86_64", "arm64"
@@ -3777,7 +3789,7 @@ module Aws::Lambda
3777
3789
  #
3778
3790
  # resp.function_name #=> String
3779
3791
  # resp.function_arn #=> String
3780
- # 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"
3792
+ # 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"
3781
3793
  # resp.role #=> String
3782
3794
  # resp.handler #=> String
3783
3795
  # resp.code_size #=> Integer
@@ -4689,6 +4701,18 @@ module Aws::Lambda
4689
4701
  # function, the code package must be signed by a trusted publisher. For
4690
4702
  # more information, see [Configuring code signing][1].
4691
4703
  #
4704
+ # If the function's package type is `Image`, you must specify the code
4705
+ # package in `ImageUri` as the URI of a [container image][2] in the
4706
+ # Amazon ECR registry.
4707
+ #
4708
+ # If the function's package type is `Zip`, you must specify the
4709
+ # deployment package as a [.zip file archive][3]. Enter the Amazon S3
4710
+ # bucket and key of the code .zip file location. You can also provide
4711
+ # the function code inline using the `ZipFile` field.
4712
+ #
4713
+ # The code in the deployment package must be compatible with the target
4714
+ # instruction set architecture of the function (`x86-64` or `arm64`).
4715
+ #
4692
4716
  # The function's code is locked when you publish a version. You can't
4693
4717
  # modify the code of a published version, only the unpublished version.
4694
4718
  #
@@ -4701,6 +4725,8 @@ module Aws::Lambda
4701
4725
  #
4702
4726
  #
4703
4727
  # [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-trustedcode.html
4728
+ # [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html
4729
+ # [3]: https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html#gettingstarted-package-zip
4704
4730
  #
4705
4731
  # @option params [required, String] :function_name
4706
4732
  # The name of the Lambda function.
@@ -4720,22 +4746,26 @@ module Aws::Lambda
4720
4746
  # @option params [String, StringIO, File] :zip_file
4721
4747
  # The base64-encoded contents of the deployment package. Amazon Web
4722
4748
  # Services SDK and Amazon Web Services CLI clients handle the encoding
4723
- # for you.
4749
+ # for you. Use only with a function defined with a .zip file archive
4750
+ # deployment package.
4724
4751
  #
4725
4752
  # @option params [String] :s3_bucket
4726
4753
  # An Amazon S3 bucket in the same Amazon Web Services Region as your
4727
4754
  # function. The bucket can be in a different Amazon Web Services
4728
- # account.
4755
+ # account. Use only with a function defined with a .zip file archive
4756
+ # deployment package.
4729
4757
  #
4730
4758
  # @option params [String] :s3_key
4731
- # The Amazon S3 key of the deployment package.
4759
+ # The Amazon S3 key of the deployment package. Use only with a function
4760
+ # defined with a .zip file archive deployment package.
4732
4761
  #
4733
4762
  # @option params [String] :s3_object_version
4734
4763
  # For versioned objects, the version of the deployment package object to
4735
4764
  # use.
4736
4765
  #
4737
4766
  # @option params [String] :image_uri
4738
- # URI of a container image in the Amazon ECR registry.
4767
+ # URI of a container image in the Amazon ECR registry. Do not use for a
4768
+ # function defined with a .zip file archive.
4739
4769
  #
4740
4770
  # @option params [Boolean] :publish
4741
4771
  # Set to true to publish a new version of the function after updating
@@ -4810,7 +4840,7 @@ module Aws::Lambda
4810
4840
  #
4811
4841
  # resp.function_name #=> String
4812
4842
  # resp.function_arn #=> String
4813
- # 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"
4843
+ # 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"
4814
4844
  # resp.role #=> String
4815
4845
  # resp.handler #=> String
4816
4846
  # resp.code_size #=> Integer
@@ -5067,7 +5097,7 @@ module Aws::Lambda
5067
5097
  # "EnvironmentVariableName" => "EnvironmentVariableValue",
5068
5098
  # },
5069
5099
  # },
5070
- # 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
5100
+ # 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
5071
5101
  # dead_letter_config: {
5072
5102
  # target_arn: "ResourceArn",
5073
5103
  # },
@@ -5094,7 +5124,7 @@ module Aws::Lambda
5094
5124
  #
5095
5125
  # resp.function_name #=> String
5096
5126
  # resp.function_arn #=> String
5097
- # 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"
5127
+ # 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"
5098
5128
  # resp.role #=> String
5099
5129
  # resp.handler #=> String
5100
5130
  # resp.code_size #=> Integer
@@ -5258,7 +5288,7 @@ module Aws::Lambda
5258
5288
  params: params,
5259
5289
  config: config)
5260
5290
  context[:gem_name] = 'aws-sdk-lambda'
5261
- context[:gem_version] = '1.78.0'
5291
+ context[:gem_version] = '1.81.0'
5262
5292
  Seahorse::Client::Request.new(handlers, context)
5263
5293
  end
5264
5294
 
@@ -5324,11 +5354,13 @@ module Aws::Lambda
5324
5354
  # The following table lists the valid waiter names, the operations they call,
5325
5355
  # and the default `:delay` and `:max_attempts` values.
5326
5356
  #
5327
- # | waiter_name | params | :delay | :max_attempts |
5328
- # | ---------------- | ----------------------------------- | -------- | ------------- |
5329
- # | function_active | {Client#get_function_configuration} | 5 | 60 |
5330
- # | function_exists | {Client#get_function} | 1 | 20 |
5331
- # | function_updated | {Client#get_function_configuration} | 5 | 60 |
5357
+ # | waiter_name | params | :delay | :max_attempts |
5358
+ # | ------------------- | ----------------------------------- | -------- | ------------- |
5359
+ # | function_active | {Client#get_function_configuration} | 5 | 60 |
5360
+ # | function_active_v2 | {Client#get_function} | 1 | 300 |
5361
+ # | function_exists | {Client#get_function} | 1 | 20 |
5362
+ # | function_updated | {Client#get_function_configuration} | 5 | 60 |
5363
+ # | function_updated_v2 | {Client#get_function} | 1 | 300 |
5332
5364
  #
5333
5365
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
5334
5366
  # because the waiter has entered a state that it will not transition
@@ -5380,8 +5412,10 @@ module Aws::Lambda
5380
5412
  def waiters
5381
5413
  {
5382
5414
  function_active: Waiters::FunctionActive,
5415
+ function_active_v2: Waiters::FunctionActiveV2,
5383
5416
  function_exists: Waiters::FunctionExists,
5384
- function_updated: Waiters::FunctionUpdated
5417
+ function_updated: Waiters::FunctionUpdated,
5418
+ function_updated_v2: Waiters::FunctionUpdatedV2
5385
5419
  }
5386
5420
  end
5387
5421
 
@@ -223,6 +223,7 @@ module Aws::Lambda
223
223
  PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger')
224
224
  PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
225
225
  Principal = Shapes::StringShape.new(name: 'Principal')
226
+ PrincipalOrgID = Shapes::StringShape.new(name: 'PrincipalOrgID')
226
227
  ProvisionedConcurrencyConfigList = Shapes::ListShape.new(name: 'ProvisionedConcurrencyConfigList')
227
228
  ProvisionedConcurrencyConfigListItem = Shapes::StructureShape.new(name: 'ProvisionedConcurrencyConfigListItem')
228
229
  ProvisionedConcurrencyConfigNotFoundException = Shapes::StructureShape.new(name: 'ProvisionedConcurrencyConfigNotFoundException')
@@ -338,6 +339,7 @@ module Aws::Lambda
338
339
  AddPermissionRequest.add_member(:event_source_token, Shapes::ShapeRef.new(shape: EventSourceToken, location_name: "EventSourceToken"))
339
340
  AddPermissionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
340
341
  AddPermissionRequest.add_member(:revision_id, Shapes::ShapeRef.new(shape: String, location_name: "RevisionId"))
342
+ AddPermissionRequest.add_member(:principal_org_id, Shapes::ShapeRef.new(shape: PrincipalOrgID, location_name: "PrincipalOrgID"))
341
343
  AddPermissionRequest.struct_class = Types::AddPermissionRequest
342
344
 
343
345
  AddPermissionResponse.add_member(:statement, Shapes::ShapeRef.new(shape: String, location_name: "Statement"))
@@ -164,6 +164,7 @@ module Aws::Lambda
164
164
  # event_source_token: "EventSourceToken",
165
165
  # qualifier: "Qualifier",
166
166
  # revision_id: "String",
167
+ # principal_org_id: "PrincipalOrgID",
167
168
  # }
168
169
  #
169
170
  # @!attribute [rw] function_name
@@ -233,6 +234,12 @@ module Aws::Lambda
233
234
  # changed since you last read it.
234
235
  # @return [String]
235
236
  #
237
+ # @!attribute [rw] principal_org_id
238
+ # The identifier for your organization in Organizations. Use this to
239
+ # grant permissions to all the Amazon Web Services accounts under this
240
+ # organization.
241
+ # @return [String]
242
+ #
236
243
  # @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/AddPermissionRequest AWS API Documentation
237
244
  #
238
245
  class AddPermissionRequest < Struct.new(
@@ -244,7 +251,8 @@ module Aws::Lambda
244
251
  :source_account,
245
252
  :event_source_token,
246
253
  :qualifier,
247
- :revision_id)
254
+ :revision_id,
255
+ :principal_org_id)
248
256
  SENSITIVE = []
249
257
  include Aws::Structure
250
258
  end
@@ -846,7 +854,7 @@ module Aws::Lambda
846
854
  #
847
855
  # {
848
856
  # 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
857
+ # 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
858
  # role: "RoleArn", # required
851
859
  # handler: "Handler",
852
860
  # code: { # required
@@ -3906,7 +3914,7 @@ module Aws::Lambda
3906
3914
  # data as a hash:
3907
3915
  #
3908
3916
  # {
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
3917
+ # 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
3918
  # layer_name: "LayerName", # required
3911
3919
  # marker: "String",
3912
3920
  # max_items: 1,
@@ -3971,7 +3979,7 @@ module Aws::Lambda
3971
3979
  # data as a hash:
3972
3980
  #
3973
3981
  # {
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
3982
+ # 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
3983
  # marker: "String",
3976
3984
  # max_items: 1,
3977
3985
  # compatible_architecture: "x86_64", # accepts x86_64, arm64
@@ -4346,7 +4354,7 @@ module Aws::Lambda
4346
4354
  # s3_object_version: "S3ObjectVersion",
4347
4355
  # zip_file: "data",
4348
4356
  # },
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
4357
+ # 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
4358
  # license_info: "LicenseInfo",
4351
4359
  # compatible_architectures: ["x86_64"], # accepts x86_64, arm64
4352
4360
  # }
@@ -5582,17 +5590,20 @@ module Aws::Lambda
5582
5590
  # @!attribute [rw] zip_file
5583
5591
  # The base64-encoded contents of the deployment package. Amazon Web
5584
5592
  # Services SDK and Amazon Web Services CLI clients handle the encoding
5585
- # for you.
5593
+ # for you. Use only with a function defined with a .zip file archive
5594
+ # deployment package.
5586
5595
  # @return [String]
5587
5596
  #
5588
5597
  # @!attribute [rw] s3_bucket
5589
5598
  # An Amazon S3 bucket in the same Amazon Web Services Region as your
5590
5599
  # function. The bucket can be in a different Amazon Web Services
5591
- # account.
5600
+ # account. Use only with a function defined with a .zip file archive
5601
+ # deployment package.
5592
5602
  # @return [String]
5593
5603
  #
5594
5604
  # @!attribute [rw] s3_key
5595
- # The Amazon S3 key of the deployment package.
5605
+ # The Amazon S3 key of the deployment package. Use only with a
5606
+ # function defined with a .zip file archive deployment package.
5596
5607
  # @return [String]
5597
5608
  #
5598
5609
  # @!attribute [rw] s3_object_version
@@ -5601,7 +5612,8 @@ module Aws::Lambda
5601
5612
  # @return [String]
5602
5613
  #
5603
5614
  # @!attribute [rw] image_uri
5604
- # URI of a container image in the Amazon ECR registry.
5615
+ # URI of a container image in the Amazon ECR registry. Do not use for
5616
+ # a function defined with a .zip file archive.
5605
5617
  # @return [String]
5606
5618
  #
5607
5619
  # @!attribute [rw] publish
@@ -5663,7 +5675,7 @@ module Aws::Lambda
5663
5675
  # "EnvironmentVariableName" => "EnvironmentVariableValue",
5664
5676
  # },
5665
5677
  # },
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
5678
+ # 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
5679
  # dead_letter_config: {
5668
5680
  # target_arn: "ResourceArn",
5669
5681
  # },
@@ -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 | params | :delay | :max_attempts |
71
- # | ---------------- | ----------------------------------- | -------- | ------------- |
72
- # | function_active | {Client#get_function_configuration} | 5 | 60 |
73
- # | function_exists | {Client#get_function} | 1 | 20 |
74
- # | function_updated | {Client#get_function_configuration} | 5 | 60 |
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
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-lambda/customizations'
49
49
  # @!group service
50
50
  module Aws::Lambda
51
51
 
52
- GEM_VERSION = '1.78.0'
52
+ GEM_VERSION = '1.81.0'
53
53
 
54
54
  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.78.0
4
+ version: 1.81.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-03 00:00:00.000000000 Z
11
+ date: 2022-03-11 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.126.0
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.126.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement