aws-sdk-lambda 1.46.0 → 1.47.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 +1 -1
- data/lib/aws-sdk-lambda/client.rb +63 -24
- data/lib/aws-sdk-lambda/client_api.rb +6 -0
- data/lib/aws-sdk-lambda/types.rb +40 -13
- 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: cc406beb4d46b0ceb39630642c7574c31a505f3da5e0718a73372975a7ceef42
|
4
|
+
data.tar.gz: e884595330a675e8f3dcff93c4cf1b37857082fad98ed008897e278cd016a40e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b6488e596ec4424a23964cc6163aacadeb47164413bf069b97ad9b2a1a539ae4b4d0a3d0829a454e8846d912001a84b99e8890d9f879bf62714b87a9c3bcb8
|
7
|
+
data.tar.gz: b928cf3ae38d711866e205c7b74d09c1f572b8b93f1fdef67be9d0fc4f3f49392c54e6599d0cd5c282c3a83275dcfba83eef38dbd75265ac4fd61a15bdc0302d
|
data/lib/aws-sdk-lambda.rb
CHANGED
@@ -660,6 +660,8 @@ module Aws::Lambda
|
|
660
660
|
#
|
661
661
|
# * [Using AWS Lambda with Amazon SQS][3]
|
662
662
|
#
|
663
|
+
# * [Using AWS Lambda with Amazon MSK][4]
|
664
|
+
#
|
663
665
|
# The following error handling options are only available for stream
|
664
666
|
# sources (DynamoDB and Kinesis):
|
665
667
|
#
|
@@ -670,10 +672,11 @@ module Aws::Lambda
|
|
670
672
|
# or Amazon SNS topic.
|
671
673
|
#
|
672
674
|
# * `MaximumRecordAgeInSeconds` - Discard records older than the
|
673
|
-
# specified age.
|
675
|
+
# specified age. Default -1 (infinite). Minimum 60. Maximum 604800.
|
674
676
|
#
|
675
677
|
# * `MaximumRetryAttempts` - Discard records after the specified number
|
676
|
-
# of retries.
|
678
|
+
# of retries. Default -1 (infinite). Minimum 0. Maximum 10000. When
|
679
|
+
# infinite, failed records will be retried until the record expires.
|
677
680
|
#
|
678
681
|
# * `ParallelizationFactor` - Process multiple batches from each shard
|
679
682
|
# concurrently.
|
@@ -683,6 +686,7 @@ module Aws::Lambda
|
|
683
686
|
# [1]: https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
|
684
687
|
# [2]: https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html
|
685
688
|
# [3]: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
|
689
|
+
# [4]: https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html
|
686
690
|
#
|
687
691
|
# @option params [required, String] :event_source_arn
|
688
692
|
# The Amazon Resource Name (ARN) of the event source.
|
@@ -694,6 +698,9 @@ module Aws::Lambda
|
|
694
698
|
#
|
695
699
|
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
696
700
|
#
|
701
|
+
# * **Amazon Managed Streaming for Apache Kafka** - The ARN of the
|
702
|
+
# cluster.
|
703
|
+
#
|
697
704
|
# @option params [required, String] :function_name
|
698
705
|
# The name of the Lambda function.
|
699
706
|
#
|
@@ -713,7 +720,8 @@ module Aws::Lambda
|
|
713
720
|
# only the function name, it's limited to 64 characters in length.
|
714
721
|
#
|
715
722
|
# @option params [Boolean] :enabled
|
716
|
-
#
|
723
|
+
# If true, the event source mapping is active. Set to false to pause
|
724
|
+
# polling and invocation.
|
717
725
|
#
|
718
726
|
# @option params [Integer] :batch_size
|
719
727
|
# The maximum number of items to retrieve in a single batch.
|
@@ -724,6 +732,9 @@ module Aws::Lambda
|
|
724
732
|
#
|
725
733
|
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
726
734
|
#
|
735
|
+
# * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
|
736
|
+
# 10,000.
|
737
|
+
#
|
727
738
|
# @option params [Integer] :maximum_batching_window_in_seconds
|
728
739
|
# (Streams) The maximum amount of time to gather records before invoking
|
729
740
|
# the function, in seconds.
|
@@ -734,8 +745,8 @@ module Aws::Lambda
|
|
734
745
|
#
|
735
746
|
# @option params [String] :starting_position
|
736
747
|
# The position in a stream from which to start reading. Required for
|
737
|
-
# Amazon Kinesis and Amazon
|
738
|
-
# only supported for Amazon Kinesis streams.
|
748
|
+
# Amazon Kinesis, Amazon DynamoDB, and Amazon MSK Streams sources.
|
749
|
+
# `AT_TIMESTAMP` is only supported for Amazon Kinesis streams.
|
739
750
|
#
|
740
751
|
# @option params [Time,DateTime,Date,Integer,String] :starting_position_timestamp
|
741
752
|
# With `StartingPosition` set to `AT_TIMESTAMP`, the time from which to
|
@@ -746,16 +757,20 @@ module Aws::Lambda
|
|
746
757
|
# discarded records.
|
747
758
|
#
|
748
759
|
# @option params [Integer] :maximum_record_age_in_seconds
|
749
|
-
# (Streams)
|
750
|
-
#
|
760
|
+
# (Streams) Discard records older than the specified age. The default
|
761
|
+
# value is infinite (-1).
|
751
762
|
#
|
752
763
|
# @option params [Boolean] :bisect_batch_on_function_error
|
753
764
|
# (Streams) If the function returns an error, split the batch in two and
|
754
765
|
# retry.
|
755
766
|
#
|
756
767
|
# @option params [Integer] :maximum_retry_attempts
|
757
|
-
# (Streams)
|
758
|
-
#
|
768
|
+
# (Streams) Discard records after the specified number of retries. The
|
769
|
+
# default value is infinite (-1). When set to infinite (-1), failed
|
770
|
+
# records will be retried until the record expires.
|
771
|
+
#
|
772
|
+
# @option params [Array<String>] :topics
|
773
|
+
# (MSK) The name of the Kafka topic.
|
759
774
|
#
|
760
775
|
# @return [Types::EventSourceMappingConfiguration] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
761
776
|
#
|
@@ -770,6 +785,7 @@ module Aws::Lambda
|
|
770
785
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
771
786
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
772
787
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
788
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
773
789
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
774
790
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
775
791
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -818,6 +834,7 @@ module Aws::Lambda
|
|
818
834
|
# maximum_record_age_in_seconds: 1,
|
819
835
|
# bisect_batch_on_function_error: false,
|
820
836
|
# maximum_retry_attempts: 1,
|
837
|
+
# topics: ["Topic"],
|
821
838
|
# })
|
822
839
|
#
|
823
840
|
# @example Response structure
|
@@ -834,6 +851,8 @@ module Aws::Lambda
|
|
834
851
|
# resp.state_transition_reason #=> String
|
835
852
|
# resp.destination_config.on_success.destination #=> String
|
836
853
|
# resp.destination_config.on_failure.destination #=> String
|
854
|
+
# resp.topics #=> Array
|
855
|
+
# resp.topics[0] #=> String
|
837
856
|
# resp.maximum_record_age_in_seconds #=> Integer
|
838
857
|
# resp.bisect_batch_on_function_error #=> Boolean
|
839
858
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -1264,6 +1283,7 @@ module Aws::Lambda
|
|
1264
1283
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
1265
1284
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
1266
1285
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
1286
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
1267
1287
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
1268
1288
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
1269
1289
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -1308,6 +1328,8 @@ module Aws::Lambda
|
|
1308
1328
|
# resp.state_transition_reason #=> String
|
1309
1329
|
# resp.destination_config.on_success.destination #=> String
|
1310
1330
|
# resp.destination_config.on_failure.destination #=> String
|
1331
|
+
# resp.topics #=> Array
|
1332
|
+
# resp.topics[0] #=> String
|
1311
1333
|
# resp.maximum_record_age_in_seconds #=> Integer
|
1312
1334
|
# resp.bisect_batch_on_function_error #=> Boolean
|
1313
1335
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -1719,6 +1741,7 @@ module Aws::Lambda
|
|
1719
1741
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
1720
1742
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
1721
1743
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
1744
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
1722
1745
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
1723
1746
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
1724
1747
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -1770,6 +1793,8 @@ module Aws::Lambda
|
|
1770
1793
|
# resp.state_transition_reason #=> String
|
1771
1794
|
# resp.destination_config.on_success.destination #=> String
|
1772
1795
|
# resp.destination_config.on_failure.destination #=> String
|
1796
|
+
# resp.topics #=> Array
|
1797
|
+
# resp.topics[0] #=> String
|
1773
1798
|
# resp.maximum_record_age_in_seconds #=> Integer
|
1774
1799
|
# resp.bisect_batch_on_function_error #=> Boolean
|
1775
1800
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -2530,9 +2555,9 @@ module Aws::Lambda
|
|
2530
2555
|
# * {Types::GetProvisionedConcurrencyConfigResponse#last_modified #last_modified} => Time
|
2531
2556
|
#
|
2532
2557
|
#
|
2533
|
-
# @example Example: To
|
2558
|
+
# @example Example: To get a provisioned concurrency configuration
|
2534
2559
|
#
|
2535
|
-
# # The following example
|
2560
|
+
# # The following example returns details for the provisioned concurrency configuration for the BLUE alias of the specified
|
2536
2561
|
# # function.
|
2537
2562
|
#
|
2538
2563
|
# resp = client.get_provisioned_concurrency_config({
|
@@ -2549,9 +2574,9 @@ module Aws::Lambda
|
|
2549
2574
|
# status: "READY",
|
2550
2575
|
# }
|
2551
2576
|
#
|
2552
|
-
# @example Example: To
|
2577
|
+
# @example Example: To view a provisioned concurrency configuration
|
2553
2578
|
#
|
2554
|
-
# # The following example
|
2579
|
+
# # The following example displays details for the provisioned concurrency configuration for the BLUE alias of the specified
|
2555
2580
|
# # function.
|
2556
2581
|
#
|
2557
2582
|
# resp = client.get_provisioned_concurrency_config({
|
@@ -2682,7 +2707,7 @@ module Aws::Lambda
|
|
2682
2707
|
# Up to 3583 bytes of base64-encoded data about the invoking client to
|
2683
2708
|
# pass to the function in the context object.
|
2684
2709
|
#
|
2685
|
-
# @option params [String,
|
2710
|
+
# @option params [String, StringIO, File] :payload
|
2686
2711
|
# The JSON that you want to provide to your Lambda function as input.
|
2687
2712
|
#
|
2688
2713
|
# @option params [String] :qualifier
|
@@ -2778,7 +2803,7 @@ module Aws::Lambda
|
|
2778
2803
|
# The length constraint applies only to the full ARN. If you specify
|
2779
2804
|
# only the function name, it is limited to 64 characters in length.
|
2780
2805
|
#
|
2781
|
-
# @option params [required, String,
|
2806
|
+
# @option params [required, String, StringIO, File] :invoke_args
|
2782
2807
|
# The JSON that you want to provide to your Lambda function as input.
|
2783
2808
|
#
|
2784
2809
|
# @return [Types::InvokeAsyncResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -2936,6 +2961,9 @@ module Aws::Lambda
|
|
2936
2961
|
#
|
2937
2962
|
# * **Amazon Simple Queue Service** - The ARN of the queue.
|
2938
2963
|
#
|
2964
|
+
# * **Amazon Managed Streaming for Apache Kafka** - The ARN of the
|
2965
|
+
# cluster.
|
2966
|
+
#
|
2939
2967
|
# @option params [String] :function_name
|
2940
2968
|
# The name of the Lambda function.
|
2941
2969
|
#
|
@@ -3016,6 +3044,8 @@ module Aws::Lambda
|
|
3016
3044
|
# resp.event_source_mappings[0].state_transition_reason #=> String
|
3017
3045
|
# resp.event_source_mappings[0].destination_config.on_success.destination #=> String
|
3018
3046
|
# resp.event_source_mappings[0].destination_config.on_failure.destination #=> String
|
3047
|
+
# resp.event_source_mappings[0].topics #=> Array
|
3048
|
+
# resp.event_source_mappings[0].topics[0] #=> String
|
3019
3049
|
# resp.event_source_mappings[0].maximum_record_age_in_seconds #=> Integer
|
3020
3050
|
# resp.event_source_mappings[0].bisect_batch_on_function_error #=> Boolean
|
3021
3051
|
# resp.event_source_mappings[0].maximum_retry_attempts #=> Integer
|
@@ -4680,10 +4710,11 @@ module Aws::Lambda
|
|
4680
4710
|
# or Amazon SNS topic.
|
4681
4711
|
#
|
4682
4712
|
# * `MaximumRecordAgeInSeconds` - Discard records older than the
|
4683
|
-
# specified age.
|
4713
|
+
# specified age. Default -1 (infinite). Minimum 60. Maximum 604800.
|
4684
4714
|
#
|
4685
4715
|
# * `MaximumRetryAttempts` - Discard records after the specified number
|
4686
|
-
# of retries.
|
4716
|
+
# of retries. Default -1 (infinite). Minimum 0. Maximum 10000. When
|
4717
|
+
# infinite, failed records will be retried until the record expires.
|
4687
4718
|
#
|
4688
4719
|
# * `ParallelizationFactor` - Process multiple batches from each shard
|
4689
4720
|
# concurrently.
|
@@ -4710,7 +4741,8 @@ module Aws::Lambda
|
|
4710
4741
|
# only the function name, it's limited to 64 characters in length.
|
4711
4742
|
#
|
4712
4743
|
# @option params [Boolean] :enabled
|
4713
|
-
#
|
4744
|
+
# If true, the event source mapping is active. Set to false to pause
|
4745
|
+
# polling and invocation.
|
4714
4746
|
#
|
4715
4747
|
# @option params [Integer] :batch_size
|
4716
4748
|
# The maximum number of items to retrieve in a single batch.
|
@@ -4721,6 +4753,9 @@ module Aws::Lambda
|
|
4721
4753
|
#
|
4722
4754
|
# * **Amazon Simple Queue Service** - Default 10. Max 10.
|
4723
4755
|
#
|
4756
|
+
# * **Amazon Managed Streaming for Apache Kafka** - Default 100. Max
|
4757
|
+
# 10,000.
|
4758
|
+
#
|
4724
4759
|
# @option params [Integer] :maximum_batching_window_in_seconds
|
4725
4760
|
# (Streams) The maximum amount of time to gather records before invoking
|
4726
4761
|
# the function, in seconds.
|
@@ -4730,16 +4765,17 @@ module Aws::Lambda
|
|
4730
4765
|
# discarded records.
|
4731
4766
|
#
|
4732
4767
|
# @option params [Integer] :maximum_record_age_in_seconds
|
4733
|
-
# (Streams)
|
4734
|
-
#
|
4768
|
+
# (Streams) Discard records older than the specified age. The default
|
4769
|
+
# value is infinite (-1).
|
4735
4770
|
#
|
4736
4771
|
# @option params [Boolean] :bisect_batch_on_function_error
|
4737
4772
|
# (Streams) If the function returns an error, split the batch in two and
|
4738
4773
|
# retry.
|
4739
4774
|
#
|
4740
4775
|
# @option params [Integer] :maximum_retry_attempts
|
4741
|
-
# (Streams)
|
4742
|
-
#
|
4776
|
+
# (Streams) Discard records after the specified number of retries. The
|
4777
|
+
# default value is infinite (-1). When set to infinite (-1), failed
|
4778
|
+
# records will be retried until the record expires.
|
4743
4779
|
#
|
4744
4780
|
# @option params [Integer] :parallelization_factor
|
4745
4781
|
# (Streams) The number of batches to process from each shard
|
@@ -4758,6 +4794,7 @@ module Aws::Lambda
|
|
4758
4794
|
# * {Types::EventSourceMappingConfiguration#state #state} => String
|
4759
4795
|
# * {Types::EventSourceMappingConfiguration#state_transition_reason #state_transition_reason} => String
|
4760
4796
|
# * {Types::EventSourceMappingConfiguration#destination_config #destination_config} => Types::DestinationConfig
|
4797
|
+
# * {Types::EventSourceMappingConfiguration#topics #topics} => Array<String>
|
4761
4798
|
# * {Types::EventSourceMappingConfiguration#maximum_record_age_in_seconds #maximum_record_age_in_seconds} => Integer
|
4762
4799
|
# * {Types::EventSourceMappingConfiguration#bisect_batch_on_function_error #bisect_batch_on_function_error} => Boolean
|
4763
4800
|
# * {Types::EventSourceMappingConfiguration#maximum_retry_attempts #maximum_retry_attempts} => Integer
|
@@ -4822,6 +4859,8 @@ module Aws::Lambda
|
|
4822
4859
|
# resp.state_transition_reason #=> String
|
4823
4860
|
# resp.destination_config.on_success.destination #=> String
|
4824
4861
|
# resp.destination_config.on_failure.destination #=> String
|
4862
|
+
# resp.topics #=> Array
|
4863
|
+
# resp.topics[0] #=> String
|
4825
4864
|
# resp.maximum_record_age_in_seconds #=> Integer
|
4826
4865
|
# resp.bisect_batch_on_function_error #=> Boolean
|
4827
4866
|
# resp.maximum_retry_attempts #=> Integer
|
@@ -4855,7 +4894,7 @@ module Aws::Lambda
|
|
4855
4894
|
# The length constraint applies only to the full ARN. If you specify
|
4856
4895
|
# only the function name, it is limited to 64 characters in length.
|
4857
4896
|
#
|
4858
|
-
# @option params [String,
|
4897
|
+
# @option params [String, StringIO, File] :zip_file
|
4859
4898
|
# The base64-encoded contents of the deployment package. AWS SDK and AWS
|
4860
4899
|
# CLI clients handle the encoding for you.
|
4861
4900
|
#
|
@@ -5410,7 +5449,7 @@ module Aws::Lambda
|
|
5410
5449
|
params: params,
|
5411
5450
|
config: config)
|
5412
5451
|
context[:gem_name] = 'aws-sdk-lambda'
|
5413
|
-
context[:gem_version] = '1.
|
5452
|
+
context[:gem_version] = '1.47.0'
|
5414
5453
|
Seahorse::Client::Request.new(handlers, context)
|
5415
5454
|
end
|
5416
5455
|
|
@@ -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
|
@@ -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
|
@@ -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
|
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.47.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-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|