aws-sdk-lambda 1.44.0 → 1.49.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9d63fec3b2f344e942c399842f3ec0b624c6f8598c135c57d83b767efcd823e
4
- data.tar.gz: 99739888eb4f5ee6f98c373887b785d327f5456bf99490d4b3f0c12bb94c40ba
3
+ metadata.gz: f104d7acc549f3585980d67d72bf720e28e285b22ad92aebcff87a0377791471
4
+ data.tar.gz: 346b0f7932cd5bf13b219b816f35717867926d9fbc001ace0c146305b6f9ff2b
5
5
  SHA512:
6
- metadata.gz: e20e618a0602b5d7687ade5405f0b58a2384f0636bdcc9fbcae2d701e4921b542f194686f49e05c21ae33d63482b3bc1b0e6a4021ff7554a578ccdbc45d2b00d
7
- data.tar.gz: a73a5cd71339643e4882e8608c955cc118c09157c4dfe606059a74ba4300099eea4e8bf77941e91fcc3a800c51caaff7e62314ebda988e4fc108533375724776
6
+ metadata.gz: 3611002d8bd9429c7d8ecd7afb91eea81e8bfee7c124e7ce872053da72245444bc808decb52d914029765c2fdc4a91ce02c8e51ba9ef3b45067b9a86e73cd9dc
7
+ data.tar.gz: 8c5e88da7eca74c53943e630a78cf204ff22c4b3a83cccfdb93287c92bd12ce84545af02399d7e96fb6106721c202cff668c34284164cfebce688df618ca5a02
@@ -45,9 +45,9 @@ require_relative 'aws-sdk-lambda/customizations'
45
45
  #
46
46
  # See {Errors} for more information.
47
47
  #
48
- # @service
48
+ # @!group service
49
49
  module Aws::Lambda
50
50
 
51
- GEM_VERSION = '1.44.0'
51
+ GEM_VERSION = '1.49.0'
52
52
 
53
53
  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::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
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 are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
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
- # Disables the event source mapping to pause polling and invocation.
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 DynamoDB Streams sources. `AT_TIMESTAMP` is
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) The maximum age of a record that Lambda sends to a function
750
- # for processing.
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) The maximum number of times to retry when the function
758
- # returns an error.
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&lt;String&gt;
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&lt;String&gt;
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&lt;String&gt;
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, IO] :payload
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, IO] :invoke_args
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
- # Disables the event source mapping to pause polling and invocation.
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) The maximum age of a record that Lambda sends to a function
4734
- # for processing.
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) The maximum number of times to retry when the function
4742
- # returns an error.
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&lt;String&gt;
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, IO] :zip_file
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.44.0'
5467
+ context[:gem_version] = '1.49.0'
5414
5468
  Seahorse::Client::Request.new(handlers, context)
5415
5469
  end
5416
5470