aws-sdk-lambda 1.42.0 → 1.47.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-lambda.rb +3 -1
- data/lib/aws-sdk-lambda/client.rb +115 -24
- data/lib/aws-sdk-lambda/client_api.rb +45 -0
- data/lib/aws-sdk-lambda/customizations.rb +1 -0
- data/lib/aws-sdk-lambda/errors.rb +86 -0
- data/lib/aws-sdk-lambda/resource.rb +2 -0
- data/lib/aws-sdk-lambda/types.rb +302 -20
- data/lib/aws-sdk-lambda/waiters.rb +2 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc406beb4d46b0ceb39630642c7574c31a505f3da5e0718a73372975a7ceef42
|
4
|
+
data.tar.gz: e884595330a675e8f3dcff93c4cf1b37857082fad98ed008897e278cd016a40e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b6488e596ec4424a23964cc6163aacadeb47164413bf069b97ad9b2a1a539ae4b4d0a3d0829a454e8846d912001a84b99e8890d9f879bf62714b87a9c3bcb8
|
7
|
+
data.tar.gz: b928cf3ae38d711866e205c7b74d09c1f572b8b93f1fdef67be9d0fc4f3f49392c54e6599d0cd5c282c3a83275dcfba83eef38dbd75265ac4fd61a15bdc0302d
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -46,6 +48,6 @@ require_relative 'aws-sdk-lambda/customizations'
|
|
46
48
|
# @service
|
47
49
|
module Aws::Lambda
|
48
50
|
|
49
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.47.0'
|
50
52
|
|
51
53
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::Lambda
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
78
|
|
@@ -161,7 +165,7 @@ module Aws::Lambda
|
|
161
165
|
# @option options [String] :endpoint
|
162
166
|
# The client endpoint is normally constructed from the `:region`
|
163
167
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
169
|
#
|
166
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -580,7 +584,7 @@ module Aws::Lambda
|
|
580
584
|
#
|
581
585
|
#
|
582
586
|
#
|
583
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
587
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing
|
584
588
|
#
|
585
589
|
# @return [Types::AliasConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
586
590
|
#
|
@@ -656,6 +660,8 @@ module Aws::Lambda
|
|
656
660
|
#
|
657
661
|
# * [Using AWS Lambda with Amazon SQS][3]
|
658
662
|
#
|
663
|
+
# * [Using AWS Lambda with Amazon MSK][4]
|
664
|
+
#
|
659
665
|
# The following error handling options are only available for stream
|
660
666
|
# sources (DynamoDB and Kinesis):
|
661
667
|
#
|
@@ -666,10 +672,11 @@ module Aws::Lambda
|
|
666
672
|
# or Amazon SNS topic.
|
667
673
|
#
|
668
674
|
# * `MaximumRecordAgeInSeconds` - Discard records older than the
|
669
|
-
# specified age.
|
675
|
+
# specified age. Default -1 (infinite). Minimum 60. Maximum 604800.
|
670
676
|
#
|
671
677
|
# * `MaximumRetryAttempts` - Discard records after the specified number
|
672
|
-
# of retries.
|
678
|
+
# of retries. Default -1 (infinite). Minimum 0. Maximum 10000. When
|
679
|
+
# infinite, failed records will be retried until the record expires.
|
673
680
|
#
|
674
681
|
# * `ParallelizationFactor` - Process multiple batches from each shard
|
675
682
|
# concurrently.
|
@@ -679,6 +686,7 @@ module Aws::Lambda
|
|
679
686
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
|
680
687
|
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
|
681
688
|
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
|
689
|
+
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
|
682
690
|
#
|
683
691
|
# @option params [required, String] :event_source_arn
|
684
692
|
# The Amazon Resource Name (ARN) of the event source.
|
@@ -690,6 +698,9 @@ module Aws::Lambda
|
|
690
698
|
#
|
691
699
|
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
692
700
|
#
|
701
|
+
# * **Amazon Managed Streaming for Apache Kafka** - The ARN of the
|
702
|
+
# cluster.
|
703
|
+
#
|
693
704
|
# @option params [required, String] :function_name
|
694
705
|
# The name of the Lambda function.
|
695
706
|
#
|
@@ -709,7 +720,8 @@ module Aws::Lambda
|
|
709
720
|
# only the function name, it's limited to 64 characters in length.
|
710
721
|
#
|
711
722
|
# @option params [Boolean] :enabled
|
712
|
-
#
|
723
|
+
# If true, the event source mapping is active. Set to false to pause
|
724
|
+
# polling and invocation.
|
713
725
|
#
|
714
726
|
# @option params [Integer] :batch_size
|
715
727
|
# The maximum number of items to retrieve in a single batch.
|
@@ -720,6 +732,9 @@ module Aws::Lambda
|
|
720
732
|
#
|
721
733
|
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
722
734
|
#
|
735
|
+
# * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
|
736
|
+
# 10,000.
|
737
|
+
#
|
723
738
|
# @option params [Integer] :maximum_batching_window_in_seconds
|
724
739
|
# (Streams) The maximum amount of time to gather records before invoking
|
725
740
|
# the function, in seconds.
|
@@ -730,8 +745,8 @@ module Aws::Lambda
|
|
730
745
|
#
|
731
746
|
# @option params [String] :starting_position
|
732
747
|
# The position in a stream from which to start reading. Required for
|
733
|
-
# Amazon Kinesis and Amazon
|
734
|
-
# only supported for Amazon Kinesis streams.
|
748
|
+
# Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
|
749
|
+
# `AT_TIMESTAMP` is only supported for Amazon Kinesis streams.
|
735
750
|
#
|
736
751
|
# @option params [Time,DateTime,Date,Integer,String] :starting_position_timestamp
|
737
752
|
# With `StartingPosition` set to `AT_TIMESTAMP`, the time from which to
|
@@ -742,16 +757,20 @@ module Aws::Lambda
|
|
742
757
|
# discarded records.
|
743
758
|
#
|
744
759
|
# @option params [Integer] :maximum_record_age_in_seconds
|
745
|
-
# (Streams)
|
746
|
-
#
|
760
|
+
# (Streams) Discard records older than the specified age. The default
|
761
|
+
# value is infinite (-1).
|
747
762
|
#
|
748
763
|
# @option params [Boolean] :bisect_batch_on_function_error
|
749
764
|
# (Streams) If the function returns an error, split the batch in two and
|
750
765
|
# retry.
|
751
766
|
#
|
752
767
|
# @option params [Integer] :maximum_retry_attempts
|
753
|
-
# (Streams)
|
754
|
-
#
|
768
|
+
# (Streams) Discard records after the specified number of retries. The
|
769
|
+
# default value is infinite (-1). When set to infinite (-1), failed
|
770
|
+
# records will be retried until the record expires.
|
771
|
+
#
|
772
|
+
# @option params [Array<String>] :topics
|
773
|
+
# (MSK) The name of the Kafka topic.
|
755
774
|
#
|
756
775
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
757
776
|
#
|
@@ -766,6 +785,7 @@ module Aws::Lambda
|
|
766
785
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
767
786
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
768
787
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
788
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
769
789
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
770
790
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
771
791
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -814,6 +834,7 @@ module Aws::Lambda
|
|
814
834
|
# maximum_record_age_in_seconds: 1,
|
815
835
|
# bisect_batch_on_function_error: false,
|
816
836
|
# maximum_retry_attempts: 1,
|
837
|
+
# topics: ["Topic"],
|
817
838
|
# })
|
818
839
|
#
|
819
840
|
# @example Response structure
|
@@ -830,6 +851,8 @@ module Aws::Lambda
|
|
830
851
|
# resp.state_transition_reason #=> String
|
831
852
|
# resp.destination_config.on_success.destination #=> String
|
832
853
|
# resp.destination_config.on_failure.destination #=> String
|
854
|
+
# resp.topics #=> Array
|
855
|
+
# resp.topics[0] #=> String
|
833
856
|
# resp.maximum_record_age_in_seconds #=> Integer
|
834
857
|
# resp.bisect_batch_on_function_error #=> Boolean
|
835
858
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -991,6 +1014,9 @@ module Aws::Lambda
|
|
991
1014
|
#
|
992
1015
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
|
993
1016
|
#
|
1017
|
+
# @option params [Array<Types::FileSystemConfig>] :file_system_configs
|
1018
|
+
# Connection settings for an Amazon EFS file system.
|
1019
|
+
#
|
994
1020
|
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
995
1021
|
#
|
996
1022
|
# * {Types::FunctionConfiguration#function_name #function_name} => String
|
@@ -1019,6 +1045,7 @@ module Aws::Lambda
|
|
1019
1045
|
# * {Types::FunctionConfiguration#last_update_status #last_update_status} => String
|
1020
1046
|
# * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
|
1021
1047
|
# * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
|
1048
|
+
# * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array<Types::FileSystemConfig>
|
1022
1049
|
#
|
1023
1050
|
#
|
1024
1051
|
# @example Example: To create a function
|
@@ -1120,6 +1147,12 @@ module Aws::Lambda
|
|
1120
1147
|
# "TagKey" => "TagValue",
|
1121
1148
|
# },
|
1122
1149
|
# layers: ["LayerVersionArn"],
|
1150
|
+
# file_system_configs: [
|
1151
|
+
# {
|
1152
|
+
# arn: "FileSystemArn", # required
|
1153
|
+
# local_mount_path: "LocalMountPath", # required
|
1154
|
+
# },
|
1155
|
+
# ],
|
1123
1156
|
# })
|
1124
1157
|
#
|
1125
1158
|
# @example Response structure
|
@@ -1159,6 +1192,9 @@ module Aws::Lambda
|
|
1159
1192
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
1160
1193
|
# resp.last_update_status_reason #=> String
|
1161
1194
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
1195
|
+
# resp.file_system_configs #=> Array
|
1196
|
+
# resp.file_system_configs[0].arn #=> String
|
1197
|
+
# resp.file_system_configs[0].local_mount_path #=> String
|
1162
1198
|
#
|
1163
1199
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction AWS API Documentation
|
1164
1200
|
#
|
@@ -1247,6 +1283,7 @@ module Aws::Lambda
|
|
1247
1283
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
1248
1284
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
1249
1285
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
1286
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
1250
1287
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
1251
1288
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
1252
1289
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -1291,6 +1328,8 @@ module Aws::Lambda
|
|
1291
1328
|
# resp.state_transition_reason #=> String
|
1292
1329
|
# resp.destination_config.on_success.destination #=> String
|
1293
1330
|
# resp.destination_config.on_failure.destination #=> String
|
1331
|
+
# resp.topics #=> Array
|
1332
|
+
# resp.topics[0] #=> String
|
1294
1333
|
# resp.maximum_record_age_in_seconds #=> Integer
|
1295
1334
|
# resp.bisect_batch_on_function_error #=> Boolean
|
1296
1335
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -1702,6 +1741,7 @@ module Aws::Lambda
|
|
1702
1741
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
1703
1742
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
1704
1743
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
1744
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
1705
1745
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
1706
1746
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
1707
1747
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -1753,6 +1793,8 @@ module Aws::Lambda
|
|
1753
1793
|
# resp.state_transition_reason #=> String
|
1754
1794
|
# resp.destination_config.on_success.destination #=> String
|
1755
1795
|
# resp.destination_config.on_failure.destination #=> String
|
1796
|
+
# resp.topics #=> Array
|
1797
|
+
# resp.topics[0] #=> String
|
1756
1798
|
# resp.maximum_record_age_in_seconds #=> Integer
|
1757
1799
|
# resp.bisect_batch_on_function_error #=> Boolean
|
1758
1800
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -1891,6 +1933,9 @@ module Aws::Lambda
|
|
1891
1933
|
# resp.configuration.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
1892
1934
|
# resp.configuration.last_update_status_reason #=> String
|
1893
1935
|
# resp.configuration.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
1936
|
+
# resp.configuration.file_system_configs #=> Array
|
1937
|
+
# resp.configuration.file_system_configs[0].arn #=> String
|
1938
|
+
# resp.configuration.file_system_configs[0].local_mount_path #=> String
|
1894
1939
|
# resp.code.repository_type #=> String
|
1895
1940
|
# resp.code.location #=> String
|
1896
1941
|
# resp.tags #=> Hash
|
@@ -2023,6 +2068,7 @@ module Aws::Lambda
|
|
2023
2068
|
# * {Types::FunctionConfiguration#last_update_status #last_update_status} => String
|
2024
2069
|
# * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
|
2025
2070
|
# * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
|
2071
|
+
# * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array<Types::FileSystemConfig>
|
2026
2072
|
#
|
2027
2073
|
#
|
2028
2074
|
# @example Example: To get a Lambda function's event source mapping
|
@@ -2107,6 +2153,9 @@ module Aws::Lambda
|
|
2107
2153
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
2108
2154
|
# resp.last_update_status_reason #=> String
|
2109
2155
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
2156
|
+
# resp.file_system_configs #=> Array
|
2157
|
+
# resp.file_system_configs[0].arn #=> String
|
2158
|
+
# resp.file_system_configs[0].local_mount_path #=> String
|
2110
2159
|
#
|
2111
2160
|
#
|
2112
2161
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -2658,7 +2707,7 @@ module Aws::Lambda
|
|
2658
2707
|
# Up to 3583 bytes of base64-encoded data about the invoking client to
|
2659
2708
|
# pass to the function in the context object.
|
2660
2709
|
#
|
2661
|
-
# @option params [String,
|
2710
|
+
# @option params [String, StringIO, File] :payload
|
2662
2711
|
# The JSON that you want to provide to your Lambda function as input.
|
2663
2712
|
#
|
2664
2713
|
# @option params [String] :qualifier
|
@@ -2754,7 +2803,7 @@ module Aws::Lambda
|
|
2754
2803
|
# The length constraint applies only to the full ARN. If you specify
|
2755
2804
|
# only the function name, it is limited to 64 characters in length.
|
2756
2805
|
#
|
2757
|
-
# @option params [required, String,
|
2806
|
+
# @option params [required, String, StringIO, File] :invoke_args
|
2758
2807
|
# The JSON that you want to provide to your Lambda function as input.
|
2759
2808
|
#
|
2760
2809
|
# @return [Types::InvokeAsyncResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -2912,6 +2961,9 @@ module Aws::Lambda
|
|
2912
2961
|
#
|
2913
2962
|
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
2914
2963
|
#
|
2964
|
+
# * **Amazon Managed Streaming for Apache Kafka** - The ARN of the
|
2965
|
+
# cluster.
|
2966
|
+
#
|
2915
2967
|
# @option params [String] :function_name
|
2916
2968
|
# The name of the Lambda function.
|
2917
2969
|
#
|
@@ -2992,6 +3044,8 @@ module Aws::Lambda
|
|
2992
3044
|
# resp.event_source_mappings[0].state_transition_reason #=> String
|
2993
3045
|
# resp.event_source_mappings[0].destination_config.on_success.destination #=> String
|
2994
3046
|
# resp.event_source_mappings[0].destination_config.on_failure.destination #=> String
|
3047
|
+
# resp.event_source_mappings[0].topics #=> Array
|
3048
|
+
# resp.event_source_mappings[0].topics[0] #=> String
|
2995
3049
|
# resp.event_source_mappings[0].maximum_record_age_in_seconds #=> Integer
|
2996
3050
|
# resp.event_source_mappings[0].bisect_batch_on_function_error #=> Boolean
|
2997
3051
|
# resp.event_source_mappings[0].maximum_retry_attempts #=> Integer
|
@@ -3232,6 +3286,9 @@ module Aws::Lambda
|
|
3232
3286
|
# resp.functions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
3233
3287
|
# resp.functions[0].last_update_status_reason #=> String
|
3234
3288
|
# resp.functions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
3289
|
+
# resp.functions[0].file_system_configs #=> Array
|
3290
|
+
# resp.functions[0].file_system_configs[0].arn #=> String
|
3291
|
+
# resp.functions[0].file_system_configs[0].local_mount_path #=> String
|
3235
3292
|
#
|
3236
3293
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions AWS API Documentation
|
3237
3294
|
#
|
@@ -3710,6 +3767,9 @@ module Aws::Lambda
|
|
3710
3767
|
# resp.versions[0].last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
3711
3768
|
# resp.versions[0].last_update_status_reason #=> String
|
3712
3769
|
# resp.versions[0].last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
3770
|
+
# resp.versions[0].file_system_configs #=> Array
|
3771
|
+
# resp.versions[0].file_system_configs[0].arn #=> String
|
3772
|
+
# resp.versions[0].file_system_configs[0].local_mount_path #=> String
|
3713
3773
|
#
|
3714
3774
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction AWS API Documentation
|
3715
3775
|
#
|
@@ -3925,6 +3985,7 @@ module Aws::Lambda
|
|
3925
3985
|
# * {Types::FunctionConfiguration#last_update_status #last_update_status} => String
|
3926
3986
|
# * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
|
3927
3987
|
# * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
|
3988
|
+
# * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array<Types::FileSystemConfig>
|
3928
3989
|
#
|
3929
3990
|
#
|
3930
3991
|
# @example Example: To publish a version of a Lambda function
|
@@ -4012,6 +4073,9 @@ module Aws::Lambda
|
|
4012
4073
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
4013
4074
|
# resp.last_update_status_reason #=> String
|
4014
4075
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
4076
|
+
# resp.file_system_configs #=> Array
|
4077
|
+
# resp.file_system_configs[0].arn #=> String
|
4078
|
+
# resp.file_system_configs[0].local_mount_path #=> String
|
4015
4079
|
#
|
4016
4080
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion AWS API Documentation
|
4017
4081
|
#
|
@@ -4102,7 +4166,8 @@ module Aws::Lambda
|
|
4102
4166
|
# version, or alias. If a configuration already exists for a function,
|
4103
4167
|
# version, or alias, this operation overwrites it. If you exclude any
|
4104
4168
|
# settings, they are removed. To set one option without affecting
|
4105
|
-
# existing settings for other options, use
|
4169
|
+
# existing settings for other options, use
|
4170
|
+
# UpdateFunctionEventInvokeConfig.
|
4106
4171
|
#
|
4107
4172
|
# By default, Lambda retries an asynchronous invocation twice if the
|
4108
4173
|
# function returns an error. It retains events in a queue for up to six
|
@@ -4551,7 +4616,7 @@ module Aws::Lambda
|
|
4551
4616
|
#
|
4552
4617
|
#
|
4553
4618
|
#
|
4554
|
-
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/
|
4619
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html#configuring-alias-routing
|
4555
4620
|
#
|
4556
4621
|
# @option params [String] :revision_id
|
4557
4622
|
# Only update the alias if the revision ID matches the ID that's
|
@@ -4645,10 +4710,11 @@ module Aws::Lambda
|
|
4645
4710
|
# or Amazon SNS topic.
|
4646
4711
|
#
|
4647
4712
|
# * `MaximumRecordAgeInSeconds` - Discard records older than the
|
4648
|
-
# specified age.
|
4713
|
+
# specified age. Default -1 (infinite). Minimum 60. Maximum 604800.
|
4649
4714
|
#
|
4650
4715
|
# * `MaximumRetryAttempts` - Discard records after the specified number
|
4651
|
-
# of retries.
|
4716
|
+
# of retries. Default -1 (infinite). Minimum 0. Maximum 10000. When
|
4717
|
+
# infinite, failed records will be retried until the record expires.
|
4652
4718
|
#
|
4653
4719
|
# * `ParallelizationFactor` - Process multiple batches from each shard
|
4654
4720
|
# concurrently.
|
@@ -4675,7 +4741,8 @@ module Aws::Lambda
|
|
4675
4741
|
# only the function name, it's limited to 64 characters in length.
|
4676
4742
|
#
|
4677
4743
|
# @option params [Boolean] :enabled
|
4678
|
-
#
|
4744
|
+
# If true, the event source mapping is active. Set to false to pause
|
4745
|
+
# polling and invocation.
|
4679
4746
|
#
|
4680
4747
|
# @option params [Integer] :batch_size
|
4681
4748
|
# The maximum number of items to retrieve in a single batch.
|
@@ -4686,6 +4753,9 @@ module Aws::Lambda
|
|
4686
4753
|
#
|
4687
4754
|
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
4688
4755
|
#
|
4756
|
+
# * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
|
4757
|
+
# 10,000.
|
4758
|
+
#
|
4689
4759
|
# @option params [Integer] :maximum_batching_window_in_seconds
|
4690
4760
|
# (Streams) The maximum amount of time to gather records before invoking
|
4691
4761
|
# the function, in seconds.
|
@@ -4695,16 +4765,17 @@ module Aws::Lambda
|
|
4695
4765
|
# discarded records.
|
4696
4766
|
#
|
4697
4767
|
# @option params [Integer] :maximum_record_age_in_seconds
|
4698
|
-
# (Streams)
|
4699
|
-
#
|
4768
|
+
# (Streams) Discard records older than the specified age. The default
|
4769
|
+
# value is infinite (-1).
|
4700
4770
|
#
|
4701
4771
|
# @option params [Boolean] :bisect_batch_on_function_error
|
4702
4772
|
# (Streams) If the function returns an error, split the batch in two and
|
4703
4773
|
# retry.
|
4704
4774
|
#
|
4705
4775
|
# @option params [Integer] :maximum_retry_attempts
|
4706
|
-
# (Streams)
|
4707
|
-
#
|
4776
|
+
# (Streams) Discard records after the specified number of retries. The
|
4777
|
+
# default value is infinite (-1). When set to infinite (-1), failed
|
4778
|
+
# records will be retried until the record expires.
|
4708
4779
|
#
|
4709
4780
|
# @option params [Integer] :parallelization_factor
|
4710
4781
|
# (Streams) The number of batches to process from each shard
|
@@ -4723,6 +4794,7 @@ module Aws::Lambda
|
|
4723
4794
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
4724
4795
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
4725
4796
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
4797
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
4726
4798
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
4727
4799
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
4728
4800
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -4787,6 +4859,8 @@ module Aws::Lambda
|
|
4787
4859
|
# resp.state_transition_reason #=> String
|
4788
4860
|
# resp.destination_config.on_success.destination #=> String
|
4789
4861
|
# resp.destination_config.on_failure.destination #=> String
|
4862
|
+
# resp.topics #=> Array
|
4863
|
+
# resp.topics[0] #=> String
|
4790
4864
|
# resp.maximum_record_age_in_seconds #=> Integer
|
4791
4865
|
# resp.bisect_batch_on_function_error #=> Boolean
|
4792
4866
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -4820,7 +4894,7 @@ module Aws::Lambda
|
|
4820
4894
|
# The length constraint applies only to the full ARN. If you specify
|
4821
4895
|
# only the function name, it is limited to 64 characters in length.
|
4822
4896
|
#
|
4823
|
-
# @option params [String,
|
4897
|
+
# @option params [String, StringIO, File] :zip_file
|
4824
4898
|
# The base64-encoded contents of the deployment package. AWS SDK and AWS
|
4825
4899
|
# CLI clients handle the encoding for you.
|
4826
4900
|
#
|
@@ -4877,6 +4951,7 @@ module Aws::Lambda
|
|
4877
4951
|
# * {Types::FunctionConfiguration#last_update_status #last_update_status} => String
|
4878
4952
|
# * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
|
4879
4953
|
# * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
|
4954
|
+
# * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array<Types::FileSystemConfig>
|
4880
4955
|
#
|
4881
4956
|
#
|
4882
4957
|
# @example Example: To update a Lambda function's code
|
@@ -4960,6 +5035,9 @@ module Aws::Lambda
|
|
4960
5035
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
4961
5036
|
# resp.last_update_status_reason #=> String
|
4962
5037
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
5038
|
+
# resp.file_system_configs #=> Array
|
5039
|
+
# resp.file_system_configs[0].arn #=> String
|
5040
|
+
# resp.file_system_configs[0].local_mount_path #=> String
|
4963
5041
|
#
|
4964
5042
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode AWS API Documentation
|
4965
5043
|
#
|
@@ -5087,6 +5165,9 @@ module Aws::Lambda
|
|
5087
5165
|
#
|
5088
5166
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html
|
5089
5167
|
#
|
5168
|
+
# @option params [Array<Types::FileSystemConfig>] :file_system_configs
|
5169
|
+
# Connection settings for an Amazon EFS file system.
|
5170
|
+
#
|
5090
5171
|
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5091
5172
|
#
|
5092
5173
|
# * {Types::FunctionConfiguration#function_name #function_name} => String
|
@@ -5115,6 +5196,7 @@ module Aws::Lambda
|
|
5115
5196
|
# * {Types::FunctionConfiguration#last_update_status #last_update_status} => String
|
5116
5197
|
# * {Types::FunctionConfiguration#last_update_status_reason #last_update_status_reason} => String
|
5117
5198
|
# * {Types::FunctionConfiguration#last_update_status_reason_code #last_update_status_reason_code} => String
|
5199
|
+
# * {Types::FunctionConfiguration#file_system_configs #file_system_configs} => Array<Types::FileSystemConfig>
|
5118
5200
|
#
|
5119
5201
|
#
|
5120
5202
|
# @example Example: To update a Lambda function's configuration
|
@@ -5175,6 +5257,12 @@ module Aws::Lambda
|
|
5175
5257
|
# },
|
5176
5258
|
# revision_id: "String",
|
5177
5259
|
# layers: ["LayerVersionArn"],
|
5260
|
+
# file_system_configs: [
|
5261
|
+
# {
|
5262
|
+
# arn: "FileSystemArn", # required
|
5263
|
+
# local_mount_path: "LocalMountPath", # required
|
5264
|
+
# },
|
5265
|
+
# ],
|
5178
5266
|
# })
|
5179
5267
|
#
|
5180
5268
|
# @example Response structure
|
@@ -5214,6 +5302,9 @@ module Aws::Lambda
|
|
5214
5302
|
# resp.last_update_status #=> String, one of "Successful", "Failed", "InProgress"
|
5215
5303
|
# resp.last_update_status_reason #=> String
|
5216
5304
|
# resp.last_update_status_reason_code #=> String, one of "EniLimitExceeded", "InsufficientRolePermissions", "InvalidConfiguration", "InternalError", "SubnetOutOfIPAddresses", "InvalidSubnet", "InvalidSecurityGroup"
|
5305
|
+
# resp.file_system_configs #=> Array
|
5306
|
+
# resp.file_system_configs[0].arn #=> String
|
5307
|
+
# resp.file_system_configs[0].local_mount_path #=> String
|
5217
5308
|
#
|
5218
5309
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionConfiguration AWS API Documentation
|
5219
5310
|
#
|
@@ -5358,7 +5449,7 @@ module Aws::Lambda
|
|
5358
5449
|
params: params,
|
5359
5450
|
config: config)
|
5360
5451
|
context[:gem_name] = 'aws-sdk-lambda'
|
5361
|
-
context[:gem_version] = '1.
|
5452
|
+
context[:gem_version] = '1.47.0'
|
5362
5453
|
Seahorse::Client::Request.new(handlers, context)
|
5363
5454
|
end
|
5364
5455
|
|