aws-sdk-lambda 1.205.0 → 1.206.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lambda/client.rb +50 -15
- data/lib/aws-sdk-lambda/client_api.rb +2 -0
- data/lib/aws-sdk-lambda/types.rb +52 -4
- data/lib/aws-sdk-lambda.rb +1 -1
- data/sig/params.rbs +2 -1
- data/sig/types.rbs +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 951bad874c17e30cba6fe0b680b4ec1ae59378ad2f9698a830eac6fac49c9699
|
|
4
|
+
data.tar.gz: e3b5865df46cf1918fed416ce1d8448dc2e775399e16174ae8c68660c6443301
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: deb36446c5757450d345f251ece6556859416f62cccd7325be9e1c6f9c3e650b17f63f3fe1d7778ad63c1671a3eeb56a865e270a061f528c0d43d911470876ae
|
|
7
|
+
data.tar.gz: 86304d75d7d95b3e507ef2e3c2992e3eb83a44838bf8d207efb2a7be9152fced7a88b8dcbc9f363c0d80631c16e81f7bcde2a78bb0361732856090edcb1231ce
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.206.0 (2026-10-30)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Adds ConsumptionMode to SelfManagedKafkaEventSourceConfig, letting Lambda event source mappings consume self-managed Apache Kafka topics as a queue. Set ConsumptionMode to Queue when creating an event source mapping.
|
|
8
|
+
|
|
4
9
|
1.205.0 (2026-10-29)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.206.0
|
|
@@ -1402,6 +1402,9 @@ module Aws::Lambda
|
|
|
1402
1402
|
# when you set `BatchSize` to a value greater than 10, you must set
|
|
1403
1403
|
# `MaximumBatchingWindowInSeconds` to at least 1.
|
|
1404
1404
|
#
|
|
1405
|
+
# Not supported for Kafka event source mappings when `ConsumptionMode`
|
|
1406
|
+
# is `Queue`.
|
|
1407
|
+
#
|
|
1405
1408
|
# @option params [Integer] :parallelization_factor
|
|
1406
1409
|
# (Kinesis and DynamoDB Streams only) The number of batches to process
|
|
1407
1410
|
# from each shard concurrently.
|
|
@@ -1412,10 +1415,16 @@ module Aws::Lambda
|
|
|
1412
1415
|
# `AT_TIMESTAMP` is supported only for Amazon Kinesis streams, Amazon
|
|
1413
1416
|
# DocumentDB, Amazon MSK, and self-managed Apache Kafka.
|
|
1414
1417
|
#
|
|
1418
|
+
# Not supported for Kafka event source mappings when `ConsumptionMode`
|
|
1419
|
+
# is `Queue`.
|
|
1420
|
+
#
|
|
1415
1421
|
# @option params [Time,DateTime,Date,Integer,String] :starting_position_timestamp
|
|
1416
1422
|
# With `StartingPosition` set to `AT_TIMESTAMP`, the time from which to
|
|
1417
1423
|
# start reading. `StartingPositionTimestamp` cannot be in the future.
|
|
1418
1424
|
#
|
|
1425
|
+
# Not supported for Kafka event source mappings when `ConsumptionMode`
|
|
1426
|
+
# is `Queue`.
|
|
1427
|
+
#
|
|
1419
1428
|
# @option params [Types::DestinationConfig] :destination_config
|
|
1420
1429
|
# (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka)
|
|
1421
1430
|
# A configuration object that specifies the destination of an event
|
|
@@ -1436,6 +1445,12 @@ module Aws::Lambda
|
|
|
1436
1445
|
# value is infinite (-1). When set to infinite (-1), failed records are
|
|
1437
1446
|
# retried until the record expires.
|
|
1438
1447
|
#
|
|
1448
|
+
# For Kafka `Stream` consumption mode, the default is `-1` (infinite
|
|
1449
|
+
# retries; capped at 10 when an on-failure destination is configured).
|
|
1450
|
+
# For Kafka `Queue` consumption mode, the default is `0`, and if no
|
|
1451
|
+
# on-failure destination is configured the Kafka broker performs
|
|
1452
|
+
# retries.
|
|
1453
|
+
#
|
|
1439
1454
|
# @option params [Hash<String,String>] :tags
|
|
1440
1455
|
# A list of tags to apply to the event source mapping.
|
|
1441
1456
|
#
|
|
@@ -1632,6 +1647,7 @@ module Aws::Lambda
|
|
|
1632
1647
|
# },
|
|
1633
1648
|
# ],
|
|
1634
1649
|
# },
|
|
1650
|
+
# consumption_mode: "Stream", # accepts Stream, Queue
|
|
1635
1651
|
# },
|
|
1636
1652
|
# document_db_event_source_config: {
|
|
1637
1653
|
# database_name: "DatabaseName",
|
|
@@ -1702,6 +1718,7 @@ module Aws::Lambda
|
|
|
1702
1718
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.access_configs[0].uri #=> String
|
|
1703
1719
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.schema_validation_configs #=> Array
|
|
1704
1720
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.schema_validation_configs[0].attribute #=> String, one of "KEY", "VALUE"
|
|
1721
|
+
# resp.self_managed_kafka_event_source_config.consumption_mode #=> String, one of "Stream", "Queue"
|
|
1705
1722
|
# resp.document_db_event_source_config.database_name #=> String
|
|
1706
1723
|
# resp.document_db_event_source_config.collection_name #=> String
|
|
1707
1724
|
# resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
|
|
@@ -2665,6 +2682,7 @@ module Aws::Lambda
|
|
|
2665
2682
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.access_configs[0].uri #=> String
|
|
2666
2683
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.schema_validation_configs #=> Array
|
|
2667
2684
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.schema_validation_configs[0].attribute #=> String, one of "KEY", "VALUE"
|
|
2685
|
+
# resp.self_managed_kafka_event_source_config.consumption_mode #=> String, one of "Stream", "Queue"
|
|
2668
2686
|
# resp.document_db_event_source_config.database_name #=> String
|
|
2669
2687
|
# resp.document_db_event_source_config.collection_name #=> String
|
|
2670
2688
|
# resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
|
|
@@ -2786,7 +2804,7 @@ module Aws::Lambda
|
|
|
2786
2804
|
req.send_request(options)
|
|
2787
2805
|
end
|
|
2788
2806
|
|
|
2789
|
-
# Removes a concurrent execution limit from a
|
|
2807
|
+
# Removes a concurrent execution limit from a Lambda Event Function.
|
|
2790
2808
|
#
|
|
2791
2809
|
# @option params [required, String] :function_name
|
|
2792
2810
|
# The name or ARN of the Lambda function.
|
|
@@ -3754,6 +3772,7 @@ module Aws::Lambda
|
|
|
3754
3772
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.access_configs[0].uri #=> String
|
|
3755
3773
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.schema_validation_configs #=> Array
|
|
3756
3774
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.schema_validation_configs[0].attribute #=> String, one of "KEY", "VALUE"
|
|
3775
|
+
# resp.self_managed_kafka_event_source_config.consumption_mode #=> String, one of "Stream", "Queue"
|
|
3757
3776
|
# resp.document_db_event_source_config.database_name #=> String
|
|
3758
3777
|
# resp.document_db_event_source_config.collection_name #=> String
|
|
3759
3778
|
# resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
|
|
@@ -3771,10 +3790,10 @@ module Aws::Lambda
|
|
|
3771
3790
|
req.send_request(options)
|
|
3772
3791
|
end
|
|
3773
3792
|
|
|
3774
|
-
# Returns information about
|
|
3775
|
-
# link to download the deployment package that's valid for 10
|
|
3776
|
-
# If you specify a function version, only details that are
|
|
3777
|
-
# that version are returned.
|
|
3793
|
+
# Returns information about a Lambda Event Function or function version,
|
|
3794
|
+
# with a link to download the deployment package that's valid for 10
|
|
3795
|
+
# minutes. If you specify a function version, only details that are
|
|
3796
|
+
# specific to that version are returned.
|
|
3778
3797
|
#
|
|
3779
3798
|
# @option params [required, String] :function_name
|
|
3780
3799
|
# The name or ARN of the Lambda function, version, or alias.
|
|
@@ -5938,6 +5957,7 @@ module Aws::Lambda
|
|
|
5938
5957
|
# resp.event_source_mappings[0].self_managed_kafka_event_source_config.schema_registry_config.access_configs[0].uri #=> String
|
|
5939
5958
|
# resp.event_source_mappings[0].self_managed_kafka_event_source_config.schema_registry_config.schema_validation_configs #=> Array
|
|
5940
5959
|
# resp.event_source_mappings[0].self_managed_kafka_event_source_config.schema_registry_config.schema_validation_configs[0].attribute #=> String, one of "KEY", "VALUE"
|
|
5960
|
+
# resp.event_source_mappings[0].self_managed_kafka_event_source_config.consumption_mode #=> String, one of "Stream", "Queue"
|
|
5941
5961
|
# resp.event_source_mappings[0].document_db_event_source_config.database_name #=> String
|
|
5942
5962
|
# resp.event_source_mappings[0].document_db_event_source_config.collection_name #=> String
|
|
5943
5963
|
# resp.event_source_mappings[0].document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
|
|
@@ -5956,7 +5976,8 @@ module Aws::Lambda
|
|
|
5956
5976
|
end
|
|
5957
5977
|
|
|
5958
5978
|
# Retrieves a list of configurations for asynchronous invocation for a
|
|
5959
|
-
#
|
|
5979
|
+
# Lambda Event Function. To retrieve more configurations, use the
|
|
5980
|
+
# `Marker` parameter.
|
|
5960
5981
|
#
|
|
5961
5982
|
# To configure options for asynchronous invocation, use
|
|
5962
5983
|
# PutFunctionEventInvokeConfig.
|
|
@@ -6772,8 +6793,9 @@ module Aws::Lambda
|
|
|
6772
6793
|
req.send_request(options)
|
|
6773
6794
|
end
|
|
6774
6795
|
|
|
6775
|
-
# Returns a list of [versions][1], with the
|
|
6776
|
-
# configuration of each. Lambda returns up to 50
|
|
6796
|
+
# Returns a list of [versions][1] of a Lambda Event Function, with the
|
|
6797
|
+
# version-specific configuration of each. Lambda returns up to 50
|
|
6798
|
+
# versions per call.
|
|
6777
6799
|
#
|
|
6778
6800
|
#
|
|
6779
6801
|
#
|
|
@@ -7129,8 +7151,8 @@ module Aws::Lambda
|
|
|
7129
7151
|
end
|
|
7130
7152
|
|
|
7131
7153
|
# Creates a [version][1] from the current code and configuration of a
|
|
7132
|
-
#
|
|
7133
|
-
# configuration that doesn't change.
|
|
7154
|
+
# Lambda Event Function. Use versions to create a snapshot of your
|
|
7155
|
+
# function code and configuration that doesn't change.
|
|
7134
7156
|
#
|
|
7135
7157
|
# Lambda doesn't publish a version if the function's configuration and
|
|
7136
7158
|
# code haven't changed since the last version. Use UpdateFunctionCode
|
|
@@ -7403,8 +7425,8 @@ module Aws::Lambda
|
|
|
7403
7425
|
req.send_request(options)
|
|
7404
7426
|
end
|
|
7405
7427
|
|
|
7406
|
-
# Sets the maximum number of simultaneous executions for a
|
|
7407
|
-
# reserves capacity for that concurrency level.
|
|
7428
|
+
# Sets the maximum number of simultaneous executions for a Lambda Event
|
|
7429
|
+
# Function, and reserves capacity for that concurrency level.
|
|
7408
7430
|
#
|
|
7409
7431
|
# Concurrency settings apply to the function as a whole, including all
|
|
7410
7432
|
# published versions and the unpublished version. Reserving concurrency
|
|
@@ -7626,7 +7648,8 @@ module Aws::Lambda
|
|
|
7626
7648
|
req.send_request(options)
|
|
7627
7649
|
end
|
|
7628
7650
|
|
|
7629
|
-
# Sets
|
|
7651
|
+
# Sets the [recursive loop detection][1] configuration for a Lambda
|
|
7652
|
+
# Event Function.
|
|
7630
7653
|
#
|
|
7631
7654
|
# When you configure a Lambda function to output to the same service or
|
|
7632
7655
|
# resource that invokes the function, it's possible to create an
|
|
@@ -8775,6 +8798,9 @@ module Aws::Lambda
|
|
|
8775
8798
|
# when you set `BatchSize` to a value greater than 10, you must set
|
|
8776
8799
|
# `MaximumBatchingWindowInSeconds` to at least 1.
|
|
8777
8800
|
#
|
|
8801
|
+
# Not supported for Kafka event source mappings when `ConsumptionMode`
|
|
8802
|
+
# is `Queue`.
|
|
8803
|
+
#
|
|
8778
8804
|
# @option params [Integer] :parallelization_factor
|
|
8779
8805
|
# (Kinesis and DynamoDB Streams only) The number of batches to process
|
|
8780
8806
|
# from each shard concurrently.
|
|
@@ -8799,6 +8825,12 @@ module Aws::Lambda
|
|
|
8799
8825
|
# value is infinite (-1). When set to infinite (-1), failed records are
|
|
8800
8826
|
# retried until the record expires.
|
|
8801
8827
|
#
|
|
8828
|
+
# For Kafka `Stream` consumption mode, the default is `-1` (infinite
|
|
8829
|
+
# retries; capped at 10 when an on-failure destination is configured).
|
|
8830
|
+
# For Kafka `Queue` consumption mode, the default is `0`, and if no
|
|
8831
|
+
# on-failure destination is configured the Kafka broker performs
|
|
8832
|
+
# retries.
|
|
8833
|
+
#
|
|
8802
8834
|
# @option params [Integer] :tumbling_window_in_seconds
|
|
8803
8835
|
# (Kinesis and DynamoDB Streams only) The duration in seconds of a
|
|
8804
8836
|
# processing window for DynamoDB and Kinesis Streams event sources. A
|
|
@@ -8973,6 +9005,7 @@ module Aws::Lambda
|
|
|
8973
9005
|
# },
|
|
8974
9006
|
# ],
|
|
8975
9007
|
# },
|
|
9008
|
+
# consumption_mode: "Stream", # accepts Stream, Queue
|
|
8976
9009
|
# },
|
|
8977
9010
|
# document_db_event_source_config: {
|
|
8978
9011
|
# database_name: "DatabaseName",
|
|
@@ -9043,6 +9076,7 @@ module Aws::Lambda
|
|
|
9043
9076
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.access_configs[0].uri #=> String
|
|
9044
9077
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.schema_validation_configs #=> Array
|
|
9045
9078
|
# resp.self_managed_kafka_event_source_config.schema_registry_config.schema_validation_configs[0].attribute #=> String, one of "KEY", "VALUE"
|
|
9079
|
+
# resp.self_managed_kafka_event_source_config.consumption_mode #=> String, one of "Stream", "Queue"
|
|
9046
9080
|
# resp.document_db_event_source_config.database_name #=> String
|
|
9047
9081
|
# resp.document_db_event_source_config.collection_name #=> String
|
|
9048
9082
|
# resp.document_db_event_source_config.full_document #=> String, one of "UpdateLookup", "Default"
|
|
@@ -9926,7 +9960,8 @@ module Aws::Lambda
|
|
|
9926
9960
|
req.send_request(options)
|
|
9927
9961
|
end
|
|
9928
9962
|
|
|
9929
|
-
# Updates the configuration for a
|
|
9963
|
+
# Updates the configuration for a function URL of a Lambda Event
|
|
9964
|
+
# Function.
|
|
9930
9965
|
#
|
|
9931
9966
|
# @option params [required, String] :function_name
|
|
9932
9967
|
# The name or ARN of the Lambda function.
|
|
@@ -10051,7 +10086,7 @@ module Aws::Lambda
|
|
|
10051
10086
|
tracer: tracer
|
|
10052
10087
|
)
|
|
10053
10088
|
context[:gem_name] = 'aws-sdk-lambda'
|
|
10054
|
-
context[:gem_version] = '1.
|
|
10089
|
+
context[:gem_version] = '1.206.0'
|
|
10055
10090
|
Seahorse::Client::Request.new(handlers, context)
|
|
10056
10091
|
end
|
|
10057
10092
|
|
|
@@ -316,6 +316,7 @@ module Aws::Lambda
|
|
|
316
316
|
KMSKeyArn = Shapes::StringShape.new(name: 'KMSKeyArn')
|
|
317
317
|
KMSKeyArnNonEmpty = Shapes::StringShape.new(name: 'KMSKeyArnNonEmpty')
|
|
318
318
|
KMSNotFoundException = Shapes::StructureShape.new(name: 'KMSNotFoundException')
|
|
319
|
+
KafkaEventSourceMappingConsumptionMode = Shapes::StringShape.new(name: 'KafkaEventSourceMappingConsumptionMode')
|
|
319
320
|
KafkaSchemaRegistryAccessConfig = Shapes::StructureShape.new(name: 'KafkaSchemaRegistryAccessConfig')
|
|
320
321
|
KafkaSchemaRegistryAccessConfigList = Shapes::ListShape.new(name: 'KafkaSchemaRegistryAccessConfigList')
|
|
321
322
|
KafkaSchemaRegistryAuthType = Shapes::StringShape.new(name: 'KafkaSchemaRegistryAuthType')
|
|
@@ -2147,6 +2148,7 @@ module Aws::Lambda
|
|
|
2147
2148
|
|
|
2148
2149
|
SelfManagedKafkaEventSourceConfig.add_member(:consumer_group_id, Shapes::ShapeRef.new(shape: URI, location_name: "ConsumerGroupId"))
|
|
2149
2150
|
SelfManagedKafkaEventSourceConfig.add_member(:schema_registry_config, Shapes::ShapeRef.new(shape: KafkaSchemaRegistryConfig, location_name: "SchemaRegistryConfig"))
|
|
2151
|
+
SelfManagedKafkaEventSourceConfig.add_member(:consumption_mode, Shapes::ShapeRef.new(shape: KafkaEventSourceMappingConsumptionMode, location_name: "ConsumptionMode"))
|
|
2150
2152
|
SelfManagedKafkaEventSourceConfig.struct_class = Types::SelfManagedKafkaEventSourceConfig
|
|
2151
2153
|
|
|
2152
2154
|
SendDurableExecutionCallbackFailureRequest.add_member(:callback_id, Shapes::ShapeRef.new(shape: CallbackId, required: true, location: "uri", location_name: "CallbackId"))
|
data/lib/aws-sdk-lambda/types.rb
CHANGED
|
@@ -790,9 +790,9 @@ module Aws::Lambda
|
|
|
790
790
|
# @return [String]
|
|
791
791
|
#
|
|
792
792
|
# @!attribute [rw] x_amzn_trace_id
|
|
793
|
-
# The
|
|
794
|
-
#
|
|
795
|
-
# the parent durable execution's trace header.
|
|
793
|
+
# The X-Ray trace header to use when starting the chained invocation.
|
|
794
|
+
# This parameter is optional. If you omit this value, the child
|
|
795
|
+
# invocation inherits the parent durable execution's trace header.
|
|
796
796
|
#
|
|
797
797
|
# Specify this value on the `START` update for the chained invocation
|
|
798
798
|
# operation. For more information about the header format, see
|
|
@@ -1624,6 +1624,9 @@ module Aws::Lambda
|
|
|
1624
1624
|
# Related setting: For Kinesis, DynamoDB, and Amazon SQS event
|
|
1625
1625
|
# sources, when you set `BatchSize` to a value greater than 10, you
|
|
1626
1626
|
# must set `MaximumBatchingWindowInSeconds` to at least 1.
|
|
1627
|
+
#
|
|
1628
|
+
# Not supported for Kafka event source mappings when `ConsumptionMode`
|
|
1629
|
+
# is `Queue`.
|
|
1627
1630
|
# @return [Integer]
|
|
1628
1631
|
#
|
|
1629
1632
|
# @!attribute [rw] parallelization_factor
|
|
@@ -1636,12 +1639,18 @@ module Aws::Lambda
|
|
|
1636
1639
|
# Amazon Kinesis and Amazon DynamoDB Stream event sources.
|
|
1637
1640
|
# `AT_TIMESTAMP` is supported only for Amazon Kinesis streams, Amazon
|
|
1638
1641
|
# DocumentDB, Amazon MSK, and self-managed Apache Kafka.
|
|
1642
|
+
#
|
|
1643
|
+
# Not supported for Kafka event source mappings when `ConsumptionMode`
|
|
1644
|
+
# is `Queue`.
|
|
1639
1645
|
# @return [String]
|
|
1640
1646
|
#
|
|
1641
1647
|
# @!attribute [rw] starting_position_timestamp
|
|
1642
1648
|
# With `StartingPosition` set to `AT_TIMESTAMP`, the time from which
|
|
1643
1649
|
# to start reading. `StartingPositionTimestamp` cannot be in the
|
|
1644
1650
|
# future.
|
|
1651
|
+
#
|
|
1652
|
+
# Not supported for Kafka event source mappings when `ConsumptionMode`
|
|
1653
|
+
# is `Queue`.
|
|
1645
1654
|
# @return [Time]
|
|
1646
1655
|
#
|
|
1647
1656
|
# @!attribute [rw] destination_config
|
|
@@ -1667,6 +1676,12 @@ module Aws::Lambda
|
|
|
1667
1676
|
# Kafka) Discard records after the specified number of retries. The
|
|
1668
1677
|
# default value is infinite (-1). When set to infinite (-1), failed
|
|
1669
1678
|
# records are retried until the record expires.
|
|
1679
|
+
#
|
|
1680
|
+
# For Kafka `Stream` consumption mode, the default is `-1` (infinite
|
|
1681
|
+
# retries; capped at 10 when an on-failure destination is configured).
|
|
1682
|
+
# For Kafka `Queue` consumption mode, the default is `0`, and if no
|
|
1683
|
+
# on-failure destination is configured the Kafka broker performs
|
|
1684
|
+
# retries.
|
|
1670
1685
|
# @return [Integer]
|
|
1671
1686
|
#
|
|
1672
1687
|
# @!attribute [rw] tags
|
|
@@ -8963,11 +8978,35 @@ module Aws::Lambda
|
|
|
8963
8978
|
# Specific configuration settings for a Kafka schema registry.
|
|
8964
8979
|
# @return [Types::KafkaSchemaRegistryConfig]
|
|
8965
8980
|
#
|
|
8981
|
+
# @!attribute [rw] consumption_mode
|
|
8982
|
+
# The mode that Lambda uses to consume records from your self-managed
|
|
8983
|
+
# Apache Kafka topic. The default is `Stream`.
|
|
8984
|
+
#
|
|
8985
|
+
# * `Stream` – Lambda consumes records using a Kafka consumer group
|
|
8986
|
+
# and preserves the order of records within each partition. This is
|
|
8987
|
+
# the default when you omit `ConsumptionMode`.
|
|
8988
|
+
#
|
|
8989
|
+
# * `Queue` – Lambda consumes records using a Kafka share group.
|
|
8990
|
+
# Multiple consumers can process records from the same partitions
|
|
8991
|
+
# concurrently. Queue mode does not preserve per-partition order.
|
|
8992
|
+
# Queue mode requires an Apache Kafka cluster running version 4.2 or
|
|
8993
|
+
# later with share groups enabled.
|
|
8994
|
+
#
|
|
8995
|
+
# You cannot change `ConsumptionMode` after you create the event
|
|
8996
|
+
# source mapping. To use a different consumption mode, create a new
|
|
8997
|
+
# event source mapping.
|
|
8998
|
+
#
|
|
8999
|
+
# When `ConsumptionMode` is `Queue`, the `StartingPosition`,
|
|
9000
|
+
# `StartingPositionTimestamp`, and `MaximumBatchingWindowInSeconds`
|
|
9001
|
+
# parameters are not supported.
|
|
9002
|
+
# @return [String]
|
|
9003
|
+
#
|
|
8966
9004
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/SelfManagedKafkaEventSourceConfig AWS API Documentation
|
|
8967
9005
|
#
|
|
8968
9006
|
class SelfManagedKafkaEventSourceConfig < Struct.new(
|
|
8969
9007
|
:consumer_group_id,
|
|
8970
|
-
:schema_registry_config
|
|
9008
|
+
:schema_registry_config,
|
|
9009
|
+
:consumption_mode)
|
|
8971
9010
|
SENSITIVE = []
|
|
8972
9011
|
include Aws::Structure
|
|
8973
9012
|
end
|
|
@@ -9922,6 +9961,9 @@ module Aws::Lambda
|
|
|
9922
9961
|
# Related setting: For Kinesis, DynamoDB, and Amazon SQS event
|
|
9923
9962
|
# sources, when you set `BatchSize` to a value greater than 10, you
|
|
9924
9963
|
# must set `MaximumBatchingWindowInSeconds` to at least 1.
|
|
9964
|
+
#
|
|
9965
|
+
# Not supported for Kafka event source mappings when `ConsumptionMode`
|
|
9966
|
+
# is `Queue`.
|
|
9925
9967
|
# @return [Integer]
|
|
9926
9968
|
#
|
|
9927
9969
|
# @!attribute [rw] parallelization_factor
|
|
@@ -9952,6 +9994,12 @@ module Aws::Lambda
|
|
|
9952
9994
|
# Kafka) Discard records after the specified number of retries. The
|
|
9953
9995
|
# default value is infinite (-1). When set to infinite (-1), failed
|
|
9954
9996
|
# records are retried until the record expires.
|
|
9997
|
+
#
|
|
9998
|
+
# For Kafka `Stream` consumption mode, the default is `-1` (infinite
|
|
9999
|
+
# retries; capped at 10 when an on-failure destination is configured).
|
|
10000
|
+
# For Kafka `Queue` consumption mode, the default is `0`, and if no
|
|
10001
|
+
# on-failure destination is configured the Kafka broker performs
|
|
10002
|
+
# retries.
|
|
9955
10003
|
# @return [Integer]
|
|
9956
10004
|
#
|
|
9957
10005
|
# @!attribute [rw] tumbling_window_in_seconds
|
data/lib/aws-sdk-lambda.rb
CHANGED
data/sig/params.rbs
CHANGED
|
@@ -51,7 +51,8 @@ module Aws
|
|
|
51
51
|
|
|
52
52
|
type self_managed_kafka_event_source_config = {
|
|
53
53
|
consumer_group_id: ::String?,
|
|
54
|
-
schema_registry_config: Params::kafka_schema_registry_config
|
|
54
|
+
schema_registry_config: Params::kafka_schema_registry_config?,
|
|
55
|
+
consumption_mode: ("Stream" | "Queue")?
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
type cors = {
|
data/sig/types.rbs
CHANGED
|
@@ -1997,6 +1997,7 @@ module Aws::Lambda
|
|
|
1997
1997
|
class SelfManagedKafkaEventSourceConfig
|
|
1998
1998
|
attr_accessor consumer_group_id: ::String
|
|
1999
1999
|
attr_accessor schema_registry_config: Types::KafkaSchemaRegistryConfig
|
|
2000
|
+
attr_accessor consumption_mode: ("Stream" | "Queue")
|
|
2000
2001
|
SENSITIVE: []
|
|
2001
2002
|
end
|
|
2002
2003
|
|