aws-sdk-lambda 1.37.0 → 1.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lambda.rb +1 -1
- data/lib/aws-sdk-lambda/client.rb +84 -56
- data/lib/aws-sdk-lambda/resource.rb +1 -7
- data/lib/aws-sdk-lambda/types.rb +15 -18
- data/lib/aws-sdk-lambda/waiters.rb +63 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 104c2c8d13f900e96a45d52e746abe9688ded378
|
4
|
+
data.tar.gz: 3283d44dcf5309b89ad0a39649041fbf8017e03e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c43cd63091e74724acc1eecf13cf7583966188c3985c192744d614a3a7d9880cbfb34b1f3fd0f570c3e51b513ff2350882e0cf6e60abddc61b9dcc2590e8c49
|
7
|
+
data.tar.gz: 0c1a770dacabbe8a917c41ca729c4a9cbd336b98f2a07542adc202cc405239013f89594b8636f7b65113cf95b5cddb50ea84baff0baee891f893281eb787ac08
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:lambda)
|
|
32
32
|
module Aws::Lambda
|
33
33
|
# An API client for Lambda. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
34
|
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
35
|
+
# client = Aws::Lambda::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
40
|
#
|
41
41
|
# For details on configuring region and credentials see
|
42
42
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -229,15 +229,19 @@ module Aws::Lambda
|
|
229
229
|
#
|
230
230
|
# @option options [String] :retry_mode ("legacy")
|
231
231
|
# Specifies which retry algorithm to use. Values are:
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
241
245
|
#
|
242
246
|
# @option options [String] :secret_access_key
|
243
247
|
#
|
@@ -265,8 +269,7 @@ module Aws::Lambda
|
|
265
269
|
#
|
266
270
|
# @option options [Integer] :http_read_timeout (60) The default
|
267
271
|
# number of seconds to wait for response data. This value can
|
268
|
-
# safely be set
|
269
|
-
# per-request on the session yielded by {#session_for}.
|
272
|
+
# safely be set per-request on the session.
|
270
273
|
#
|
271
274
|
# @option options [Float] :http_idle_timeout (5) The number of
|
272
275
|
# seconds a connection is allowed to sit idle before it is
|
@@ -278,7 +281,7 @@ module Aws::Lambda
|
|
278
281
|
# request body. This option has no effect unless the request has
|
279
282
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
280
283
|
# disables this behaviour. This value can safely be set per
|
281
|
-
# request on the session
|
284
|
+
# request on the session.
|
282
285
|
#
|
283
286
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
284
287
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -383,11 +386,11 @@ module Aws::Lambda
|
|
383
386
|
# To grant permission to another account, specify the account ID as the
|
384
387
|
# `Principal`. For AWS services, the principal is a domain-style
|
385
388
|
# identifier defined by the service, like `s3.amazonaws.com` or
|
386
|
-
# `sns.amazonaws.com`. For AWS services, you can also specify the ARN
|
387
|
-
#
|
388
|
-
#
|
389
|
-
#
|
390
|
-
#
|
389
|
+
# `sns.amazonaws.com`. For AWS services, you can also specify the ARN of
|
390
|
+
# the associated resource as the `SourceArn`. If you grant permission to
|
391
|
+
# a service principal without specifying the source, other accounts
|
392
|
+
# could potentially configure resources in their account to invoke your
|
393
|
+
# Lambda function.
|
391
394
|
#
|
392
395
|
# This action adds a statement to a resource-based permissions policy
|
393
396
|
# for the function. For more information about function policies, see
|
@@ -432,12 +435,10 @@ module Aws::Lambda
|
|
432
435
|
# function. For example, an Amazon S3 bucket or Amazon SNS topic.
|
433
436
|
#
|
434
437
|
# @option params [String] :source_account
|
435
|
-
# For
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
439
|
-
# resource is owned by the specified account. For example, an Amazon S3
|
440
|
-
# bucket could be deleted by its owner and recreated by another account.
|
438
|
+
# For Amazon S3, the ID of the account that owns the resource. Use this
|
439
|
+
# together with `SourceArn` to ensure that the resource is owned by the
|
440
|
+
# specified account. It is possible for an Amazon S3 bucket to be
|
441
|
+
# deleted by its owner and recreated by another account.
|
441
442
|
#
|
442
443
|
# @option params [String] :event_source_token
|
443
444
|
# For Alexa Smart Home functions, a token that must be supplied by the
|
@@ -663,8 +664,8 @@ module Aws::Lambda
|
|
663
664
|
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
664
665
|
#
|
665
666
|
# @option params [Integer] :maximum_batching_window_in_seconds
|
666
|
-
# The maximum amount of time to gather records before invoking
|
667
|
-
# function, in seconds.
|
667
|
+
# (Streams) The maximum amount of time to gather records before invoking
|
668
|
+
# the function, in seconds.
|
668
669
|
#
|
669
670
|
# @option params [Integer] :parallelization_factor
|
670
671
|
# (Streams) The number of batches to process from each shard
|
@@ -982,7 +983,7 @@ module Aws::Lambda
|
|
982
983
|
#
|
983
984
|
# resp = client.create_function({
|
984
985
|
# function_name: "FunctionName", # required
|
985
|
-
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
986
|
+
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
986
987
|
# role: "RoleArn", # required
|
987
988
|
# handler: "Handler", # required
|
988
989
|
# code: { # required
|
@@ -1021,7 +1022,7 @@ module Aws::Lambda
|
|
1021
1022
|
#
|
1022
1023
|
# resp.function_name #=> String
|
1023
1024
|
# resp.function_arn #=> String
|
1024
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
1025
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
1025
1026
|
# resp.role #=> String
|
1026
1027
|
# resp.handler #=> String
|
1027
1028
|
# resp.code_size #=> Integer
|
@@ -1694,7 +1695,7 @@ module Aws::Lambda
|
|
1694
1695
|
#
|
1695
1696
|
# resp.configuration.function_name #=> String
|
1696
1697
|
# resp.configuration.function_arn #=> String
|
1697
|
-
# resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
1698
|
+
# resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
1698
1699
|
# resp.configuration.role #=> String
|
1699
1700
|
# resp.configuration.handler #=> String
|
1700
1701
|
# resp.configuration.code_size #=> Integer
|
@@ -1733,6 +1734,11 @@ module Aws::Lambda
|
|
1733
1734
|
# resp.tags["TagKey"] #=> String
|
1734
1735
|
# resp.concurrency.reserved_concurrent_executions #=> Integer
|
1735
1736
|
#
|
1737
|
+
#
|
1738
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
1739
|
+
#
|
1740
|
+
# * function_exists
|
1741
|
+
#
|
1736
1742
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction AWS API Documentation
|
1737
1743
|
#
|
1738
1744
|
# @overload get_function(params = {})
|
@@ -1885,7 +1891,7 @@ module Aws::Lambda
|
|
1885
1891
|
#
|
1886
1892
|
# resp.function_name #=> String
|
1887
1893
|
# resp.function_arn #=> String
|
1888
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
1894
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
1889
1895
|
# resp.role #=> String
|
1890
1896
|
# resp.handler #=> String
|
1891
1897
|
# resp.code_size #=> Integer
|
@@ -1919,6 +1925,12 @@ module Aws::Lambda
|
|
1919
1925
|
# resp.last_update_status_reason #=> String
|
1920
1926
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
1921
1927
|
#
|
1928
|
+
#
|
1929
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
1930
|
+
#
|
1931
|
+
# * function_active
|
1932
|
+
# * function_updated
|
1933
|
+
#
|
1922
1934
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration AWS API Documentation
|
1923
1935
|
#
|
1924
1936
|
# @overload get_function_configuration(params = {})
|
@@ -2029,7 +2041,7 @@ module Aws::Lambda
|
|
2029
2041
|
# resp.created_date #=> Time
|
2030
2042
|
# resp.version #=> Integer
|
2031
2043
|
# resp.compatible_runtimes #=> Array
|
2032
|
-
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2044
|
+
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2033
2045
|
# resp.license_info #=> String
|
2034
2046
|
#
|
2035
2047
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion AWS API Documentation
|
@@ -2079,7 +2091,7 @@ module Aws::Lambda
|
|
2079
2091
|
# resp.created_date #=> Time
|
2080
2092
|
# resp.version #=> Integer
|
2081
2093
|
# resp.compatible_runtimes #=> Array
|
2082
|
-
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2094
|
+
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2083
2095
|
# resp.license_info #=> String
|
2084
2096
|
#
|
2085
2097
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArn AWS API Documentation
|
@@ -2504,6 +2516,8 @@ module Aws::Lambda
|
|
2504
2516
|
# * {Types::ListAliasesResponse#next_marker #next_marker} => String
|
2505
2517
|
# * {Types::ListAliasesResponse#aliases #aliases} => Array<Types::AliasConfiguration>
|
2506
2518
|
#
|
2519
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2520
|
+
#
|
2507
2521
|
#
|
2508
2522
|
# @example Example: To retrieve a Lambda function aliases
|
2509
2523
|
#
|
@@ -2595,6 +2609,8 @@ module Aws::Lambda
|
|
2595
2609
|
# * {Types::ListEventSourceMappingsResponse#next_marker #next_marker} => String
|
2596
2610
|
# * {Types::ListEventSourceMappingsResponse#event_source_mappings #event_source_mappings} => Array<Types::EventSourceMappingConfiguration>
|
2597
2611
|
#
|
2612
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2613
|
+
#
|
2598
2614
|
# @example Request syntax with placeholder values
|
2599
2615
|
#
|
2600
2616
|
# resp = client.list_event_source_mappings({
|
@@ -2666,6 +2682,8 @@ module Aws::Lambda
|
|
2666
2682
|
# * {Types::ListFunctionEventInvokeConfigsResponse#function_event_invoke_configs #function_event_invoke_configs} => Array<Types::FunctionEventInvokeConfig>
|
2667
2683
|
# * {Types::ListFunctionEventInvokeConfigsResponse#next_marker #next_marker} => String
|
2668
2684
|
#
|
2685
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2686
|
+
#
|
2669
2687
|
# @example Request syntax with placeholder values
|
2670
2688
|
#
|
2671
2689
|
# resp = client.list_function_event_invoke_configs({
|
@@ -2723,6 +2741,8 @@ module Aws::Lambda
|
|
2723
2741
|
# * {Types::ListFunctionsResponse#next_marker #next_marker} => String
|
2724
2742
|
# * {Types::ListFunctionsResponse#functions #functions} => Array<Types::FunctionConfiguration>
|
2725
2743
|
#
|
2744
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2745
|
+
#
|
2726
2746
|
#
|
2727
2747
|
# @example Example: To retrieve a list of Lambda functions
|
2728
2748
|
#
|
@@ -2755,7 +2775,7 @@ module Aws::Lambda
|
|
2755
2775
|
# resp.functions #=> Array
|
2756
2776
|
# resp.functions[0].function_name #=> String
|
2757
2777
|
# resp.functions[0].function_arn #=> String
|
2758
|
-
# resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2778
|
+
# resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2759
2779
|
# resp.functions[0].role #=> String
|
2760
2780
|
# resp.functions[0].handler #=> String
|
2761
2781
|
# resp.functions[0].code_size #=> Integer
|
@@ -2825,10 +2845,12 @@ module Aws::Lambda
|
|
2825
2845
|
# * {Types::ListLayerVersionsResponse#next_marker #next_marker} => String
|
2826
2846
|
# * {Types::ListLayerVersionsResponse#layer_versions #layer_versions} => Array<Types::LayerVersionsListItem>
|
2827
2847
|
#
|
2848
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2849
|
+
#
|
2828
2850
|
# @example Request syntax with placeholder values
|
2829
2851
|
#
|
2830
2852
|
# resp = client.list_layer_versions({
|
2831
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
2853
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
2832
2854
|
# layer_name: "LayerName", # required
|
2833
2855
|
# marker: "String",
|
2834
2856
|
# max_items: 1,
|
@@ -2843,7 +2865,7 @@ module Aws::Lambda
|
|
2843
2865
|
# resp.layer_versions[0].description #=> String
|
2844
2866
|
# resp.layer_versions[0].created_date #=> Time
|
2845
2867
|
# resp.layer_versions[0].compatible_runtimes #=> Array
|
2846
|
-
# resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2868
|
+
# resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2847
2869
|
# resp.layer_versions[0].license_info #=> String
|
2848
2870
|
#
|
2849
2871
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions AWS API Documentation
|
@@ -2878,10 +2900,12 @@ module Aws::Lambda
|
|
2878
2900
|
# * {Types::ListLayersResponse#next_marker #next_marker} => String
|
2879
2901
|
# * {Types::ListLayersResponse#layers #layers} => Array<Types::LayersListItem>
|
2880
2902
|
#
|
2903
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2904
|
+
#
|
2881
2905
|
# @example Request syntax with placeholder values
|
2882
2906
|
#
|
2883
2907
|
# resp = client.list_layers({
|
2884
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
2908
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
2885
2909
|
# marker: "String",
|
2886
2910
|
# max_items: 1,
|
2887
2911
|
# })
|
@@ -2897,7 +2921,7 @@ module Aws::Lambda
|
|
2897
2921
|
# resp.layers[0].latest_matching_version.description #=> String
|
2898
2922
|
# resp.layers[0].latest_matching_version.created_date #=> Time
|
2899
2923
|
# resp.layers[0].latest_matching_version.compatible_runtimes #=> Array
|
2900
|
-
# resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2924
|
+
# resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2901
2925
|
# resp.layers[0].latest_matching_version.license_info #=> String
|
2902
2926
|
#
|
2903
2927
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers AWS API Documentation
|
@@ -2939,6 +2963,8 @@ module Aws::Lambda
|
|
2939
2963
|
# * {Types::ListProvisionedConcurrencyConfigsResponse#provisioned_concurrency_configs #provisioned_concurrency_configs} => Array<Types::ProvisionedConcurrencyConfigListItem>
|
2940
2964
|
# * {Types::ListProvisionedConcurrencyConfigsResponse#next_marker #next_marker} => String
|
2941
2965
|
#
|
2966
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2967
|
+
#
|
2942
2968
|
# @example Request syntax with placeholder values
|
2943
2969
|
#
|
2944
2970
|
# resp = client.list_provisioned_concurrency_configs({
|
@@ -3036,6 +3062,8 @@ module Aws::Lambda
|
|
3036
3062
|
# * {Types::ListVersionsByFunctionResponse#next_marker #next_marker} => String
|
3037
3063
|
# * {Types::ListVersionsByFunctionResponse#versions #versions} => Array<Types::FunctionConfiguration>
|
3038
3064
|
#
|
3065
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
3066
|
+
#
|
3039
3067
|
#
|
3040
3068
|
# @example Example: To retrieve a list of Lambda function versions
|
3041
3069
|
#
|
@@ -3068,7 +3096,7 @@ module Aws::Lambda
|
|
3068
3096
|
# resp.versions #=> Array
|
3069
3097
|
# resp.versions[0].function_name #=> String
|
3070
3098
|
# resp.versions[0].function_arn #=> String
|
3071
|
-
# resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3099
|
+
# resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3072
3100
|
# resp.versions[0].role #=> String
|
3073
3101
|
# resp.versions[0].handler #=> String
|
3074
3102
|
# resp.versions[0].code_size #=> Integer
|
@@ -3175,7 +3203,7 @@ module Aws::Lambda
|
|
3175
3203
|
# s3_object_version: "S3ObjectVersion",
|
3176
3204
|
# zip_file: "data",
|
3177
3205
|
# },
|
3178
|
-
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
3206
|
+
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
3179
3207
|
# license_info: "LicenseInfo",
|
3180
3208
|
# })
|
3181
3209
|
#
|
@@ -3190,7 +3218,7 @@ module Aws::Lambda
|
|
3190
3218
|
# resp.created_date #=> Time
|
3191
3219
|
# resp.version #=> Integer
|
3192
3220
|
# resp.compatible_runtimes #=> Array
|
3193
|
-
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3221
|
+
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3194
3222
|
# resp.license_info #=> String
|
3195
3223
|
#
|
3196
3224
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion AWS API Documentation
|
@@ -3320,7 +3348,7 @@ module Aws::Lambda
|
|
3320
3348
|
#
|
3321
3349
|
# resp.function_name #=> String
|
3322
3350
|
# resp.function_arn #=> String
|
3323
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3351
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3324
3352
|
# resp.role #=> String
|
3325
3353
|
# resp.handler #=> String
|
3326
3354
|
# resp.code_size #=> Integer
|
@@ -3922,8 +3950,8 @@ module Aws::Lambda
|
|
3922
3950
|
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
3923
3951
|
#
|
3924
3952
|
# @option params [Integer] :maximum_batching_window_in_seconds
|
3925
|
-
# The maximum amount of time to gather records before invoking
|
3926
|
-
# function, in seconds.
|
3953
|
+
# (Streams) The maximum amount of time to gather records before invoking
|
3954
|
+
# the function, in seconds.
|
3927
3955
|
#
|
3928
3956
|
# @option params [Types::DestinationConfig] :destination_config
|
3929
3957
|
# (Streams) An Amazon SQS queue or Amazon SNS topic destination for
|
@@ -4162,7 +4190,7 @@ module Aws::Lambda
|
|
4162
4190
|
#
|
4163
4191
|
# resp.function_name #=> String
|
4164
4192
|
# resp.function_arn #=> String
|
4165
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
4193
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
4166
4194
|
# resp.role #=> String
|
4167
4195
|
# resp.handler #=> String
|
4168
4196
|
# resp.code_size #=> Integer
|
@@ -4404,7 +4432,7 @@ module Aws::Lambda
|
|
4404
4432
|
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
4405
4433
|
# },
|
4406
4434
|
# },
|
4407
|
-
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
4435
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
4408
4436
|
# dead_letter_config: {
|
4409
4437
|
# target_arn: "ResourceArn",
|
4410
4438
|
# },
|
@@ -4420,7 +4448,7 @@ module Aws::Lambda
|
|
4420
4448
|
#
|
4421
4449
|
# resp.function_name #=> String
|
4422
4450
|
# resp.function_arn #=> String
|
4423
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
4451
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
4424
4452
|
# resp.role #=> String
|
4425
4453
|
# resp.handler #=> String
|
4426
4454
|
# resp.code_size #=> Integer
|
@@ -4567,7 +4595,7 @@ module Aws::Lambda
|
|
4567
4595
|
params: params,
|
4568
4596
|
config: config)
|
4569
4597
|
context[:gem_name] = 'aws-sdk-lambda'
|
4570
|
-
context[:gem_version] = '1.
|
4598
|
+
context[:gem_version] = '1.38.0'
|
4571
4599
|
Seahorse::Client::Request.new(handlers, context)
|
4572
4600
|
end
|
4573
4601
|
|
@@ -4633,11 +4661,11 @@ module Aws::Lambda
|
|
4633
4661
|
# The following table lists the valid waiter names, the operations they call,
|
4634
4662
|
# and the default `:delay` and `:max_attempts` values.
|
4635
4663
|
#
|
4636
|
-
# | waiter_name | params
|
4637
|
-
# | ---------------- |
|
4638
|
-
# | function_active | {#get_function_configuration} | 5 | 60 |
|
4639
|
-
# | function_exists | {#get_function} | 1 | 20 |
|
4640
|
-
# | function_updated | {#get_function_configuration} | 5 | 60 |
|
4664
|
+
# | waiter_name | params | :delay | :max_attempts |
|
4665
|
+
# | ---------------- | ----------------------------------- | -------- | ------------- |
|
4666
|
+
# | function_active | {Client#get_function_configuration} | 5 | 60 |
|
4667
|
+
# | function_exists | {Client#get_function} | 1 | 20 |
|
4668
|
+
# | function_updated | {Client#get_function_configuration} | 5 | 60 |
|
4641
4669
|
#
|
4642
4670
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
4643
4671
|
# because the waiter has entered a state that it will not transition
|
@@ -6,13 +6,7 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::Lambda
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::Lambda::Resource.new(region: 'us-west-2')
|
12
|
-
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
-
# If you do not pass +:client+, a default client will be constructed.
|
14
|
-
# client = Aws::Lambda::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::Lambda::Resource.new(client: client)
|
9
|
+
|
16
10
|
class Resource
|
17
11
|
|
18
12
|
# @param options ({})
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -196,13 +196,10 @@ module Aws::Lambda
|
|
196
196
|
# @return [String]
|
197
197
|
#
|
198
198
|
# @!attribute [rw] source_account
|
199
|
-
# For
|
200
|
-
# this
|
201
|
-
#
|
202
|
-
#
|
203
|
-
# that the resource is owned by the specified account. For example, an
|
204
|
-
# Amazon S3 bucket could be deleted by its owner and recreated by
|
205
|
-
# another account.
|
199
|
+
# For Amazon S3, the ID of the account that owns the resource. Use
|
200
|
+
# this together with `SourceArn` to ensure that the resource is owned
|
201
|
+
# by the specified account. It is possible for an Amazon S3 bucket to
|
202
|
+
# be deleted by its owner and recreated by another account.
|
206
203
|
# @return [String]
|
207
204
|
#
|
208
205
|
# @!attribute [rw] event_source_token
|
@@ -490,8 +487,8 @@ module Aws::Lambda
|
|
490
487
|
# @return [Integer]
|
491
488
|
#
|
492
489
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
493
|
-
# The maximum amount of time to gather records before
|
494
|
-
# function, in seconds.
|
490
|
+
# (Streams) The maximum amount of time to gather records before
|
491
|
+
# invoking the function, in seconds.
|
495
492
|
# @return [Integer]
|
496
493
|
#
|
497
494
|
# @!attribute [rw] parallelization_factor
|
@@ -553,7 +550,7 @@ module Aws::Lambda
|
|
553
550
|
#
|
554
551
|
# {
|
555
552
|
# function_name: "FunctionName", # required
|
556
|
-
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
553
|
+
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
557
554
|
# role: "RoleArn", # required
|
558
555
|
# handler: "Handler", # required
|
559
556
|
# code: { # required
|
@@ -1151,8 +1148,8 @@ module Aws::Lambda
|
|
1151
1148
|
# @return [Integer]
|
1152
1149
|
#
|
1153
1150
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
1154
|
-
# The maximum amount of time to gather records before
|
1155
|
-
# function, in seconds.
|
1151
|
+
# (Streams) The maximum amount of time to gather records before
|
1152
|
+
# invoking the function, in seconds.
|
1156
1153
|
# @return [Integer]
|
1157
1154
|
#
|
1158
1155
|
# @!attribute [rw] parallelization_factor
|
@@ -2786,7 +2783,7 @@ module Aws::Lambda
|
|
2786
2783
|
# data as a hash:
|
2787
2784
|
#
|
2788
2785
|
# {
|
2789
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
2786
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
2790
2787
|
# layer_name: "LayerName", # required
|
2791
2788
|
# marker: "String",
|
2792
2789
|
# max_items: 1,
|
@@ -2839,7 +2836,7 @@ module Aws::Lambda
|
|
2839
2836
|
# data as a hash:
|
2840
2837
|
#
|
2841
2838
|
# {
|
2842
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
2839
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
2843
2840
|
# marker: "String",
|
2844
2841
|
# max_items: 1,
|
2845
2842
|
# }
|
@@ -3187,7 +3184,7 @@ module Aws::Lambda
|
|
3187
3184
|
# s3_object_version: "S3ObjectVersion",
|
3188
3185
|
# zip_file: "data",
|
3189
3186
|
# },
|
3190
|
-
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
3187
|
+
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
3191
3188
|
# license_info: "LicenseInfo",
|
3192
3189
|
# }
|
3193
3190
|
#
|
@@ -4015,8 +4012,8 @@ module Aws::Lambda
|
|
4015
4012
|
# @return [Integer]
|
4016
4013
|
#
|
4017
4014
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
4018
|
-
# The maximum amount of time to gather records before
|
4019
|
-
# function, in seconds.
|
4015
|
+
# (Streams) The maximum amount of time to gather records before
|
4016
|
+
# invoking the function, in seconds.
|
4020
4017
|
# @return [Integer]
|
4021
4018
|
#
|
4022
4019
|
# @!attribute [rw] destination_config
|
@@ -4159,7 +4156,7 @@ module Aws::Lambda
|
|
4159
4156
|
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
4160
4157
|
# },
|
4161
4158
|
# },
|
4162
|
-
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
4159
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
4163
4160
|
# dead_letter_config: {
|
4164
4161
|
# target_arn: "ResourceArn",
|
4165
4162
|
# },
|
@@ -8,6 +8,69 @@
|
|
8
8
|
require 'aws-sdk-core/waiters'
|
9
9
|
|
10
10
|
module Aws::Lambda
|
11
|
+
# Waiters are utility methods that poll for a particular state to occur
|
12
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
13
|
+
# interval defined for the service client.
|
14
|
+
#
|
15
|
+
# For a list of operations that can be waited for and the
|
16
|
+
# client methods called for each operation, see the table below or the
|
17
|
+
# {Client#wait_until} field documentation for the {Client}.
|
18
|
+
#
|
19
|
+
# # Invoking a Waiter
|
20
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
21
|
+
# is the waiter name, which is specific to the service client and indicates
|
22
|
+
# which operation is being waited for. The second parameter is a hash of
|
23
|
+
# parameters that are passed to the client method called by the waiter,
|
24
|
+
# which varies according to the waiter name.
|
25
|
+
#
|
26
|
+
# # Wait Failures
|
27
|
+
# To catch errors in a waiter, use WaiterFailed,
|
28
|
+
# as shown in the following example.
|
29
|
+
#
|
30
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
31
|
+
# puts "failed waiting for instance running: #{error.message}
|
32
|
+
# end
|
33
|
+
#
|
34
|
+
# # Configuring a Waiter
|
35
|
+
# Each waiter has a default polling interval and a maximum number of
|
36
|
+
# attempts it will make before returning control to your program.
|
37
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
38
|
+
# in your `#wait_until` call.
|
39
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
40
|
+
#
|
41
|
+
# client.wait_until(...) do |w|
|
42
|
+
# w.max_attempts = 5
|
43
|
+
# w.delay = 5
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# To disable wait failures, set the value of either of these parameters
|
47
|
+
# to `nil`.
|
48
|
+
#
|
49
|
+
# # Extending a Waiter
|
50
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
51
|
+
# triggered before each polling attempt and before waiting.
|
52
|
+
#
|
53
|
+
# The following example implements an exponential backoff in a waiter
|
54
|
+
# by doubling the amount of time to wait on every attempt.
|
55
|
+
#
|
56
|
+
# client.wait_until(...) do |w|
|
57
|
+
# w.interval = 0 # disable normal sleep
|
58
|
+
# w.before_wait do |n, resp|
|
59
|
+
# sleep(n ** 2)
|
60
|
+
# end
|
61
|
+
# end
|
62
|
+
#
|
63
|
+
# # Available Waiters
|
64
|
+
#
|
65
|
+
# The following table lists the valid waiter names, the operations they call,
|
66
|
+
# and the default `:delay` and `:max_attempts` values.
|
67
|
+
#
|
68
|
+
# | waiter_name | params | :delay | :max_attempts |
|
69
|
+
# | ---------------- | ----------------------------------- | -------- | ------------- |
|
70
|
+
# | function_active | {Client#get_function_configuration} | 5 | 60 |
|
71
|
+
# | function_exists | {Client#get_function} | 1 | 20 |
|
72
|
+
# | function_updated | {Client#get_function_configuration} | 5 | 60 |
|
73
|
+
#
|
11
74
|
module Waiters
|
12
75
|
|
13
76
|
# Waits for the function's State to be Active.
|
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.38.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: 2020-03-
|
11
|
+
date: 2020-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|