aws-sdk-lambda 1.46.0 → 1.51.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/lib/aws-sdk-lambda.rb +3 -2
- data/lib/aws-sdk-lambda/client.rb +99 -45
- data/lib/aws-sdk-lambda/client_api.rb +6 -0
- data/lib/aws-sdk-lambda/types.rb +45 -18
- 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: 10d2cfdb632990383477e6e913dc82a3ac7ca02dcb0888f026649ad666d52da4
|
4
|
+
data.tar.gz: 85ef22304854407e410ed3fe49b58485a0a63a66ea352dc793f687dca7a55a4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d847632d47a60b4721c99460d73e3543b29dbaecdfcb209a6e2c5aa924654d0001a76a8642ade7387d622ae2867bd3695c846f872888b4edbc6225fec8f99a
|
7
|
+
data.tar.gz: 83cc9030df24ee984930905ba76ba45f59b4d793e9b462adf0d98b343d54d76e11b2b34471c9d1b589dd40099ed26f14a9f19b5e5653055657b12a8e2931a557
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -45,9 +46,9 @@ require_relative 'aws-sdk-lambda/customizations'
|
|
45
46
|
#
|
46
47
|
# See {Errors} for more information.
|
47
48
|
#
|
48
|
-
#
|
49
|
+
# @!group service
|
49
50
|
module Aws::Lambda
|
50
51
|
|
51
|
-
GEM_VERSION = '1.
|
52
|
+
GEM_VERSION = '1.51.0'
|
52
53
|
|
53
54
|
end
|
@@ -85,13 +85,28 @@ module Aws::Lambda
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::Lambda
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -660,6 +675,8 @@ module Aws::Lambda
|
|
660
675
|
#
|
661
676
|
# * [Using AWS Lambda with Amazon SQS][3]
|
662
677
|
#
|
678
|
+
# * [Using AWS Lambda with Amazon MSK][4]
|
679
|
+
#
|
663
680
|
# The following error handling options are only available for stream
|
664
681
|
# sources (DynamoDB and Kinesis):
|
665
682
|
#
|
@@ -670,10 +687,11 @@ module Aws::Lambda
|
|
670
687
|
# or Amazon SNS topic.
|
671
688
|
#
|
672
689
|
# * `MaximumRecordAgeInSeconds` - Discard records older than the
|
673
|
-
# specified age.
|
690
|
+
# specified age. Default -1 (infinite). Minimum 60. Maximum 604800.
|
674
691
|
#
|
675
692
|
# * `MaximumRetryAttempts` - Discard records after the specified number
|
676
|
-
# of retries.
|
693
|
+
# of retries. Default -1 (infinite). Minimum 0. Maximum 10000. When
|
694
|
+
# infinite, failed records will be retried until the record expires.
|
677
695
|
#
|
678
696
|
# * `ParallelizationFactor` - Process multiple batches from each shard
|
679
697
|
# concurrently.
|
@@ -683,6 +701,7 @@ module Aws::Lambda
|
|
683
701
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
|
684
702
|
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
|
685
703
|
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
|
704
|
+
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
|
686
705
|
#
|
687
706
|
# @option params [required, String] :event_source_arn
|
688
707
|
# The Amazon Resource Name (ARN) of the event source.
|
@@ -694,6 +713,9 @@ module Aws::Lambda
|
|
694
713
|
#
|
695
714
|
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
696
715
|
#
|
716
|
+
# * **Amazon Managed Streaming for Apache Kafka** - The ARN of the
|
717
|
+
# cluster.
|
718
|
+
#
|
697
719
|
# @option params [required, String] :function_name
|
698
720
|
# The name of the Lambda function.
|
699
721
|
#
|
@@ -713,7 +735,8 @@ module Aws::Lambda
|
|
713
735
|
# only the function name, it's limited to 64 characters in length.
|
714
736
|
#
|
715
737
|
# @option params [Boolean] :enabled
|
716
|
-
#
|
738
|
+
# If true, the event source mapping is active. Set to false to pause
|
739
|
+
# polling and invocation.
|
717
740
|
#
|
718
741
|
# @option params [Integer] :batch_size
|
719
742
|
# The maximum number of items to retrieve in a single batch.
|
@@ -724,6 +747,9 @@ module Aws::Lambda
|
|
724
747
|
#
|
725
748
|
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
726
749
|
#
|
750
|
+
# * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
|
751
|
+
# 10,000.
|
752
|
+
#
|
727
753
|
# @option params [Integer] :maximum_batching_window_in_seconds
|
728
754
|
# (Streams) The maximum amount of time to gather records before invoking
|
729
755
|
# the function, in seconds.
|
@@ -734,8 +760,8 @@ module Aws::Lambda
|
|
734
760
|
#
|
735
761
|
# @option params [String] :starting_position
|
736
762
|
# The position in a stream from which to start reading. Required for
|
737
|
-
# Amazon Kinesis and Amazon
|
738
|
-
# only supported for Amazon Kinesis streams.
|
763
|
+
# Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
|
764
|
+
# `AT_TIMESTAMP` is only supported for Amazon Kinesis streams.
|
739
765
|
#
|
740
766
|
# @option params [Time,DateTime,Date,Integer,String] :starting_position_timestamp
|
741
767
|
# With `StartingPosition` set to `AT_TIMESTAMP`, the time from which to
|
@@ -746,16 +772,20 @@ module Aws::Lambda
|
|
746
772
|
# discarded records.
|
747
773
|
#
|
748
774
|
# @option params [Integer] :maximum_record_age_in_seconds
|
749
|
-
# (Streams)
|
750
|
-
#
|
775
|
+
# (Streams) Discard records older than the specified age. The default
|
776
|
+
# value is infinite (-1).
|
751
777
|
#
|
752
778
|
# @option params [Boolean] :bisect_batch_on_function_error
|
753
779
|
# (Streams) If the function returns an error, split the batch in two and
|
754
780
|
# retry.
|
755
781
|
#
|
756
782
|
# @option params [Integer] :maximum_retry_attempts
|
757
|
-
# (Streams)
|
758
|
-
#
|
783
|
+
# (Streams) Discard records after the specified number of retries. The
|
784
|
+
# default value is infinite (-1). When set to infinite (-1), failed
|
785
|
+
# records will be retried until the record expires.
|
786
|
+
#
|
787
|
+
# @option params [Array<String>] :topics
|
788
|
+
# (MSK) The name of the Kafka topic.
|
759
789
|
#
|
760
790
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
761
791
|
#
|
@@ -770,6 +800,7 @@ module Aws::Lambda
|
|
770
800
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
771
801
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
772
802
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
803
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
773
804
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
774
805
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
775
806
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -818,6 +849,7 @@ module Aws::Lambda
|
|
818
849
|
# maximum_record_age_in_seconds: 1,
|
819
850
|
# bisect_batch_on_function_error: false,
|
820
851
|
# maximum_retry_attempts: 1,
|
852
|
+
# topics: ["Topic"],
|
821
853
|
# })
|
822
854
|
#
|
823
855
|
# @example Response structure
|
@@ -834,6 +866,8 @@ module Aws::Lambda
|
|
834
866
|
# resp.state_transition_reason #=> String
|
835
867
|
# resp.destination_config.on_success.destination #=> String
|
836
868
|
# resp.destination_config.on_failure.destination #=> String
|
869
|
+
# resp.topics #=> Array
|
870
|
+
# resp.topics[0] #=> String
|
837
871
|
# resp.maximum_record_age_in_seconds #=> Integer
|
838
872
|
# resp.bisect_batch_on_function_error #=> Boolean
|
839
873
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -1095,7 +1129,7 @@ module Aws::Lambda
|
|
1095
1129
|
#
|
1096
1130
|
# resp = client.create_function({
|
1097
1131
|
# function_name: "FunctionName", # required
|
1098
|
-
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
1132
|
+
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
1099
1133
|
# role: "RoleArn", # required
|
1100
1134
|
# handler: "Handler", # required
|
1101
1135
|
# code: { # required
|
@@ -1140,7 +1174,7 @@ module Aws::Lambda
|
|
1140
1174
|
#
|
1141
1175
|
# resp.function_name #=> String
|
1142
1176
|
# resp.function_arn #=> String
|
1143
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
1177
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
1144
1178
|
# resp.role #=> String
|
1145
1179
|
# resp.handler #=> String
|
1146
1180
|
# resp.code_size #=> Integer
|
@@ -1264,6 +1298,7 @@ module Aws::Lambda
|
|
1264
1298
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
1265
1299
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
1266
1300
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
1301
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
1267
1302
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
1268
1303
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
1269
1304
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -1308,6 +1343,8 @@ module Aws::Lambda
|
|
1308
1343
|
# resp.state_transition_reason #=> String
|
1309
1344
|
# resp.destination_config.on_success.destination #=> String
|
1310
1345
|
# resp.destination_config.on_failure.destination #=> String
|
1346
|
+
# resp.topics #=> Array
|
1347
|
+
# resp.topics[0] #=> String
|
1311
1348
|
# resp.maximum_record_age_in_seconds #=> Integer
|
1312
1349
|
# resp.bisect_batch_on_function_error #=> Boolean
|
1313
1350
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -1719,6 +1756,7 @@ module Aws::Lambda
|
|
1719
1756
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
1720
1757
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
1721
1758
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
1759
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
1722
1760
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
1723
1761
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
1724
1762
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -1770,6 +1808,8 @@ module Aws::Lambda
|
|
1770
1808
|
# resp.state_transition_reason #=> String
|
1771
1809
|
# resp.destination_config.on_success.destination #=> String
|
1772
1810
|
# resp.destination_config.on_failure.destination #=> String
|
1811
|
+
# resp.topics #=> Array
|
1812
|
+
# resp.topics[0] #=> String
|
1773
1813
|
# resp.maximum_record_age_in_seconds #=> Integer
|
1774
1814
|
# resp.bisect_batch_on_function_error #=> Boolean
|
1775
1815
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -1875,7 +1915,7 @@ module Aws::Lambda
|
|
1875
1915
|
#
|
1876
1916
|
# resp.configuration.function_name #=> String
|
1877
1917
|
# resp.configuration.function_arn #=> String
|
1878
|
-
# resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
1918
|
+
# resp.configuration.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
1879
1919
|
# resp.configuration.role #=> String
|
1880
1920
|
# resp.configuration.handler #=> String
|
1881
1921
|
# resp.configuration.code_size #=> Integer
|
@@ -2095,7 +2135,7 @@ module Aws::Lambda
|
|
2095
2135
|
#
|
2096
2136
|
# resp.function_name #=> String
|
2097
2137
|
# resp.function_arn #=> String
|
2098
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2138
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
2099
2139
|
# resp.role #=> String
|
2100
2140
|
# resp.handler #=> String
|
2101
2141
|
# resp.code_size #=> Integer
|
@@ -2303,7 +2343,7 @@ module Aws::Lambda
|
|
2303
2343
|
# resp.created_date #=> Time
|
2304
2344
|
# resp.version #=> Integer
|
2305
2345
|
# resp.compatible_runtimes #=> Array
|
2306
|
-
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2346
|
+
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
2307
2347
|
# resp.license_info #=> String
|
2308
2348
|
#
|
2309
2349
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion AWS API Documentation
|
@@ -2379,7 +2419,7 @@ module Aws::Lambda
|
|
2379
2419
|
# resp.created_date #=> Time
|
2380
2420
|
# resp.version #=> Integer
|
2381
2421
|
# resp.compatible_runtimes #=> Array
|
2382
|
-
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
2422
|
+
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
2383
2423
|
# resp.license_info #=> String
|
2384
2424
|
#
|
2385
2425
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArn AWS API Documentation
|
@@ -2682,7 +2722,7 @@ module Aws::Lambda
|
|
2682
2722
|
# Up to 3583 bytes of base64-encoded data about the invoking client to
|
2683
2723
|
# pass to the function in the context object.
|
2684
2724
|
#
|
2685
|
-
# @option params [String,
|
2725
|
+
# @option params [String, StringIO, File] :payload
|
2686
2726
|
# The JSON that you want to provide to your Lambda function as input.
|
2687
2727
|
#
|
2688
2728
|
# @option params [String] :qualifier
|
@@ -2778,7 +2818,7 @@ module Aws::Lambda
|
|
2778
2818
|
# The length constraint applies only to the full ARN. If you specify
|
2779
2819
|
# only the function name, it is limited to 64 characters in length.
|
2780
2820
|
#
|
2781
|
-
# @option params [required, String,
|
2821
|
+
# @option params [required, String, StringIO, File] :invoke_args
|
2782
2822
|
# The JSON that you want to provide to your Lambda function as input.
|
2783
2823
|
#
|
2784
2824
|
# @return [Types::InvokeAsyncResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -2936,6 +2976,9 @@ module Aws::Lambda
|
|
2936
2976
|
#
|
2937
2977
|
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
2938
2978
|
#
|
2979
|
+
# * **Amazon Managed Streaming for Apache Kafka** - The ARN of the
|
2980
|
+
# cluster.
|
2981
|
+
#
|
2939
2982
|
# @option params [String] :function_name
|
2940
2983
|
# The name of the Lambda function.
|
2941
2984
|
#
|
@@ -3016,6 +3059,8 @@ module Aws::Lambda
|
|
3016
3059
|
# resp.event_source_mappings[0].state_transition_reason #=> String
|
3017
3060
|
# resp.event_source_mappings[0].destination_config.on_success.destination #=> String
|
3018
3061
|
# resp.event_source_mappings[0].destination_config.on_failure.destination #=> String
|
3062
|
+
# resp.event_source_mappings[0].topics #=> Array
|
3063
|
+
# resp.event_source_mappings[0].topics[0] #=> String
|
3019
3064
|
# resp.event_source_mappings[0].maximum_record_age_in_seconds #=> Integer
|
3020
3065
|
# resp.event_source_mappings[0].bisect_batch_on_function_error #=> Boolean
|
3021
3066
|
# resp.event_source_mappings[0].maximum_retry_attempts #=> Integer
|
@@ -3223,7 +3268,7 @@ module Aws::Lambda
|
|
3223
3268
|
# resp.functions #=> Array
|
3224
3269
|
# resp.functions[0].function_name #=> String
|
3225
3270
|
# resp.functions[0].function_arn #=> String
|
3226
|
-
# resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3271
|
+
# resp.functions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3227
3272
|
# resp.functions[0].role #=> String
|
3228
3273
|
# resp.functions[0].handler #=> String
|
3229
3274
|
# resp.functions[0].code_size #=> Integer
|
@@ -3334,7 +3379,7 @@ module Aws::Lambda
|
|
3334
3379
|
# @example Request syntax with placeholder values
|
3335
3380
|
#
|
3336
3381
|
# resp = client.list_layer_versions({
|
3337
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
3382
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3338
3383
|
# layer_name: "LayerName", # required
|
3339
3384
|
# marker: "String",
|
3340
3385
|
# max_items: 1,
|
@@ -3349,7 +3394,7 @@ module Aws::Lambda
|
|
3349
3394
|
# resp.layer_versions[0].description #=> String
|
3350
3395
|
# resp.layer_versions[0].created_date #=> Time
|
3351
3396
|
# resp.layer_versions[0].compatible_runtimes #=> Array
|
3352
|
-
# resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3397
|
+
# resp.layer_versions[0].compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3353
3398
|
# resp.layer_versions[0].license_info #=> String
|
3354
3399
|
#
|
3355
3400
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions AWS API Documentation
|
@@ -3418,7 +3463,7 @@ module Aws::Lambda
|
|
3418
3463
|
# @example Request syntax with placeholder values
|
3419
3464
|
#
|
3420
3465
|
# resp = client.list_layers({
|
3421
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
3466
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3422
3467
|
# marker: "String",
|
3423
3468
|
# max_items: 1,
|
3424
3469
|
# })
|
@@ -3434,7 +3479,7 @@ module Aws::Lambda
|
|
3434
3479
|
# resp.layers[0].latest_matching_version.description #=> String
|
3435
3480
|
# resp.layers[0].latest_matching_version.created_date #=> Time
|
3436
3481
|
# resp.layers[0].latest_matching_version.compatible_runtimes #=> Array
|
3437
|
-
# resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3482
|
+
# resp.layers[0].latest_matching_version.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3438
3483
|
# resp.layers[0].latest_matching_version.license_info #=> String
|
3439
3484
|
#
|
3440
3485
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers AWS API Documentation
|
@@ -3704,7 +3749,7 @@ module Aws::Lambda
|
|
3704
3749
|
# resp.versions #=> Array
|
3705
3750
|
# resp.versions[0].function_name #=> String
|
3706
3751
|
# resp.versions[0].function_arn #=> String
|
3707
|
-
# resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3752
|
+
# resp.versions[0].runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3708
3753
|
# resp.versions[0].role #=> String
|
3709
3754
|
# resp.versions[0].handler #=> String
|
3710
3755
|
# resp.versions[0].code_size #=> Integer
|
@@ -3853,7 +3898,7 @@ module Aws::Lambda
|
|
3853
3898
|
# s3_object_version: "S3ObjectVersion",
|
3854
3899
|
# zip_file: "data",
|
3855
3900
|
# },
|
3856
|
-
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
3901
|
+
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3857
3902
|
# license_info: "LicenseInfo",
|
3858
3903
|
# })
|
3859
3904
|
#
|
@@ -3868,7 +3913,7 @@ module Aws::Lambda
|
|
3868
3913
|
# resp.created_date #=> Time
|
3869
3914
|
# resp.version #=> Integer
|
3870
3915
|
# resp.compatible_runtimes #=> Array
|
3871
|
-
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
3916
|
+
# resp.compatible_runtimes[0] #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
3872
3917
|
# resp.license_info #=> String
|
3873
3918
|
#
|
3874
3919
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion AWS API Documentation
|
@@ -4010,7 +4055,7 @@ module Aws::Lambda
|
|
4010
4055
|
#
|
4011
4056
|
# resp.function_name #=> String
|
4012
4057
|
# resp.function_arn #=> String
|
4013
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
4058
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
4014
4059
|
# resp.role #=> String
|
4015
4060
|
# resp.handler #=> String
|
4016
4061
|
# resp.code_size #=> Integer
|
@@ -4680,10 +4725,11 @@ module Aws::Lambda
|
|
4680
4725
|
# or Amazon SNS topic.
|
4681
4726
|
#
|
4682
4727
|
# * `MaximumRecordAgeInSeconds` - Discard records older than the
|
4683
|
-
# specified age.
|
4728
|
+
# specified age. Default -1 (infinite). Minimum 60. Maximum 604800.
|
4684
4729
|
#
|
4685
4730
|
# * `MaximumRetryAttempts` - Discard records after the specified number
|
4686
|
-
# of retries.
|
4731
|
+
# of retries. Default -1 (infinite). Minimum 0. Maximum 10000. When
|
4732
|
+
# infinite, failed records will be retried until the record expires.
|
4687
4733
|
#
|
4688
4734
|
# * `ParallelizationFactor` - Process multiple batches from each shard
|
4689
4735
|
# concurrently.
|
@@ -4710,7 +4756,8 @@ module Aws::Lambda
|
|
4710
4756
|
# only the function name, it's limited to 64 characters in length.
|
4711
4757
|
#
|
4712
4758
|
# @option params [Boolean] :enabled
|
4713
|
-
#
|
4759
|
+
# If true, the event source mapping is active. Set to false to pause
|
4760
|
+
# polling and invocation.
|
4714
4761
|
#
|
4715
4762
|
# @option params [Integer] :batch_size
|
4716
4763
|
# The maximum number of items to retrieve in a single batch.
|
@@ -4721,6 +4768,9 @@ module Aws::Lambda
|
|
4721
4768
|
#
|
4722
4769
|
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
4723
4770
|
#
|
4771
|
+
# * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
|
4772
|
+
# 10,000.
|
4773
|
+
#
|
4724
4774
|
# @option params [Integer] :maximum_batching_window_in_seconds
|
4725
4775
|
# (Streams) The maximum amount of time to gather records before invoking
|
4726
4776
|
# the function, in seconds.
|
@@ -4730,16 +4780,17 @@ module Aws::Lambda
|
|
4730
4780
|
# discarded records.
|
4731
4781
|
#
|
4732
4782
|
# @option params [Integer] :maximum_record_age_in_seconds
|
4733
|
-
# (Streams)
|
4734
|
-
#
|
4783
|
+
# (Streams) Discard records older than the specified age. The default
|
4784
|
+
# value is infinite (-1).
|
4735
4785
|
#
|
4736
4786
|
# @option params [Boolean] :bisect_batch_on_function_error
|
4737
4787
|
# (Streams) If the function returns an error, split the batch in two and
|
4738
4788
|
# retry.
|
4739
4789
|
#
|
4740
4790
|
# @option params [Integer] :maximum_retry_attempts
|
4741
|
-
# (Streams)
|
4742
|
-
#
|
4791
|
+
# (Streams) Discard records after the specified number of retries. The
|
4792
|
+
# default value is infinite (-1). When set to infinite (-1), failed
|
4793
|
+
# records will be retried until the record expires.
|
4743
4794
|
#
|
4744
4795
|
# @option params [Integer] :parallelization_factor
|
4745
4796
|
# (Streams) The number of batches to process from each shard
|
@@ -4758,6 +4809,7 @@ module Aws::Lambda
|
|
4758
4809
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
4759
4810
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
4760
4811
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
4812
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
4761
4813
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
4762
4814
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
4763
4815
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -4822,6 +4874,8 @@ module Aws::Lambda
|
|
4822
4874
|
# resp.state_transition_reason #=> String
|
4823
4875
|
# resp.destination_config.on_success.destination #=> String
|
4824
4876
|
# resp.destination_config.on_failure.destination #=> String
|
4877
|
+
# resp.topics #=> Array
|
4878
|
+
# resp.topics[0] #=> String
|
4825
4879
|
# resp.maximum_record_age_in_seconds #=> Integer
|
4826
4880
|
# resp.bisect_batch_on_function_error #=> Boolean
|
4827
4881
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -4855,7 +4909,7 @@ module Aws::Lambda
|
|
4855
4909
|
# The length constraint applies only to the full ARN. If you specify
|
4856
4910
|
# only the function name, it is limited to 64 characters in length.
|
4857
4911
|
#
|
4858
|
-
# @option params [String,
|
4912
|
+
# @option params [String, StringIO, File] :zip_file
|
4859
4913
|
# The base64-encoded contents of the deployment package. AWS SDK and AWS
|
4860
4914
|
# CLI clients handle the encoding for you.
|
4861
4915
|
#
|
@@ -4963,7 +5017,7 @@ module Aws::Lambda
|
|
4963
5017
|
#
|
4964
5018
|
# resp.function_name #=> String
|
4965
5019
|
# resp.function_arn #=> String
|
4966
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
5020
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
4967
5021
|
# resp.role #=> String
|
4968
5022
|
# resp.handler #=> String
|
4969
5023
|
# resp.code_size #=> Integer
|
@@ -5208,7 +5262,7 @@ module Aws::Lambda
|
|
5208
5262
|
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
5209
5263
|
# },
|
5210
5264
|
# },
|
5211
|
-
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
5265
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
5212
5266
|
# dead_letter_config: {
|
5213
5267
|
# target_arn: "ResourceArn",
|
5214
5268
|
# },
|
@@ -5230,7 +5284,7 @@ module Aws::Lambda
|
|
5230
5284
|
#
|
5231
5285
|
# resp.function_name #=> String
|
5232
5286
|
# resp.function_arn #=> String
|
5233
|
-
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided"
|
5287
|
+
# resp.runtime #=> String, one of "nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "nodejs10.x", "nodejs12.x", "java8", "java8.al2", "java11", "python2.7", "python3.6", "python3.7", "python3.8", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "dotnetcore3.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "ruby2.7", "provided", "provided.al2"
|
5234
5288
|
# resp.role #=> String
|
5235
5289
|
# resp.handler #=> String
|
5236
5290
|
# resp.code_size #=> Integer
|
@@ -5410,7 +5464,7 @@ module Aws::Lambda
|
|
5410
5464
|
params: params,
|
5411
5465
|
config: config)
|
5412
5466
|
context[:gem_name] = 'aws-sdk-lambda'
|
5413
|
-
context[:gem_version] = '1.
|
5467
|
+
context[:gem_version] = '1.51.0'
|
5414
5468
|
Seahorse::Client::Request.new(handlers, context)
|
5415
5469
|
end
|
5416
5470
|
|
@@ -230,6 +230,8 @@ module Aws::Lambda
|
|
230
230
|
Timeout = Shapes::IntegerShape.new(name: 'Timeout')
|
231
231
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
232
232
|
TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
|
233
|
+
Topic = Shapes::StringShape.new(name: 'Topic')
|
234
|
+
Topics = Shapes::ListShape.new(name: 'Topics')
|
233
235
|
TracingConfig = Shapes::StructureShape.new(name: 'TracingConfig')
|
234
236
|
TracingConfigResponse = Shapes::StructureShape.new(name: 'TracingConfigResponse')
|
235
237
|
TracingMode = Shapes::StringShape.new(name: 'TracingMode')
|
@@ -329,6 +331,7 @@ module Aws::Lambda
|
|
329
331
|
CreateEventSourceMappingRequest.add_member(:maximum_record_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumRecordAgeInSeconds, location_name: "MaximumRecordAgeInSeconds"))
|
330
332
|
CreateEventSourceMappingRequest.add_member(:bisect_batch_on_function_error, Shapes::ShapeRef.new(shape: BisectBatchOnFunctionError, location_name: "BisectBatchOnFunctionError"))
|
331
333
|
CreateEventSourceMappingRequest.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttemptsEventSourceMapping, location_name: "MaximumRetryAttempts"))
|
334
|
+
CreateEventSourceMappingRequest.add_member(:topics, Shapes::ShapeRef.new(shape: Topics, location_name: "Topics"))
|
332
335
|
CreateEventSourceMappingRequest.struct_class = Types::CreateEventSourceMappingRequest
|
333
336
|
|
334
337
|
CreateFunctionRequest.add_member(:function_name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location_name: "FunctionName"))
|
@@ -441,6 +444,7 @@ module Aws::Lambda
|
|
441
444
|
EventSourceMappingConfiguration.add_member(:state, Shapes::ShapeRef.new(shape: String, location_name: "State"))
|
442
445
|
EventSourceMappingConfiguration.add_member(:state_transition_reason, Shapes::ShapeRef.new(shape: String, location_name: "StateTransitionReason"))
|
443
446
|
EventSourceMappingConfiguration.add_member(:destination_config, Shapes::ShapeRef.new(shape: DestinationConfig, location_name: "DestinationConfig"))
|
447
|
+
EventSourceMappingConfiguration.add_member(:topics, Shapes::ShapeRef.new(shape: Topics, location_name: "Topics"))
|
444
448
|
EventSourceMappingConfiguration.add_member(:maximum_record_age_in_seconds, Shapes::ShapeRef.new(shape: MaximumRecordAgeInSeconds, location_name: "MaximumRecordAgeInSeconds"))
|
445
449
|
EventSourceMappingConfiguration.add_member(:bisect_batch_on_function_error, Shapes::ShapeRef.new(shape: BisectBatchOnFunctionError, location_name: "BisectBatchOnFunctionError"))
|
446
450
|
EventSourceMappingConfiguration.add_member(:maximum_retry_attempts, Shapes::ShapeRef.new(shape: MaximumRetryAttemptsEventSourceMapping, location_name: "MaximumRetryAttempts"))
|
@@ -907,6 +911,8 @@ module Aws::Lambda
|
|
907
911
|
TooManyRequestsException.add_member(:reason, Shapes::ShapeRef.new(shape: ThrottleReason, location_name: "Reason"))
|
908
912
|
TooManyRequestsException.struct_class = Types::TooManyRequestsException
|
909
913
|
|
914
|
+
Topics.member = Shapes::ShapeRef.new(shape: Topic)
|
915
|
+
|
910
916
|
TracingConfig.add_member(:mode, Shapes::ShapeRef.new(shape: TracingMode, location_name: "Mode"))
|
911
917
|
TracingConfig.struct_class = Types::TracingConfig
|
912
918
|
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
@@ -453,6 +453,7 @@ module Aws::Lambda
|
|
453
453
|
# maximum_record_age_in_seconds: 1,
|
454
454
|
# bisect_batch_on_function_error: false,
|
455
455
|
# maximum_retry_attempts: 1,
|
456
|
+
# topics: ["Topic"],
|
456
457
|
# }
|
457
458
|
#
|
458
459
|
# @!attribute [rw] event_source_arn
|
@@ -464,6 +465,9 @@ module Aws::Lambda
|
|
464
465
|
# * **Amazon DynamoDB Streams** - The ARN of the stream.
|
465
466
|
#
|
466
467
|
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
468
|
+
#
|
469
|
+
# * **Amazon Managed Streaming for Apache Kafka** - The ARN of the
|
470
|
+
# cluster.
|
467
471
|
# @return [String]
|
468
472
|
#
|
469
473
|
# @!attribute [rw] function_name
|
@@ -486,7 +490,8 @@ module Aws::Lambda
|
|
486
490
|
# @return [String]
|
487
491
|
#
|
488
492
|
# @!attribute [rw] enabled
|
489
|
-
#
|
493
|
+
# If true, the event source mapping is active. Set to false to pause
|
494
|
+
# polling and invocation.
|
490
495
|
# @return [Boolean]
|
491
496
|
#
|
492
497
|
# @!attribute [rw] batch_size
|
@@ -497,6 +502,9 @@ module Aws::Lambda
|
|
497
502
|
# * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
|
498
503
|
#
|
499
504
|
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
505
|
+
#
|
506
|
+
# * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
|
507
|
+
# 10,000.
|
500
508
|
# @return [Integer]
|
501
509
|
#
|
502
510
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
@@ -511,8 +519,8 @@ module Aws::Lambda
|
|
511
519
|
#
|
512
520
|
# @!attribute [rw] starting_position
|
513
521
|
# The position in a stream from which to start reading. Required for
|
514
|
-
# Amazon Kinesis and Amazon
|
515
|
-
# is only supported for Amazon Kinesis streams.
|
522
|
+
# Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
|
523
|
+
# `AT_TIMESTAMP` is only supported for Amazon Kinesis streams.
|
516
524
|
# @return [String]
|
517
525
|
#
|
518
526
|
# @!attribute [rw] starting_position_timestamp
|
@@ -526,8 +534,8 @@ module Aws::Lambda
|
|
526
534
|
# @return [Types::DestinationConfig]
|
527
535
|
#
|
528
536
|
# @!attribute [rw] maximum_record_age_in_seconds
|
529
|
-
# (Streams)
|
530
|
-
#
|
537
|
+
# (Streams) Discard records older than the specified age. The default
|
538
|
+
# value is infinite (-1).
|
531
539
|
# @return [Integer]
|
532
540
|
#
|
533
541
|
# @!attribute [rw] bisect_batch_on_function_error
|
@@ -536,10 +544,15 @@ module Aws::Lambda
|
|
536
544
|
# @return [Boolean]
|
537
545
|
#
|
538
546
|
# @!attribute [rw] maximum_retry_attempts
|
539
|
-
# (Streams)
|
540
|
-
#
|
547
|
+
# (Streams) Discard records after the specified number of retries. The
|
548
|
+
# default value is infinite (-1). When set to infinite (-1), failed
|
549
|
+
# records will be retried until the record expires.
|
541
550
|
# @return [Integer]
|
542
551
|
#
|
552
|
+
# @!attribute [rw] topics
|
553
|
+
# (MSK) The name of the Kafka topic.
|
554
|
+
# @return [Array<String>]
|
555
|
+
#
|
543
556
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMappingRequest AWS API Documentation
|
544
557
|
#
|
545
558
|
class CreateEventSourceMappingRequest < Struct.new(
|
@@ -554,7 +567,8 @@ module Aws::Lambda
|
|
554
567
|
:destination_config,
|
555
568
|
:maximum_record_age_in_seconds,
|
556
569
|
:bisect_batch_on_function_error,
|
557
|
-
:maximum_retry_attempts
|
570
|
+
:maximum_retry_attempts,
|
571
|
+
:topics)
|
558
572
|
SENSITIVE = []
|
559
573
|
include Aws::Structure
|
560
574
|
end
|
@@ -564,7 +578,7 @@ module Aws::Lambda
|
|
564
578
|
#
|
565
579
|
# {
|
566
580
|
# function_name: "FunctionName", # required
|
567
|
-
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
581
|
+
# runtime: "nodejs", # required, accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
568
582
|
# role: "RoleArn", # required
|
569
583
|
# handler: "Handler", # required
|
570
584
|
# code: { # required
|
@@ -1305,6 +1319,10 @@ module Aws::Lambda
|
|
1305
1319
|
# discarded records.
|
1306
1320
|
# @return [Types::DestinationConfig]
|
1307
1321
|
#
|
1322
|
+
# @!attribute [rw] topics
|
1323
|
+
# (MSK) The name of the Kafka topic.
|
1324
|
+
# @return [Array<String>]
|
1325
|
+
#
|
1308
1326
|
# @!attribute [rw] maximum_record_age_in_seconds
|
1309
1327
|
# (Streams) The maximum age of a record that Lambda sends to a
|
1310
1328
|
# function for processing.
|
@@ -1334,6 +1352,7 @@ module Aws::Lambda
|
|
1334
1352
|
:state,
|
1335
1353
|
:state_transition_reason,
|
1336
1354
|
:destination_config,
|
1355
|
+
:topics,
|
1337
1356
|
:maximum_record_age_in_seconds,
|
1338
1357
|
:bisect_batch_on_function_error,
|
1339
1358
|
:maximum_retry_attempts)
|
@@ -2797,6 +2816,9 @@ module Aws::Lambda
|
|
2797
2816
|
# * **Amazon DynamoDB Streams** - The ARN of the stream.
|
2798
2817
|
#
|
2799
2818
|
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
2819
|
+
#
|
2820
|
+
# * **Amazon Managed Streaming for Apache Kafka** - The ARN of the
|
2821
|
+
# cluster.
|
2800
2822
|
# @return [String]
|
2801
2823
|
#
|
2802
2824
|
# @!attribute [rw] function_name
|
@@ -2982,7 +3004,7 @@ module Aws::Lambda
|
|
2982
3004
|
# data as a hash:
|
2983
3005
|
#
|
2984
3006
|
# {
|
2985
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
3007
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
2986
3008
|
# layer_name: "LayerName", # required
|
2987
3009
|
# marker: "String",
|
2988
3010
|
# max_items: 1,
|
@@ -3037,7 +3059,7 @@ module Aws::Lambda
|
|
3037
3059
|
# data as a hash:
|
3038
3060
|
#
|
3039
3061
|
# {
|
3040
|
-
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
3062
|
+
# compatible_runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3041
3063
|
# marker: "String",
|
3042
3064
|
# max_items: 1,
|
3043
3065
|
# }
|
@@ -3399,7 +3421,7 @@ module Aws::Lambda
|
|
3399
3421
|
# s3_object_version: "S3ObjectVersion",
|
3400
3422
|
# zip_file: "data",
|
3401
3423
|
# },
|
3402
|
-
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
3424
|
+
# compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
3403
3425
|
# license_info: "LicenseInfo",
|
3404
3426
|
# }
|
3405
3427
|
#
|
@@ -4236,7 +4258,8 @@ module Aws::Lambda
|
|
4236
4258
|
# @return [String]
|
4237
4259
|
#
|
4238
4260
|
# @!attribute [rw] enabled
|
4239
|
-
#
|
4261
|
+
# If true, the event source mapping is active. Set to false to pause
|
4262
|
+
# polling and invocation.
|
4240
4263
|
# @return [Boolean]
|
4241
4264
|
#
|
4242
4265
|
# @!attribute [rw] batch_size
|
@@ -4247,6 +4270,9 @@ module Aws::Lambda
|
|
4247
4270
|
# * **Amazon DynamoDB Streams** - Default 100. Max 1,000.
|
4248
4271
|
#
|
4249
4272
|
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
4273
|
+
#
|
4274
|
+
# * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
|
4275
|
+
# 10,000.
|
4250
4276
|
# @return [Integer]
|
4251
4277
|
#
|
4252
4278
|
# @!attribute [rw] maximum_batching_window_in_seconds
|
@@ -4260,8 +4286,8 @@ module Aws::Lambda
|
|
4260
4286
|
# @return [Types::DestinationConfig]
|
4261
4287
|
#
|
4262
4288
|
# @!attribute [rw] maximum_record_age_in_seconds
|
4263
|
-
# (Streams)
|
4264
|
-
#
|
4289
|
+
# (Streams) Discard records older than the specified age. The default
|
4290
|
+
# value is infinite (-1).
|
4265
4291
|
# @return [Integer]
|
4266
4292
|
#
|
4267
4293
|
# @!attribute [rw] bisect_batch_on_function_error
|
@@ -4270,8 +4296,9 @@ module Aws::Lambda
|
|
4270
4296
|
# @return [Boolean]
|
4271
4297
|
#
|
4272
4298
|
# @!attribute [rw] maximum_retry_attempts
|
4273
|
-
# (Streams)
|
4274
|
-
#
|
4299
|
+
# (Streams) Discard records after the specified number of retries. The
|
4300
|
+
# default value is infinite (-1). When set to infinite (-1), failed
|
4301
|
+
# records will be retried until the record expires.
|
4275
4302
|
# @return [Integer]
|
4276
4303
|
#
|
4277
4304
|
# @!attribute [rw] parallelization_factor
|
@@ -4396,7 +4423,7 @@ module Aws::Lambda
|
|
4396
4423
|
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
4397
4424
|
# },
|
4398
4425
|
# },
|
4399
|
-
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided
|
4426
|
+
# runtime: "nodejs", # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, nodejs10.x, nodejs12.x, java8, java8.al2, java11, python2.7, python3.6, python3.7, python3.8, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, dotnetcore3.1, nodejs4.3-edge, go1.x, ruby2.5, ruby2.7, provided, provided.al2
|
4400
4427
|
# dead_letter_config: {
|
4401
4428
|
# target_arn: "ResourceArn",
|
4402
4429
|
# },
|
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.51.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: 2020-
|
11
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.109.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.109.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|