aws-sdk-lambda 1.125.0 → 1.127.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +268 -79
- data/lib/aws-sdk-lambda/client_api.rb +55 -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 +283 -56
- data/lib/aws-sdk-lambda.rb +1 -1
- data/sig/client.rbs +33 -2
- data/sig/types.rbs +31 -0
- metadata +2 -2
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -167,27 +167,27 @@ module Aws::Lambda
|
|
167
167
|
# @return [String]
|
168
168
|
#
|
169
169
|
# @!attribute [rw] principal
|
170
|
-
# The Amazon Web
|
171
|
-
# the function. If you specify a service, use `SourceArn` or
|
170
|
+
# The Amazon Web Servicesservice or Amazon Web Services account that
|
171
|
+
# invokes the function. If you specify a service, use `SourceArn` or
|
172
172
|
# `SourceAccount` to limit who can invoke the function through that
|
173
173
|
# service.
|
174
174
|
# @return [String]
|
175
175
|
#
|
176
176
|
# @!attribute [rw] source_arn
|
177
|
-
# For Amazon Web
|
178
|
-
# that invokes the function. For example, an Amazon S3 bucket
|
179
|
-
# Amazon SNS topic.
|
177
|
+
# For Amazon Web Servicesservices, the ARN of the Amazon Web Services
|
178
|
+
# resource that invokes the function. For example, an Amazon S3 bucket
|
179
|
+
# or Amazon SNS topic.
|
180
180
|
#
|
181
181
|
# Note that Lambda configures the comparison using the `StringLike`
|
182
182
|
# operator.
|
183
183
|
# @return [String]
|
184
184
|
#
|
185
185
|
# @!attribute [rw] source_account
|
186
|
-
# For Amazon Web
|
187
|
-
# that owns the resource. Use this together with `SourceArn`
|
188
|
-
# that the specified account owns the resource. It is
|
189
|
-
# Amazon S3 bucket to be deleted by its owner and
|
190
|
-
# account.
|
186
|
+
# For Amazon Web Servicesservice, the ID of the Amazon Web Services
|
187
|
+
# account that owns the resource. Use this together with `SourceArn`
|
188
|
+
# to ensure that the specified account owns the resource. It is
|
189
|
+
# possible for an Amazon S3 bucket to be deleted by its owner and
|
190
|
+
# recreated by another account.
|
191
191
|
# @return [String]
|
192
192
|
#
|
193
193
|
# @!attribute [rw] event_source_token
|
@@ -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
|
@@ -842,6 +842,18 @@ module Aws::Lambda
|
|
842
842
|
# Specific configuration settings for a DocumentDB event source.
|
843
843
|
# @return [Types::DocumentDBEventSourceConfig]
|
844
844
|
#
|
845
|
+
# @!attribute [rw] kms_key_arn
|
846
|
+
# The ARN of the Key Management Service (KMS) customer managed key
|
847
|
+
# that Lambda uses to encrypt your function's [filter criteria][1].
|
848
|
+
# By default, Lambda does not encrypt your filter criteria object.
|
849
|
+
# Specify this property to encrypt data using your own customer
|
850
|
+
# managed key.
|
851
|
+
#
|
852
|
+
#
|
853
|
+
#
|
854
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
|
855
|
+
# @return [String]
|
856
|
+
#
|
845
857
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
|
846
858
|
#
|
847
859
|
class CreateEventSourceMappingRequest < Struct.new(
|
@@ -867,7 +879,8 @@ module Aws::Lambda
|
|
867
879
|
:amazon_managed_kafka_event_source_config,
|
868
880
|
:self_managed_kafka_event_source_config,
|
869
881
|
:scaling_config,
|
870
|
-
:document_db_event_source_config
|
882
|
+
:document_db_event_source_config,
|
883
|
+
:kms_key_arn)
|
871
884
|
SENSITIVE = []
|
872
885
|
include Aws::Structure
|
873
886
|
end
|
@@ -889,16 +902,24 @@ module Aws::Lambda
|
|
889
902
|
# @return [String]
|
890
903
|
#
|
891
904
|
# @!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.
|
905
|
+
# The identifier of the function's [ runtime][1]. Runtime is required
|
906
|
+
# if the deployment package is a .zip file archive. Specifying a
|
907
|
+
# runtime results in an error if you're deploying a function using a
|
908
|
+
# container image.
|
894
909
|
#
|
895
|
-
# The following list includes deprecated runtimes.
|
896
|
-
#
|
910
|
+
# The following list includes deprecated runtimes. Lambda blocks
|
911
|
+
# creating new functions and updating existing functions shortly after
|
912
|
+
# each runtime is deprecated. For more information, see [Runtime use
|
913
|
+
# after deprecation][2].
|
914
|
+
#
|
915
|
+
# For a list of all currently supported runtimes, see [Supported
|
916
|
+
# runtimes][3].
|
897
917
|
#
|
898
918
|
#
|
899
919
|
#
|
900
920
|
# [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-
|
921
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
922
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
902
923
|
# @return [String]
|
903
924
|
#
|
904
925
|
# @!attribute [rw] role
|
@@ -1862,6 +1883,12 @@ module Aws::Lambda
|
|
1862
1883
|
# Lambda should process an event. For more information, see [Lambda
|
1863
1884
|
# event filtering][1].
|
1864
1885
|
#
|
1886
|
+
# If filter criteria is encrypted, this field shows up as `null` in
|
1887
|
+
# the response of ListEventSourceMapping API calls. You can view this
|
1888
|
+
# field in plaintext in the response of GetEventSourceMapping and
|
1889
|
+
# DeleteEventSourceMapping calls if you have `kms:Decrypt` permissions
|
1890
|
+
# for the correct KMS key.
|
1891
|
+
#
|
1865
1892
|
#
|
1866
1893
|
#
|
1867
1894
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
|
@@ -1976,6 +2003,20 @@ module Aws::Lambda
|
|
1976
2003
|
# Specific configuration settings for a DocumentDB event source.
|
1977
2004
|
# @return [Types::DocumentDBEventSourceConfig]
|
1978
2005
|
#
|
2006
|
+
# @!attribute [rw] kms_key_arn
|
2007
|
+
# The ARN of the Key Management Service (KMS) customer managed key
|
2008
|
+
# that Lambda uses to encrypt your function's [filter criteria][1].
|
2009
|
+
#
|
2010
|
+
#
|
2011
|
+
#
|
2012
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
|
2013
|
+
# @return [String]
|
2014
|
+
#
|
2015
|
+
# @!attribute [rw] filter_criteria_error
|
2016
|
+
# An object that contains details about an error related to filter
|
2017
|
+
# criteria encryption.
|
2018
|
+
# @return [Types::FilterCriteriaError]
|
2019
|
+
#
|
1979
2020
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/EventSourceMappingConfiguration AWS API Documentation
|
1980
2021
|
#
|
1981
2022
|
class EventSourceMappingConfiguration < Struct.new(
|
@@ -2005,7 +2046,9 @@ module Aws::Lambda
|
|
2005
2046
|
:amazon_managed_kafka_event_source_config,
|
2006
2047
|
:self_managed_kafka_event_source_config,
|
2007
2048
|
:scaling_config,
|
2008
|
-
:document_db_event_source_config
|
2049
|
+
:document_db_event_source_config,
|
2050
|
+
:kms_key_arn,
|
2051
|
+
:filter_criteria_error)
|
2009
2052
|
SENSITIVE = []
|
2010
2053
|
include Aws::Structure
|
2011
2054
|
end
|
@@ -2070,6 +2113,27 @@ module Aws::Lambda
|
|
2070
2113
|
include Aws::Structure
|
2071
2114
|
end
|
2072
2115
|
|
2116
|
+
# An object that contains details about an error related to filter
|
2117
|
+
# criteria encryption.
|
2118
|
+
#
|
2119
|
+
# @!attribute [rw] error_code
|
2120
|
+
# The KMS exception that resulted from filter criteria encryption or
|
2121
|
+
# decryption.
|
2122
|
+
# @return [String]
|
2123
|
+
#
|
2124
|
+
# @!attribute [rw] message
|
2125
|
+
# The error message.
|
2126
|
+
# @return [String]
|
2127
|
+
#
|
2128
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FilterCriteriaError AWS API Documentation
|
2129
|
+
#
|
2130
|
+
class FilterCriteriaError < Struct.new(
|
2131
|
+
:error_code,
|
2132
|
+
:message)
|
2133
|
+
SENSITIVE = []
|
2134
|
+
include Aws::Structure
|
2135
|
+
end
|
2136
|
+
|
2073
2137
|
# The code for the Lambda function. You can either specify an object in
|
2074
2138
|
# Amazon S3, upload a .zip file archive deployment package directly, or
|
2075
2139
|
# specify the URI of a container image.
|
@@ -2154,16 +2218,24 @@ module Aws::Lambda
|
|
2154
2218
|
# @return [String]
|
2155
2219
|
#
|
2156
2220
|
# @!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.
|
2221
|
+
# The identifier of the function's [ runtime][1]. Runtime is required
|
2222
|
+
# if the deployment package is a .zip file archive. Specifying a
|
2223
|
+
# runtime results in an error if you're deploying a function using a
|
2224
|
+
# container image.
|
2159
2225
|
#
|
2160
|
-
# The following list includes deprecated runtimes.
|
2161
|
-
#
|
2226
|
+
# The following list includes deprecated runtimes. Lambda blocks
|
2227
|
+
# creating new functions and updating existing functions shortly after
|
2228
|
+
# each runtime is deprecated. For more information, see [Runtime use
|
2229
|
+
# after deprecation][2].
|
2230
|
+
#
|
2231
|
+
# For a list of all currently supported runtimes, see [Supported
|
2232
|
+
# runtimes][3].
|
2162
2233
|
#
|
2163
2234
|
#
|
2164
2235
|
#
|
2165
2236
|
# [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-
|
2237
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
2238
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
2167
2239
|
# @return [String]
|
2168
2240
|
#
|
2169
2241
|
# @!attribute [rw] role
|
@@ -2760,6 +2832,40 @@ module Aws::Lambda
|
|
2760
2832
|
include Aws::Structure
|
2761
2833
|
end
|
2762
2834
|
|
2835
|
+
# @!attribute [rw] function_name
|
2836
|
+
# @return [String]
|
2837
|
+
#
|
2838
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionRecursionConfigRequest AWS API Documentation
|
2839
|
+
#
|
2840
|
+
class GetFunctionRecursionConfigRequest < Struct.new(
|
2841
|
+
:function_name)
|
2842
|
+
SENSITIVE = []
|
2843
|
+
include Aws::Structure
|
2844
|
+
end
|
2845
|
+
|
2846
|
+
# @!attribute [rw] recursive_loop
|
2847
|
+
# If your function's recursive loop detection configuration is
|
2848
|
+
# `Allow`, Lambda doesn't take any action when it detects your
|
2849
|
+
# function being invoked as part of a recursive loop.
|
2850
|
+
#
|
2851
|
+
# If your function's recursive loop detection configuration is
|
2852
|
+
# `Terminate`, Lambda stops your function being invoked and notifies
|
2853
|
+
# you when it detects your function being invoked as part of a
|
2854
|
+
# recursive loop.
|
2855
|
+
#
|
2856
|
+
# By default, Lambda sets your function's configuration to
|
2857
|
+
# `Terminate`. You can update this configuration using the
|
2858
|
+
# PutFunctionRecursionConfig action.
|
2859
|
+
# @return [String]
|
2860
|
+
#
|
2861
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionRecursionConfigResponse AWS API Documentation
|
2862
|
+
#
|
2863
|
+
class GetFunctionRecursionConfigResponse < Struct.new(
|
2864
|
+
:recursive_loop)
|
2865
|
+
SENSITIVE = []
|
2866
|
+
include Aws::Structure
|
2867
|
+
end
|
2868
|
+
|
2763
2869
|
# @!attribute [rw] function_name
|
2764
2870
|
# The name or ARN of the Lambda function, version, or alias.
|
2765
2871
|
#
|
@@ -3032,11 +3138,15 @@ module Aws::Lambda
|
|
3032
3138
|
# The layer's compatible runtimes.
|
3033
3139
|
#
|
3034
3140
|
# The following list includes deprecated runtimes. For more
|
3035
|
-
# information, see [Runtime deprecation
|
3141
|
+
# information, see [Runtime use after deprecation][1].
|
3036
3142
|
#
|
3143
|
+
# For a list of all currently supported runtimes, see [Supported
|
3144
|
+
# runtimes][2].
|
3037
3145
|
#
|
3038
3146
|
#
|
3039
|
-
#
|
3147
|
+
#
|
3148
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
3149
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
3040
3150
|
# @return [Array<String>]
|
3041
3151
|
#
|
3042
3152
|
# @!attribute [rw] license_info
|
@@ -3939,11 +4049,15 @@ module Aws::Lambda
|
|
3939
4049
|
# The layer's compatible runtimes.
|
3940
4050
|
#
|
3941
4051
|
# The following list includes deprecated runtimes. For more
|
3942
|
-
# information, see [Runtime deprecation
|
4052
|
+
# information, see [Runtime use after deprecation][1].
|
4053
|
+
#
|
4054
|
+
# For a list of all currently supported runtimes, see [Supported
|
4055
|
+
# runtimes][2].
|
3943
4056
|
#
|
3944
4057
|
#
|
3945
4058
|
#
|
3946
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
4059
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
4060
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
3947
4061
|
# @return [Array<String>]
|
3948
4062
|
#
|
3949
4063
|
# @!attribute [rw] license_info
|
@@ -4376,14 +4490,18 @@ module Aws::Lambda
|
|
4376
4490
|
end
|
4377
4491
|
|
4378
4492
|
# @!attribute [rw] compatible_runtime
|
4379
|
-
# A runtime identifier.
|
4493
|
+
# A runtime identifier.
|
4380
4494
|
#
|
4381
4495
|
# The following list includes deprecated runtimes. For more
|
4382
|
-
# information, see [Runtime deprecation
|
4496
|
+
# information, see [Runtime use after deprecation][1].
|
4497
|
+
#
|
4498
|
+
# For a list of all currently supported runtimes, see [Supported
|
4499
|
+
# runtimes][2].
|
4383
4500
|
#
|
4384
4501
|
#
|
4385
4502
|
#
|
4386
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
4503
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
4504
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
4387
4505
|
# @return [String]
|
4388
4506
|
#
|
4389
4507
|
# @!attribute [rw] layer_name
|
@@ -4437,14 +4555,18 @@ module Aws::Lambda
|
|
4437
4555
|
end
|
4438
4556
|
|
4439
4557
|
# @!attribute [rw] compatible_runtime
|
4440
|
-
# A runtime identifier.
|
4558
|
+
# A runtime identifier.
|
4441
4559
|
#
|
4442
4560
|
# The following list includes deprecated runtimes. For more
|
4443
|
-
# information, see [Runtime deprecation
|
4561
|
+
# information, see [Runtime use after deprecation][1].
|
4444
4562
|
#
|
4563
|
+
# For a list of all currently supported runtimes, see [Supported
|
4564
|
+
# runtimes][2].
|
4445
4565
|
#
|
4446
4566
|
#
|
4447
|
-
#
|
4567
|
+
#
|
4568
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
4569
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
4448
4570
|
# @return [String]
|
4449
4571
|
#
|
4450
4572
|
# @!attribute [rw] marker
|
@@ -4733,8 +4855,13 @@ module Aws::Lambda
|
|
4733
4855
|
end
|
4734
4856
|
|
4735
4857
|
# The RevisionId provided does not match the latest RevisionId for the
|
4736
|
-
# Lambda function or alias.
|
4737
|
-
#
|
4858
|
+
# Lambda function or alias.
|
4859
|
+
#
|
4860
|
+
# * **For AddPermission and RemovePermission API operations:** Call
|
4861
|
+
# `GetPolicy` to retrieve the latest RevisionId for your resource.
|
4862
|
+
#
|
4863
|
+
# * **For all other API operations:** Call `GetFunction` or `GetAlias`
|
4864
|
+
# to retrieve the latest RevisionId for your resource.
|
4738
4865
|
#
|
4739
4866
|
# @!attribute [rw] type
|
4740
4867
|
# The exception type.
|
@@ -4918,11 +5045,15 @@ module Aws::Lambda
|
|
4918
5045
|
# The layer's compatible runtimes.
|
4919
5046
|
#
|
4920
5047
|
# The following list includes deprecated runtimes. For more
|
4921
|
-
# information, see [Runtime deprecation
|
5048
|
+
# information, see [Runtime use after deprecation][1].
|
5049
|
+
#
|
5050
|
+
# For a list of all currently supported runtimes, see [Supported
|
5051
|
+
# runtimes][2].
|
4922
5052
|
#
|
4923
5053
|
#
|
4924
5054
|
#
|
4925
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-
|
5055
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
5056
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
4926
5057
|
# @return [Array<String>]
|
4927
5058
|
#
|
4928
5059
|
# @!attribute [rw] license_info
|
@@ -5148,6 +5279,81 @@ module Aws::Lambda
|
|
5148
5279
|
include Aws::Structure
|
5149
5280
|
end
|
5150
5281
|
|
5282
|
+
# @!attribute [rw] function_name
|
5283
|
+
# The name or ARN of the Lambda function.
|
5284
|
+
#
|
5285
|
+
# **Name formats**
|
5286
|
+
#
|
5287
|
+
# * **Function name** – `my-function`.
|
5288
|
+
#
|
5289
|
+
# * **Function ARN** –
|
5290
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
5291
|
+
#
|
5292
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
5293
|
+
#
|
5294
|
+
# The length constraint applies only to the full ARN. If you specify
|
5295
|
+
# only the function name, it is limited to 64 characters in length.
|
5296
|
+
# @return [String]
|
5297
|
+
#
|
5298
|
+
# @!attribute [rw] recursive_loop
|
5299
|
+
# If you set your function's recursive loop detection configuration
|
5300
|
+
# to `Allow`, Lambda doesn't take any action when it detects your
|
5301
|
+
# function being invoked as part of a recursive loop. We recommend
|
5302
|
+
# that you only use this setting if your design intentionally uses a
|
5303
|
+
# Lambda function to write data back to the same Amazon Web Services
|
5304
|
+
# resource that invokes it.
|
5305
|
+
#
|
5306
|
+
# If you set your function's recursive loop detection configuration
|
5307
|
+
# to `Terminate`, Lambda stops your function being invoked and
|
5308
|
+
# notifies you when it detects your function being invoked as part of
|
5309
|
+
# a recursive loop.
|
5310
|
+
#
|
5311
|
+
# By default, Lambda sets your function's configuration to
|
5312
|
+
# `Terminate`.
|
5313
|
+
#
|
5314
|
+
# If your design intentionally uses a Lambda function to write data
|
5315
|
+
# back to the same Amazon Web Services resource that invokes the
|
5316
|
+
# function, then use caution and implement suitable guard rails to
|
5317
|
+
# prevent unexpected charges being billed to your Amazon Web Services
|
5318
|
+
# account. To learn more about best practices for using recursive
|
5319
|
+
# invocation patterns, see [Recursive patterns that cause run-away
|
5320
|
+
# Lambda functions][1] in Serverless Land.
|
5321
|
+
#
|
5322
|
+
#
|
5323
|
+
#
|
5324
|
+
# [1]: https://serverlessland.com/content/service/lambda/guides/aws-lambda-operator-guide/recursive-runaway
|
5325
|
+
# @return [String]
|
5326
|
+
#
|
5327
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionRecursionConfigRequest AWS API Documentation
|
5328
|
+
#
|
5329
|
+
class PutFunctionRecursionConfigRequest < Struct.new(
|
5330
|
+
:function_name,
|
5331
|
+
:recursive_loop)
|
5332
|
+
SENSITIVE = []
|
5333
|
+
include Aws::Structure
|
5334
|
+
end
|
5335
|
+
|
5336
|
+
# @!attribute [rw] recursive_loop
|
5337
|
+
# The status of your function's recursive loop detection
|
5338
|
+
# configuration.
|
5339
|
+
#
|
5340
|
+
# When this value is set to `Allow`and Lambda detects your function
|
5341
|
+
# being invoked as part of a recursive loop, it doesn't take any
|
5342
|
+
# action.
|
5343
|
+
#
|
5344
|
+
# When this value is set to `Terminate` and Lambda detects your
|
5345
|
+
# function being invoked as part of a recursive loop, it stops your
|
5346
|
+
# function being invoked and notifies you.
|
5347
|
+
# @return [String]
|
5348
|
+
#
|
5349
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionRecursionConfigResponse AWS API Documentation
|
5350
|
+
#
|
5351
|
+
class PutFunctionRecursionConfigResponse < Struct.new(
|
5352
|
+
:recursive_loop)
|
5353
|
+
SENSITIVE = []
|
5354
|
+
include Aws::Structure
|
5355
|
+
end
|
5356
|
+
|
5151
5357
|
# @!attribute [rw] function_name
|
5152
5358
|
# The name or ARN of the Lambda function.
|
5153
5359
|
#
|
@@ -6100,18 +6306,18 @@ module Aws::Lambda
|
|
6100
6306
|
# `MaximumBatchingWindowInSeconds` to any value from 0 seconds to 300
|
6101
6307
|
# seconds in increments of seconds.
|
6102
6308
|
#
|
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
|
6309
|
+
# For Kinesis, DynamoDB, and Amazon SQS event sources, the default
|
6310
|
+
# batching window is 0 seconds. For Amazon MSK, Self-managed Apache
|
6311
|
+
# Kafka, Amazon MQ, and DocumentDB event sources, the default batching
|
6312
|
+
# window is 500 ms. Note that because you can only change
|
6107
6313
|
# `MaximumBatchingWindowInSeconds` in increments of seconds, you
|
6108
6314
|
# cannot revert back to the 500 ms default batching window after you
|
6109
6315
|
# have changed it. To restore the default batching window, you must
|
6110
6316
|
# create a new event source mapping.
|
6111
6317
|
#
|
6112
|
-
# Related setting: For
|
6113
|
-
# set `BatchSize` to a value greater than 10, you
|
6114
|
-
# `MaximumBatchingWindowInSeconds` to at least 1.
|
6318
|
+
# Related setting: For Kinesis, DynamoDB, and Amazon SQS event
|
6319
|
+
# sources, when you set `BatchSize` to a value greater than 10, you
|
6320
|
+
# must set `MaximumBatchingWindowInSeconds` to at least 1.
|
6115
6321
|
# @return [Integer]
|
6116
6322
|
#
|
6117
6323
|
# @!attribute [rw] destination_config
|
@@ -6172,6 +6378,18 @@ module Aws::Lambda
|
|
6172
6378
|
# Specific configuration settings for a DocumentDB event source.
|
6173
6379
|
# @return [Types::DocumentDBEventSourceConfig]
|
6174
6380
|
#
|
6381
|
+
# @!attribute [rw] kms_key_arn
|
6382
|
+
# The ARN of the Key Management Service (KMS) customer managed key
|
6383
|
+
# that Lambda uses to encrypt your function's [filter criteria][1].
|
6384
|
+
# By default, Lambda does not encrypt your filter criteria object.
|
6385
|
+
# Specify this property to encrypt data using your own customer
|
6386
|
+
# managed key.
|
6387
|
+
#
|
6388
|
+
#
|
6389
|
+
#
|
6390
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics
|
6391
|
+
# @return [String]
|
6392
|
+
#
|
6175
6393
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest AWS API Documentation
|
6176
6394
|
#
|
6177
6395
|
class UpdateEventSourceMappingRequest < Struct.new(
|
@@ -6190,7 +6408,8 @@ module Aws::Lambda
|
|
6190
6408
|
:tumbling_window_in_seconds,
|
6191
6409
|
:function_response_types,
|
6192
6410
|
:scaling_config,
|
6193
|
-
:document_db_event_source_config
|
6411
|
+
:document_db_event_source_config,
|
6412
|
+
:kms_key_arn)
|
6194
6413
|
SENSITIVE = []
|
6195
6414
|
include Aws::Structure
|
6196
6415
|
end
|
@@ -6354,16 +6573,24 @@ module Aws::Lambda
|
|
6354
6573
|
# @return [Types::Environment]
|
6355
6574
|
#
|
6356
6575
|
# @!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.
|
6576
|
+
# The identifier of the function's [ runtime][1]. Runtime is required
|
6577
|
+
# if the deployment package is a .zip file archive. Specifying a
|
6578
|
+
# runtime results in an error if you're deploying a function using a
|
6579
|
+
# container image.
|
6359
6580
|
#
|
6360
|
-
# The following list includes deprecated runtimes.
|
6361
|
-
#
|
6581
|
+
# The following list includes deprecated runtimes. Lambda blocks
|
6582
|
+
# creating new functions and updating existing functions shortly after
|
6583
|
+
# each runtime is deprecated. For more information, see [Runtime use
|
6584
|
+
# after deprecation][2].
|
6585
|
+
#
|
6586
|
+
# For a list of all currently supported runtimes, see [Supported
|
6587
|
+
# runtimes][3].
|
6362
6588
|
#
|
6363
6589
|
#
|
6364
6590
|
#
|
6365
6591
|
# [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-
|
6592
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-deprecation-levels
|
6593
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
|
6367
6594
|
# @return [String]
|
6368
6595
|
#
|
6369
6596
|
# @!attribute [rw] dead_letter_config
|
data/lib/aws-sdk-lambda.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -179,6 +179,8 @@ module Aws
|
|
179
179
|
def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
|
180
180
|
def scaling_config: () -> Types::ScalingConfig
|
181
181
|
def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
|
182
|
+
def kms_key_arn: () -> ::String
|
183
|
+
def filter_criteria_error: () -> Types::FilterCriteriaError
|
182
184
|
end
|
183
185
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#create_event_source_mapping-instance_method
|
184
186
|
def create_event_source_mapping: (
|
@@ -234,7 +236,8 @@ module Aws
|
|
234
236
|
database_name: ::String?,
|
235
237
|
collection_name: ::String?,
|
236
238
|
full_document: ("UpdateLookup" | "Default")?
|
237
|
-
}
|
239
|
+
},
|
240
|
+
?kms_key_arn: ::String
|
238
241
|
) -> _CreateEventSourceMappingResponseSuccess
|
239
242
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEventSourceMappingResponseSuccess
|
240
243
|
|
@@ -411,6 +414,8 @@ module Aws
|
|
411
414
|
def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
|
412
415
|
def scaling_config: () -> Types::ScalingConfig
|
413
416
|
def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
|
417
|
+
def kms_key_arn: () -> ::String
|
418
|
+
def filter_criteria_error: () -> Types::FilterCriteriaError
|
414
419
|
end
|
415
420
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#delete_event_source_mapping-instance_method
|
416
421
|
def delete_event_source_mapping: (
|
@@ -530,6 +535,8 @@ module Aws
|
|
530
535
|
def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
|
531
536
|
def scaling_config: () -> Types::ScalingConfig
|
532
537
|
def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
|
538
|
+
def kms_key_arn: () -> ::String
|
539
|
+
def filter_criteria_error: () -> Types::FilterCriteriaError
|
533
540
|
end
|
534
541
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_event_source_mapping-instance_method
|
535
542
|
def get_event_source_mapping: (
|
@@ -633,6 +640,16 @@ module Aws
|
|
633
640
|
) -> _GetFunctionEventInvokeConfigResponseSuccess
|
634
641
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFunctionEventInvokeConfigResponseSuccess
|
635
642
|
|
643
|
+
interface _GetFunctionRecursionConfigResponseSuccess
|
644
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetFunctionRecursionConfigResponse]
|
645
|
+
def recursive_loop: () -> ("Allow" | "Terminate")
|
646
|
+
end
|
647
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#get_function_recursion_config-instance_method
|
648
|
+
def get_function_recursion_config: (
|
649
|
+
function_name: ::String
|
650
|
+
) -> _GetFunctionRecursionConfigResponseSuccess
|
651
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetFunctionRecursionConfigResponseSuccess
|
652
|
+
|
636
653
|
interface _GetFunctionUrlConfigResponseSuccess
|
637
654
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetFunctionUrlConfigResponse]
|
638
655
|
def function_url: () -> ::String
|
@@ -1070,6 +1087,17 @@ module Aws
|
|
1070
1087
|
) -> _PutFunctionEventInvokeConfigResponseSuccess
|
1071
1088
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutFunctionEventInvokeConfigResponseSuccess
|
1072
1089
|
|
1090
|
+
interface _PutFunctionRecursionConfigResponseSuccess
|
1091
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::PutFunctionRecursionConfigResponse]
|
1092
|
+
def recursive_loop: () -> ("Allow" | "Terminate")
|
1093
|
+
end
|
1094
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#put_function_recursion_config-instance_method
|
1095
|
+
def put_function_recursion_config: (
|
1096
|
+
function_name: ::String,
|
1097
|
+
recursive_loop: ("Allow" | "Terminate")
|
1098
|
+
) -> _PutFunctionRecursionConfigResponseSuccess
|
1099
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutFunctionRecursionConfigResponseSuccess
|
1100
|
+
|
1073
1101
|
interface _PutProvisionedConcurrencyConfigResponseSuccess
|
1074
1102
|
include ::Seahorse::Client::_ResponseSuccess[Types::PutProvisionedConcurrencyConfigResponse]
|
1075
1103
|
def requested_provisioned_concurrent_executions: () -> ::Integer
|
@@ -1202,6 +1230,8 @@ module Aws
|
|
1202
1230
|
def self_managed_kafka_event_source_config: () -> Types::SelfManagedKafkaEventSourceConfig
|
1203
1231
|
def scaling_config: () -> Types::ScalingConfig
|
1204
1232
|
def document_db_event_source_config: () -> Types::DocumentDBEventSourceConfig
|
1233
|
+
def kms_key_arn: () -> ::String
|
1234
|
+
def filter_criteria_error: () -> Types::FilterCriteriaError
|
1205
1235
|
end
|
1206
1236
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Lambda/Client.html#update_event_source_mapping-instance_method
|
1207
1237
|
def update_event_source_mapping: (
|
@@ -1244,7 +1274,8 @@ module Aws
|
|
1244
1274
|
database_name: ::String?,
|
1245
1275
|
collection_name: ::String?,
|
1246
1276
|
full_document: ("UpdateLookup" | "Default")?
|
1247
|
-
}
|
1277
|
+
},
|
1278
|
+
?kms_key_arn: ::String
|
1248
1279
|
) -> _UpdateEventSourceMappingResponseSuccess
|
1249
1280
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateEventSourceMappingResponseSuccess
|
1250
1281
|
|