aws-sdk-lambda 1.71.0 → 1.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +160 -35
- data/lib/aws-sdk-lambda/client_api.rb +15 -0
- data/lib/aws-sdk-lambda/types.rb +149 -26
- data/lib/aws-sdk-lambda.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f201e65d3ffb38fc956d2a8234851f1a812746fc5bb0a4324924e213ece54c0
|
4
|
+
data.tar.gz: 2acf486b5e1eb922b58396113f9f2c3de8702a96e04abe1e583f84471343b1eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd434aa87458e68d6910ca7436cbc8d2190a7a2817e42ac3a6645664e67fc5f2b239be1272ffc0ea45b03759e350e933bbc21d13cd305ac63f3ff718811ca57
|
7
|
+
data.tar.gz: 84c98f89b7374f8e1f9580b73b2f2e72f4ca887629a98507a5af8130de0b80fe3c9e8fa7c95c0682bc8853454275dd88835c99360c89850413d47c12e9445712
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.75.0 (2021-11-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Remove Lambda function url apis
|
8
|
+
|
9
|
+
1.74.0 (2021-11-23)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Release Lambda event source filtering for SQS, Kinesis Streams, and DynamoDB Streams.
|
13
|
+
|
14
|
+
1.73.0 (2021-11-19)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Add support for Lambda Function URLs. Customers can use Function URLs to create built-in HTTPS endpoints on their functions.
|
18
|
+
|
19
|
+
1.72.0 (2021-11-18)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Added support for CLIENT_CERTIFICATE_TLS_AUTH and SERVER_ROOT_CA_CERTIFICATE as SourceAccessType for MSK and Kafka event source mappings.
|
23
|
+
|
4
24
|
1.71.0 (2021-11-04)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.75.0
|
@@ -663,19 +663,20 @@ module Aws::Lambda
|
|
663
663
|
# Creates a mapping between an event source and an Lambda function.
|
664
664
|
# Lambda reads items from the event source and triggers the function.
|
665
665
|
#
|
666
|
-
# For details about
|
666
|
+
# For details about how to configure different event sources, see the
|
667
|
+
# following topics.
|
667
668
|
#
|
668
|
-
# * [
|
669
|
+
# * [ Amazon DynamoDB Streams][1]
|
669
670
|
#
|
670
|
-
# * [
|
671
|
+
# * [ Amazon Kinesis][2]
|
671
672
|
#
|
672
|
-
# * [
|
673
|
+
# * [ Amazon SQS][3]
|
673
674
|
#
|
674
|
-
# * [
|
675
|
+
# * [ Amazon MQ and RabbitMQ][4]
|
675
676
|
#
|
676
|
-
# * [
|
677
|
+
# * [ Amazon MSK][5]
|
677
678
|
#
|
678
|
-
# * [
|
679
|
+
# * [ Apache Kafka][6]
|
679
680
|
#
|
680
681
|
# The following error handling options are only available for stream
|
681
682
|
# sources (DynamoDB and Kinesis):
|
@@ -697,6 +698,21 @@ module Aws::Lambda
|
|
697
698
|
# * `ParallelizationFactor` - Process multiple batches from each shard
|
698
699
|
# concurrently.
|
699
700
|
#
|
701
|
+
# For information about which configuration parameters apply to each
|
702
|
+
# event source, see the following topics.
|
703
|
+
#
|
704
|
+
# * [ Amazon DynamoDB Streams][7]
|
705
|
+
#
|
706
|
+
# * [ Amazon Kinesis][8]
|
707
|
+
#
|
708
|
+
# * [ Amazon SQS][9]
|
709
|
+
#
|
710
|
+
# * [ Amazon MQ and RabbitMQ][10]
|
711
|
+
#
|
712
|
+
# * [ Amazon MSK][11]
|
713
|
+
#
|
714
|
+
# * [ Apache Kafka][12]
|
715
|
+
#
|
700
716
|
#
|
701
717
|
#
|
702
718
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping
|
@@ -705,6 +721,12 @@ module Aws::Lambda
|
|
705
721
|
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping
|
706
722
|
# [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
|
707
723
|
# [6]: https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html
|
724
|
+
# [7]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params
|
725
|
+
# [8]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params
|
726
|
+
# [9]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params
|
727
|
+
# [10]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params
|
728
|
+
# [11]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms
|
729
|
+
# [12]: https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms
|
708
730
|
#
|
709
731
|
# @option params [String] :event_source_arn
|
710
732
|
# The Amazon Resource Name (ARN) of the event source.
|
@@ -761,6 +783,17 @@ module Aws::Lambda
|
|
761
783
|
#
|
762
784
|
# * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
|
763
785
|
#
|
786
|
+
# * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
|
787
|
+
#
|
788
|
+
# @option params [Types::FilterCriteria] :filter_criteria
|
789
|
+
# (Streams and Amazon SQS) An object that defines the filter criteria
|
790
|
+
# that determine whether Lambda should process an event. For more
|
791
|
+
# information, see [Lambda event filtering][1].
|
792
|
+
#
|
793
|
+
#
|
794
|
+
#
|
795
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
|
796
|
+
#
|
764
797
|
# @option params [Integer] :maximum_batching_window_in_seconds
|
765
798
|
# (Streams and Amazon SQS standard queues) The maximum amount of time,
|
766
799
|
# in seconds, that Lambda spends gathering records before invoking the
|
@@ -819,8 +852,8 @@ module Aws::Lambda
|
|
819
852
|
# The Self-Managed Apache Kafka cluster to send records.
|
820
853
|
#
|
821
854
|
# @option params [Array<String>] :function_response_types
|
822
|
-
# (Streams
|
823
|
-
# event source mapping.
|
855
|
+
# (Streams and Amazon SQS) A list of current response type enums applied
|
856
|
+
# to the event source mapping.
|
824
857
|
#
|
825
858
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
826
859
|
#
|
@@ -831,6 +864,7 @@ module Aws::Lambda
|
|
831
864
|
# * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
|
832
865
|
# * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
|
833
866
|
# * {Types::EventSourceMappingConfiguration#event_source_arn #event_source_arn} => String
|
867
|
+
# * {Types::EventSourceMappingConfiguration#filter_criteria #filter_criteria} => Types::FilterCriteria
|
834
868
|
# * {Types::EventSourceMappingConfiguration#function_arn #function_arn} => String
|
835
869
|
# * {Types::EventSourceMappingConfiguration#last_modified #last_modified} => Time
|
836
870
|
# * {Types::EventSourceMappingConfiguration#last_processing_result #last_processing_result} => String
|
@@ -854,6 +888,13 @@ module Aws::Lambda
|
|
854
888
|
# function_name: "FunctionName", # required
|
855
889
|
# enabled: false,
|
856
890
|
# batch_size: 1,
|
891
|
+
# filter_criteria: {
|
892
|
+
# filters: [
|
893
|
+
# {
|
894
|
+
# pattern: "Pattern",
|
895
|
+
# },
|
896
|
+
# ],
|
897
|
+
# },
|
857
898
|
# maximum_batching_window_in_seconds: 1,
|
858
899
|
# parallelization_factor: 1,
|
859
900
|
# starting_position: "TRIM_HORIZON", # accepts TRIM_HORIZON, LATEST, AT_TIMESTAMP
|
@@ -874,7 +915,7 @@ module Aws::Lambda
|
|
874
915
|
# queues: ["Queue"],
|
875
916
|
# source_access_configurations: [
|
876
917
|
# {
|
877
|
-
# type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
|
918
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST, CLIENT_CERTIFICATE_TLS_AUTH, SERVER_ROOT_CA_CERTIFICATE
|
878
919
|
# uri: "URI",
|
879
920
|
# },
|
880
921
|
# ],
|
@@ -895,6 +936,8 @@ module Aws::Lambda
|
|
895
936
|
# resp.maximum_batching_window_in_seconds #=> Integer
|
896
937
|
# resp.parallelization_factor #=> Integer
|
897
938
|
# resp.event_source_arn #=> String
|
939
|
+
# resp.filter_criteria.filters #=> Array
|
940
|
+
# resp.filter_criteria.filters[0].pattern #=> String
|
898
941
|
# resp.function_arn #=> String
|
899
942
|
# resp.last_modified #=> Time
|
900
943
|
# resp.last_processing_result #=> String
|
@@ -907,7 +950,7 @@ module Aws::Lambda
|
|
907
950
|
# resp.queues #=> Array
|
908
951
|
# resp.queues[0] #=> String
|
909
952
|
# resp.source_access_configurations #=> Array
|
910
|
-
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
|
953
|
+
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST", "CLIENT_CERTIFICATE_TLS_AUTH", "SERVER_ROOT_CA_CERTIFICATE"
|
911
954
|
# resp.source_access_configurations[0].uri #=> String
|
912
955
|
# resp.self_managed_event_source.endpoints #=> Hash
|
913
956
|
# resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
|
@@ -1015,7 +1058,8 @@ module Aws::Lambda
|
|
1015
1058
|
# only the function name, it is limited to 64 characters in length.
|
1016
1059
|
#
|
1017
1060
|
# @option params [String] :runtime
|
1018
|
-
# The identifier of the function's [runtime][1].
|
1061
|
+
# The identifier of the function's [runtime][1]. Runtime is required if
|
1062
|
+
# the deployment package is a .zip file archive.
|
1019
1063
|
#
|
1020
1064
|
#
|
1021
1065
|
#
|
@@ -1026,7 +1070,8 @@ module Aws::Lambda
|
|
1026
1070
|
#
|
1027
1071
|
# @option params [String] :handler
|
1028
1072
|
# The name of the method within your code that Lambda calls to execute
|
1029
|
-
# your function.
|
1073
|
+
# your function. Handler is required if the deployment package is a .zip
|
1074
|
+
# file archive. The format includes the file name. It can also include
|
1030
1075
|
# namespaces and other qualifiers, depending on the runtime. For more
|
1031
1076
|
# information, see [Programming Model][1].
|
1032
1077
|
#
|
@@ -1041,10 +1086,10 @@ module Aws::Lambda
|
|
1041
1086
|
# A description of the function.
|
1042
1087
|
#
|
1043
1088
|
# @option params [Integer] :timeout
|
1044
|
-
# The amount of time that Lambda allows a function to run
|
1045
|
-
# stopping it. The default is 3 seconds. The maximum allowed
|
1046
|
-
# 900 seconds. For additional information, see [Lambda
|
1047
|
-
# environment][1].
|
1089
|
+
# The amount of time (in seconds) that Lambda allows a function to run
|
1090
|
+
# before stopping it. The default is 3 seconds. The maximum allowed
|
1091
|
+
# value is 900 seconds. For additional information, see [Lambda
|
1092
|
+
# execution environment][1].
|
1048
1093
|
#
|
1049
1094
|
#
|
1050
1095
|
#
|
@@ -1138,8 +1183,8 @@ module Aws::Lambda
|
|
1138
1183
|
#
|
1139
1184
|
# @option params [Array<String>] :architectures
|
1140
1185
|
# The instruction set architecture that the function supports. Enter a
|
1141
|
-
# string array with one of the valid values
|
1142
|
-
# `x86_64`.
|
1186
|
+
# string array with one of the valid values (arm64 or x86\_64). The
|
1187
|
+
# default value is `x86_64`.
|
1143
1188
|
#
|
1144
1189
|
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1145
1190
|
#
|
@@ -1381,6 +1426,7 @@ module Aws::Lambda
|
|
1381
1426
|
# * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
|
1382
1427
|
# * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
|
1383
1428
|
# * {Types::EventSourceMappingConfiguration#event_source_arn #event_source_arn} => String
|
1429
|
+
# * {Types::EventSourceMappingConfiguration#filter_criteria #filter_criteria} => Types::FilterCriteria
|
1384
1430
|
# * {Types::EventSourceMappingConfiguration#function_arn #function_arn} => String
|
1385
1431
|
# * {Types::EventSourceMappingConfiguration#last_modified #last_modified} => Time
|
1386
1432
|
# * {Types::EventSourceMappingConfiguration#last_processing_result #last_processing_result} => String
|
@@ -1412,6 +1458,8 @@ module Aws::Lambda
|
|
1412
1458
|
# resp.maximum_batching_window_in_seconds #=> Integer
|
1413
1459
|
# resp.parallelization_factor #=> Integer
|
1414
1460
|
# resp.event_source_arn #=> String
|
1461
|
+
# resp.filter_criteria.filters #=> Array
|
1462
|
+
# resp.filter_criteria.filters[0].pattern #=> String
|
1415
1463
|
# resp.function_arn #=> String
|
1416
1464
|
# resp.last_modified #=> Time
|
1417
1465
|
# resp.last_processing_result #=> String
|
@@ -1424,7 +1472,7 @@ module Aws::Lambda
|
|
1424
1472
|
# resp.queues #=> Array
|
1425
1473
|
# resp.queues[0] #=> String
|
1426
1474
|
# resp.source_access_configurations #=> Array
|
1427
|
-
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
|
1475
|
+
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST", "CLIENT_CERTIFICATE_TLS_AUTH", "SERVER_ROOT_CA_CERTIFICATE"
|
1428
1476
|
# resp.source_access_configurations[0].uri #=> String
|
1429
1477
|
# resp.self_managed_event_source.endpoints #=> Hash
|
1430
1478
|
# resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
|
@@ -1814,6 +1862,7 @@ module Aws::Lambda
|
|
1814
1862
|
# * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
|
1815
1863
|
# * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
|
1816
1864
|
# * {Types::EventSourceMappingConfiguration#event_source_arn #event_source_arn} => String
|
1865
|
+
# * {Types::EventSourceMappingConfiguration#filter_criteria #filter_criteria} => Types::FilterCriteria
|
1817
1866
|
# * {Types::EventSourceMappingConfiguration#function_arn #function_arn} => String
|
1818
1867
|
# * {Types::EventSourceMappingConfiguration#last_modified #last_modified} => Time
|
1819
1868
|
# * {Types::EventSourceMappingConfiguration#last_processing_result #last_processing_result} => String
|
@@ -1845,6 +1894,8 @@ module Aws::Lambda
|
|
1845
1894
|
# resp.maximum_batching_window_in_seconds #=> Integer
|
1846
1895
|
# resp.parallelization_factor #=> Integer
|
1847
1896
|
# resp.event_source_arn #=> String
|
1897
|
+
# resp.filter_criteria.filters #=> Array
|
1898
|
+
# resp.filter_criteria.filters[0].pattern #=> String
|
1848
1899
|
# resp.function_arn #=> String
|
1849
1900
|
# resp.last_modified #=> Time
|
1850
1901
|
# resp.last_processing_result #=> String
|
@@ -1857,7 +1908,7 @@ module Aws::Lambda
|
|
1857
1908
|
# resp.queues #=> Array
|
1858
1909
|
# resp.queues[0] #=> String
|
1859
1910
|
# resp.source_access_configurations #=> Array
|
1860
|
-
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
|
1911
|
+
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST", "CLIENT_CERTIFICATE_TLS_AUTH", "SERVER_ROOT_CA_CERTIFICATE"
|
1861
1912
|
# resp.source_access_configurations[0].uri #=> String
|
1862
1913
|
# resp.self_managed_event_source.endpoints #=> Hash
|
1863
1914
|
# resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
|
@@ -2631,6 +2682,10 @@ module Aws::Lambda
|
|
2631
2682
|
# @option params [String, StringIO, File] :payload
|
2632
2683
|
# The JSON that you want to provide to your Lambda function as input.
|
2633
2684
|
#
|
2685
|
+
# You can enter the JSON directly. For example, `--payload '\{ "key":
|
2686
|
+
# "value" \}'`. You can also specify a file path. For example,
|
2687
|
+
# `--payload file://payload.json`.
|
2688
|
+
#
|
2634
2689
|
# @option params [String] :qualifier
|
2635
2690
|
# Specify a version or alias to invoke a published version of the
|
2636
2691
|
# function.
|
@@ -2905,6 +2960,8 @@ module Aws::Lambda
|
|
2905
2960
|
# resp.event_source_mappings[0].maximum_batching_window_in_seconds #=> Integer
|
2906
2961
|
# resp.event_source_mappings[0].parallelization_factor #=> Integer
|
2907
2962
|
# resp.event_source_mappings[0].event_source_arn #=> String
|
2963
|
+
# resp.event_source_mappings[0].filter_criteria.filters #=> Array
|
2964
|
+
# resp.event_source_mappings[0].filter_criteria.filters[0].pattern #=> String
|
2908
2965
|
# resp.event_source_mappings[0].function_arn #=> String
|
2909
2966
|
# resp.event_source_mappings[0].last_modified #=> Time
|
2910
2967
|
# resp.event_source_mappings[0].last_processing_result #=> String
|
@@ -2917,7 +2974,7 @@ module Aws::Lambda
|
|
2917
2974
|
# resp.event_source_mappings[0].queues #=> Array
|
2918
2975
|
# resp.event_source_mappings[0].queues[0] #=> String
|
2919
2976
|
# resp.event_source_mappings[0].source_access_configurations #=> Array
|
2920
|
-
# resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
|
2977
|
+
# resp.event_source_mappings[0].source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST", "CLIENT_CERTIFICATE_TLS_AUTH", "SERVER_ROOT_CA_CERTIFICATE"
|
2921
2978
|
# resp.event_source_mappings[0].source_access_configurations[0].uri #=> String
|
2922
2979
|
# resp.event_source_mappings[0].self_managed_event_source.endpoints #=> Hash
|
2923
2980
|
# resp.event_source_mappings[0].self_managed_event_source.endpoints["EndPointType"] #=> Array
|
@@ -4344,6 +4401,21 @@ module Aws::Lambda
|
|
4344
4401
|
# Lambda invokes, or pause invocation and resume later from the same
|
4345
4402
|
# location.
|
4346
4403
|
#
|
4404
|
+
# For details about how to configure different event sources, see the
|
4405
|
+
# following topics.
|
4406
|
+
#
|
4407
|
+
# * [ Amazon DynamoDB Streams][1]
|
4408
|
+
#
|
4409
|
+
# * [ Amazon Kinesis][2]
|
4410
|
+
#
|
4411
|
+
# * [ Amazon SQS][3]
|
4412
|
+
#
|
4413
|
+
# * [ Amazon MQ and RabbitMQ][4]
|
4414
|
+
#
|
4415
|
+
# * [ Amazon MSK][5]
|
4416
|
+
#
|
4417
|
+
# * [ Apache Kafka][6]
|
4418
|
+
#
|
4347
4419
|
# The following error handling options are only available for stream
|
4348
4420
|
# sources (DynamoDB and Kinesis):
|
4349
4421
|
#
|
@@ -4364,6 +4436,36 @@ module Aws::Lambda
|
|
4364
4436
|
# * `ParallelizationFactor` - Process multiple batches from each shard
|
4365
4437
|
# concurrently.
|
4366
4438
|
#
|
4439
|
+
# For information about which configuration parameters apply to each
|
4440
|
+
# event source, see the following topics.
|
4441
|
+
#
|
4442
|
+
# * [ Amazon DynamoDB Streams][7]
|
4443
|
+
#
|
4444
|
+
# * [ Amazon Kinesis][8]
|
4445
|
+
#
|
4446
|
+
# * [ Amazon SQS][9]
|
4447
|
+
#
|
4448
|
+
# * [ Amazon MQ and RabbitMQ][10]
|
4449
|
+
#
|
4450
|
+
# * [ Amazon MSK][11]
|
4451
|
+
#
|
4452
|
+
# * [ Apache Kafka][12]
|
4453
|
+
#
|
4454
|
+
#
|
4455
|
+
#
|
4456
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-dynamodb-eventsourcemapping
|
4457
|
+
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-eventsourcemapping
|
4458
|
+
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-eventsource
|
4459
|
+
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-eventsourcemapping
|
4460
|
+
# [5]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
|
4461
|
+
# [6]: https://docs.aws.amazon.com/lambda/latest/dg/kafka-smaa.html
|
4462
|
+
# [7]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-params
|
4463
|
+
# [8]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-params
|
4464
|
+
# [9]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-params
|
4465
|
+
# [10]: https://docs.aws.amazon.com/lambda/latest/dg/with-mq.html#services-mq-params
|
4466
|
+
# [11]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-parms
|
4467
|
+
# [12]: https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-kafka-parms
|
4468
|
+
#
|
4367
4469
|
# @option params [required, String] :uuid
|
4368
4470
|
# The identifier of the event source mapping.
|
4369
4471
|
#
|
@@ -4409,6 +4511,17 @@ module Aws::Lambda
|
|
4409
4511
|
#
|
4410
4512
|
# * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
|
4411
4513
|
#
|
4514
|
+
# * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
|
4515
|
+
#
|
4516
|
+
# @option params [Types::FilterCriteria] :filter_criteria
|
4517
|
+
# (Streams and Amazon SQS) An object that defines the filter criteria
|
4518
|
+
# that determine whether Lambda should process an event. For more
|
4519
|
+
# information, see [Lambda event filtering][1].
|
4520
|
+
#
|
4521
|
+
#
|
4522
|
+
#
|
4523
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
|
4524
|
+
#
|
4412
4525
|
# @option params [Integer] :maximum_batching_window_in_seconds
|
4413
4526
|
# (Streams and Amazon SQS standard queues) The maximum amount of time,
|
4414
4527
|
# in seconds, that Lambda spends gathering records before invoking the
|
@@ -4449,8 +4562,8 @@ module Aws::Lambda
|
|
4449
4562
|
# range is between 1 second up to 900 seconds.
|
4450
4563
|
#
|
4451
4564
|
# @option params [Array<String>] :function_response_types
|
4452
|
-
# (Streams
|
4453
|
-
# event source mapping.
|
4565
|
+
# (Streams and Amazon SQS) A list of current response type enums applied
|
4566
|
+
# to the event source mapping.
|
4454
4567
|
#
|
4455
4568
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4456
4569
|
#
|
@@ -4461,6 +4574,7 @@ module Aws::Lambda
|
|
4461
4574
|
# * {Types::EventSourceMappingConfiguration#maximum_batching_window_in_seconds #maximum_batching_window_in_seconds} => Integer
|
4462
4575
|
# * {Types::EventSourceMappingConfiguration#parallelization_factor #parallelization_factor} => Integer
|
4463
4576
|
# * {Types::EventSourceMappingConfiguration#event_source_arn #event_source_arn} => String
|
4577
|
+
# * {Types::EventSourceMappingConfiguration#filter_criteria #filter_criteria} => Types::FilterCriteria
|
4464
4578
|
# * {Types::EventSourceMappingConfiguration#function_arn #function_arn} => String
|
4465
4579
|
# * {Types::EventSourceMappingConfiguration#last_modified #last_modified} => Time
|
4466
4580
|
# * {Types::EventSourceMappingConfiguration#last_processing_result #last_processing_result} => String
|
@@ -4484,6 +4598,13 @@ module Aws::Lambda
|
|
4484
4598
|
# function_name: "FunctionName",
|
4485
4599
|
# enabled: false,
|
4486
4600
|
# batch_size: 1,
|
4601
|
+
# filter_criteria: {
|
4602
|
+
# filters: [
|
4603
|
+
# {
|
4604
|
+
# pattern: "Pattern",
|
4605
|
+
# },
|
4606
|
+
# ],
|
4607
|
+
# },
|
4487
4608
|
# maximum_batching_window_in_seconds: 1,
|
4488
4609
|
# destination_config: {
|
4489
4610
|
# on_success: {
|
@@ -4499,7 +4620,7 @@ module Aws::Lambda
|
|
4499
4620
|
# parallelization_factor: 1,
|
4500
4621
|
# source_access_configurations: [
|
4501
4622
|
# {
|
4502
|
-
# type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
|
4623
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST, CLIENT_CERTIFICATE_TLS_AUTH, SERVER_ROOT_CA_CERTIFICATE
|
4503
4624
|
# uri: "URI",
|
4504
4625
|
# },
|
4505
4626
|
# ],
|
@@ -4516,6 +4637,8 @@ module Aws::Lambda
|
|
4516
4637
|
# resp.maximum_batching_window_in_seconds #=> Integer
|
4517
4638
|
# resp.parallelization_factor #=> Integer
|
4518
4639
|
# resp.event_source_arn #=> String
|
4640
|
+
# resp.filter_criteria.filters #=> Array
|
4641
|
+
# resp.filter_criteria.filters[0].pattern #=> String
|
4519
4642
|
# resp.function_arn #=> String
|
4520
4643
|
# resp.last_modified #=> Time
|
4521
4644
|
# resp.last_processing_result #=> String
|
@@ -4528,7 +4651,7 @@ module Aws::Lambda
|
|
4528
4651
|
# resp.queues #=> Array
|
4529
4652
|
# resp.queues[0] #=> String
|
4530
4653
|
# resp.source_access_configurations #=> Array
|
4531
|
-
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST"
|
4654
|
+
# resp.source_access_configurations[0].type #=> String, one of "BASIC_AUTH", "VPC_SUBNET", "VPC_SECURITY_GROUP", "SASL_SCRAM_512_AUTH", "SASL_SCRAM_256_AUTH", "VIRTUAL_HOST", "CLIENT_CERTIFICATE_TLS_AUTH", "SERVER_ROOT_CA_CERTIFICATE"
|
4532
4655
|
# resp.source_access_configurations[0].uri #=> String
|
4533
4656
|
# resp.self_managed_event_source.endpoints #=> Hash
|
4534
4657
|
# resp.self_managed_event_source.endpoints["EndPointType"] #=> Array
|
@@ -4617,8 +4740,8 @@ module Aws::Lambda
|
|
4617
4740
|
#
|
4618
4741
|
# @option params [Array<String>] :architectures
|
4619
4742
|
# The instruction set architecture that the function supports. Enter a
|
4620
|
-
# string array with one of the valid values
|
4621
|
-
# `x86_64`.
|
4743
|
+
# string array with one of the valid values (arm64 or x86\_64). The
|
4744
|
+
# default value is `x86_64`.
|
4622
4745
|
#
|
4623
4746
|
# @return [Types::FunctionConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4624
4747
|
#
|
@@ -4778,7 +4901,8 @@ module Aws::Lambda
|
|
4778
4901
|
#
|
4779
4902
|
# @option params [String] :handler
|
4780
4903
|
# The name of the method within your code that Lambda calls to execute
|
4781
|
-
# your function.
|
4904
|
+
# your function. Handler is required if the deployment package is a .zip
|
4905
|
+
# file archive. The format includes the file name. It can also include
|
4782
4906
|
# namespaces and other qualifiers, depending on the runtime. For more
|
4783
4907
|
# information, see [Programming Model][1].
|
4784
4908
|
#
|
@@ -4790,10 +4914,10 @@ module Aws::Lambda
|
|
4790
4914
|
# A description of the function.
|
4791
4915
|
#
|
4792
4916
|
# @option params [Integer] :timeout
|
4793
|
-
# The amount of time that Lambda allows a function to run
|
4794
|
-
# stopping it. The default is 3 seconds. The maximum allowed
|
4795
|
-
# 900 seconds. For additional information, see [Lambda
|
4796
|
-
# environment][1].
|
4917
|
+
# The amount of time (in seconds) that Lambda allows a function to run
|
4918
|
+
# before stopping it. The default is 3 seconds. The maximum allowed
|
4919
|
+
# value is 900 seconds. For additional information, see [Lambda
|
4920
|
+
# execution environment][1].
|
4797
4921
|
#
|
4798
4922
|
#
|
4799
4923
|
#
|
@@ -4824,7 +4948,8 @@ module Aws::Lambda
|
|
4824
4948
|
# execution.
|
4825
4949
|
#
|
4826
4950
|
# @option params [String] :runtime
|
4827
|
-
# The identifier of the function's [runtime][1].
|
4951
|
+
# The identifier of the function's [runtime][1]. Runtime is required if
|
4952
|
+
# the deployment package is a .zip file archive.
|
4828
4953
|
#
|
4829
4954
|
#
|
4830
4955
|
#
|
@@ -5120,7 +5245,7 @@ module Aws::Lambda
|
|
5120
5245
|
params: params,
|
5121
5246
|
config: config)
|
5122
5247
|
context[:gem_name] = 'aws-sdk-lambda'
|
5123
|
-
context[:gem_version] = '1.
|
5248
|
+
context[:gem_version] = '1.75.0'
|
5124
5249
|
Seahorse::Client::Request.new(handlers, context)
|
5125
5250
|
end
|
5126
5251
|
|
@@ -93,6 +93,9 @@ module Aws::Lambda
|
|
93
93
|
FileSystemArn = Shapes::StringShape.new(name: 'FileSystemArn')
|
94
94
|
FileSystemConfig = Shapes::StructureShape.new(name: 'FileSystemConfig')
|
95
95
|
FileSystemConfigList = Shapes::ListShape.new(name: 'FileSystemConfigList')
|
96
|
+
Filter = Shapes::StructureShape.new(name: 'Filter')
|
97
|
+
FilterCriteria = Shapes::StructureShape.new(name: 'FilterCriteria')
|
98
|
+
FilterList = Shapes::ListShape.new(name: 'FilterList')
|
96
99
|
FunctionArn = Shapes::StringShape.new(name: 'FunctionArn')
|
97
100
|
FunctionArnList = Shapes::ListShape.new(name: 'FunctionArnList')
|
98
101
|
FunctionCode = Shapes::StructureShape.new(name: 'FunctionCode')
|
@@ -215,6 +218,7 @@ module Aws::Lambda
|
|
215
218
|
OrganizationId = Shapes::StringShape.new(name: 'OrganizationId')
|
216
219
|
PackageType = Shapes::StringShape.new(name: 'PackageType')
|
217
220
|
ParallelizationFactor = Shapes::IntegerShape.new(name: 'ParallelizationFactor')
|
221
|
+
Pattern = Shapes::StringShape.new(name: 'Pattern')
|
218
222
|
PolicyLengthExceededException = Shapes::StructureShape.new(name: 'PolicyLengthExceededException')
|
219
223
|
PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger')
|
220
224
|
PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
|
@@ -411,6 +415,7 @@ module Aws::Lambda
|
|
411
415
|
CreateEventSourceMappingRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
|
412
416
|
CreateEventSourceMappingRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "Enabled"))
|
413
417
|
CreateEventSourceMappingRequest.add_member(:batch_size, Shapes::ShapeRef.new(shape: BatchSize, location_name: "BatchSize"))
|
418
|
+
CreateEventSourceMappingRequest.add_member(:filter_criteria, Shapes::ShapeRef.new(shape: FilterCriteria, location_name: "FilterCriteria"))
|
414
419
|
CreateEventSourceMappingRequest.add_member(:maximum_batching_window_in_seconds, Shapes::ShapeRef.new(shape: MaximumBatchingWindowInSeconds, location_name: "MaximumBatchingWindowInSeconds"))
|
415
420
|
CreateEventSourceMappingRequest.add_member(:parallelization_factor, Shapes::ShapeRef.new(shape: ParallelizationFactor, location_name: "ParallelizationFactor"))
|
416
421
|
CreateEventSourceMappingRequest.add_member(:starting_position, Shapes::ShapeRef.new(shape: EventSourcePosition, location_name: "StartingPosition"))
|
@@ -550,6 +555,7 @@ module Aws::Lambda
|
|
550
555
|
EventSourceMappingConfiguration.add_member(:maximum_batching_window_in_seconds, Shapes::ShapeRef.new(shape: MaximumBatchingWindowInSeconds, location_name: "MaximumBatchingWindowInSeconds"))
|
551
556
|
EventSourceMappingConfiguration.add_member(:parallelization_factor, Shapes::ShapeRef.new(shape: ParallelizationFactor, location_name: "ParallelizationFactor"))
|
552
557
|
EventSourceMappingConfiguration.add_member(:event_source_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "EventSourceArn"))
|
558
|
+
EventSourceMappingConfiguration.add_member(:filter_criteria, Shapes::ShapeRef.new(shape: FilterCriteria, location_name: "FilterCriteria"))
|
553
559
|
EventSourceMappingConfiguration.add_member(:function_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "FunctionArn"))
|
554
560
|
EventSourceMappingConfiguration.add_member(:last_modified, Shapes::ShapeRef.new(shape: Date, location_name: "LastModified"))
|
555
561
|
EventSourceMappingConfiguration.add_member(:last_processing_result, Shapes::ShapeRef.new(shape: String, location_name: "LastProcessingResult"))
|
@@ -575,6 +581,14 @@ module Aws::Lambda
|
|
575
581
|
|
576
582
|
FileSystemConfigList.member = Shapes::ShapeRef.new(shape: FileSystemConfig)
|
577
583
|
|
584
|
+
Filter.add_member(:pattern, Shapes::ShapeRef.new(shape: Pattern, location_name: "Pattern"))
|
585
|
+
Filter.struct_class = Types::Filter
|
586
|
+
|
587
|
+
FilterCriteria.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
|
588
|
+
FilterCriteria.struct_class = Types::FilterCriteria
|
589
|
+
|
590
|
+
FilterList.member = Shapes::ShapeRef.new(shape: Filter)
|
591
|
+
|
578
592
|
FunctionArnList.member = Shapes::ShapeRef.new(shape: FunctionArn)
|
579
593
|
|
580
594
|
FunctionCode.add_member(:zip_file, Shapes::ShapeRef.new(shape: Blob, location_name: "ZipFile"))
|
@@ -1157,6 +1171,7 @@ module Aws::Lambda
|
|
1157
1171
|
UpdateEventSourceMappingRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, location_name: "FunctionName"))
|
1158
1172
|
UpdateEventSourceMappingRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "Enabled"))
|
1159
1173
|
UpdateEventSourceMappingRequest.add_member(:batch_size, Shapes::ShapeRef.new(shape: BatchSize, location_name: "BatchSize"))
|
1174
|
+
UpdateEventSourceMappingRequest.add_member(:filter_criteria, Shapes::ShapeRef.new(shape: FilterCriteria, location_name: "FilterCriteria"))
|
1160
1175
|
UpdateEventSourceMappingRequest.add_member(:maximum_batching_window_in_seconds, Shapes::ShapeRef.new(shape: MaximumBatchingWindowInSeconds, location_name: "MaximumBatchingWindowInSeconds"))
|
1161
1176
|
UpdateEventSourceMappingRequest.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
1162
1177
|
UpdateEventSourceMappingRequest.add_member(:maximum_record_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumRecordAgeInSeconds, location_name: "MaximumRecordAgeInSeconds"))
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -630,6 +630,13 @@ module Aws::Lambda
|
|
630
630
|
# function_name: "FunctionName", # required
|
631
631
|
# enabled: false,
|
632
632
|
# batch_size: 1,
|
633
|
+
# filter_criteria: {
|
634
|
+
# filters: [
|
635
|
+
# {
|
636
|
+
# pattern: "Pattern",
|
637
|
+
# },
|
638
|
+
# ],
|
639
|
+
# },
|
633
640
|
# maximum_batching_window_in_seconds: 1,
|
634
641
|
# parallelization_factor: 1,
|
635
642
|
# starting_position: "TRIM_HORIZON", # accepts TRIM_HORIZON, LATEST, AT_TIMESTAMP
|
@@ -650,7 +657,7 @@ module Aws::Lambda
|
|
650
657
|
# queues: ["Queue"],
|
651
658
|
# source_access_configurations: [
|
652
659
|
# {
|
653
|
-
# type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
|
660
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST, CLIENT_CERTIFICATE_TLS_AUTH, SERVER_ROOT_CA_CERTIFICATE
|
654
661
|
# uri: "URI",
|
655
662
|
# },
|
656
663
|
# ],
|
@@ -719,8 +726,20 @@ module Aws::Lambda
|
|
719
726
|
# 10,000.
|
720
727
|
#
|
721
728
|
# * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
|
729
|
+
#
|
730
|
+
# * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
|
722
731
|
# @return [Integer]
|
723
732
|
#
|
733
|
+
# @!attribute [rw] filter_criteria
|
734
|
+
# (Streams and Amazon SQS) An object that defines the filter criteria
|
735
|
+
# that determine whether Lambda should process an event. For more
|
736
|
+
# information, see [Lambda event filtering][1].
|
737
|
+
#
|
738
|
+
#
|
739
|
+
#
|
740
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
|
741
|
+
# @return [Types::FilterCriteria]
|
742
|
+
#
|
724
743
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
725
744
|
# (Streams and Amazon SQS standard queues) The maximum amount of time,
|
726
745
|
# in seconds, that Lambda spends gathering records before invoking the
|
@@ -792,8 +811,8 @@ module Aws::Lambda
|
|
792
811
|
# @return [Types::SelfManagedEventSource]
|
793
812
|
#
|
794
813
|
# @!attribute [rw] function_response_types
|
795
|
-
# (Streams
|
796
|
-
# event source mapping.
|
814
|
+
# (Streams and Amazon SQS) A list of current response type enums
|
815
|
+
# applied to the event source mapping.
|
797
816
|
# @return [Array<String>]
|
798
817
|
#
|
799
818
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
|
@@ -803,6 +822,7 @@ module Aws::Lambda
|
|
803
822
|
:function_name,
|
804
823
|
:enabled,
|
805
824
|
:batch_size,
|
825
|
+
:filter_criteria,
|
806
826
|
:maximum_batching_window_in_seconds,
|
807
827
|
:parallelization_factor,
|
808
828
|
:starting_position,
|
@@ -893,7 +913,8 @@ module Aws::Lambda
|
|
893
913
|
# @return [String]
|
894
914
|
#
|
895
915
|
# @!attribute [rw] runtime
|
896
|
-
# The identifier of the function's [runtime][1].
|
916
|
+
# The identifier of the function's [runtime][1]. Runtime is required
|
917
|
+
# if the deployment package is a .zip file archive.
|
897
918
|
#
|
898
919
|
#
|
899
920
|
#
|
@@ -906,7 +927,8 @@ module Aws::Lambda
|
|
906
927
|
#
|
907
928
|
# @!attribute [rw] handler
|
908
929
|
# The name of the method within your code that Lambda calls to execute
|
909
|
-
# your function.
|
930
|
+
# your function. Handler is required if the deployment package is a
|
931
|
+
# .zip file archive. The format includes the file name. It can also
|
910
932
|
# include namespaces and other qualifiers, depending on the runtime.
|
911
933
|
# For more information, see [Programming Model][1].
|
912
934
|
#
|
@@ -924,10 +946,10 @@ module Aws::Lambda
|
|
924
946
|
# @return [String]
|
925
947
|
#
|
926
948
|
# @!attribute [rw] timeout
|
927
|
-
# The amount of time that Lambda allows a function to run
|
928
|
-
# stopping it. The default is 3 seconds. The maximum allowed
|
929
|
-
# 900 seconds. For additional information, see [Lambda
|
930
|
-
# environment][1].
|
949
|
+
# The amount of time (in seconds) that Lambda allows a function to run
|
950
|
+
# before stopping it. The default is 3 seconds. The maximum allowed
|
951
|
+
# value is 900 seconds. For additional information, see [Lambda
|
952
|
+
# execution environment][1].
|
931
953
|
#
|
932
954
|
#
|
933
955
|
#
|
@@ -1035,8 +1057,8 @@ module Aws::Lambda
|
|
1035
1057
|
#
|
1036
1058
|
# @!attribute [rw] architectures
|
1037
1059
|
# The instruction set architecture that the function supports. Enter a
|
1038
|
-
# string array with one of the valid values
|
1039
|
-
# `x86_64`.
|
1060
|
+
# string array with one of the valid values (arm64 or x86\_64). The
|
1061
|
+
# default value is `x86_64`.
|
1040
1062
|
# @return [Array<String>]
|
1041
1063
|
#
|
1042
1064
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionRequest AWS API Documentation
|
@@ -1680,6 +1702,16 @@ module Aws::Lambda
|
|
1680
1702
|
# The Amazon Resource Name (ARN) of the event source.
|
1681
1703
|
# @return [String]
|
1682
1704
|
#
|
1705
|
+
# @!attribute [rw] filter_criteria
|
1706
|
+
# (Streams and Amazon SQS) An object that defines the filter criteria
|
1707
|
+
# that determine whether Lambda should process an event. For more
|
1708
|
+
# information, see [Lambda event filtering][1].
|
1709
|
+
#
|
1710
|
+
#
|
1711
|
+
#
|
1712
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
|
1713
|
+
# @return [Types::FilterCriteria]
|
1714
|
+
#
|
1683
1715
|
# @!attribute [rw] function_arn
|
1684
1716
|
# The ARN of the Lambda function.
|
1685
1717
|
# @return [String]
|
@@ -1765,6 +1797,7 @@ module Aws::Lambda
|
|
1765
1797
|
:maximum_batching_window_in_seconds,
|
1766
1798
|
:parallelization_factor,
|
1767
1799
|
:event_source_arn,
|
1800
|
+
:filter_criteria,
|
1768
1801
|
:function_arn,
|
1769
1802
|
:last_modified,
|
1770
1803
|
:last_processing_result,
|
@@ -1818,6 +1851,58 @@ module Aws::Lambda
|
|
1818
1851
|
include Aws::Structure
|
1819
1852
|
end
|
1820
1853
|
|
1854
|
+
# A structure within a `FilterCriteria` object that defines an event
|
1855
|
+
# filtering pattern.
|
1856
|
+
#
|
1857
|
+
# @note When making an API call, you may pass Filter
|
1858
|
+
# data as a hash:
|
1859
|
+
#
|
1860
|
+
# {
|
1861
|
+
# pattern: "Pattern",
|
1862
|
+
# }
|
1863
|
+
#
|
1864
|
+
# @!attribute [rw] pattern
|
1865
|
+
# A filter pattern. For more information on the syntax of a filter
|
1866
|
+
# pattern, see [ Filter rule syntax][1].
|
1867
|
+
#
|
1868
|
+
#
|
1869
|
+
#
|
1870
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax
|
1871
|
+
# @return [String]
|
1872
|
+
#
|
1873
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/Filter AWS API Documentation
|
1874
|
+
#
|
1875
|
+
class Filter < Struct.new(
|
1876
|
+
:pattern)
|
1877
|
+
SENSITIVE = []
|
1878
|
+
include Aws::Structure
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
# An object that contains the filters for an event source.
|
1882
|
+
#
|
1883
|
+
# @note When making an API call, you may pass FilterCriteria
|
1884
|
+
# data as a hash:
|
1885
|
+
#
|
1886
|
+
# {
|
1887
|
+
# filters: [
|
1888
|
+
# {
|
1889
|
+
# pattern: "Pattern",
|
1890
|
+
# },
|
1891
|
+
# ],
|
1892
|
+
# }
|
1893
|
+
#
|
1894
|
+
# @!attribute [rw] filters
|
1895
|
+
# A list of filters.
|
1896
|
+
# @return [Array<Types::Filter>]
|
1897
|
+
#
|
1898
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/FilterCriteria AWS API Documentation
|
1899
|
+
#
|
1900
|
+
class FilterCriteria < Struct.new(
|
1901
|
+
:filters)
|
1902
|
+
SENSITIVE = []
|
1903
|
+
include Aws::Structure
|
1904
|
+
end
|
1905
|
+
|
1821
1906
|
# The code for the Lambda function. You can specify either an object in
|
1822
1907
|
# Amazon S3, upload a .zip file archive deployment package directly, or
|
1823
1908
|
# specify the URI of a container image.
|
@@ -1978,7 +2063,7 @@ module Aws::Lambda
|
|
1978
2063
|
# @!attribute [rw] kms_key_arn
|
1979
2064
|
# The KMS key that's used to encrypt the function's environment
|
1980
2065
|
# variables. This key is only returned if you've configured a
|
1981
|
-
# customer managed
|
2066
|
+
# customer managed key.
|
1982
2067
|
# @return [String]
|
1983
2068
|
#
|
1984
2069
|
# @!attribute [rw] tracing_config
|
@@ -1986,7 +2071,7 @@ module Aws::Lambda
|
|
1986
2071
|
# @return [Types::TracingConfigResponse]
|
1987
2072
|
#
|
1988
2073
|
# @!attribute [rw] master_arn
|
1989
|
-
# For Lambda@Edge functions, the ARN of the
|
2074
|
+
# For Lambda@Edge functions, the ARN of the main function.
|
1990
2075
|
# @return [String]
|
1991
2076
|
#
|
1992
2077
|
# @!attribute [rw] revision_id
|
@@ -3060,6 +3145,10 @@ module Aws::Lambda
|
|
3060
3145
|
#
|
3061
3146
|
# @!attribute [rw] payload
|
3062
3147
|
# The JSON that you want to provide to your Lambda function as input.
|
3148
|
+
#
|
3149
|
+
# You can enter the JSON directly. For example, `--payload '\{ "key":
|
3150
|
+
# "value" \}'`. You can also specify a file path. For example,
|
3151
|
+
# `--payload file://payload.json`.
|
3063
3152
|
# @return [String]
|
3064
3153
|
#
|
3065
3154
|
# @!attribute [rw] qualifier
|
@@ -4946,7 +5035,7 @@ module Aws::Lambda
|
|
4946
5035
|
# data as a hash:
|
4947
5036
|
#
|
4948
5037
|
# {
|
4949
|
-
# type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
|
5038
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST, CLIENT_CERTIFICATE_TLS_AUTH, SERVER_ROOT_CA_CERTIFICATE
|
4950
5039
|
# uri: "URI",
|
4951
5040
|
# }
|
4952
5041
|
#
|
@@ -4978,7 +5067,19 @@ module Aws::Lambda
|
|
4978
5067
|
#
|
4979
5068
|
# * `VIRTUAL_HOST` - (Amazon MQ) The name of the virtual host in your
|
4980
5069
|
# RabbitMQ broker. Lambda uses this RabbitMQ host as the event
|
4981
|
-
# source.
|
5070
|
+
# source. This property cannot be specified in an
|
5071
|
+
# UpdateEventSourceMapping API call.
|
5072
|
+
#
|
5073
|
+
# * `CLIENT_CERTIFICATE_TLS_AUTH` - (Amazon MSK, Self-managed Apache
|
5074
|
+
# Kafka) The Secrets Manager ARN of your secret key containing the
|
5075
|
+
# certificate chain (X.509 PEM), private key (PKCS#8 PEM), and
|
5076
|
+
# private key password (optional) used for mutual TLS authentication
|
5077
|
+
# of your MSK/Apache Kafka brokers.
|
5078
|
+
#
|
5079
|
+
# * `SERVER_ROOT_CA_CERTIFICATE` - (Self-managed Apache Kafka) The
|
5080
|
+
# Secrets Manager ARN of your secret key containing the root CA
|
5081
|
+
# certificate (X.509 PEM) used for TLS encryption of your Apache
|
5082
|
+
# Kafka brokers.
|
4982
5083
|
# @return [String]
|
4983
5084
|
#
|
4984
5085
|
# @!attribute [rw] uri
|
@@ -5282,6 +5383,13 @@ module Aws::Lambda
|
|
5282
5383
|
# function_name: "FunctionName",
|
5283
5384
|
# enabled: false,
|
5284
5385
|
# batch_size: 1,
|
5386
|
+
# filter_criteria: {
|
5387
|
+
# filters: [
|
5388
|
+
# {
|
5389
|
+
# pattern: "Pattern",
|
5390
|
+
# },
|
5391
|
+
# ],
|
5392
|
+
# },
|
5285
5393
|
# maximum_batching_window_in_seconds: 1,
|
5286
5394
|
# destination_config: {
|
5287
5395
|
# on_success: {
|
@@ -5297,7 +5405,7 @@ module Aws::Lambda
|
|
5297
5405
|
# parallelization_factor: 1,
|
5298
5406
|
# source_access_configurations: [
|
5299
5407
|
# {
|
5300
|
-
# type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST
|
5408
|
+
# type: "BASIC_AUTH", # accepts BASIC_AUTH, VPC_SUBNET, VPC_SECURITY_GROUP, SASL_SCRAM_512_AUTH, SASL_SCRAM_256_AUTH, VIRTUAL_HOST, CLIENT_CERTIFICATE_TLS_AUTH, SERVER_ROOT_CA_CERTIFICATE
|
5301
5409
|
# uri: "URI",
|
5302
5410
|
# },
|
5303
5411
|
# ],
|
@@ -5352,8 +5460,20 @@ module Aws::Lambda
|
|
5352
5460
|
# 10,000.
|
5353
5461
|
#
|
5354
5462
|
# * **Self-Managed Apache Kafka** - Default 100. Max 10,000.
|
5463
|
+
#
|
5464
|
+
# * **Amazon MQ (ActiveMQ and RabbitMQ)** - Default 100. Max 10,000.
|
5355
5465
|
# @return [Integer]
|
5356
5466
|
#
|
5467
|
+
# @!attribute [rw] filter_criteria
|
5468
|
+
# (Streams and Amazon SQS) An object that defines the filter criteria
|
5469
|
+
# that determine whether Lambda should process an event. For more
|
5470
|
+
# information, see [Lambda event filtering][1].
|
5471
|
+
#
|
5472
|
+
#
|
5473
|
+
#
|
5474
|
+
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html
|
5475
|
+
# @return [Types::FilterCriteria]
|
5476
|
+
#
|
5357
5477
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
5358
5478
|
# (Streams and Amazon SQS standard queues) The maximum amount of time,
|
5359
5479
|
# in seconds, that Lambda spends gathering records before invoking the
|
@@ -5402,8 +5522,8 @@ module Aws::Lambda
|
|
5402
5522
|
# @return [Integer]
|
5403
5523
|
#
|
5404
5524
|
# @!attribute [rw] function_response_types
|
5405
|
-
# (Streams
|
5406
|
-
# event source mapping.
|
5525
|
+
# (Streams and Amazon SQS) A list of current response type enums
|
5526
|
+
# applied to the event source mapping.
|
5407
5527
|
# @return [Array<String>]
|
5408
5528
|
#
|
5409
5529
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateEventSourceMappingRequest AWS API Documentation
|
@@ -5413,6 +5533,7 @@ module Aws::Lambda
|
|
5413
5533
|
:function_name,
|
5414
5534
|
:enabled,
|
5415
5535
|
:batch_size,
|
5536
|
+
:filter_criteria,
|
5416
5537
|
:maximum_batching_window_in_seconds,
|
5417
5538
|
:destination_config,
|
5418
5539
|
:maximum_record_age_in_seconds,
|
@@ -5502,8 +5623,8 @@ module Aws::Lambda
|
|
5502
5623
|
#
|
5503
5624
|
# @!attribute [rw] architectures
|
5504
5625
|
# The instruction set architecture that the function supports. Enter a
|
5505
|
-
# string array with one of the valid values
|
5506
|
-
# `x86_64`.
|
5626
|
+
# string array with one of the valid values (arm64 or x86\_64). The
|
5627
|
+
# default value is `x86_64`.
|
5507
5628
|
# @return [Array<String>]
|
5508
5629
|
#
|
5509
5630
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCodeRequest AWS API Documentation
|
@@ -5587,7 +5708,8 @@ module Aws::Lambda
|
|
5587
5708
|
#
|
5588
5709
|
# @!attribute [rw] handler
|
5589
5710
|
# The name of the method within your code that Lambda calls to execute
|
5590
|
-
# your function.
|
5711
|
+
# your function. Handler is required if the deployment package is a
|
5712
|
+
# .zip file archive. The format includes the file name. It can also
|
5591
5713
|
# include namespaces and other qualifiers, depending on the runtime.
|
5592
5714
|
# For more information, see [Programming Model][1].
|
5593
5715
|
#
|
@@ -5601,10 +5723,10 @@ module Aws::Lambda
|
|
5601
5723
|
# @return [String]
|
5602
5724
|
#
|
5603
5725
|
# @!attribute [rw] timeout
|
5604
|
-
# The amount of time that Lambda allows a function to run
|
5605
|
-
# stopping it. The default is 3 seconds. The maximum allowed
|
5606
|
-
# 900 seconds. For additional information, see [Lambda
|
5607
|
-
# environment][1].
|
5726
|
+
# The amount of time (in seconds) that Lambda allows a function to run
|
5727
|
+
# before stopping it. The default is 3 seconds. The maximum allowed
|
5728
|
+
# value is 900 seconds. For additional information, see [Lambda
|
5729
|
+
# execution environment][1].
|
5608
5730
|
#
|
5609
5731
|
#
|
5610
5732
|
#
|
@@ -5639,7 +5761,8 @@ module Aws::Lambda
|
|
5639
5761
|
# @return [Types::Environment]
|
5640
5762
|
#
|
5641
5763
|
# @!attribute [rw] runtime
|
5642
|
-
# The identifier of the function's [runtime][1].
|
5764
|
+
# The identifier of the function's [runtime][1]. Runtime is required
|
5765
|
+
# if the deployment package is a .zip file archive.
|
5643
5766
|
#
|
5644
5767
|
#
|
5645
5768
|
#
|
data/lib/aws-sdk-lambda.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.75.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|