aws-sdk-lambda 1.88.0 → 1.91.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 +18 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +264 -52
- data/lib/aws-sdk-lambda/client_api.rb +69 -0
- data/lib/aws-sdk-lambda/endpoint_provider.rb +35 -95
- 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 +304 -1029
- data/lib/aws-sdk-lambda.rb +1 -1
- metadata +2 -2
@@ -583,7 +583,7 @@ module Aws::Lambda
|
|
583
583
|
#
|
584
584
|
#
|
585
585
|
#
|
586
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
586
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
587
587
|
#
|
588
588
|
# @option params [required, String] :function_name
|
589
589
|
# The name of the Lambda function.
|
@@ -733,21 +733,21 @@ module Aws::Lambda
|
|
733
733
|
# The following error handling options are available only for stream
|
734
734
|
# sources (DynamoDB and Kinesis):
|
735
735
|
#
|
736
|
-
# * `BisectBatchOnFunctionError`
|
736
|
+
# * `BisectBatchOnFunctionError` – If the function returns an error,
|
737
737
|
# split the batch in two and retry.
|
738
738
|
#
|
739
|
-
# * `DestinationConfig`
|
739
|
+
# * `DestinationConfig` – Send discarded records to an Amazon SQS queue
|
740
740
|
# or Amazon SNS topic.
|
741
741
|
#
|
742
|
-
# * `MaximumRecordAgeInSeconds`
|
742
|
+
# * `MaximumRecordAgeInSeconds` – Discard records older than the
|
743
743
|
# specified age. The default value is infinite (-1). When set to
|
744
744
|
# infinite (-1), failed records are retried until the record expires
|
745
745
|
#
|
746
|
-
# * `MaximumRetryAttempts`
|
746
|
+
# * `MaximumRetryAttempts` – Discard records after the specified number
|
747
747
|
# of retries. The default value is infinite (-1). When set to infinite
|
748
748
|
# (-1), failed records are retried until the record expires.
|
749
749
|
#
|
750
|
-
# * `ParallelizationFactor`
|
750
|
+
# * `ParallelizationFactor` – Process multiple batches from each shard
|
751
751
|
# concurrently.
|
752
752
|
#
|
753
753
|
# For information about which configuration parameters apply to each
|
@@ -783,32 +783,32 @@ module Aws::Lambda
|
|
783
783
|
# @option params [String] :event_source_arn
|
784
784
|
# The Amazon Resource Name (ARN) of the event source.
|
785
785
|
#
|
786
|
-
# * **Amazon Kinesis**
|
786
|
+
# * **Amazon Kinesis** – The ARN of the data stream or a stream
|
787
787
|
# consumer.
|
788
788
|
#
|
789
|
-
# * **Amazon DynamoDB Streams**
|
789
|
+
# * **Amazon DynamoDB Streams** – The ARN of the stream.
|
790
790
|
#
|
791
|
-
# * **Amazon Simple Queue Service**
|
791
|
+
# * **Amazon Simple Queue Service** – The ARN of the queue.
|
792
792
|
#
|
793
|
-
# * **Amazon Managed Streaming for Apache Kafka**
|
793
|
+
# * **Amazon Managed Streaming for Apache Kafka** – The ARN of the
|
794
794
|
# cluster.
|
795
795
|
#
|
796
|
-
# * **Amazon MQ**
|
796
|
+
# * **Amazon MQ** – The ARN of the broker.
|
797
797
|
#
|
798
798
|
# @option params [required, String] :function_name
|
799
799
|
# The name of the Lambda function.
|
800
800
|
#
|
801
801
|
# **Name formats**
|
802
802
|
#
|
803
|
-
# * **Function name**
|
803
|
+
# * **Function name** – `MyFunction`.
|
804
804
|
#
|
805
|
-
# * **Function ARN**
|
805
|
+
# * **Function ARN** –
|
806
806
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
807
807
|
#
|
808
|
-
# * **Version or Alias ARN**
|
808
|
+
# * **Version or Alias ARN** –
|
809
809
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`.
|
810
810
|
#
|
811
|
-
# * **Partial ARN**
|
811
|
+
# * **Partial ARN** – `123456789012:function:MyFunction`.
|
812
812
|
#
|
813
813
|
# The length constraint applies only to the full ARN. If you specify
|
814
814
|
# only the function name, it's limited to 64 characters in length.
|
@@ -825,19 +825,19 @@ module Aws::Lambda
|
|
825
825
|
# the records in the batch to the function in a single call, up to the
|
826
826
|
# payload limit for synchronous invocation (6 MB).
|
827
827
|
#
|
828
|
-
# * **Amazon Kinesis**
|
828
|
+
# * **Amazon Kinesis** – Default 100. Max 10,000.
|
829
829
|
#
|
830
|
-
# * **Amazon DynamoDB Streams**
|
830
|
+
# * **Amazon DynamoDB Streams** – Default 100. Max 10,000.
|
831
831
|
#
|
832
|
-
# * **Amazon Simple Queue Service**
|
832
|
+
# * **Amazon Simple Queue Service** – Default 10. For standard queues
|
833
833
|
# the max is 10,000. For FIFO queues the max is 10.
|
834
834
|
#
|
835
|
-
# * **Amazon Managed Streaming for Apache Kafka**
|
835
|
+
# * **Amazon Managed Streaming for Apache Kafka** – Default 100. Max
|
836
836
|
# 10,000.
|
837
837
|
#
|
838
|
-
# * **Self-managed Apache Kafka**
|
838
|
+
# * **Self-managed Apache Kafka** – Default 100. Max 10,000.
|
839
839
|
#
|
840
|
-
# * **Amazon MQ (ActiveMQ and RabbitMQ)**
|
840
|
+
# * **Amazon MQ (ActiveMQ and RabbitMQ)** – Default 100. Max 10,000.
|
841
841
|
#
|
842
842
|
# @option params [Types::FilterCriteria] :filter_criteria
|
843
843
|
# An object that defines the filter criteria that determine whether
|
@@ -925,6 +925,15 @@ module Aws::Lambda
|
|
925
925
|
# Specific configuration settings for a self-managed Apache Kafka event
|
926
926
|
# source.
|
927
927
|
#
|
928
|
+
# @option params [Types::ScalingConfig] :scaling_config
|
929
|
+
# (Amazon SQS only) The scaling configuration for the event source. For
|
930
|
+
# more information, see [Configuring maximum concurrency for Amazon SQS
|
931
|
+
# event sources][1].
|
932
|
+
#
|
933
|
+
#
|
934
|
+
#
|
935
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency
|
936
|
+
#
|
928
937
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
929
938
|
#
|
930
939
|
# * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
|
@@ -952,6 +961,7 @@ module Aws::Lambda
|
|
952
961
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
953
962
|
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
954
963
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
964
|
+
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
955
965
|
#
|
956
966
|
# @example Request syntax with placeholder values
|
957
967
|
#
|
@@ -1003,6 +1013,9 @@ module Aws::Lambda
|
|
1003
1013
|
# self_managed_kafka_event_source_config: {
|
1004
1014
|
# consumer_group_id: "URI",
|
1005
1015
|
# },
|
1016
|
+
# scaling_config: {
|
1017
|
+
# maximum_concurrency: 1,
|
1018
|
+
# },
|
1006
1019
|
# })
|
1007
1020
|
#
|
1008
1021
|
# @example Response structure
|
@@ -1041,6 +1054,7 @@ module Aws::Lambda
|
|
1041
1054
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
1042
1055
|
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
1043
1056
|
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
1057
|
+
# resp.scaling_config.maximum_concurrency #=> Integer
|
1044
1058
|
#
|
1045
1059
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping AWS API Documentation
|
1046
1060
|
#
|
@@ -1314,6 +1328,7 @@ module Aws::Lambda
|
|
1314
1328
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
1315
1329
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
1316
1330
|
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
1331
|
+
# * {Types::FunctionConfiguration#runtime_version_config #runtime_version_config} => Types::RuntimeVersionConfig
|
1317
1332
|
#
|
1318
1333
|
# @example Request syntax with placeholder values
|
1319
1334
|
#
|
@@ -1432,6 +1447,9 @@ module Aws::Lambda
|
|
1432
1447
|
# resp.ephemeral_storage.size #=> Integer
|
1433
1448
|
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
1434
1449
|
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
1450
|
+
# resp.runtime_version_config.runtime_version_arn #=> String
|
1451
|
+
# resp.runtime_version_config.error.error_code #=> String
|
1452
|
+
# resp.runtime_version_config.error.message #=> String
|
1435
1453
|
#
|
1436
1454
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
|
1437
1455
|
#
|
@@ -1537,7 +1555,7 @@ module Aws::Lambda
|
|
1537
1555
|
#
|
1538
1556
|
#
|
1539
1557
|
#
|
1540
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
1558
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
1541
1559
|
#
|
1542
1560
|
# @option params [required, String] :function_name
|
1543
1561
|
# The name of the Lambda function.
|
@@ -1638,6 +1656,7 @@ module Aws::Lambda
|
|
1638
1656
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
1639
1657
|
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
1640
1658
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
1659
|
+
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
1641
1660
|
#
|
1642
1661
|
# @example Request syntax with placeholder values
|
1643
1662
|
#
|
@@ -1681,6 +1700,7 @@ module Aws::Lambda
|
|
1681
1700
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
1682
1701
|
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
1683
1702
|
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
1703
|
+
# resp.scaling_config.maximum_concurrency #=> Integer
|
1684
1704
|
#
|
1685
1705
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteEventSourceMapping AWS API Documentation
|
1686
1706
|
#
|
@@ -1996,7 +2016,7 @@ module Aws::Lambda
|
|
1996
2016
|
#
|
1997
2017
|
#
|
1998
2018
|
#
|
1999
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
2019
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
2000
2020
|
#
|
2001
2021
|
# @option params [required, String] :function_name
|
2002
2022
|
# The name of the Lambda function.
|
@@ -2118,6 +2138,7 @@ module Aws::Lambda
|
|
2118
2138
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
2119
2139
|
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
2120
2140
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
2141
|
+
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
2121
2142
|
#
|
2122
2143
|
# @example Request syntax with placeholder values
|
2123
2144
|
#
|
@@ -2161,6 +2182,7 @@ module Aws::Lambda
|
|
2161
2182
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
2162
2183
|
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
2163
2184
|
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
2185
|
+
# resp.scaling_config.maximum_concurrency #=> Integer
|
2164
2186
|
#
|
2165
2187
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping AWS API Documentation
|
2166
2188
|
#
|
@@ -2268,6 +2290,9 @@ module Aws::Lambda
|
|
2268
2290
|
# resp.configuration.ephemeral_storage.size #=> Integer
|
2269
2291
|
# resp.configuration.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
2270
2292
|
# resp.configuration.snap_start.optimization_status #=> String, one of "On", "Off"
|
2293
|
+
# resp.configuration.runtime_version_config.runtime_version_arn #=> String
|
2294
|
+
# resp.configuration.runtime_version_config.error.error_code #=> String
|
2295
|
+
# resp.configuration.runtime_version_config.error.message #=> String
|
2271
2296
|
# resp.code.repository_type #=> String
|
2272
2297
|
# resp.code.location #=> String
|
2273
2298
|
# resp.code.image_uri #=> String
|
@@ -2440,6 +2465,7 @@ module Aws::Lambda
|
|
2440
2465
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
2441
2466
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
2442
2467
|
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
2468
|
+
# * {Types::FunctionConfiguration#runtime_version_config #runtime_version_config} => Types::RuntimeVersionConfig
|
2443
2469
|
#
|
2444
2470
|
# @example Request syntax with placeholder values
|
2445
2471
|
#
|
@@ -2505,6 +2531,9 @@ module Aws::Lambda
|
|
2505
2531
|
# resp.ephemeral_storage.size #=> Integer
|
2506
2532
|
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
2507
2533
|
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
2534
|
+
# resp.runtime_version_config.runtime_version_arn #=> String
|
2535
|
+
# resp.runtime_version_config.error.error_code #=> String
|
2536
|
+
# resp.runtime_version_config.error.message #=> String
|
2508
2537
|
#
|
2509
2538
|
#
|
2510
2539
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -2905,6 +2934,63 @@ module Aws::Lambda
|
|
2905
2934
|
req.send_request(options)
|
2906
2935
|
end
|
2907
2936
|
|
2937
|
+
# Retrieves the runtime management configuration for a function's
|
2938
|
+
# version. If the runtime update mode is **Manual**, this includes the
|
2939
|
+
# ARN of the runtime version and the runtime update mode. If the runtime
|
2940
|
+
# update mode is **Auto** or **Function update**, this includes the
|
2941
|
+
# runtime update mode and `null` is returned for the ARN. For more
|
2942
|
+
# information, see [Runtime updates][1].
|
2943
|
+
#
|
2944
|
+
#
|
2945
|
+
#
|
2946
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html
|
2947
|
+
#
|
2948
|
+
# @option params [required, String] :function_name
|
2949
|
+
# The name of the Lambda function.
|
2950
|
+
#
|
2951
|
+
# **Name formats**
|
2952
|
+
#
|
2953
|
+
# * **Function name** – `my-function`.
|
2954
|
+
#
|
2955
|
+
# * **Function ARN** –
|
2956
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
2957
|
+
#
|
2958
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
2959
|
+
#
|
2960
|
+
# The length constraint applies only to the full ARN. If you specify
|
2961
|
+
# only the function name, it is limited to 64 characters in length.
|
2962
|
+
#
|
2963
|
+
# @option params [String] :qualifier
|
2964
|
+
# Specify a version of the function. This can be `$LATEST` or a
|
2965
|
+
# published version number. If no value is specified, the configuration
|
2966
|
+
# for the `$LATEST` version is returned.
|
2967
|
+
#
|
2968
|
+
# @return [Types::GetRuntimeManagementConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2969
|
+
#
|
2970
|
+
# * {Types::GetRuntimeManagementConfigResponse#update_runtime_on #update_runtime_on} => String
|
2971
|
+
# * {Types::GetRuntimeManagementConfigResponse#runtime_version_arn #runtime_version_arn} => String
|
2972
|
+
#
|
2973
|
+
# @example Request syntax with placeholder values
|
2974
|
+
#
|
2975
|
+
# resp = client.get_runtime_management_config({
|
2976
|
+
# function_name: "FunctionName", # required
|
2977
|
+
# qualifier: "Qualifier",
|
2978
|
+
# })
|
2979
|
+
#
|
2980
|
+
# @example Response structure
|
2981
|
+
#
|
2982
|
+
# resp.update_runtime_on #=> String, one of "Auto", "Manual", "FunctionUpdate"
|
2983
|
+
# resp.runtime_version_arn #=> String
|
2984
|
+
#
|
2985
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetRuntimeManagementConfig AWS API Documentation
|
2986
|
+
#
|
2987
|
+
# @overload get_runtime_management_config(params = {})
|
2988
|
+
# @param [Hash] params ({})
|
2989
|
+
def get_runtime_management_config(params = {}, options = {})
|
2990
|
+
req = build_request(:get_runtime_management_config, params)
|
2991
|
+
req.send_request(options)
|
2992
|
+
end
|
2993
|
+
|
2908
2994
|
# Invokes a Lambda function. You can invoke a function synchronously
|
2909
2995
|
# (and wait for the response), or asynchronously. To invoke a function
|
2910
2996
|
# asynchronously, set `InvocationType` to `Event`.
|
@@ -3095,7 +3181,7 @@ module Aws::Lambda
|
|
3095
3181
|
#
|
3096
3182
|
#
|
3097
3183
|
#
|
3098
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
3184
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
3099
3185
|
#
|
3100
3186
|
# @option params [required, String] :function_name
|
3101
3187
|
# The name of the Lambda function.
|
@@ -3216,32 +3302,32 @@ module Aws::Lambda
|
|
3216
3302
|
# @option params [String] :event_source_arn
|
3217
3303
|
# The Amazon Resource Name (ARN) of the event source.
|
3218
3304
|
#
|
3219
|
-
# * **Amazon Kinesis**
|
3305
|
+
# * **Amazon Kinesis** – The ARN of the data stream or a stream
|
3220
3306
|
# consumer.
|
3221
3307
|
#
|
3222
|
-
# * **Amazon DynamoDB Streams**
|
3308
|
+
# * **Amazon DynamoDB Streams** – The ARN of the stream.
|
3223
3309
|
#
|
3224
|
-
# * **Amazon Simple Queue Service**
|
3310
|
+
# * **Amazon Simple Queue Service** – The ARN of the queue.
|
3225
3311
|
#
|
3226
|
-
# * **Amazon Managed Streaming for Apache Kafka**
|
3312
|
+
# * **Amazon Managed Streaming for Apache Kafka** – The ARN of the
|
3227
3313
|
# cluster.
|
3228
3314
|
#
|
3229
|
-
# * **Amazon MQ**
|
3315
|
+
# * **Amazon MQ** – The ARN of the broker.
|
3230
3316
|
#
|
3231
3317
|
# @option params [String] :function_name
|
3232
3318
|
# The name of the Lambda function.
|
3233
3319
|
#
|
3234
3320
|
# **Name formats**
|
3235
3321
|
#
|
3236
|
-
# * **Function name**
|
3322
|
+
# * **Function name** – `MyFunction`.
|
3237
3323
|
#
|
3238
|
-
# * **Function ARN**
|
3324
|
+
# * **Function ARN** –
|
3239
3325
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
3240
3326
|
#
|
3241
|
-
# * **Version or Alias ARN**
|
3327
|
+
# * **Version or Alias ARN** –
|
3242
3328
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`.
|
3243
3329
|
#
|
3244
|
-
# * **Partial ARN**
|
3330
|
+
# * **Partial ARN** – `123456789012:function:MyFunction`.
|
3245
3331
|
#
|
3246
3332
|
# The length constraint applies only to the full ARN. If you specify
|
3247
3333
|
# only the function name, it's limited to 64 characters in length.
|
@@ -3308,6 +3394,7 @@ module Aws::Lambda
|
|
3308
3394
|
# resp.event_source_mappings[0].function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
3309
3395
|
# resp.event_source_mappings[0].amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
3310
3396
|
# resp.event_source_mappings[0].self_managed_kafka_event_source_config.consumer_group_id #=> String
|
3397
|
+
# resp.event_source_mappings[0].scaling_config.maximum_concurrency #=> Integer
|
3311
3398
|
#
|
3312
3399
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings AWS API Documentation
|
3313
3400
|
#
|
@@ -3460,8 +3547,8 @@ module Aws::Lambda
|
|
3460
3547
|
# <note markdown="1"> The `ListFunctions` operation returns a subset of the
|
3461
3548
|
# FunctionConfiguration fields. To get the additional fields (State,
|
3462
3549
|
# StateReasonCode, StateReason, LastUpdateStatus,
|
3463
|
-
# LastUpdateStatusReason, LastUpdateStatusReasonCode
|
3464
|
-
# version, use GetFunction.
|
3550
|
+
# LastUpdateStatusReason, LastUpdateStatusReasonCode,
|
3551
|
+
# RuntimeVersionConfig) for a function or version, use GetFunction.
|
3465
3552
|
#
|
3466
3553
|
# </note>
|
3467
3554
|
#
|
@@ -3560,6 +3647,9 @@ module Aws::Lambda
|
|
3560
3647
|
# resp.functions[0].ephemeral_storage.size #=> Integer
|
3561
3648
|
# resp.functions[0].snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
3562
3649
|
# resp.functions[0].snap_start.optimization_status #=> String, one of "On", "Off"
|
3650
|
+
# resp.functions[0].runtime_version_config.runtime_version_arn #=> String
|
3651
|
+
# resp.functions[0].runtime_version_config.error.error_code #=> String
|
3652
|
+
# resp.functions[0].runtime_version_config.error.message #=> String
|
3563
3653
|
#
|
3564
3654
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
|
3565
3655
|
#
|
@@ -3954,6 +4044,9 @@ module Aws::Lambda
|
|
3954
4044
|
# resp.versions[0].ephemeral_storage.size #=> Integer
|
3955
4045
|
# resp.versions[0].snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
3956
4046
|
# resp.versions[0].snap_start.optimization_status #=> String, one of "On", "Off"
|
4047
|
+
# resp.versions[0].runtime_version_config.runtime_version_arn #=> String
|
4048
|
+
# resp.versions[0].runtime_version_config.error.error_code #=> String
|
4049
|
+
# resp.versions[0].runtime_version_config.error.message #=> String
|
3957
4050
|
#
|
3958
4051
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
|
3959
4052
|
#
|
@@ -4151,6 +4244,7 @@ module Aws::Lambda
|
|
4151
4244
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
4152
4245
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
4153
4246
|
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
4247
|
+
# * {Types::FunctionConfiguration#runtime_version_config #runtime_version_config} => Types::RuntimeVersionConfig
|
4154
4248
|
#
|
4155
4249
|
# @example Request syntax with placeholder values
|
4156
4250
|
#
|
@@ -4218,6 +4312,9 @@ module Aws::Lambda
|
|
4218
4312
|
# resp.ephemeral_storage.size #=> Integer
|
4219
4313
|
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
4220
4314
|
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
4315
|
+
# resp.runtime_version_config.runtime_version_arn #=> String
|
4316
|
+
# resp.runtime_version_config.error.error_code #=> String
|
4317
|
+
# resp.runtime_version_config.error.message #=> String
|
4221
4318
|
#
|
4222
4319
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
|
4223
4320
|
#
|
@@ -4507,6 +4604,99 @@ module Aws::Lambda
|
|
4507
4604
|
req.send_request(options)
|
4508
4605
|
end
|
4509
4606
|
|
4607
|
+
# Sets the runtime management configuration for a function's version.
|
4608
|
+
# For more information, see [Runtime updates][1].
|
4609
|
+
#
|
4610
|
+
#
|
4611
|
+
#
|
4612
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html
|
4613
|
+
#
|
4614
|
+
# @option params [required, String] :function_name
|
4615
|
+
# The name of the Lambda function.
|
4616
|
+
#
|
4617
|
+
# **Name formats**
|
4618
|
+
#
|
4619
|
+
# * **Function name** – `my-function`.
|
4620
|
+
#
|
4621
|
+
# * **Function ARN** –
|
4622
|
+
# `arn:aws:lambda:us-west-2:123456789012:function:my-function`.
|
4623
|
+
#
|
4624
|
+
# * **Partial ARN** – `123456789012:function:my-function`.
|
4625
|
+
#
|
4626
|
+
# The length constraint applies only to the full ARN. If you specify
|
4627
|
+
# only the function name, it is limited to 64 characters in length.
|
4628
|
+
#
|
4629
|
+
# @option params [String] :qualifier
|
4630
|
+
# Specify a version of the function. This can be `$LATEST` or a
|
4631
|
+
# published version number. If no value is specified, the configuration
|
4632
|
+
# for the `$LATEST` version is returned.
|
4633
|
+
#
|
4634
|
+
# @option params [required, String] :update_runtime_on
|
4635
|
+
# Specify the runtime update mode.
|
4636
|
+
#
|
4637
|
+
# * **Auto (default)** - Automatically update to the most recent and
|
4638
|
+
# secure runtime version using a [Two-phase runtime version
|
4639
|
+
# rollout][1]. This is the best choice for most customers to ensure
|
4640
|
+
# they always benefit from runtime updates.
|
4641
|
+
#
|
4642
|
+
# * **Function update** - Lambda updates the runtime of your function to
|
4643
|
+
# the most recent and secure runtime version when you update your
|
4644
|
+
# function. This approach synchronizes runtime updates with function
|
4645
|
+
# deployments, giving you control over when runtime updates are
|
4646
|
+
# applied and allowing you to detect and mitigate rare runtime update
|
4647
|
+
# incompatibilities early. When using this setting, you need to
|
4648
|
+
# regularly update your functions to keep their runtime up-to-date.
|
4649
|
+
#
|
4650
|
+
# * **Manual** - You specify a runtime version in your function
|
4651
|
+
# configuration. The function will use this runtime version
|
4652
|
+
# indefinitely. In the rare case where a new runtime version is
|
4653
|
+
# incompatible with an existing function, this allows you to roll back
|
4654
|
+
# your function to an earlier runtime version. For more information,
|
4655
|
+
# see [Roll back a runtime version][2].
|
4656
|
+
#
|
4657
|
+
#
|
4658
|
+
#
|
4659
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-two-phase
|
4660
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-rollback
|
4661
|
+
#
|
4662
|
+
# @option params [String] :runtime_version_arn
|
4663
|
+
# The ARN of the runtime version you want the function to use.
|
4664
|
+
#
|
4665
|
+
# <note markdown="1"> This is only required if you're using the **Manual** runtime update
|
4666
|
+
# mode.
|
4667
|
+
#
|
4668
|
+
# </note>
|
4669
|
+
#
|
4670
|
+
# @return [Types::PutRuntimeManagementConfigResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4671
|
+
#
|
4672
|
+
# * {Types::PutRuntimeManagementConfigResponse#update_runtime_on #update_runtime_on} => String
|
4673
|
+
# * {Types::PutRuntimeManagementConfigResponse#function_arn #function_arn} => String
|
4674
|
+
# * {Types::PutRuntimeManagementConfigResponse#runtime_version_arn #runtime_version_arn} => String
|
4675
|
+
#
|
4676
|
+
# @example Request syntax with placeholder values
|
4677
|
+
#
|
4678
|
+
# resp = client.put_runtime_management_config({
|
4679
|
+
# function_name: "FunctionName", # required
|
4680
|
+
# qualifier: "Qualifier",
|
4681
|
+
# update_runtime_on: "Auto", # required, accepts Auto, Manual, FunctionUpdate
|
4682
|
+
# runtime_version_arn: "RuntimeVersionArn",
|
4683
|
+
# })
|
4684
|
+
#
|
4685
|
+
# @example Response structure
|
4686
|
+
#
|
4687
|
+
# resp.update_runtime_on #=> String, one of "Auto", "Manual", "FunctionUpdate"
|
4688
|
+
# resp.function_arn #=> String
|
4689
|
+
# resp.runtime_version_arn #=> String
|
4690
|
+
#
|
4691
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutRuntimeManagementConfig AWS API Documentation
|
4692
|
+
#
|
4693
|
+
# @overload put_runtime_management_config(params = {})
|
4694
|
+
# @param [Hash] params ({})
|
4695
|
+
def put_runtime_management_config(params = {}, options = {})
|
4696
|
+
req = build_request(:put_runtime_management_config, params)
|
4697
|
+
req.send_request(options)
|
4698
|
+
end
|
4699
|
+
|
4510
4700
|
# Removes a statement from the permissions policy for a version of an
|
4511
4701
|
# [Lambda layer][1]. For more information, see
|
4512
4702
|
# AddLayerVersionPermission.
|
@@ -4668,7 +4858,7 @@ module Aws::Lambda
|
|
4668
4858
|
#
|
4669
4859
|
#
|
4670
4860
|
#
|
4671
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
4861
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html
|
4672
4862
|
#
|
4673
4863
|
# @option params [required, String] :function_name
|
4674
4864
|
# The name of the Lambda function.
|
@@ -4823,21 +5013,21 @@ module Aws::Lambda
|
|
4823
5013
|
# The following error handling options are available only for stream
|
4824
5014
|
# sources (DynamoDB and Kinesis):
|
4825
5015
|
#
|
4826
|
-
# * `BisectBatchOnFunctionError`
|
5016
|
+
# * `BisectBatchOnFunctionError` – If the function returns an error,
|
4827
5017
|
# split the batch in two and retry.
|
4828
5018
|
#
|
4829
|
-
# * `DestinationConfig`
|
5019
|
+
# * `DestinationConfig` – Send discarded records to an Amazon SQS queue
|
4830
5020
|
# or Amazon SNS topic.
|
4831
5021
|
#
|
4832
|
-
# * `MaximumRecordAgeInSeconds`
|
5022
|
+
# * `MaximumRecordAgeInSeconds` – Discard records older than the
|
4833
5023
|
# specified age. The default value is infinite (-1). When set to
|
4834
5024
|
# infinite (-1), failed records are retried until the record expires
|
4835
5025
|
#
|
4836
|
-
# * `MaximumRetryAttempts`
|
5026
|
+
# * `MaximumRetryAttempts` – Discard records after the specified number
|
4837
5027
|
# of retries. The default value is infinite (-1). When set to infinite
|
4838
5028
|
# (-1), failed records are retried until the record expires.
|
4839
5029
|
#
|
4840
|
-
# * `ParallelizationFactor`
|
5030
|
+
# * `ParallelizationFactor` – Process multiple batches from each shard
|
4841
5031
|
# concurrently.
|
4842
5032
|
#
|
4843
5033
|
# For information about which configuration parameters apply to each
|
@@ -4878,15 +5068,15 @@ module Aws::Lambda
|
|
4878
5068
|
#
|
4879
5069
|
# **Name formats**
|
4880
5070
|
#
|
4881
|
-
# * **Function name**
|
5071
|
+
# * **Function name** – `MyFunction`.
|
4882
5072
|
#
|
4883
|
-
# * **Function ARN**
|
5073
|
+
# * **Function ARN** –
|
4884
5074
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction`.
|
4885
5075
|
#
|
4886
|
-
# * **Version or Alias ARN**
|
5076
|
+
# * **Version or Alias ARN** –
|
4887
5077
|
# `arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`.
|
4888
5078
|
#
|
4889
|
-
# * **Partial ARN**
|
5079
|
+
# * **Partial ARN** – `123456789012:function:MyFunction`.
|
4890
5080
|
#
|
4891
5081
|
# The length constraint applies only to the full ARN. If you specify
|
4892
5082
|
# only the function name, it's limited to 64 characters in length.
|
@@ -4903,19 +5093,19 @@ module Aws::Lambda
|
|
4903
5093
|
# the records in the batch to the function in a single call, up to the
|
4904
5094
|
# payload limit for synchronous invocation (6 MB).
|
4905
5095
|
#
|
4906
|
-
# * **Amazon Kinesis**
|
5096
|
+
# * **Amazon Kinesis** – Default 100. Max 10,000.
|
4907
5097
|
#
|
4908
|
-
# * **Amazon DynamoDB Streams**
|
5098
|
+
# * **Amazon DynamoDB Streams** – Default 100. Max 10,000.
|
4909
5099
|
#
|
4910
|
-
# * **Amazon Simple Queue Service**
|
5100
|
+
# * **Amazon Simple Queue Service** – Default 10. For standard queues
|
4911
5101
|
# the max is 10,000. For FIFO queues the max is 10.
|
4912
5102
|
#
|
4913
|
-
# * **Amazon Managed Streaming for Apache Kafka**
|
5103
|
+
# * **Amazon Managed Streaming for Apache Kafka** – Default 100. Max
|
4914
5104
|
# 10,000.
|
4915
5105
|
#
|
4916
|
-
# * **Self-managed Apache Kafka**
|
5106
|
+
# * **Self-managed Apache Kafka** – Default 100. Max 10,000.
|
4917
5107
|
#
|
4918
|
-
# * **Amazon MQ (ActiveMQ and RabbitMQ)**
|
5108
|
+
# * **Amazon MQ (ActiveMQ and RabbitMQ)** – Default 100. Max 10,000.
|
4919
5109
|
#
|
4920
5110
|
# @option params [Types::FilterCriteria] :filter_criteria
|
4921
5111
|
# An object that defines the filter criteria that determine whether
|
@@ -4977,6 +5167,15 @@ module Aws::Lambda
|
|
4977
5167
|
# (Streams and Amazon SQS) A list of current response type enums applied
|
4978
5168
|
# to the event source mapping.
|
4979
5169
|
#
|
5170
|
+
# @option params [Types::ScalingConfig] :scaling_config
|
5171
|
+
# (Amazon SQS only) The scaling configuration for the event source. For
|
5172
|
+
# more information, see [Configuring maximum concurrency for Amazon SQS
|
5173
|
+
# event sources][1].
|
5174
|
+
#
|
5175
|
+
#
|
5176
|
+
#
|
5177
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency
|
5178
|
+
#
|
4980
5179
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4981
5180
|
#
|
4982
5181
|
# * {Types::EventSourceMappingConfiguration#uuid #uuid} => String
|
@@ -5004,6 +5203,7 @@ module Aws::Lambda
|
|
5004
5203
|
# * {Types::EventSourceMappingConfiguration#function_response_types #function_response_types} => Array<String>
|
5005
5204
|
# * {Types::EventSourceMappingConfiguration#amazon_managed_kafka_event_source_config #amazon_managed_kafka_event_source_config} => Types::AmazonManagedKafkaEventSourceConfig
|
5006
5205
|
# * {Types::EventSourceMappingConfiguration#self_managed_kafka_event_source_config #self_managed_kafka_event_source_config} => Types::SelfManagedKafkaEventSourceConfig
|
5206
|
+
# * {Types::EventSourceMappingConfiguration#scaling_config #scaling_config} => Types::ScalingConfig
|
5007
5207
|
#
|
5008
5208
|
# @example Request syntax with placeholder values
|
5009
5209
|
#
|
@@ -5040,6 +5240,9 @@ module Aws::Lambda
|
|
5040
5240
|
# ],
|
5041
5241
|
# tumbling_window_in_seconds: 1,
|
5042
5242
|
# function_response_types: ["ReportBatchItemFailures"], # accepts ReportBatchItemFailures
|
5243
|
+
# scaling_config: {
|
5244
|
+
# maximum_concurrency: 1,
|
5245
|
+
# },
|
5043
5246
|
# })
|
5044
5247
|
#
|
5045
5248
|
# @example Response structure
|
@@ -5078,6 +5281,7 @@ module Aws::Lambda
|
|
5078
5281
|
# resp.function_response_types[0] #=> String, one of "ReportBatchItemFailures"
|
5079
5282
|
# resp.amazon_managed_kafka_event_source_config.consumer_group_id #=> String
|
5080
5283
|
# resp.self_managed_kafka_event_source_config.consumer_group_id #=> String
|
5284
|
+
# resp.scaling_config.maximum_concurrency #=> Integer
|
5081
5285
|
#
|
5082
5286
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMapping AWS API Documentation
|
5083
5287
|
#
|
@@ -5212,6 +5416,7 @@ module Aws::Lambda
|
|
5212
5416
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
5213
5417
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
5214
5418
|
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
5419
|
+
# * {Types::FunctionConfiguration#runtime_version_config #runtime_version_config} => Types::RuntimeVersionConfig
|
5215
5420
|
#
|
5216
5421
|
# @example Request syntax with placeholder values
|
5217
5422
|
#
|
@@ -5285,6 +5490,9 @@ module Aws::Lambda
|
|
5285
5490
|
# resp.ephemeral_storage.size #=> Integer
|
5286
5491
|
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
5287
5492
|
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
5493
|
+
# resp.runtime_version_config.runtime_version_arn #=> String
|
5494
|
+
# resp.runtime_version_config.error.error_code #=> String
|
5495
|
+
# resp.runtime_version_config.error.message #=> String
|
5288
5496
|
#
|
5289
5497
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
|
5290
5498
|
#
|
@@ -5486,6 +5694,7 @@ module Aws::Lambda
|
|
5486
5694
|
# * {Types::FunctionConfiguration#architectures #architectures} => Array<String>
|
5487
5695
|
# * {Types::FunctionConfiguration#ephemeral_storage #ephemeral_storage} => Types::EphemeralStorage
|
5488
5696
|
# * {Types::FunctionConfiguration#snap_start #snap_start} => Types::SnapStartResponse
|
5697
|
+
# * {Types::FunctionConfiguration#runtime_version_config #runtime_version_config} => Types::RuntimeVersionConfig
|
5489
5698
|
#
|
5490
5699
|
# @example Request syntax with placeholder values
|
5491
5700
|
#
|
@@ -5591,6 +5800,9 @@ module Aws::Lambda
|
|
5591
5800
|
# resp.ephemeral_storage.size #=> Integer
|
5592
5801
|
# resp.snap_start.apply_on #=> String, one of "PublishedVersions", "None"
|
5593
5802
|
# resp.snap_start.optimization_status #=> String, one of "On", "Off"
|
5803
|
+
# resp.runtime_version_config.runtime_version_arn #=> String
|
5804
|
+
# resp.runtime_version_config.error.error_code #=> String
|
5805
|
+
# resp.runtime_version_config.error.message #=> String
|
5594
5806
|
#
|
5595
5807
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
|
5596
5808
|
#
|
@@ -5796,7 +6008,7 @@ module Aws::Lambda
|
|
5796
6008
|
params: params,
|
5797
6009
|
config: config)
|
5798
6010
|
context[:gem_name] = 'aws-sdk-lambda'
|
5799
|
-
context[:gem_version] = '1.
|
6011
|
+
context[:gem_version] = '1.91.0'
|
5800
6012
|
Seahorse::Client::Request.new(handlers, context)
|
5801
6013
|
end
|
5802
6014
|
|