aws-sdk-lambda 1.125.0 → 1.126.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +179 -37
- data/lib/aws-sdk-lambda/client_api.rb +44 -0
- data/lib/aws-sdk-lambda/endpoints.rb +28 -0
- data/lib/aws-sdk-lambda/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-lambda/types.rb +201 -43
- data/lib/aws-sdk-lambda.rb +1 -1
- data/sig/client.rbs +21 -0
- data/sig/types.rbs +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a54010ae94a05040581a1afef5539329feb0d58a19fcd6093c38eeaed083043e
|
4
|
+
data.tar.gz: cf5c143be4454d9bc642bf5c377e1fbc6a7ec814346dc2c79f39a9ed197504d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3eb80ef02225c35ce8fffb3bceac8d2b9c9954c31c0227d0a117186f817c304028f1d4c692b8b0b9d139d13f446fe8255098880a2ac2770017e87732899aafb
|
7
|
+
data.tar.gz: 42f64221e04f2e6f0ef8afb7df2d0e2cedcf3b0cd05f7eac15905a8091322a2068b760feb0d8a94b05efd791dfa6df971278da51745af1e58c8c9d5dfd4fbe82
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.126.0 (2024-08-19)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Release Lambda FunctionRecursiveConfig, enabling customers to turn recursive loop detection on or off on individual functions. This release adds two new APIs, GetFunctionRecursionConfig and PutFunctionRecursionConfig.
|
8
|
+
|
4
9
|
1.125.0 (2024-07-02)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.126.0
|
@@ -937,16 +937,17 @@ module Aws::Lambda
|
|
937
937
|
# `MaximumBatchingWindowInSeconds` to any value from 0 seconds to 300
|
938
938
|
# seconds in increments of seconds.
|
939
939
|
#
|
940
|
-
# For
|
941
|
-
# is 0 seconds. For Amazon MSK, Self-managed Apache
|
942
|
-
# and DocumentDB event sources, the default batching
|
943
|
-
# Note that because you can only change
|
944
|
-
# in increments of seconds, you cannot
|
945
|
-
#
|
946
|
-
# batching window, you must create a
|
947
|
-
#
|
948
|
-
#
|
949
|
-
#
|
940
|
+
# For Kinesis, DynamoDB, and Amazon SQS event sources, the default
|
941
|
+
# batching window is 0 seconds. For Amazon MSK, Self-managed Apache
|
942
|
+
# Kafka, Amazon MQ, and DocumentDB event sources, the default batching
|
943
|
+
# window is 500 ms. Note that because you can only change
|
944
|
+
# `MaximumBatchingWindowInSeconds` in increments of seconds, you cannot
|
945
|
+
# revert back to the 500 ms default batching window after you have
|
946
|
+
# changed it. To restore the default batching window, you must create a
|
947
|
+
# new event source mapping.
|
948
|
+
#
|
949
|
+
# Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources,
|
950
|
+
# when you set `BatchSize` to a value greater than 10, you must set
|
950
951
|
# `MaximumBatchingWindowInSeconds` to at least 1.
|
951
952
|
#
|
952
953
|
# @option params [Integer] :parallelization_factor
|
@@ -1252,16 +1253,24 @@ module Aws::Lambda
|
|
1252
1253
|
# only the function name, it is limited to 64 characters in length.
|
1253
1254
|
#
|
1254
1255
|
# @option params [String] :runtime
|
1255
|
-
# The identifier of the function's [runtime][1]. Runtime is required
|
1256
|
-
# the deployment package is a .zip file archive.
|
1256
|
+
# The identifier of the function's [ runtime][1]. Runtime is required
|
1257
|
+
# if the deployment package is a .zip file archive. Specifying a runtime
|
1258
|
+
# results in an error if you're deploying a function using a container
|
1259
|
+
# image.
|
1257
1260
|
#
|
1258
|
-
# The following list includes deprecated runtimes.
|
1259
|
-
#
|
1261
|
+
# The following list includes deprecated runtimes. Lambda blocks
|
1262
|
+
# creating new functions and updating existing functions shortly after
|
1263
|
+
# each runtime is deprecated. For more information, see [Runtime use
|
1264
|
+
# after deprecation][2].
|
1265
|
+
#
|
1266
|
+
# For a list of all currently supported runtimes, see [Supported
|
1267
|
+
# runtimes][3].
|
1260
1268
|
#
|
1261
1269
|
#
|
1262
1270
|
#
|
1263
1271
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
|
1264
|
-
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
1272
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
1273
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
1265
1274
|
#
|
1266
1275
|
# @option params [required, String] :role
|
1267
1276
|
# The Amazon Resource Name (ARN) of the function's execution role.
|
@@ -2786,6 +2795,37 @@ module Aws::Lambda
|
|
2786
2795
|
req.send_request(options)
|
2787
2796
|
end
|
2788
2797
|
|
2798
|
+
# Returns your function's [recursive loop detection][1] configuration.
|
2799
|
+
#
|
2800
|
+
#
|
2801
|
+
#
|
2802
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-recursion.html
|
2803
|
+
#
|
2804
|
+
# @option params [required, String] :function_name
|
2805
|
+
#
|
2806
|
+
# @return [Types::GetFunctionRecursionConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2807
|
+
#
|
2808
|
+
# * {Types::GetFunctionRecursionConfigResponse#recursive_loop #recursive_loop} => String
|
2809
|
+
#
|
2810
|
+
# @example Request syntax with placeholder values
|
2811
|
+
#
|
2812
|
+
# resp = client.get_function_recursion_config({
|
2813
|
+
# function_name: "UnqualifiedFunctionName", # required
|
2814
|
+
# })
|
2815
|
+
#
|
2816
|
+
# @example Response structure
|
2817
|
+
#
|
2818
|
+
# resp.recursive_loop #=> String, one of "Allow", "Terminate"
|
2819
|
+
#
|
2820
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionRecursionConfig AWS API Documentation
|
2821
|
+
#
|
2822
|
+
# @overload get_function_recursion_config(params = {})
|
2823
|
+
# @param [Hash] params ({})
|
2824
|
+
def get_function_recursion_config(params = {}, options = {})
|
2825
|
+
req = build_request(:get_function_recursion_config, params)
|
2826
|
+
req.send_request(options)
|
2827
|
+
end
|
2828
|
+
|
2789
2829
|
# Returns details about a Lambda function URL.
|
2790
2830
|
#
|
2791
2831
|
# @option params [required, String] :function_name
|
@@ -4136,14 +4176,18 @@ module Aws::Lambda
|
|
4136
4176
|
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
|
4137
4177
|
#
|
4138
4178
|
# @option params [String] :compatible_runtime
|
4139
|
-
# A runtime identifier.
|
4179
|
+
# A runtime identifier.
|
4140
4180
|
#
|
4141
4181
|
# The following list includes deprecated runtimes. For more information,
|
4142
|
-
# see [Runtime deprecation
|
4182
|
+
# see [Runtime use after deprecation][1].
|
4143
4183
|
#
|
4184
|
+
# For a list of all currently supported runtimes, see [Supported
|
4185
|
+
# runtimes][2].
|
4144
4186
|
#
|
4145
4187
|
#
|
4146
|
-
#
|
4188
|
+
#
|
4189
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
4190
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
4147
4191
|
#
|
4148
4192
|
# @option params [required, String] :layer_name
|
4149
4193
|
# The name or Amazon Resource Name (ARN) of the layer.
|
@@ -4214,14 +4258,18 @@ module Aws::Lambda
|
|
4214
4258
|
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html
|
4215
4259
|
#
|
4216
4260
|
# @option params [String] :compatible_runtime
|
4217
|
-
# A runtime identifier.
|
4261
|
+
# A runtime identifier.
|
4218
4262
|
#
|
4219
4263
|
# The following list includes deprecated runtimes. For more information,
|
4220
|
-
# see [Runtime deprecation
|
4264
|
+
# see [Runtime use after deprecation][1].
|
4265
|
+
#
|
4266
|
+
# For a list of all currently supported runtimes, see [Supported
|
4267
|
+
# runtimes][2].
|
4221
4268
|
#
|
4222
4269
|
#
|
4223
4270
|
#
|
4224
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
4271
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
4272
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
4225
4273
|
#
|
4226
4274
|
# @option params [String] :marker
|
4227
4275
|
# A pagination token returned by a previous call.
|
@@ -4993,6 +5041,91 @@ module Aws::Lambda
|
|
4993
5041
|
req.send_request(options)
|
4994
5042
|
end
|
4995
5043
|
|
5044
|
+
# Sets your function's [recursive loop detection][1] configuration.
|
5045
|
+
#
|
5046
|
+
# When you configure a Lambda function to output to the same service or
|
5047
|
+
# resource that invokes the function, it's possible to create an
|
5048
|
+
# infinite recursive loop. For example, a Lambda function might write a
|
5049
|
+
# message to an Amazon Simple Queue Service (Amazon SQS) queue, which
|
5050
|
+
# then invokes the same function. This invocation causes the function to
|
5051
|
+
# write another message to the queue, which in turn invokes the function
|
5052
|
+
# again.
|
5053
|
+
#
|
5054
|
+
# Lambda can detect certain types of recursive loops shortly after they
|
5055
|
+
# occur. When Lambda detects a recursive loop and your function's
|
5056
|
+
# recursive loop detection configuration is set to `Terminate`, it stops
|
5057
|
+
# your function being invoked and notifies you.
|
5058
|
+
#
|
5059
|
+
#
|
5060
|
+
#
|
5061
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-recursion.html
|
5062
|
+
#
|
5063
|
+
# @option params [required, String] :function_name
|
5064
|
+
# The name or ARN of the Lambda function.
|
5065
|
+
#
|
5066
|
+
# **Name formats**
|
5067
|
+
#
|
5068
|
+
# * **Function name** – `my-function`.
|
5069
|
+
#
|
5070
|
+
# * **Function ARN** –
|
5071
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
5072
|
+
#
|
5073
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
5074
|
+
#
|
5075
|
+
# The length constraint applies only to the full ARN. If you specify
|
5076
|
+
# only the function name, it is limited to 64 characters in length.
|
5077
|
+
#
|
5078
|
+
# @option params [required, String] :recursive_loop
|
5079
|
+
# If you set your function's recursive loop detection configuration to
|
5080
|
+
# `Allow`, Lambda doesn't take any action when it detects your function
|
5081
|
+
# being invoked as part of a recursive loop. We recommend that you only
|
5082
|
+
# use this setting if your design intentionally uses a Lambda function
|
5083
|
+
# to write data back to the same Amazon Web Services resource that
|
5084
|
+
# invokes it.
|
5085
|
+
#
|
5086
|
+
# If you set your function's recursive loop detection configuration to
|
5087
|
+
# `Terminate`, Lambda stops your function being invoked and notifies you
|
5088
|
+
# when it detects your function being invoked as part of a recursive
|
5089
|
+
# loop.
|
5090
|
+
#
|
5091
|
+
# By default, Lambda sets your function's configuration to `Terminate`.
|
5092
|
+
#
|
5093
|
+
# If your design intentionally uses a Lambda function to write data back
|
5094
|
+
# to the same Amazon Web Services resource that invokes the function,
|
5095
|
+
# then use caution and implement suitable guard rails to prevent
|
5096
|
+
# unexpected charges being billed to your Amazon Web Services account.
|
5097
|
+
# To learn more about best practices for using recursive invocation
|
5098
|
+
# patterns, see [Recursive patterns that cause run-away Lambda
|
5099
|
+
# functions][1] in Serverless Land.
|
5100
|
+
#
|
5101
|
+
#
|
5102
|
+
#
|
5103
|
+
# [1]: https://serverlessland.com/content/service/lambda/guides/aws-lambda-operator-guide/recursive-runaway
|
5104
|
+
#
|
5105
|
+
# @return [Types::PutFunctionRecursionConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5106
|
+
#
|
5107
|
+
# * {Types::PutFunctionRecursionConfigResponse#recursive_loop #recursive_loop} => String
|
5108
|
+
#
|
5109
|
+
# @example Request syntax with placeholder values
|
5110
|
+
#
|
5111
|
+
# resp = client.put_function_recursion_config({
|
5112
|
+
# function_name: "UnqualifiedFunctionName", # required
|
5113
|
+
# recursive_loop: "Allow", # required, accepts Allow, Terminate
|
5114
|
+
# })
|
5115
|
+
#
|
5116
|
+
# @example Response structure
|
5117
|
+
#
|
5118
|
+
# resp.recursive_loop #=> String, one of "Allow", "Terminate"
|
5119
|
+
#
|
5120
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionRecursionConfig AWS API Documentation
|
5121
|
+
#
|
5122
|
+
# @overload put_function_recursion_config(params = {})
|
5123
|
+
# @param [Hash] params ({})
|
5124
|
+
def put_function_recursion_config(params = {}, options = {})
|
5125
|
+
req = build_request(:put_function_recursion_config, params)
|
5126
|
+
req.send_request(options)
|
5127
|
+
end
|
5128
|
+
|
4996
5129
|
# Adds a provisioned concurrency configuration to a function's alias or
|
4997
5130
|
# version.
|
4998
5131
|
#
|
@@ -5579,16 +5712,17 @@ module Aws::Lambda
|
|
5579
5712
|
# `MaximumBatchingWindowInSeconds` to any value from 0 seconds to 300
|
5580
5713
|
# seconds in increments of seconds.
|
5581
5714
|
#
|
5582
|
-
# For
|
5583
|
-
# is 0 seconds. For Amazon MSK, Self-managed Apache
|
5584
|
-
# and DocumentDB event sources, the default batching
|
5585
|
-
# Note that because you can only change
|
5586
|
-
# in increments of seconds, you cannot
|
5587
|
-
#
|
5588
|
-
# batching window, you must create a
|
5589
|
-
#
|
5590
|
-
#
|
5591
|
-
#
|
5715
|
+
# For Kinesis, DynamoDB, and Amazon SQS event sources, the default
|
5716
|
+
# batching window is 0 seconds. For Amazon MSK, Self-managed Apache
|
5717
|
+
# Kafka, Amazon MQ, and DocumentDB event sources, the default batching
|
5718
|
+
# window is 500 ms. Note that because you can only change
|
5719
|
+
# `MaximumBatchingWindowInSeconds` in increments of seconds, you cannot
|
5720
|
+
# revert back to the 500 ms default batching window after you have
|
5721
|
+
# changed it. To restore the default batching window, you must create a
|
5722
|
+
# new event source mapping.
|
5723
|
+
#
|
5724
|
+
# Related setting: For Kinesis, DynamoDB, and Amazon SQS event sources,
|
5725
|
+
# when you set `BatchSize` to a value greater than 10, you must set
|
5592
5726
|
# `MaximumBatchingWindowInSeconds` to at least 1.
|
5593
5727
|
#
|
5594
5728
|
# @option params [Types::DestinationConfig] :destination_config
|
@@ -6072,16 +6206,24 @@ module Aws::Lambda
|
|
6072
6206
|
# execution.
|
6073
6207
|
#
|
6074
6208
|
# @option params [String] :runtime
|
6075
|
-
# The identifier of the function's [runtime][1]. Runtime is required
|
6076
|
-
# the deployment package is a .zip file archive.
|
6209
|
+
# The identifier of the function's [ runtime][1]. Runtime is required
|
6210
|
+
# if the deployment package is a .zip file archive. Specifying a runtime
|
6211
|
+
# results in an error if you're deploying a function using a container
|
6212
|
+
# image.
|
6077
6213
|
#
|
6078
|
-
# The following list includes deprecated runtimes.
|
6079
|
-
#
|
6214
|
+
# The following list includes deprecated runtimes. Lambda blocks
|
6215
|
+
# creating new functions and updating existing functions shortly after
|
6216
|
+
# each runtime is deprecated. For more information, see [Runtime use
|
6217
|
+
# after deprecation][2].
|
6218
|
+
#
|
6219
|
+
# For a list of all currently supported runtimes, see [Supported
|
6220
|
+
# runtimes][3].
|
6080
6221
|
#
|
6081
6222
|
#
|
6082
6223
|
#
|
6083
6224
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
|
6084
|
-
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
6225
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
6226
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
6085
6227
|
#
|
6086
6228
|
# @option params [Types::DeadLetterConfig] :dead_letter_config
|
6087
6229
|
# A dead-letter queue configuration that specifies the queue or topic
|
@@ -6543,7 +6685,7 @@ module Aws::Lambda
|
|
6543
6685
|
params: params,
|
6544
6686
|
config: config)
|
6545
6687
|
context[:gem_name] = 'aws-sdk-lambda'
|
6546
|
-
context[:gem_version] = '1.
|
6688
|
+
context[:gem_version] = '1.126.0'
|
6547
6689
|
Seahorse::Client::Request.new(handlers, context)
|
6548
6690
|
end
|
6549
6691
|
|
@@ -140,6 +140,8 @@ module Aws::Lambda
|
|
140
140
|
GetFunctionConcurrencyResponse = Shapes::StructureShape.new(name: 'GetFunctionConcurrencyResponse')
|
141
141
|
GetFunctionConfigurationRequest = Shapes::StructureShape.new(name: 'GetFunctionConfigurationRequest')
|
142
142
|
GetFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'GetFunctionEventInvokeConfigRequest')
|
143
|
+
GetFunctionRecursionConfigRequest = Shapes::StructureShape.new(name: 'GetFunctionRecursionConfigRequest')
|
144
|
+
GetFunctionRecursionConfigResponse = Shapes::StructureShape.new(name: 'GetFunctionRecursionConfigResponse')
|
143
145
|
GetFunctionRequest = Shapes::StructureShape.new(name: 'GetFunctionRequest')
|
144
146
|
GetFunctionResponse = Shapes::StructureShape.new(name: 'GetFunctionResponse')
|
145
147
|
GetFunctionUrlConfigRequest = Shapes::StructureShape.new(name: 'GetFunctionUrlConfigRequest')
|
@@ -278,6 +280,8 @@ module Aws::Lambda
|
|
278
280
|
PutFunctionCodeSigningConfigResponse = Shapes::StructureShape.new(name: 'PutFunctionCodeSigningConfigResponse')
|
279
281
|
PutFunctionConcurrencyRequest = Shapes::StructureShape.new(name: 'PutFunctionConcurrencyRequest')
|
280
282
|
PutFunctionEventInvokeConfigRequest = Shapes::StructureShape.new(name: 'PutFunctionEventInvokeConfigRequest')
|
283
|
+
PutFunctionRecursionConfigRequest = Shapes::StructureShape.new(name: 'PutFunctionRecursionConfigRequest')
|
284
|
+
PutFunctionRecursionConfigResponse = Shapes::StructureShape.new(name: 'PutFunctionRecursionConfigResponse')
|
281
285
|
PutProvisionedConcurrencyConfigRequest = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigRequest')
|
282
286
|
PutProvisionedConcurrencyConfigResponse = Shapes::StructureShape.new(name: 'PutProvisionedConcurrencyConfigResponse')
|
283
287
|
PutRuntimeManagementConfigRequest = Shapes::StructureShape.new(name: 'PutRuntimeManagementConfigRequest')
|
@@ -286,6 +290,7 @@ module Aws::Lambda
|
|
286
290
|
Queue = Shapes::StringShape.new(name: 'Queue')
|
287
291
|
Queues = Shapes::ListShape.new(name: 'Queues')
|
288
292
|
RecursiveInvocationException = Shapes::StructureShape.new(name: 'RecursiveInvocationException')
|
293
|
+
RecursiveLoop = Shapes::StringShape.new(name: 'RecursiveLoop')
|
289
294
|
RemoveLayerVersionPermissionRequest = Shapes::StructureShape.new(name: 'RemoveLayerVersionPermissionRequest')
|
290
295
|
RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
|
291
296
|
RequestTooLargeException = Shapes::StructureShape.new(name: 'RequestTooLargeException')
|
@@ -349,6 +354,7 @@ module Aws::Lambda
|
|
349
354
|
TracingMode = Shapes::StringShape.new(name: 'TracingMode')
|
350
355
|
TumblingWindowInSeconds = Shapes::IntegerShape.new(name: 'TumblingWindowInSeconds')
|
351
356
|
URI = Shapes::StringShape.new(name: 'URI')
|
357
|
+
UnqualifiedFunctionName = Shapes::StringShape.new(name: 'UnqualifiedFunctionName')
|
352
358
|
UnreservedConcurrentExecutions = Shapes::IntegerShape.new(name: 'UnreservedConcurrentExecutions')
|
353
359
|
UnsupportedMediaTypeException = Shapes::StructureShape.new(name: 'UnsupportedMediaTypeException')
|
354
360
|
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
@@ -825,6 +831,12 @@ module Aws::Lambda
|
|
825
831
|
GetFunctionEventInvokeConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
826
832
|
GetFunctionEventInvokeConfigRequest.struct_class = Types::GetFunctionEventInvokeConfigRequest
|
827
833
|
|
834
|
+
GetFunctionRecursionConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: UnqualifiedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
835
|
+
GetFunctionRecursionConfigRequest.struct_class = Types::GetFunctionRecursionConfigRequest
|
836
|
+
|
837
|
+
GetFunctionRecursionConfigResponse.add_member(:recursive_loop, Shapes::ShapeRef.new(shape: RecursiveLoop, location_name: "RecursiveLoop"))
|
838
|
+
GetFunctionRecursionConfigResponse.struct_class = Types::GetFunctionRecursionConfigResponse
|
839
|
+
|
828
840
|
GetFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: NamespacedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
829
841
|
GetFunctionRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, location: "querystring", location_name: "Qualifier"))
|
830
842
|
GetFunctionRequest.struct_class = Types::GetFunctionRequest
|
@@ -1250,6 +1262,13 @@ module Aws::Lambda
|
|
1250
1262
|
PutFunctionEventInvokeConfigRequest.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
1251
1263
|
PutFunctionEventInvokeConfigRequest.struct_class = Types::PutFunctionEventInvokeConfigRequest
|
1252
1264
|
|
1265
|
+
PutFunctionRecursionConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: UnqualifiedFunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
1266
|
+
PutFunctionRecursionConfigRequest.add_member(:recursive_loop, Shapes::ShapeRef.new(shape: RecursiveLoop, required: true, location_name: "RecursiveLoop"))
|
1267
|
+
PutFunctionRecursionConfigRequest.struct_class = Types::PutFunctionRecursionConfigRequest
|
1268
|
+
|
1269
|
+
PutFunctionRecursionConfigResponse.add_member(:recursive_loop, Shapes::ShapeRef.new(shape: RecursiveLoop, location_name: "RecursiveLoop"))
|
1270
|
+
PutFunctionRecursionConfigResponse.struct_class = Types::PutFunctionRecursionConfigResponse
|
1271
|
+
|
1253
1272
|
PutProvisionedConcurrencyConfigRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "FunctionName"))
|
1254
1273
|
PutProvisionedConcurrencyConfigRequest.add_member(:qualifier, Shapes::ShapeRef.new(shape: Qualifier, required: true, location: "querystring", location_name: "Qualifier"))
|
1255
1274
|
PutProvisionedConcurrencyConfigRequest.add_member(:provisioned_concurrent_executions, Shapes::ShapeRef.new(shape: PositiveInteger, required: true, location_name: "ProvisionedConcurrentExecutions"))
|
@@ -1848,6 +1867,18 @@ module Aws::Lambda
|
|
1848
1867
|
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1849
1868
|
end)
|
1850
1869
|
|
1870
|
+
api.add_operation(:get_function_recursion_config, Seahorse::Model::Operation.new.tap do |o|
|
1871
|
+
o.name = "GetFunctionRecursionConfig"
|
1872
|
+
o.http_method = "GET"
|
1873
|
+
o.http_request_uri = "/2024-08-31/functions/{FunctionName}/recursion-config"
|
1874
|
+
o.input = Shapes::ShapeRef.new(shape: GetFunctionRecursionConfigRequest)
|
1875
|
+
o.output = Shapes::ShapeRef.new(shape: GetFunctionRecursionConfigResponse)
|
1876
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1877
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1878
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
1879
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
1880
|
+
end)
|
1881
|
+
|
1851
1882
|
api.add_operation(:get_function_url_config, Seahorse::Model::Operation.new.tap do |o|
|
1852
1883
|
o.name = "GetFunctionUrlConfig"
|
1853
1884
|
o.http_method = "GET"
|
@@ -2296,6 +2327,19 @@ module Aws::Lambda
|
|
2296
2327
|
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
2297
2328
|
end)
|
2298
2329
|
|
2330
|
+
api.add_operation(:put_function_recursion_config, Seahorse::Model::Operation.new.tap do |o|
|
2331
|
+
o.name = "PutFunctionRecursionConfig"
|
2332
|
+
o.http_method = "PUT"
|
2333
|
+
o.http_request_uri = "/2024-08-31/functions/{FunctionName}/recursion-config"
|
2334
|
+
o.input = Shapes::ShapeRef.new(shape: PutFunctionRecursionConfigRequest)
|
2335
|
+
o.output = Shapes::ShapeRef.new(shape: PutFunctionRecursionConfigResponse)
|
2336
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
2337
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException)
|
2338
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2339
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
|
2340
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceException)
|
2341
|
+
end)
|
2342
|
+
|
2299
2343
|
api.add_operation(:put_provisioned_concurrency_config, Seahorse::Model::Operation.new.tap do |o|
|
2300
2344
|
o.name = "PutProvisionedConcurrencyConfig"
|
2301
2345
|
o.http_method = "PUT"
|
@@ -376,6 +376,20 @@ module Aws::Lambda
|
|
376
376
|
end
|
377
377
|
end
|
378
378
|
|
379
|
+
class GetFunctionRecursionConfig
|
380
|
+
def self.build(context)
|
381
|
+
unless context.config.regional_endpoint
|
382
|
+
endpoint = context.config.endpoint.to_s
|
383
|
+
end
|
384
|
+
Aws::Lambda::EndpointParameters.new(
|
385
|
+
region: context.config.region,
|
386
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
387
|
+
use_fips: context.config.use_fips_endpoint,
|
388
|
+
endpoint: endpoint,
|
389
|
+
)
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
379
393
|
class GetFunctionUrlConfig
|
380
394
|
def self.build(context)
|
381
395
|
unless context.config.regional_endpoint
|
@@ -754,6 +768,20 @@ module Aws::Lambda
|
|
754
768
|
end
|
755
769
|
end
|
756
770
|
|
771
|
+
class PutFunctionRecursionConfig
|
772
|
+
def self.build(context)
|
773
|
+
unless context.config.regional_endpoint
|
774
|
+
endpoint = context.config.endpoint.to_s
|
775
|
+
end
|
776
|
+
Aws::Lambda::EndpointParameters.new(
|
777
|
+
region: context.config.region,
|
778
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
779
|
+
use_fips: context.config.use_fips_endpoint,
|
780
|
+
endpoint: endpoint,
|
781
|
+
)
|
782
|
+
end
|
783
|
+
end
|
784
|
+
|
757
785
|
class PutProvisionedConcurrencyConfig
|
758
786
|
def self.build(context)
|
759
787
|
unless context.config.regional_endpoint
|
@@ -110,6 +110,8 @@ module Aws::Lambda
|
|
110
110
|
Aws::Lambda::Endpoints::GetFunctionConfiguration.build(context)
|
111
111
|
when :get_function_event_invoke_config
|
112
112
|
Aws::Lambda::Endpoints::GetFunctionEventInvokeConfig.build(context)
|
113
|
+
when :get_function_recursion_config
|
114
|
+
Aws::Lambda::Endpoints::GetFunctionRecursionConfig.build(context)
|
113
115
|
when :get_function_url_config
|
114
116
|
Aws::Lambda::Endpoints::GetFunctionUrlConfig.build(context)
|
115
117
|
when :get_layer_version
|
@@ -164,6 +166,8 @@ module Aws::Lambda
|
|
164
166
|
Aws::Lambda::Endpoints::PutFunctionConcurrency.build(context)
|
165
167
|
when :put_function_event_invoke_config
|
166
168
|
Aws::Lambda::Endpoints::PutFunctionEventInvokeConfig.build(context)
|
169
|
+
when :put_function_recursion_config
|
170
|
+
Aws::Lambda::Endpoints::PutFunctionRecursionConfig.build(context)
|
167
171
|
when :put_provisioned_concurrency_config
|
168
172
|
Aws::Lambda::Endpoints::PutProvisionedConcurrencyConfig.build(context)
|
169
173
|
when :put_runtime_management_config
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -735,18 +735,18 @@ module Aws::Lambda
|
|
735
735
|
# `MaximumBatchingWindowInSeconds` to any value from 0 seconds to 300
|
736
736
|
# seconds in increments of seconds.
|
737
737
|
#
|
738
|
-
# For
|
739
|
-
# window is 0 seconds. For Amazon MSK, Self-managed Apache
|
740
|
-
# Amazon MQ, and DocumentDB event sources, the default batching
|
741
|
-
# is 500 ms. Note that because you can only change
|
738
|
+
# For Kinesis, DynamoDB, and Amazon SQS event sources, the default
|
739
|
+
# batching window is 0 seconds. For Amazon MSK, Self-managed Apache
|
740
|
+
# Kafka, Amazon MQ, and DocumentDB event sources, the default batching
|
741
|
+
# window is 500 ms. Note that because you can only change
|
742
742
|
# `MaximumBatchingWindowInSeconds` in increments of seconds, you
|
743
743
|
# cannot revert back to the 500 ms default batching window after you
|
744
744
|
# have changed it. To restore the default batching window, you must
|
745
745
|
# create a new event source mapping.
|
746
746
|
#
|
747
|
-
# Related setting: For
|
748
|
-
# set `BatchSize` to a value greater than 10, you
|
749
|
-
# `MaximumBatchingWindowInSeconds` to at least 1.
|
747
|
+
# Related setting: For Kinesis, DynamoDB, and Amazon SQS event
|
748
|
+
# sources, when you set `BatchSize` to a value greater than 10, you
|
749
|
+
# must set `MaximumBatchingWindowInSeconds` to at least 1.
|
750
750
|
# @return [Integer]
|
751
751
|
#
|
752
752
|
# @!attribute [rw] parallelization_factor
|
@@ -889,16 +889,24 @@ module Aws::Lambda
|
|
889
889
|
# @return [String]
|
890
890
|
#
|
891
891
|
# @!attribute [rw] runtime
|
892
|
-
# The identifier of the function's [runtime][1]. Runtime is required
|
893
|
-
# if the deployment package is a .zip file archive.
|
892
|
+
# The identifier of the function's [ runtime][1]. Runtime is required
|
893
|
+
# if the deployment package is a .zip file archive. Specifying a
|
894
|
+
# runtime results in an error if you're deploying a function using a
|
895
|
+
# container image.
|
894
896
|
#
|
895
|
-
# The following list includes deprecated runtimes.
|
896
|
-
#
|
897
|
+
# The following list includes deprecated runtimes. Lambda blocks
|
898
|
+
# creating new functions and updating existing functions shortly after
|
899
|
+
# each runtime is deprecated. For more information, see [Runtime use
|
900
|
+
# after deprecation][2].
|
901
|
+
#
|
902
|
+
# For a list of all currently supported runtimes, see [Supported
|
903
|
+
# runtimes][3].
|
897
904
|
#
|
898
905
|
#
|
899
906
|
#
|
900
907
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
|
901
|
-
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
908
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
909
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
902
910
|
# @return [String]
|
903
911
|
#
|
904
912
|
# @!attribute [rw] role
|
@@ -2154,16 +2162,24 @@ module Aws::Lambda
|
|
2154
2162
|
# @return [String]
|
2155
2163
|
#
|
2156
2164
|
# @!attribute [rw] runtime
|
2157
|
-
# The identifier of the function's [runtime][1]. Runtime is required
|
2158
|
-
# if the deployment package is a .zip file archive.
|
2165
|
+
# The identifier of the function's [ runtime][1]. Runtime is required
|
2166
|
+
# if the deployment package is a .zip file archive. Specifying a
|
2167
|
+
# runtime results in an error if you're deploying a function using a
|
2168
|
+
# container image.
|
2159
2169
|
#
|
2160
|
-
# The following list includes deprecated runtimes.
|
2161
|
-
#
|
2170
|
+
# The following list includes deprecated runtimes. Lambda blocks
|
2171
|
+
# creating new functions and updating existing functions shortly after
|
2172
|
+
# each runtime is deprecated. For more information, see [Runtime use
|
2173
|
+
# after deprecation][2].
|
2174
|
+
#
|
2175
|
+
# For a list of all currently supported runtimes, see [Supported
|
2176
|
+
# runtimes][3].
|
2162
2177
|
#
|
2163
2178
|
#
|
2164
2179
|
#
|
2165
2180
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
|
2166
|
-
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
2181
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
2182
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
2167
2183
|
# @return [String]
|
2168
2184
|
#
|
2169
2185
|
# @!attribute [rw] role
|
@@ -2760,6 +2776,40 @@ module Aws::Lambda
|
|
2760
2776
|
include Aws::Structure
|
2761
2777
|
end
|
2762
2778
|
|
2779
|
+
# @!attribute [rw] function_name
|
2780
|
+
# @return [String]
|
2781
|
+
#
|
2782
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionRecursionConfigRequest AWS API Documentation
|
2783
|
+
#
|
2784
|
+
class GetFunctionRecursionConfigRequest < Struct.new(
|
2785
|
+
:function_name)
|
2786
|
+
SENSITIVE = []
|
2787
|
+
include Aws::Structure
|
2788
|
+
end
|
2789
|
+
|
2790
|
+
# @!attribute [rw] recursive_loop
|
2791
|
+
# If your function's recursive loop detection configuration is
|
2792
|
+
# `Allow`, Lambda doesn't take any action when it detects your
|
2793
|
+
# function being invoked as part of a recursive loop.
|
2794
|
+
#
|
2795
|
+
# If your function's recursive loop detection configuration is
|
2796
|
+
# `Terminate`, Lambda stops your function being invoked and notifies
|
2797
|
+
# you when it detects your function being invoked as part of a
|
2798
|
+
# recursive loop.
|
2799
|
+
#
|
2800
|
+
# By default, Lambda sets your function's configuration to
|
2801
|
+
# `Terminate`. You can update this configuration using the
|
2802
|
+
# PutFunctionRecursionConfig action.
|
2803
|
+
# @return [String]
|
2804
|
+
#
|
2805
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionRecursionConfigResponse AWS API Documentation
|
2806
|
+
#
|
2807
|
+
class GetFunctionRecursionConfigResponse < Struct.new(
|
2808
|
+
:recursive_loop)
|
2809
|
+
SENSITIVE = []
|
2810
|
+
include Aws::Structure
|
2811
|
+
end
|
2812
|
+
|
2763
2813
|
# @!attribute [rw] function_name
|
2764
2814
|
# The name or ARN of the Lambda function, version, or alias.
|
2765
2815
|
#
|
@@ -3032,11 +3082,15 @@ module Aws::Lambda
|
|
3032
3082
|
# The layer's compatible runtimes.
|
3033
3083
|
#
|
3034
3084
|
# The following list includes deprecated runtimes. For more
|
3035
|
-
# information, see [Runtime deprecation
|
3085
|
+
# information, see [Runtime use after deprecation][1].
|
3086
|
+
#
|
3087
|
+
# For a list of all currently supported runtimes, see [Supported
|
3088
|
+
# runtimes][2].
|
3036
3089
|
#
|
3037
3090
|
#
|
3038
3091
|
#
|
3039
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
3092
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
3093
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
3040
3094
|
# @return [Array<String>]
|
3041
3095
|
#
|
3042
3096
|
# @!attribute [rw] license_info
|
@@ -3939,11 +3993,15 @@ module Aws::Lambda
|
|
3939
3993
|
# The layer's compatible runtimes.
|
3940
3994
|
#
|
3941
3995
|
# The following list includes deprecated runtimes. For more
|
3942
|
-
# information, see [Runtime deprecation
|
3996
|
+
# information, see [Runtime use after deprecation][1].
|
3997
|
+
#
|
3998
|
+
# For a list of all currently supported runtimes, see [Supported
|
3999
|
+
# runtimes][2].
|
3943
4000
|
#
|
3944
4001
|
#
|
3945
4002
|
#
|
3946
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
4003
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
4004
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
3947
4005
|
# @return [Array<String>]
|
3948
4006
|
#
|
3949
4007
|
# @!attribute [rw] license_info
|
@@ -4376,14 +4434,18 @@ module Aws::Lambda
|
|
4376
4434
|
end
|
4377
4435
|
|
4378
4436
|
# @!attribute [rw] compatible_runtime
|
4379
|
-
# A runtime identifier.
|
4437
|
+
# A runtime identifier.
|
4380
4438
|
#
|
4381
4439
|
# The following list includes deprecated runtimes. For more
|
4382
|
-
# information, see [Runtime deprecation
|
4440
|
+
# information, see [Runtime use after deprecation][1].
|
4383
4441
|
#
|
4442
|
+
# For a list of all currently supported runtimes, see [Supported
|
4443
|
+
# runtimes][2].
|
4384
4444
|
#
|
4385
4445
|
#
|
4386
|
-
#
|
4446
|
+
#
|
4447
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
4448
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
4387
4449
|
# @return [String]
|
4388
4450
|
#
|
4389
4451
|
# @!attribute [rw] layer_name
|
@@ -4437,14 +4499,18 @@ module Aws::Lambda
|
|
4437
4499
|
end
|
4438
4500
|
|
4439
4501
|
# @!attribute [rw] compatible_runtime
|
4440
|
-
# A runtime identifier.
|
4502
|
+
# A runtime identifier.
|
4441
4503
|
#
|
4442
4504
|
# The following list includes deprecated runtimes. For more
|
4443
|
-
# information, see [Runtime deprecation
|
4505
|
+
# information, see [Runtime use after deprecation][1].
|
4506
|
+
#
|
4507
|
+
# For a list of all currently supported runtimes, see [Supported
|
4508
|
+
# runtimes][2].
|
4444
4509
|
#
|
4445
4510
|
#
|
4446
4511
|
#
|
4447
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
4512
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
4513
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
4448
4514
|
# @return [String]
|
4449
4515
|
#
|
4450
4516
|
# @!attribute [rw] marker
|
@@ -4733,8 +4799,13 @@ module Aws::Lambda
|
|
4733
4799
|
end
|
4734
4800
|
|
4735
4801
|
# The RevisionId provided does not match the latest RevisionId for the
|
4736
|
-
# Lambda function or alias.
|
4737
|
-
#
|
4802
|
+
# Lambda function or alias.
|
4803
|
+
#
|
4804
|
+
# * **For AddPermission and RemovePermission API operations:** Call
|
4805
|
+
# `GetPolicy` to retrieve the latest RevisionId for your resource.
|
4806
|
+
#
|
4807
|
+
# * **For all other API operations:** Call `GetFunction` or `GetAlias`
|
4808
|
+
# to retrieve the latest RevisionId for your resource.
|
4738
4809
|
#
|
4739
4810
|
# @!attribute [rw] type
|
4740
4811
|
# The exception type.
|
@@ -4918,11 +4989,15 @@ module Aws::Lambda
|
|
4918
4989
|
# The layer's compatible runtimes.
|
4919
4990
|
#
|
4920
4991
|
# The following list includes deprecated runtimes. For more
|
4921
|
-
# information, see [Runtime deprecation
|
4992
|
+
# information, see [Runtime use after deprecation][1].
|
4993
|
+
#
|
4994
|
+
# For a list of all currently supported runtimes, see [Supported
|
4995
|
+
# runtimes][2].
|
4922
4996
|
#
|
4923
4997
|
#
|
4924
4998
|
#
|
4925
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
4999
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
5000
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
4926
5001
|
# @return [Array<String>]
|
4927
5002
|
#
|
4928
5003
|
# @!attribute [rw] license_info
|
@@ -5148,6 +5223,81 @@ module Aws::Lambda
|
|
5148
5223
|
include Aws::Structure
|
5149
5224
|
end
|
5150
5225
|
|
5226
|
+
# @!attribute [rw] function_name
|
5227
|
+
# The name or ARN of the Lambda function.
|
5228
|
+
#
|
5229
|
+
# **Name formats**
|
5230
|
+
#
|
5231
|
+
# * **Function name** – `my-function`.
|
5232
|
+
#
|
5233
|
+
# * **Function ARN** –
|
5234
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
5235
|
+
#
|
5236
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
5237
|
+
#
|
5238
|
+
# The length constraint applies only to the full ARN. If you specify
|
5239
|
+
# only the function name, it is limited to 64 characters in length.
|
5240
|
+
# @return [String]
|
5241
|
+
#
|
5242
|
+
# @!attribute [rw] recursive_loop
|
5243
|
+
# If you set your function's recursive loop detection configuration
|
5244
|
+
# to `Allow`, Lambda doesn't take any action when it detects your
|
5245
|
+
# function being invoked as part of a recursive loop. We recommend
|
5246
|
+
# that you only use this setting if your design intentionally uses a
|
5247
|
+
# Lambda function to write data back to the same Amazon Web Services
|
5248
|
+
# resource that invokes it.
|
5249
|
+
#
|
5250
|
+
# If you set your function's recursive loop detection configuration
|
5251
|
+
# to `Terminate`, Lambda stops your function being invoked and
|
5252
|
+
# notifies you when it detects your function being invoked as part of
|
5253
|
+
# a recursive loop.
|
5254
|
+
#
|
5255
|
+
# By default, Lambda sets your function's configuration to
|
5256
|
+
# `Terminate`.
|
5257
|
+
#
|
5258
|
+
# If your design intentionally uses a Lambda function to write data
|
5259
|
+
# back to the same Amazon Web Services resource that invokes the
|
5260
|
+
# function, then use caution and implement suitable guard rails to
|
5261
|
+
# prevent unexpected charges being billed to your Amazon Web Services
|
5262
|
+
# account. To learn more about best practices for using recursive
|
5263
|
+
# invocation patterns, see [Recursive patterns that cause run-away
|
5264
|
+
# Lambda functions][1] in Serverless Land.
|
5265
|
+
#
|
5266
|
+
#
|
5267
|
+
#
|
5268
|
+
# [1]: https://serverlessland.com/content/service/lambda/guides/aws-lambda-operator-guide/recursive-runaway
|
5269
|
+
# @return [String]
|
5270
|
+
#
|
5271
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionRecursionConfigRequest AWS API Documentation
|
5272
|
+
#
|
5273
|
+
class PutFunctionRecursionConfigRequest < Struct.new(
|
5274
|
+
:function_name,
|
5275
|
+
:recursive_loop)
|
5276
|
+
SENSITIVE = []
|
5277
|
+
include Aws::Structure
|
5278
|
+
end
|
5279
|
+
|
5280
|
+
# @!attribute [rw] recursive_loop
|
5281
|
+
# The status of your function's recursive loop detection
|
5282
|
+
# configuration.
|
5283
|
+
#
|
5284
|
+
# When this value is set to `Allow`and Lambda detects your function
|
5285
|
+
# being invoked as part of a recursive loop, it doesn't take any
|
5286
|
+
# action.
|
5287
|
+
#
|
5288
|
+
# When this value is set to `Terminate` and Lambda detects your
|
5289
|
+
# function being invoked as part of a recursive loop, it stops your
|
5290
|
+
# function being invoked and notifies you.
|
5291
|
+
# @return [String]
|
5292
|
+
#
|
5293
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionRecursionConfigResponse AWS API Documentation
|
5294
|
+
#
|
5295
|
+
class PutFunctionRecursionConfigResponse < Struct.new(
|
5296
|
+
:recursive_loop)
|
5297
|
+
SENSITIVE = []
|
5298
|
+
include Aws::Structure
|
5299
|
+
end
|
5300
|
+
|
5151
5301
|
# @!attribute [rw] function_name
|
5152
5302
|
# The name or ARN of the Lambda function.
|
5153
5303
|
#
|
@@ -6100,18 +6250,18 @@ module Aws::Lambda
|
|
6100
6250
|
# `MaximumBatchingWindowInSeconds` to any value from 0 seconds to 300
|
6101
6251
|
# seconds in increments of seconds.
|
6102
6252
|
#
|
6103
|
-
# For
|
6104
|
-
# window is 0 seconds. For Amazon MSK, Self-managed Apache
|
6105
|
-
# Amazon MQ, and DocumentDB event sources, the default batching
|
6106
|
-
# is 500 ms. Note that because you can only change
|
6253
|
+
# For Kinesis, DynamoDB, and Amazon SQS event sources, the default
|
6254
|
+
# batching window is 0 seconds. For Amazon MSK, Self-managed Apache
|
6255
|
+
# Kafka, Amazon MQ, and DocumentDB event sources, the default batching
|
6256
|
+
# window is 500 ms. Note that because you can only change
|
6107
6257
|
# `MaximumBatchingWindowInSeconds` in increments of seconds, you
|
6108
6258
|
# cannot revert back to the 500 ms default batching window after you
|
6109
6259
|
# have changed it. To restore the default batching window, you must
|
6110
6260
|
# create a new event source mapping.
|
6111
6261
|
#
|
6112
|
-
# Related setting: For
|
6113
|
-
# set `BatchSize` to a value greater than 10, you
|
6114
|
-
# `MaximumBatchingWindowInSeconds` to at least 1.
|
6262
|
+
# Related setting: For Kinesis, DynamoDB, and Amazon SQS event
|
6263
|
+
# sources, when you set `BatchSize` to a value greater than 10, you
|
6264
|
+
# must set `MaximumBatchingWindowInSeconds` to at least 1.
|
6115
6265
|
# @return [Integer]
|
6116
6266
|
#
|
6117
6267
|
# @!attribute [rw] destination_config
|
@@ -6354,16 +6504,24 @@ module Aws::Lambda
|
|
6354
6504
|
# @return [Types::Environment]
|
6355
6505
|
#
|
6356
6506
|
# @!attribute [rw] runtime
|
6357
|
-
# The identifier of the function's [runtime][1]. Runtime is required
|
6358
|
-
# if the deployment package is a .zip file archive.
|
6507
|
+
# The identifier of the function's [ runtime][1]. Runtime is required
|
6508
|
+
# if the deployment package is a .zip file archive. Specifying a
|
6509
|
+
# runtime results in an error if you're deploying a function using a
|
6510
|
+
# container image.
|
6359
6511
|
#
|
6360
|
-
# The following list includes deprecated runtimes.
|
6361
|
-
#
|
6512
|
+
# The following list includes deprecated runtimes. Lambda blocks
|
6513
|
+
# creating new functions and updating existing functions shortly after
|
6514
|
+
# each runtime is deprecated. For more information, see [Runtime use
|
6515
|
+
# after deprecation][2].
|
6516
|
+
#
|
6517
|
+
# For a list of all currently supported runtimes, see [Supported
|
6518
|
+
# runtimes][3].
|
6362
6519
|
#
|
6363
6520
|
#
|
6364
6521
|
#
|
6365
6522
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
|
6366
|
-
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
6523
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
6524
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
6367
6525
|
# @return [String]
|
6368
6526
|
#
|
6369
6527
|
# @!attribute [rw] dead_letter_config
|
data/lib/aws-sdk-lambda.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -633,6 +633,16 @@ module Aws
|
|
633
633
|
) -> _GetFunctionEventInvokeConfigResponseSuccess
|
634
634
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFunctionEventInvokeConfigResponseSuccess
|
635
635
|
|
636
|
+
interface _GetFunctionRecursionConfigResponseSuccess
|
637
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetFunctionRecursionConfigResponse]
|
638
|
+
def recursive_loop: () -> ("Allow" | "Terminate")
|
639
|
+
end
|
640
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_function_recursion_config-instance_method
|
641
|
+
def get_function_recursion_config: (
|
642
|
+
function_name: ::String
|
643
|
+
) -> _GetFunctionRecursionConfigResponseSuccess
|
644
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFunctionRecursionConfigResponseSuccess
|
645
|
+
|
636
646
|
interface _GetFunctionUrlConfigResponseSuccess
|
637
647
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetFunctionUrlConfigResponse]
|
638
648
|
def function_url: () -> ::String
|
@@ -1070,6 +1080,17 @@ module Aws
|
|
1070
1080
|
) -> _PutFunctionEventInvokeConfigResponseSuccess
|
1071
1081
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutFunctionEventInvokeConfigResponseSuccess
|
1072
1082
|
|
1083
|
+
interface _PutFunctionRecursionConfigResponseSuccess
|
1084
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutFunctionRecursionConfigResponse]
|
1085
|
+
def recursive_loop: () -> ("Allow" | "Terminate")
|
1086
|
+
end
|
1087
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#put_function_recursion_config-instance_method
|
1088
|
+
def put_function_recursion_config: (
|
1089
|
+
function_name: ::String,
|
1090
|
+
recursive_loop: ("Allow" | "Terminate")
|
1091
|
+
) -> _PutFunctionRecursionConfigResponseSuccess
|
1092
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutFunctionRecursionConfigResponseSuccess
|
1093
|
+
|
1073
1094
|
interface _PutProvisionedConcurrencyConfigResponseSuccess
|
1074
1095
|
include ::Seahorse::Client::_ResponseSuccess[Types::PutProvisionedConcurrencyConfigResponse]
|
1075
1096
|
def requested_provisioned_concurrent_executions: () -> ::Integer
|
data/sig/types.rbs
CHANGED
@@ -563,6 +563,16 @@ module Aws::Lambda
|
|
563
563
|
SENSITIVE: []
|
564
564
|
end
|
565
565
|
|
566
|
+
class GetFunctionRecursionConfigRequest
|
567
|
+
attr_accessor function_name: ::String
|
568
|
+
SENSITIVE: []
|
569
|
+
end
|
570
|
+
|
571
|
+
class GetFunctionRecursionConfigResponse
|
572
|
+
attr_accessor recursive_loop: ("Allow" | "Terminate")
|
573
|
+
SENSITIVE: []
|
574
|
+
end
|
575
|
+
|
566
576
|
class GetFunctionRequest
|
567
577
|
attr_accessor function_name: ::String
|
568
578
|
attr_accessor qualifier: ::String
|
@@ -1124,6 +1134,17 @@ module Aws::Lambda
|
|
1124
1134
|
SENSITIVE: []
|
1125
1135
|
end
|
1126
1136
|
|
1137
|
+
class PutFunctionRecursionConfigRequest
|
1138
|
+
attr_accessor function_name: ::String
|
1139
|
+
attr_accessor recursive_loop: ("Allow" | "Terminate")
|
1140
|
+
SENSITIVE: []
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
class PutFunctionRecursionConfigResponse
|
1144
|
+
attr_accessor recursive_loop: ("Allow" | "Terminate")
|
1145
|
+
SENSITIVE: []
|
1146
|
+
end
|
1147
|
+
|
1127
1148
|
class PutProvisionedConcurrencyConfigRequest
|
1128
1149
|
attr_accessor function_name: ::String
|
1129
1150
|
attr_accessor qualifier: ::String
|
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.126.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: 2024-
|
11
|
+
date: 2024-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|