aws-cdk-lib 2.172.0__py3-none-any.whl → 2.173.1__py3-none-any.whl
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.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +57 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.172.0.jsii.tgz → aws-cdk-lib@2.173.1.jsii.tgz} +0 -0
- aws_cdk/aws_amazonmq/__init__.py +40 -40
- aws_cdk/aws_apigateway/__init__.py +111 -64
- aws_cdk/aws_applicationautoscaling/__init__.py +141 -66
- aws_cdk/aws_appsync/__init__.py +4 -3
- aws_cdk/aws_autoscaling/__init__.py +15 -6
- aws_cdk/aws_bedrock/__init__.py +32 -44
- aws_cdk/aws_chatbot/__init__.py +72 -46
- aws_cdk/aws_cleanrooms/__init__.py +4 -6
- aws_cdk/aws_cloudfront/__init__.py +4 -2
- aws_cdk/aws_cloudtrail/__init__.py +104 -68
- aws_cdk/aws_cloudwatch/__init__.py +51 -14
- aws_cdk/aws_codebuild/__init__.py +39 -0
- aws_cdk/aws_codepipeline/__init__.py +4 -4
- aws_cdk/aws_cognito/__init__.py +221 -53
- aws_cdk/aws_config/__init__.py +13 -10
- aws_cdk/aws_connect/__init__.py +25 -23
- aws_cdk/aws_connectcampaignsv2/__init__.py +187 -176
- aws_cdk/aws_docdb/__init__.py +128 -0
- aws_cdk/aws_dynamodb/__init__.py +256 -0
- aws_cdk/aws_ec2/__init__.py +130 -48
- aws_cdk/aws_ecs/__init__.py +25 -13
- aws_cdk/aws_eks/__init__.py +86 -24
- aws_cdk/aws_elasticache/__init__.py +22 -22
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +138 -128
- aws_cdk/aws_events/__init__.py +39 -26
- aws_cdk/aws_fsx/__init__.py +134 -10
- aws_cdk/aws_imagebuilder/__init__.py +8 -8
- aws_cdk/aws_invoicing/__init__.py +651 -0
- aws_cdk/aws_iot/__init__.py +28 -22
- aws_cdk/aws_iotfleetwise/__init__.py +473 -332
- aws_cdk/aws_iotsitewise/__init__.py +6 -4
- aws_cdk/aws_ivs/__init__.py +43 -31
- aws_cdk/aws_kendra/__init__.py +4 -0
- aws_cdk/aws_lakeformation/__init__.py +2 -1
- aws_cdk/aws_lambda/__init__.py +258 -156
- aws_cdk/aws_logs/__init__.py +532 -0
- aws_cdk/aws_m2/__init__.py +15 -15
- aws_cdk/aws_mediaconnect/__init__.py +24 -14
- aws_cdk/aws_medialive/__init__.py +2359 -5
- aws_cdk/aws_mediapackage/__init__.py +3 -9
- aws_cdk/aws_mediapackagev2/__init__.py +19 -17
- aws_cdk/aws_memorydb/__init__.py +664 -4
- aws_cdk/aws_qbusiness/__init__.py +2018 -66
- aws_cdk/aws_rds/__init__.py +30 -0
- aws_cdk/aws_resourcegroups/__init__.py +26 -17
- aws_cdk/aws_route53/__init__.py +1177 -10
- aws_cdk/aws_route53_targets/__init__.py +224 -100
- aws_cdk/aws_route53resolver/__init__.py +4 -2
- aws_cdk/aws_s3/__init__.py +4 -4
- aws_cdk/aws_s3express/__init__.py +30 -19
- aws_cdk/aws_sagemaker/__init__.py +783 -9
- aws_cdk/aws_secretsmanager/__init__.py +20 -6
- aws_cdk/aws_securityhub/__init__.py +64 -32
- aws_cdk/aws_servicediscovery/__init__.py +43 -0
- aws_cdk/aws_ses/__init__.py +109 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +190 -35
- aws_cdk/aws_synthetics/__init__.py +7 -5
- aws_cdk/aws_vpclattice/__init__.py +1479 -122
- aws_cdk/aws_wisdom/__init__.py +2698 -232
- aws_cdk/aws_workspacesweb/__init__.py +118 -61
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/RECORD +69 -68
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/top_level.txt +0 -0
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -4734,33 +4734,33 @@ class CfnEventSourceMapping(
|
|
|
4734
4734
|
'''
|
|
4735
4735
|
:param scope: Scope in which this resource is defined.
|
|
4736
4736
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
4737
|
-
:param function_name: The name of the Lambda function.
|
|
4738
|
-
:param amazon_managed_kafka_event_source_config: Specific configuration settings for an MSK event source.
|
|
4739
|
-
:param batch_size: The maximum number of
|
|
4740
|
-
:param bisect_batch_on_function_error: (Streams) If the function returns an error, split the batch in two and retry.
|
|
4741
|
-
:param destination_config: A configuration object that specifies the destination of an event after Lambda processes it.
|
|
4742
|
-
:param document_db_event_source_config:
|
|
4743
|
-
:param enabled:
|
|
4744
|
-
:param event_source_arn: The Amazon Resource Name (ARN) of the event source.
|
|
4745
|
-
:param filter_criteria:
|
|
4746
|
-
:param function_response_types: (Streams) A list of response
|
|
4747
|
-
:param kms_key_arn: The
|
|
4748
|
-
:param maximum_batching_window_in_seconds:
|
|
4749
|
-
:param maximum_record_age_in_seconds: (Streams) The maximum age
|
|
4750
|
-
:param maximum_retry_attempts: (Streams) The maximum number of
|
|
4751
|
-
:param metrics_config:
|
|
4752
|
-
:param parallelization_factor: (Streams) The number of batches to process from each shard
|
|
4753
|
-
:param provisioned_poller_config:
|
|
4754
|
-
:param queues: (
|
|
4755
|
-
:param scaling_config: The scaling configuration for the event source.
|
|
4756
|
-
:param self_managed_event_source: The
|
|
4757
|
-
:param self_managed_kafka_event_source_config: Specific configuration settings for a
|
|
4758
|
-
:param source_access_configurations:
|
|
4759
|
-
:param starting_position: The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB
|
|
4760
|
-
:param starting_position_timestamp: With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time seconds.
|
|
4761
|
-
:param tags: A list of tags to
|
|
4762
|
-
:param topics:
|
|
4763
|
-
:param tumbling_window_in_seconds: (Streams)
|
|
4737
|
+
:param function_name: The name or ARN of the Lambda function. **Name formats** - *Function name* – ``MyFunction`` . - *Function ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction`` . - *Version or Alias ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`` . - *Partial ARN* – ``123456789012:function:MyFunction`` . The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
|
|
4738
|
+
:param amazon_managed_kafka_event_source_config: Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
|
4739
|
+
:param batch_size: The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB). - *Amazon Kinesis* – Default 100. Max 10,000. - *Amazon DynamoDB Streams* – Default 100. Max 10,000. - *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10. - *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000. - *Self-managed Apache Kafka* – Default 100. Max 10,000. - *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000. - *DocumentDB* – Default 100. Max 10,000.
|
|
4740
|
+
:param bisect_batch_on_function_error: (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
|
|
4741
|
+
:param destination_config: (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A configuration object that specifies the destination of an event after Lambda processes it.
|
|
4742
|
+
:param document_db_event_source_config: Specific configuration settings for a DocumentDB event source.
|
|
4743
|
+
:param enabled: When true, the event source mapping is active. When false, Lambda pauses polling and invocation. Default: True
|
|
4744
|
+
:param event_source_arn: The Amazon Resource Name (ARN) of the event source. - *Amazon Kinesis* – The ARN of the data stream or a stream consumer. - *Amazon DynamoDB Streams* – The ARN of the stream. - *Amazon Simple Queue Service* – The ARN of the queue. - *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC connection (for `cross-account event source mappings <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc>`_ ). - *Amazon MQ* – The ARN of the broker. - *Amazon DocumentDB* – The ARN of the DocumentDB change stream.
|
|
4745
|
+
:param filter_criteria: An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see `Lambda event filtering <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html>`_ .
|
|
4746
|
+
:param function_response_types: (Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping. Valid Values: ``ReportBatchItemFailures``
|
|
4747
|
+
:param kms_key_arn: The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that Lambda uses to encrypt your function's `filter criteria <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics>`_ .
|
|
4748
|
+
:param maximum_batching_window_in_seconds: The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0 *Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms *Related setting:* For Amazon SQS event sources, when you set ``BatchSize`` to a value greater than 10, you must set ``MaximumBatchingWindowInSeconds`` to at least 1.
|
|
4749
|
+
:param maximum_record_age_in_seconds: (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records. .. epigraph:: The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed
|
|
4750
|
+
:param maximum_retry_attempts: (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
|
|
4751
|
+
:param metrics_config: The metrics configuration for your event source. For more information, see `Event source mapping metrics <https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics>`_ .
|
|
4752
|
+
:param parallelization_factor: (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.
|
|
4753
|
+
:param provisioned_poller_config: (Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source. For more information, see `provisioned mode <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode>`_ .
|
|
4754
|
+
:param queues: (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
|
|
4755
|
+
:param scaling_config: (Amazon SQS only) The scaling configuration for the event source. For more information, see `Configuring maximum concurrency for Amazon SQS event sources <https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency>`_ .
|
|
4756
|
+
:param self_managed_event_source: The self-managed Apache Kafka cluster for your event source.
|
|
4757
|
+
:param self_managed_kafka_event_source_config: Specific configuration settings for a self-managed Apache Kafka event source.
|
|
4758
|
+
:param source_access_configurations: An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
|
|
4759
|
+
:param starting_position: The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB. - *LATEST* - Read only new records. - *TRIM_HORIZON* - Process all available records. - *AT_TIMESTAMP* - Specify a time from which to start reading records.
|
|
4760
|
+
:param starting_position_timestamp: With ``StartingPosition`` set to ``AT_TIMESTAMP`` , the time from which to start reading, in Unix time seconds. ``StartingPositionTimestamp`` cannot be in the future.
|
|
4761
|
+
:param tags: A list of tags to add to the event source mapping. .. epigraph:: You must have the ``lambda:TagResource`` , ``lambda:UntagResource`` , and ``lambda:ListTags`` permissions for your `IAM principal <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html>`_ to manage the AWS CloudFormation stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.
|
|
4762
|
+
:param topics: The name of the Kafka topic.
|
|
4763
|
+
:param tumbling_window_in_seconds: (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.
|
|
4764
4764
|
'''
|
|
4765
4765
|
if __debug__:
|
|
4766
4766
|
type_hints = typing.get_type_hints(_typecheckingstub__2fc9432254acf5a7dbe3c68dcedbda61de1f0e804a81d20ae79e04857b83d419)
|
|
@@ -4831,7 +4831,7 @@ class CfnEventSourceMapping(
|
|
|
4831
4831
|
@builtins.property
|
|
4832
4832
|
@jsii.member(jsii_name="attrEventSourceMappingArn")
|
|
4833
4833
|
def attr_event_source_mapping_arn(self) -> builtins.str:
|
|
4834
|
-
'''The Amazon Resource Name (ARN) of the event source mapping
|
|
4834
|
+
'''The Amazon Resource Name (ARN) of the event source mapping.
|
|
4835
4835
|
|
|
4836
4836
|
:cloudformationAttribute: EventSourceMappingArn
|
|
4837
4837
|
'''
|
|
@@ -4840,7 +4840,7 @@ class CfnEventSourceMapping(
|
|
|
4840
4840
|
@builtins.property
|
|
4841
4841
|
@jsii.member(jsii_name="attrId")
|
|
4842
4842
|
def attr_id(self) -> builtins.str:
|
|
4843
|
-
'''
|
|
4843
|
+
'''The event source mapping's ID.
|
|
4844
4844
|
|
|
4845
4845
|
:cloudformationAttribute: Id
|
|
4846
4846
|
'''
|
|
@@ -4860,7 +4860,7 @@ class CfnEventSourceMapping(
|
|
|
4860
4860
|
@builtins.property
|
|
4861
4861
|
@jsii.member(jsii_name="functionName")
|
|
4862
4862
|
def function_name(self) -> builtins.str:
|
|
4863
|
-
'''The name of the Lambda function.'''
|
|
4863
|
+
'''The name or ARN of the Lambda function.'''
|
|
4864
4864
|
return typing.cast(builtins.str, jsii.get(self, "functionName"))
|
|
4865
4865
|
|
|
4866
4866
|
@function_name.setter
|
|
@@ -4875,7 +4875,7 @@ class CfnEventSourceMapping(
|
|
|
4875
4875
|
def amazon_managed_kafka_event_source_config(
|
|
4876
4876
|
self,
|
|
4877
4877
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty"]]:
|
|
4878
|
-
'''Specific configuration settings for an MSK event source.'''
|
|
4878
|
+
'''Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.'''
|
|
4879
4879
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty"]], jsii.get(self, "amazonManagedKafkaEventSourceConfig"))
|
|
4880
4880
|
|
|
4881
4881
|
@amazon_managed_kafka_event_source_config.setter
|
|
@@ -4891,7 +4891,7 @@ class CfnEventSourceMapping(
|
|
|
4891
4891
|
@builtins.property
|
|
4892
4892
|
@jsii.member(jsii_name="batchSize")
|
|
4893
4893
|
def batch_size(self) -> typing.Optional[jsii.Number]:
|
|
4894
|
-
'''The maximum number of
|
|
4894
|
+
'''The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function.'''
|
|
4895
4895
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "batchSize"))
|
|
4896
4896
|
|
|
4897
4897
|
@batch_size.setter
|
|
@@ -4906,7 +4906,7 @@ class CfnEventSourceMapping(
|
|
|
4906
4906
|
def bisect_batch_on_function_error(
|
|
4907
4907
|
self,
|
|
4908
4908
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
4909
|
-
'''(Streams) If the function returns an error, split the batch in two and retry.'''
|
|
4909
|
+
'''(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.'''
|
|
4910
4910
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "bisectBatchOnFunctionError"))
|
|
4911
4911
|
|
|
4912
4912
|
@bisect_batch_on_function_error.setter
|
|
@@ -4924,7 +4924,7 @@ class CfnEventSourceMapping(
|
|
|
4924
4924
|
def destination_config(
|
|
4925
4925
|
self,
|
|
4926
4926
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.DestinationConfigProperty"]]:
|
|
4927
|
-
'''A configuration object that specifies the destination of an event after Lambda processes it.'''
|
|
4927
|
+
'''(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A configuration object that specifies the destination of an event after Lambda processes it.'''
|
|
4928
4928
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.DestinationConfigProperty"]], jsii.get(self, "destinationConfig"))
|
|
4929
4929
|
|
|
4930
4930
|
@destination_config.setter
|
|
@@ -4942,7 +4942,7 @@ class CfnEventSourceMapping(
|
|
|
4942
4942
|
def document_db_event_source_config(
|
|
4943
4943
|
self,
|
|
4944
4944
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.DocumentDBEventSourceConfigProperty"]]:
|
|
4945
|
-
'''
|
|
4945
|
+
'''Specific configuration settings for a DocumentDB event source.'''
|
|
4946
4946
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.DocumentDBEventSourceConfigProperty"]], jsii.get(self, "documentDbEventSourceConfig"))
|
|
4947
4947
|
|
|
4948
4948
|
@document_db_event_source_config.setter
|
|
@@ -4960,7 +4960,10 @@ class CfnEventSourceMapping(
|
|
|
4960
4960
|
def enabled(
|
|
4961
4961
|
self,
|
|
4962
4962
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
4963
|
-
'''
|
|
4963
|
+
'''When true, the event source mapping is active.
|
|
4964
|
+
|
|
4965
|
+
When false, Lambda pauses polling and invocation.
|
|
4966
|
+
'''
|
|
4964
4967
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "enabled"))
|
|
4965
4968
|
|
|
4966
4969
|
@enabled.setter
|
|
@@ -4991,7 +4994,7 @@ class CfnEventSourceMapping(
|
|
|
4991
4994
|
def filter_criteria(
|
|
4992
4995
|
self,
|
|
4993
4996
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.FilterCriteriaProperty"]]:
|
|
4994
|
-
'''
|
|
4997
|
+
'''An object that defines the filter criteria that determine whether Lambda should process an event.'''
|
|
4995
4998
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.FilterCriteriaProperty"]], jsii.get(self, "filterCriteria"))
|
|
4996
4999
|
|
|
4997
5000
|
@filter_criteria.setter
|
|
@@ -5007,7 +5010,7 @@ class CfnEventSourceMapping(
|
|
|
5007
5010
|
@builtins.property
|
|
5008
5011
|
@jsii.member(jsii_name="functionResponseTypes")
|
|
5009
5012
|
def function_response_types(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
5010
|
-
'''(Streams) A list of response
|
|
5013
|
+
'''(Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping.'''
|
|
5011
5014
|
return typing.cast(typing.Optional[typing.List[builtins.str]], jsii.get(self, "functionResponseTypes"))
|
|
5012
5015
|
|
|
5013
5016
|
@function_response_types.setter
|
|
@@ -5023,7 +5026,7 @@ class CfnEventSourceMapping(
|
|
|
5023
5026
|
@builtins.property
|
|
5024
5027
|
@jsii.member(jsii_name="kmsKeyArn")
|
|
5025
5028
|
def kms_key_arn(self) -> typing.Optional[builtins.str]:
|
|
5026
|
-
'''The
|
|
5029
|
+
'''The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that Lambda uses to encrypt your function's `filter criteria <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics>`_ .'''
|
|
5027
5030
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "kmsKeyArn"))
|
|
5028
5031
|
|
|
5029
5032
|
@kms_key_arn.setter
|
|
@@ -5036,7 +5039,7 @@ class CfnEventSourceMapping(
|
|
|
5036
5039
|
@builtins.property
|
|
5037
5040
|
@jsii.member(jsii_name="maximumBatchingWindowInSeconds")
|
|
5038
5041
|
def maximum_batching_window_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
5039
|
-
'''
|
|
5042
|
+
'''The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.'''
|
|
5040
5043
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "maximumBatchingWindowInSeconds"))
|
|
5041
5044
|
|
|
5042
5045
|
@maximum_batching_window_in_seconds.setter
|
|
@@ -5052,7 +5055,7 @@ class CfnEventSourceMapping(
|
|
|
5052
5055
|
@builtins.property
|
|
5053
5056
|
@jsii.member(jsii_name="maximumRecordAgeInSeconds")
|
|
5054
5057
|
def maximum_record_age_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
5055
|
-
'''(
|
|
5058
|
+
'''(Kinesis and DynamoDB Streams only) Discard records older than the specified age.'''
|
|
5056
5059
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "maximumRecordAgeInSeconds"))
|
|
5057
5060
|
|
|
5058
5061
|
@maximum_record_age_in_seconds.setter
|
|
@@ -5068,7 +5071,7 @@ class CfnEventSourceMapping(
|
|
|
5068
5071
|
@builtins.property
|
|
5069
5072
|
@jsii.member(jsii_name="maximumRetryAttempts")
|
|
5070
5073
|
def maximum_retry_attempts(self) -> typing.Optional[jsii.Number]:
|
|
5071
|
-
'''(
|
|
5074
|
+
'''(Kinesis and DynamoDB Streams only) Discard records after the specified number of retries.'''
|
|
5072
5075
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "maximumRetryAttempts"))
|
|
5073
5076
|
|
|
5074
5077
|
@maximum_retry_attempts.setter
|
|
@@ -5083,7 +5086,7 @@ class CfnEventSourceMapping(
|
|
|
5083
5086
|
def metrics_config(
|
|
5084
5087
|
self,
|
|
5085
5088
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.MetricsConfigProperty"]]:
|
|
5086
|
-
'''
|
|
5089
|
+
'''The metrics configuration for your event source.'''
|
|
5087
5090
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.MetricsConfigProperty"]], jsii.get(self, "metricsConfig"))
|
|
5088
5091
|
|
|
5089
5092
|
@metrics_config.setter
|
|
@@ -5099,7 +5102,7 @@ class CfnEventSourceMapping(
|
|
|
5099
5102
|
@builtins.property
|
|
5100
5103
|
@jsii.member(jsii_name="parallelizationFactor")
|
|
5101
5104
|
def parallelization_factor(self) -> typing.Optional[jsii.Number]:
|
|
5102
|
-
'''(Streams) The number of batches to process from each shard
|
|
5105
|
+
'''(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard.'''
|
|
5103
5106
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "parallelizationFactor"))
|
|
5104
5107
|
|
|
5105
5108
|
@parallelization_factor.setter
|
|
@@ -5114,7 +5117,7 @@ class CfnEventSourceMapping(
|
|
|
5114
5117
|
def provisioned_poller_config(
|
|
5115
5118
|
self,
|
|
5116
5119
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.ProvisionedPollerConfigProperty"]]:
|
|
5117
|
-
'''
|
|
5120
|
+
'''(Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source.'''
|
|
5118
5121
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.ProvisionedPollerConfigProperty"]], jsii.get(self, "provisionedPollerConfig"))
|
|
5119
5122
|
|
|
5120
5123
|
@provisioned_poller_config.setter
|
|
@@ -5130,7 +5133,7 @@ class CfnEventSourceMapping(
|
|
|
5130
5133
|
@builtins.property
|
|
5131
5134
|
@jsii.member(jsii_name="queues")
|
|
5132
5135
|
def queues(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
5133
|
-
'''(
|
|
5136
|
+
'''(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.'''
|
|
5134
5137
|
return typing.cast(typing.Optional[typing.List[builtins.str]], jsii.get(self, "queues"))
|
|
5135
5138
|
|
|
5136
5139
|
@queues.setter
|
|
@@ -5145,7 +5148,7 @@ class CfnEventSourceMapping(
|
|
|
5145
5148
|
def scaling_config(
|
|
5146
5149
|
self,
|
|
5147
5150
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.ScalingConfigProperty"]]:
|
|
5148
|
-
'''The scaling configuration for the event source.'''
|
|
5151
|
+
'''(Amazon SQS only) The scaling configuration for the event source.'''
|
|
5149
5152
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.ScalingConfigProperty"]], jsii.get(self, "scalingConfig"))
|
|
5150
5153
|
|
|
5151
5154
|
@scaling_config.setter
|
|
@@ -5163,7 +5166,7 @@ class CfnEventSourceMapping(
|
|
|
5163
5166
|
def self_managed_event_source(
|
|
5164
5167
|
self,
|
|
5165
5168
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.SelfManagedEventSourceProperty"]]:
|
|
5166
|
-
'''The
|
|
5169
|
+
'''The self-managed Apache Kafka cluster for your event source.'''
|
|
5167
5170
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.SelfManagedEventSourceProperty"]], jsii.get(self, "selfManagedEventSource"))
|
|
5168
5171
|
|
|
5169
5172
|
@self_managed_event_source.setter
|
|
@@ -5181,7 +5184,7 @@ class CfnEventSourceMapping(
|
|
|
5181
5184
|
def self_managed_kafka_event_source_config(
|
|
5182
5185
|
self,
|
|
5183
5186
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty"]]:
|
|
5184
|
-
'''Specific configuration settings for a
|
|
5187
|
+
'''Specific configuration settings for a self-managed Apache Kafka event source.'''
|
|
5185
5188
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty"]], jsii.get(self, "selfManagedKafkaEventSourceConfig"))
|
|
5186
5189
|
|
|
5187
5190
|
@self_managed_kafka_event_source_config.setter
|
|
@@ -5199,7 +5202,7 @@ class CfnEventSourceMapping(
|
|
|
5199
5202
|
def source_access_configurations(
|
|
5200
5203
|
self,
|
|
5201
5204
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.SourceAccessConfigurationProperty"]]]]:
|
|
5202
|
-
'''
|
|
5205
|
+
'''An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.'''
|
|
5203
5206
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.SourceAccessConfigurationProperty"]]]], jsii.get(self, "sourceAccessConfigurations"))
|
|
5204
5207
|
|
|
5205
5208
|
@source_access_configurations.setter
|
|
@@ -5215,7 +5218,10 @@ class CfnEventSourceMapping(
|
|
|
5215
5218
|
@builtins.property
|
|
5216
5219
|
@jsii.member(jsii_name="startingPosition")
|
|
5217
5220
|
def starting_position(self) -> typing.Optional[builtins.str]:
|
|
5218
|
-
'''The position in a stream from which to start reading.
|
|
5221
|
+
'''The position in a stream from which to start reading.
|
|
5222
|
+
|
|
5223
|
+
Required for Amazon Kinesis and Amazon DynamoDB.
|
|
5224
|
+
'''
|
|
5219
5225
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "startingPosition"))
|
|
5220
5226
|
|
|
5221
5227
|
@starting_position.setter
|
|
@@ -5228,7 +5234,7 @@ class CfnEventSourceMapping(
|
|
|
5228
5234
|
@builtins.property
|
|
5229
5235
|
@jsii.member(jsii_name="startingPositionTimestamp")
|
|
5230
5236
|
def starting_position_timestamp(self) -> typing.Optional[jsii.Number]:
|
|
5231
|
-
'''With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time seconds.'''
|
|
5237
|
+
'''With ``StartingPosition`` set to ``AT_TIMESTAMP`` , the time from which to start reading, in Unix time seconds.'''
|
|
5232
5238
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "startingPositionTimestamp"))
|
|
5233
5239
|
|
|
5234
5240
|
@starting_position_timestamp.setter
|
|
@@ -5241,7 +5247,7 @@ class CfnEventSourceMapping(
|
|
|
5241
5247
|
@builtins.property
|
|
5242
5248
|
@jsii.member(jsii_name="tags")
|
|
5243
5249
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
5244
|
-
'''A list of tags to
|
|
5250
|
+
'''A list of tags to add to the event source mapping.'''
|
|
5245
5251
|
return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
|
|
5246
5252
|
|
|
5247
5253
|
@tags.setter
|
|
@@ -5254,7 +5260,7 @@ class CfnEventSourceMapping(
|
|
|
5254
5260
|
@builtins.property
|
|
5255
5261
|
@jsii.member(jsii_name="topics")
|
|
5256
5262
|
def topics(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
5257
|
-
'''
|
|
5263
|
+
'''The name of the Kafka topic.'''
|
|
5258
5264
|
return typing.cast(typing.Optional[typing.List[builtins.str]], jsii.get(self, "topics"))
|
|
5259
5265
|
|
|
5260
5266
|
@topics.setter
|
|
@@ -5267,7 +5273,7 @@ class CfnEventSourceMapping(
|
|
|
5267
5273
|
@builtins.property
|
|
5268
5274
|
@jsii.member(jsii_name="tumblingWindowInSeconds")
|
|
5269
5275
|
def tumbling_window_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
5270
|
-
'''(Streams)
|
|
5276
|
+
'''(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources.'''
|
|
5271
5277
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "tumblingWindowInSeconds"))
|
|
5272
5278
|
|
|
5273
5279
|
@tumbling_window_in_seconds.setter
|
|
@@ -5288,9 +5294,9 @@ class CfnEventSourceMapping(
|
|
|
5288
5294
|
*,
|
|
5289
5295
|
consumer_group_id: typing.Optional[builtins.str] = None,
|
|
5290
5296
|
) -> None:
|
|
5291
|
-
'''Specific configuration settings for an MSK event source.
|
|
5297
|
+
'''Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
|
5292
5298
|
|
|
5293
|
-
:param consumer_group_id: The identifier for the Kafka
|
|
5299
|
+
:param consumer_group_id: The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see `Customizable consumer group ID <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id>`_ .
|
|
5294
5300
|
|
|
5295
5301
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html
|
|
5296
5302
|
:exampleMetadata: fixture=_generated
|
|
@@ -5314,7 +5320,9 @@ class CfnEventSourceMapping(
|
|
|
5314
5320
|
|
|
5315
5321
|
@builtins.property
|
|
5316
5322
|
def consumer_group_id(self) -> typing.Optional[builtins.str]:
|
|
5317
|
-
'''The identifier for the Kafka
|
|
5323
|
+
'''The identifier for the Kafka consumer group to join.
|
|
5324
|
+
|
|
5325
|
+
The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see `Customizable consumer group ID <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id>`_ .
|
|
5318
5326
|
|
|
5319
5327
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig-consumergroupid
|
|
5320
5328
|
'''
|
|
@@ -5345,7 +5353,7 @@ class CfnEventSourceMapping(
|
|
|
5345
5353
|
) -> None:
|
|
5346
5354
|
'''A configuration object that specifies the destination of an event after Lambda processes it.
|
|
5347
5355
|
|
|
5348
|
-
:param on_failure:
|
|
5356
|
+
:param on_failure: The destination configuration for failed invocations.
|
|
5349
5357
|
|
|
5350
5358
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html
|
|
5351
5359
|
:exampleMetadata: fixture=_generated
|
|
@@ -5373,7 +5381,7 @@ class CfnEventSourceMapping(
|
|
|
5373
5381
|
def on_failure(
|
|
5374
5382
|
self,
|
|
5375
5383
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.OnFailureProperty"]]:
|
|
5376
|
-
'''
|
|
5384
|
+
'''The destination configuration for failed invocations.
|
|
5377
5385
|
|
|
5378
5386
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-destinationconfig.html#cfn-lambda-eventsourcemapping-destinationconfig-onfailure
|
|
5379
5387
|
'''
|
|
@@ -5408,11 +5416,11 @@ class CfnEventSourceMapping(
|
|
|
5408
5416
|
database_name: typing.Optional[builtins.str] = None,
|
|
5409
5417
|
full_document: typing.Optional[builtins.str] = None,
|
|
5410
5418
|
) -> None:
|
|
5411
|
-
'''
|
|
5419
|
+
'''Specific configuration settings for a DocumentDB event source.
|
|
5412
5420
|
|
|
5413
|
-
:param collection_name: The collection
|
|
5414
|
-
:param database_name: The database
|
|
5415
|
-
:param full_document:
|
|
5421
|
+
:param collection_name: The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
|
|
5422
|
+
:param database_name: The name of the database to consume within the DocumentDB cluster.
|
|
5423
|
+
:param full_document: Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
|
|
5416
5424
|
|
|
5417
5425
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html
|
|
5418
5426
|
:exampleMetadata: fixture=_generated
|
|
@@ -5444,7 +5452,9 @@ class CfnEventSourceMapping(
|
|
|
5444
5452
|
|
|
5445
5453
|
@builtins.property
|
|
5446
5454
|
def collection_name(self) -> typing.Optional[builtins.str]:
|
|
5447
|
-
'''The collection
|
|
5455
|
+
'''The name of the collection to consume within the database.
|
|
5456
|
+
|
|
5457
|
+
If you do not specify a collection, Lambda consumes all collections.
|
|
5448
5458
|
|
|
5449
5459
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-collectionname
|
|
5450
5460
|
'''
|
|
@@ -5453,7 +5463,7 @@ class CfnEventSourceMapping(
|
|
|
5453
5463
|
|
|
5454
5464
|
@builtins.property
|
|
5455
5465
|
def database_name(self) -> typing.Optional[builtins.str]:
|
|
5456
|
-
'''The database
|
|
5466
|
+
'''The name of the database to consume within the DocumentDB cluster.
|
|
5457
5467
|
|
|
5458
5468
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-databasename
|
|
5459
5469
|
'''
|
|
@@ -5462,9 +5472,9 @@ class CfnEventSourceMapping(
|
|
|
5462
5472
|
|
|
5463
5473
|
@builtins.property
|
|
5464
5474
|
def full_document(self) -> typing.Optional[builtins.str]:
|
|
5465
|
-
'''
|
|
5475
|
+
'''Determines what DocumentDB sends to your event stream during document update operations.
|
|
5466
5476
|
|
|
5467
|
-
|
|
5477
|
+
If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
|
|
5468
5478
|
|
|
5469
5479
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-documentdbeventsourceconfig.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig-fulldocument
|
|
5470
5480
|
'''
|
|
@@ -5493,9 +5503,9 @@ class CfnEventSourceMapping(
|
|
|
5493
5503
|
*,
|
|
5494
5504
|
kafka_bootstrap_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
5495
5505
|
) -> None:
|
|
5496
|
-
'''The
|
|
5506
|
+
'''The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]`` .
|
|
5497
5507
|
|
|
5498
|
-
:param kafka_bootstrap_servers:
|
|
5508
|
+
:param kafka_bootstrap_servers: The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]`` .
|
|
5499
5509
|
|
|
5500
5510
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-endpoints.html
|
|
5501
5511
|
:exampleMetadata: fixture=_generated
|
|
@@ -5519,7 +5529,7 @@ class CfnEventSourceMapping(
|
|
|
5519
5529
|
|
|
5520
5530
|
@builtins.property
|
|
5521
5531
|
def kafka_bootstrap_servers(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
5522
|
-
'''
|
|
5532
|
+
'''The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]`` .
|
|
5523
5533
|
|
|
5524
5534
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-endpoints.html#cfn-lambda-eventsourcemapping-endpoints-kafkabootstrapservers
|
|
5525
5535
|
'''
|
|
@@ -5548,9 +5558,9 @@ class CfnEventSourceMapping(
|
|
|
5548
5558
|
*,
|
|
5549
5559
|
filters: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnEventSourceMapping.FilterProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
5550
5560
|
) -> None:
|
|
5551
|
-
'''
|
|
5561
|
+
'''An object that contains the filters for an event source.
|
|
5552
5562
|
|
|
5553
|
-
:param filters:
|
|
5563
|
+
:param filters: A list of filters.
|
|
5554
5564
|
|
|
5555
5565
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filtercriteria.html
|
|
5556
5566
|
:exampleMetadata: fixture=_generated
|
|
@@ -5578,7 +5588,7 @@ class CfnEventSourceMapping(
|
|
|
5578
5588
|
def filters(
|
|
5579
5589
|
self,
|
|
5580
5590
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.FilterProperty"]]]]:
|
|
5581
|
-
'''
|
|
5591
|
+
'''A list of filters.
|
|
5582
5592
|
|
|
5583
5593
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filtercriteria.html#cfn-lambda-eventsourcemapping-filtercriteria-filters
|
|
5584
5594
|
'''
|
|
@@ -5603,9 +5613,9 @@ class CfnEventSourceMapping(
|
|
|
5603
5613
|
)
|
|
5604
5614
|
class FilterProperty:
|
|
5605
5615
|
def __init__(self, *, pattern: typing.Optional[builtins.str] = None) -> None:
|
|
5606
|
-
'''
|
|
5616
|
+
'''A structure within a ``FilterCriteria`` object that defines an event filtering pattern.
|
|
5607
5617
|
|
|
5608
|
-
:param pattern:
|
|
5618
|
+
:param pattern: A filter pattern. For more information on the syntax of a filter pattern, see `Filter rule syntax <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax>`_ .
|
|
5609
5619
|
|
|
5610
5620
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filter.html
|
|
5611
5621
|
:exampleMetadata: fixture=_generated
|
|
@@ -5629,7 +5639,9 @@ class CfnEventSourceMapping(
|
|
|
5629
5639
|
|
|
5630
5640
|
@builtins.property
|
|
5631
5641
|
def pattern(self) -> typing.Optional[builtins.str]:
|
|
5632
|
-
'''
|
|
5642
|
+
'''A filter pattern.
|
|
5643
|
+
|
|
5644
|
+
For more information on the syntax of a filter pattern, see `Filter rule syntax <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax>`_ .
|
|
5633
5645
|
|
|
5634
5646
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-filter.html#cfn-lambda-eventsourcemapping-filter-pattern
|
|
5635
5647
|
'''
|
|
@@ -5658,9 +5670,11 @@ class CfnEventSourceMapping(
|
|
|
5658
5670
|
*,
|
|
5659
5671
|
metrics: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
5660
5672
|
) -> None:
|
|
5661
|
-
'''
|
|
5673
|
+
'''The metrics configuration for your event source.
|
|
5674
|
+
|
|
5675
|
+
Use this configuration object to define which metrics you want your event source mapping to produce.
|
|
5662
5676
|
|
|
5663
|
-
:param metrics:
|
|
5677
|
+
:param metrics: The metrics you want your event source mapping to produce. Include ``EventCount`` to receive event source mapping metrics related to the number of events processed by your event source mapping. For more information about these metrics, see `Event source mapping metrics <https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics>`_ .
|
|
5664
5678
|
|
|
5665
5679
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-metricsconfig.html
|
|
5666
5680
|
:exampleMetadata: fixture=_generated
|
|
@@ -5684,7 +5698,9 @@ class CfnEventSourceMapping(
|
|
|
5684
5698
|
|
|
5685
5699
|
@builtins.property
|
|
5686
5700
|
def metrics(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
5687
|
-
'''
|
|
5701
|
+
'''The metrics you want your event source mapping to produce.
|
|
5702
|
+
|
|
5703
|
+
Include ``EventCount`` to receive event source mapping metrics related to the number of events processed by your event source mapping. For more information about these metrics, see `Event source mapping metrics <https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics>`_ .
|
|
5688
5704
|
|
|
5689
5705
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-metricsconfig.html#cfn-lambda-eventsourcemapping-metricsconfig-metrics
|
|
5690
5706
|
'''
|
|
@@ -5713,9 +5729,9 @@ class CfnEventSourceMapping(
|
|
|
5713
5729
|
*,
|
|
5714
5730
|
destination: typing.Optional[builtins.str] = None,
|
|
5715
5731
|
) -> None:
|
|
5716
|
-
'''A destination for
|
|
5732
|
+
'''A destination for events that failed processing.
|
|
5717
5733
|
|
|
5718
|
-
:param destination: The Amazon Resource Name (ARN) of the destination resource.
|
|
5734
|
+
:param destination: The Amazon Resource Name (ARN) of the destination resource. To retain records of unsuccessful `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, Lambda function, or Amazon EventBridge event bus as the destination. To retain records of failed invocations from `Kinesis <https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html>`_ , `DynamoDB <https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html>`_ , `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
|
|
5719
5735
|
|
|
5720
5736
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html
|
|
5721
5737
|
:exampleMetadata: fixture=_generated
|
|
@@ -5741,6 +5757,10 @@ class CfnEventSourceMapping(
|
|
|
5741
5757
|
def destination(self) -> typing.Optional[builtins.str]:
|
|
5742
5758
|
'''The Amazon Resource Name (ARN) of the destination resource.
|
|
5743
5759
|
|
|
5760
|
+
To retain records of unsuccessful `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, Lambda function, or Amazon EventBridge event bus as the destination.
|
|
5761
|
+
|
|
5762
|
+
To retain records of failed invocations from `Kinesis <https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html>`_ , `DynamoDB <https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html>`_ , `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
|
|
5763
|
+
|
|
5744
5764
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-onfailure.html#cfn-lambda-eventsourcemapping-onfailure-destination
|
|
5745
5765
|
'''
|
|
5746
5766
|
result = self._values.get("destination")
|
|
@@ -5772,10 +5792,10 @@ class CfnEventSourceMapping(
|
|
|
5772
5792
|
maximum_pollers: typing.Optional[jsii.Number] = None,
|
|
5773
5793
|
minimum_pollers: typing.Optional[jsii.Number] = None,
|
|
5774
5794
|
) -> None:
|
|
5775
|
-
'''
|
|
5795
|
+
'''The `provisioned mode <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode>`_ configuration for the event source. Use provisioned mode to customize the minimum and maximum number of event pollers for your event source.
|
|
5776
5796
|
|
|
5777
|
-
:param maximum_pollers:
|
|
5778
|
-
:param minimum_pollers:
|
|
5797
|
+
:param maximum_pollers: The maximum number of event pollers this event source can scale up to.
|
|
5798
|
+
:param minimum_pollers: The minimum number of event pollers this event source can scale down to.
|
|
5779
5799
|
|
|
5780
5800
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-provisionedpollerconfig.html
|
|
5781
5801
|
:exampleMetadata: fixture=_generated
|
|
@@ -5803,7 +5823,7 @@ class CfnEventSourceMapping(
|
|
|
5803
5823
|
|
|
5804
5824
|
@builtins.property
|
|
5805
5825
|
def maximum_pollers(self) -> typing.Optional[jsii.Number]:
|
|
5806
|
-
'''
|
|
5826
|
+
'''The maximum number of event pollers this event source can scale up to.
|
|
5807
5827
|
|
|
5808
5828
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-provisionedpollerconfig.html#cfn-lambda-eventsourcemapping-provisionedpollerconfig-maximumpollers
|
|
5809
5829
|
'''
|
|
@@ -5812,7 +5832,7 @@ class CfnEventSourceMapping(
|
|
|
5812
5832
|
|
|
5813
5833
|
@builtins.property
|
|
5814
5834
|
def minimum_pollers(self) -> typing.Optional[jsii.Number]:
|
|
5815
|
-
'''
|
|
5835
|
+
'''The minimum number of event pollers this event source can scale down to.
|
|
5816
5836
|
|
|
5817
5837
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-provisionedpollerconfig.html#cfn-lambda-eventsourcemapping-provisionedpollerconfig-minimumpollers
|
|
5818
5838
|
'''
|
|
@@ -5841,9 +5861,11 @@ class CfnEventSourceMapping(
|
|
|
5841
5861
|
*,
|
|
5842
5862
|
maximum_concurrency: typing.Optional[jsii.Number] = None,
|
|
5843
5863
|
) -> None:
|
|
5844
|
-
'''The scaling configuration for the event source.
|
|
5864
|
+
'''(Amazon SQS only) The scaling configuration for the event source.
|
|
5845
5865
|
|
|
5846
|
-
|
|
5866
|
+
To remove the configuration, pass an empty value.
|
|
5867
|
+
|
|
5868
|
+
:param maximum_concurrency: Limits the number of concurrent instances that the Amazon SQS event source can invoke.
|
|
5847
5869
|
|
|
5848
5870
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-scalingconfig.html
|
|
5849
5871
|
:exampleMetadata: fixture=_generated
|
|
@@ -5867,7 +5889,7 @@ class CfnEventSourceMapping(
|
|
|
5867
5889
|
|
|
5868
5890
|
@builtins.property
|
|
5869
5891
|
def maximum_concurrency(self) -> typing.Optional[jsii.Number]:
|
|
5870
|
-
'''
|
|
5892
|
+
'''Limits the number of concurrent instances that the Amazon SQS event source can invoke.
|
|
5871
5893
|
|
|
5872
5894
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-scalingconfig.html#cfn-lambda-eventsourcemapping-scalingconfig-maximumconcurrency
|
|
5873
5895
|
'''
|
|
@@ -5896,9 +5918,9 @@ class CfnEventSourceMapping(
|
|
|
5896
5918
|
*,
|
|
5897
5919
|
endpoints: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnEventSourceMapping.EndpointsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5898
5920
|
) -> None:
|
|
5899
|
-
'''The
|
|
5921
|
+
'''The self-managed Apache Kafka cluster for your event source.
|
|
5900
5922
|
|
|
5901
|
-
:param endpoints: The
|
|
5923
|
+
:param endpoints: The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]`` .
|
|
5902
5924
|
|
|
5903
5925
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedeventsource.html
|
|
5904
5926
|
:exampleMetadata: fixture=_generated
|
|
@@ -5926,7 +5948,7 @@ class CfnEventSourceMapping(
|
|
|
5926
5948
|
def endpoints(
|
|
5927
5949
|
self,
|
|
5928
5950
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnEventSourceMapping.EndpointsProperty"]]:
|
|
5929
|
-
'''The
|
|
5951
|
+
'''The list of bootstrap servers for your Kafka brokers in the following format: ``"KafkaBootstrapServers": ["abc.xyz.com:xxxx","abc2.xyz.com:xxxx"]`` .
|
|
5930
5952
|
|
|
5931
5953
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedeventsource.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource-endpoints
|
|
5932
5954
|
'''
|
|
@@ -5955,9 +5977,9 @@ class CfnEventSourceMapping(
|
|
|
5955
5977
|
*,
|
|
5956
5978
|
consumer_group_id: typing.Optional[builtins.str] = None,
|
|
5957
5979
|
) -> None:
|
|
5958
|
-
'''Specific configuration settings for a
|
|
5980
|
+
'''Specific configuration settings for a self-managed Apache Kafka event source.
|
|
5959
5981
|
|
|
5960
|
-
:param consumer_group_id: The identifier for the Kafka
|
|
5982
|
+
:param consumer_group_id: The identifier for the Kafka consumer group to join. The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see `Customizable consumer group ID <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id>`_ .
|
|
5961
5983
|
|
|
5962
5984
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html
|
|
5963
5985
|
:exampleMetadata: fixture=_generated
|
|
@@ -5981,7 +6003,9 @@ class CfnEventSourceMapping(
|
|
|
5981
6003
|
|
|
5982
6004
|
@builtins.property
|
|
5983
6005
|
def consumer_group_id(self) -> typing.Optional[builtins.str]:
|
|
5984
|
-
'''The identifier for the Kafka
|
|
6006
|
+
'''The identifier for the Kafka consumer group to join.
|
|
6007
|
+
|
|
6008
|
+
The consumer group ID must be unique among all your Kafka event sources. After creating a Kafka event source mapping with the consumer group ID specified, you cannot update this value. For more information, see `Customizable consumer group ID <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-consumer-group-id>`_ .
|
|
5985
6009
|
|
|
5986
6010
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig-consumergroupid
|
|
5987
6011
|
'''
|
|
@@ -6011,10 +6035,10 @@ class CfnEventSourceMapping(
|
|
|
6011
6035
|
type: typing.Optional[builtins.str] = None,
|
|
6012
6036
|
uri: typing.Optional[builtins.str] = None,
|
|
6013
6037
|
) -> None:
|
|
6014
|
-
'''
|
|
6038
|
+
'''An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
|
|
6015
6039
|
|
|
6016
|
-
:param type: The type of source access
|
|
6017
|
-
:param uri: The
|
|
6040
|
+
:param type: The type of authentication protocol, VPC components, or virtual host for your event source. For example: ``"Type":"SASL_SCRAM_512_AUTH"`` . - ``BASIC_AUTH`` – (Amazon MQ) The AWS Secrets Manager secret that stores your broker credentials. - ``BASIC_AUTH`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers. - ``VPC_SUBNET`` – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster. - ``VPC_SECURITY_GROUP`` – (Self-managed Apache Kafka) The VPC security group used to manage access to your self-managed Apache Kafka brokers. - ``SASL_SCRAM_256_AUTH`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers. - ``SASL_SCRAM_512_AUTH`` – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers. - ``VIRTUAL_HOST`` –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call. - ``CLIENT_CERTIFICATE_TLS_AUTH`` – (Amazon MSK, self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers. - ``SERVER_ROOT_CA_CERTIFICATE`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.
|
|
6041
|
+
:param uri: The value for your chosen configuration in ``Type`` . For example: ``"URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"`` .
|
|
6018
6042
|
|
|
6019
6043
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html
|
|
6020
6044
|
:exampleMetadata: fixture=_generated
|
|
@@ -6042,7 +6066,17 @@ class CfnEventSourceMapping(
|
|
|
6042
6066
|
|
|
6043
6067
|
@builtins.property
|
|
6044
6068
|
def type(self) -> typing.Optional[builtins.str]:
|
|
6045
|
-
'''The type of source
|
|
6069
|
+
'''The type of authentication protocol, VPC components, or virtual host for your event source. For example: ``"Type":"SASL_SCRAM_512_AUTH"`` .
|
|
6070
|
+
|
|
6071
|
+
- ``BASIC_AUTH`` – (Amazon MQ) The AWS Secrets Manager secret that stores your broker credentials.
|
|
6072
|
+
- ``BASIC_AUTH`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.
|
|
6073
|
+
- ``VPC_SUBNET`` – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.
|
|
6074
|
+
- ``VPC_SECURITY_GROUP`` – (Self-managed Apache Kafka) The VPC security group used to manage access to your self-managed Apache Kafka brokers.
|
|
6075
|
+
- ``SASL_SCRAM_256_AUTH`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.
|
|
6076
|
+
- ``SASL_SCRAM_512_AUTH`` – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.
|
|
6077
|
+
- ``VIRTUAL_HOST`` –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call.
|
|
6078
|
+
- ``CLIENT_CERTIFICATE_TLS_AUTH`` – (Amazon MSK, self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.
|
|
6079
|
+
- ``SERVER_ROOT_CA_CERTIFICATE`` – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.
|
|
6046
6080
|
|
|
6047
6081
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html#cfn-lambda-eventsourcemapping-sourceaccessconfiguration-type
|
|
6048
6082
|
'''
|
|
@@ -6051,7 +6085,9 @@ class CfnEventSourceMapping(
|
|
|
6051
6085
|
|
|
6052
6086
|
@builtins.property
|
|
6053
6087
|
def uri(self) -> typing.Optional[builtins.str]:
|
|
6054
|
-
'''The
|
|
6088
|
+
'''The value for your chosen configuration in ``Type`` .
|
|
6089
|
+
|
|
6090
|
+
For example: ``"URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName"`` .
|
|
6055
6091
|
|
|
6056
6092
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventsourcemapping-sourceaccessconfiguration.html#cfn-lambda-eventsourcemapping-sourceaccessconfiguration-uri
|
|
6057
6093
|
'''
|
|
@@ -6137,33 +6173,33 @@ class CfnEventSourceMappingProps:
|
|
|
6137
6173
|
) -> None:
|
|
6138
6174
|
'''Properties for defining a ``CfnEventSourceMapping``.
|
|
6139
6175
|
|
|
6140
|
-
:param function_name: The name of the Lambda function.
|
|
6141
|
-
:param amazon_managed_kafka_event_source_config: Specific configuration settings for an MSK event source.
|
|
6142
|
-
:param batch_size: The maximum number of
|
|
6143
|
-
:param bisect_batch_on_function_error: (Streams) If the function returns an error, split the batch in two and retry.
|
|
6144
|
-
:param destination_config: A configuration object that specifies the destination of an event after Lambda processes it.
|
|
6145
|
-
:param document_db_event_source_config:
|
|
6146
|
-
:param enabled:
|
|
6147
|
-
:param event_source_arn: The Amazon Resource Name (ARN) of the event source.
|
|
6148
|
-
:param filter_criteria:
|
|
6149
|
-
:param function_response_types: (Streams) A list of response
|
|
6150
|
-
:param kms_key_arn: The
|
|
6151
|
-
:param maximum_batching_window_in_seconds:
|
|
6152
|
-
:param maximum_record_age_in_seconds: (Streams) The maximum age
|
|
6153
|
-
:param maximum_retry_attempts: (Streams) The maximum number of
|
|
6154
|
-
:param metrics_config:
|
|
6155
|
-
:param parallelization_factor: (Streams) The number of batches to process from each shard
|
|
6156
|
-
:param provisioned_poller_config:
|
|
6157
|
-
:param queues: (
|
|
6158
|
-
:param scaling_config: The scaling configuration for the event source.
|
|
6159
|
-
:param self_managed_event_source: The
|
|
6160
|
-
:param self_managed_kafka_event_source_config: Specific configuration settings for a
|
|
6161
|
-
:param source_access_configurations:
|
|
6162
|
-
:param starting_position: The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB
|
|
6163
|
-
:param starting_position_timestamp: With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time seconds.
|
|
6164
|
-
:param tags: A list of tags to
|
|
6165
|
-
:param topics:
|
|
6166
|
-
:param tumbling_window_in_seconds: (Streams)
|
|
6176
|
+
:param function_name: The name or ARN of the Lambda function. **Name formats** - *Function name* – ``MyFunction`` . - *Function ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction`` . - *Version or Alias ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`` . - *Partial ARN* – ``123456789012:function:MyFunction`` . The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
|
|
6177
|
+
:param amazon_managed_kafka_event_source_config: Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
|
6178
|
+
:param batch_size: The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function. Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB). - *Amazon Kinesis* – Default 100. Max 10,000. - *Amazon DynamoDB Streams* – Default 100. Max 10,000. - *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10. - *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000. - *Self-managed Apache Kafka* – Default 100. Max 10,000. - *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000. - *DocumentDB* – Default 100. Max 10,000.
|
|
6179
|
+
:param bisect_batch_on_function_error: (Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry. The default value is false.
|
|
6180
|
+
:param destination_config: (Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A configuration object that specifies the destination of an event after Lambda processes it.
|
|
6181
|
+
:param document_db_event_source_config: Specific configuration settings for a DocumentDB event source.
|
|
6182
|
+
:param enabled: When true, the event source mapping is active. When false, Lambda pauses polling and invocation. Default: True
|
|
6183
|
+
:param event_source_arn: The Amazon Resource Name (ARN) of the event source. - *Amazon Kinesis* – The ARN of the data stream or a stream consumer. - *Amazon DynamoDB Streams* – The ARN of the stream. - *Amazon Simple Queue Service* – The ARN of the queue. - *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC connection (for `cross-account event source mappings <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc>`_ ). - *Amazon MQ* – The ARN of the broker. - *Amazon DocumentDB* – The ARN of the DocumentDB change stream.
|
|
6184
|
+
:param filter_criteria: An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see `Lambda event filtering <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html>`_ .
|
|
6185
|
+
:param function_response_types: (Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping. Valid Values: ``ReportBatchItemFailures``
|
|
6186
|
+
:param kms_key_arn: The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that Lambda uses to encrypt your function's `filter criteria <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics>`_ .
|
|
6187
|
+
:param maximum_batching_window_in_seconds: The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. *Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0 *Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms *Related setting:* For Amazon SQS event sources, when you set ``BatchSize`` to a value greater than 10, you must set ``MaximumBatchingWindowInSeconds`` to at least 1.
|
|
6188
|
+
:param maximum_record_age_in_seconds: (Kinesis and DynamoDB Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records. .. epigraph:: The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed
|
|
6189
|
+
:param maximum_retry_attempts: (Kinesis and DynamoDB Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
|
|
6190
|
+
:param metrics_config: The metrics configuration for your event source. For more information, see `Event source mapping metrics <https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics>`_ .
|
|
6191
|
+
:param parallelization_factor: (Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard. The default value is 1.
|
|
6192
|
+
:param provisioned_poller_config: (Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source. For more information, see `provisioned mode <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode>`_ .
|
|
6193
|
+
:param queues: (Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
|
|
6194
|
+
:param scaling_config: (Amazon SQS only) The scaling configuration for the event source. For more information, see `Configuring maximum concurrency for Amazon SQS event sources <https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency>`_ .
|
|
6195
|
+
:param self_managed_event_source: The self-managed Apache Kafka cluster for your event source.
|
|
6196
|
+
:param self_managed_kafka_event_source_config: Specific configuration settings for a self-managed Apache Kafka event source.
|
|
6197
|
+
:param source_access_configurations: An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
|
|
6198
|
+
:param starting_position: The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB. - *LATEST* - Read only new records. - *TRIM_HORIZON* - Process all available records. - *AT_TIMESTAMP* - Specify a time from which to start reading records.
|
|
6199
|
+
:param starting_position_timestamp: With ``StartingPosition`` set to ``AT_TIMESTAMP`` , the time from which to start reading, in Unix time seconds. ``StartingPositionTimestamp`` cannot be in the future.
|
|
6200
|
+
:param tags: A list of tags to add to the event source mapping. .. epigraph:: You must have the ``lambda:TagResource`` , ``lambda:UntagResource`` , and ``lambda:ListTags`` permissions for your `IAM principal <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html>`_ to manage the AWS CloudFormation stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.
|
|
6201
|
+
:param topics: The name of the Kafka topic.
|
|
6202
|
+
:param tumbling_window_in_seconds: (Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources. A value of 0 seconds indicates no tumbling window.
|
|
6167
6203
|
|
|
6168
6204
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html
|
|
6169
6205
|
:exampleMetadata: fixture=_generated
|
|
@@ -6326,7 +6362,15 @@ class CfnEventSourceMappingProps:
|
|
|
6326
6362
|
|
|
6327
6363
|
@builtins.property
|
|
6328
6364
|
def function_name(self) -> builtins.str:
|
|
6329
|
-
'''The name of the Lambda function.
|
|
6365
|
+
'''The name or ARN of the Lambda function.
|
|
6366
|
+
|
|
6367
|
+
**Name formats** - *Function name* – ``MyFunction`` .
|
|
6368
|
+
|
|
6369
|
+
- *Function ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction`` .
|
|
6370
|
+
- *Version or Alias ARN* – ``arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD`` .
|
|
6371
|
+
- *Partial ARN* – ``123456789012:function:MyFunction`` .
|
|
6372
|
+
|
|
6373
|
+
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
|
|
6330
6374
|
|
|
6331
6375
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionname
|
|
6332
6376
|
'''
|
|
@@ -6338,7 +6382,7 @@ class CfnEventSourceMappingProps:
|
|
|
6338
6382
|
def amazon_managed_kafka_event_source_config(
|
|
6339
6383
|
self,
|
|
6340
6384
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty]]:
|
|
6341
|
-
'''Specific configuration settings for an MSK event source.
|
|
6385
|
+
'''Specific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.
|
|
6342
6386
|
|
|
6343
6387
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-amazonmanagedkafkaeventsourceconfig
|
|
6344
6388
|
'''
|
|
@@ -6347,7 +6391,17 @@ class CfnEventSourceMappingProps:
|
|
|
6347
6391
|
|
|
6348
6392
|
@builtins.property
|
|
6349
6393
|
def batch_size(self) -> typing.Optional[jsii.Number]:
|
|
6350
|
-
'''The maximum number of
|
|
6394
|
+
'''The maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function.
|
|
6395
|
+
|
|
6396
|
+
Lambda passes all of the records in the batch to the function in a single call, up to the payload limit for synchronous invocation (6 MB).
|
|
6397
|
+
|
|
6398
|
+
- *Amazon Kinesis* – Default 100. Max 10,000.
|
|
6399
|
+
- *Amazon DynamoDB Streams* – Default 100. Max 10,000.
|
|
6400
|
+
- *Amazon Simple Queue Service* – Default 10. For standard queues the max is 10,000. For FIFO queues the max is 10.
|
|
6401
|
+
- *Amazon Managed Streaming for Apache Kafka* – Default 100. Max 10,000.
|
|
6402
|
+
- *Self-managed Apache Kafka* – Default 100. Max 10,000.
|
|
6403
|
+
- *Amazon MQ (ActiveMQ and RabbitMQ)* – Default 100. Max 10,000.
|
|
6404
|
+
- *DocumentDB* – Default 100. Max 10,000.
|
|
6351
6405
|
|
|
6352
6406
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-batchsize
|
|
6353
6407
|
'''
|
|
@@ -6358,7 +6412,9 @@ class CfnEventSourceMappingProps:
|
|
|
6358
6412
|
def bisect_batch_on_function_error(
|
|
6359
6413
|
self,
|
|
6360
6414
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
6361
|
-
'''(Streams) If the function returns an error, split the batch in two and retry.
|
|
6415
|
+
'''(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.
|
|
6416
|
+
|
|
6417
|
+
The default value is false.
|
|
6362
6418
|
|
|
6363
6419
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror
|
|
6364
6420
|
'''
|
|
@@ -6369,7 +6425,7 @@ class CfnEventSourceMappingProps:
|
|
|
6369
6425
|
def destination_config(
|
|
6370
6426
|
self,
|
|
6371
6427
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.DestinationConfigProperty]]:
|
|
6372
|
-
'''A configuration object that specifies the destination of an event after Lambda processes it.
|
|
6428
|
+
'''(Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka event sources only) A configuration object that specifies the destination of an event after Lambda processes it.
|
|
6373
6429
|
|
|
6374
6430
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-destinationconfig
|
|
6375
6431
|
'''
|
|
@@ -6380,7 +6436,7 @@ class CfnEventSourceMappingProps:
|
|
|
6380
6436
|
def document_db_event_source_config(
|
|
6381
6437
|
self,
|
|
6382
6438
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.DocumentDBEventSourceConfigProperty]]:
|
|
6383
|
-
'''
|
|
6439
|
+
'''Specific configuration settings for a DocumentDB event source.
|
|
6384
6440
|
|
|
6385
6441
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-documentdbeventsourceconfig
|
|
6386
6442
|
'''
|
|
@@ -6391,7 +6447,9 @@ class CfnEventSourceMappingProps:
|
|
|
6391
6447
|
def enabled(
|
|
6392
6448
|
self,
|
|
6393
6449
|
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
6394
|
-
'''
|
|
6450
|
+
'''When true, the event source mapping is active. When false, Lambda pauses polling and invocation.
|
|
6451
|
+
|
|
6452
|
+
Default: True
|
|
6395
6453
|
|
|
6396
6454
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-enabled
|
|
6397
6455
|
'''
|
|
@@ -6402,6 +6460,13 @@ class CfnEventSourceMappingProps:
|
|
|
6402
6460
|
def event_source_arn(self) -> typing.Optional[builtins.str]:
|
|
6403
6461
|
'''The Amazon Resource Name (ARN) of the event source.
|
|
6404
6462
|
|
|
6463
|
+
- *Amazon Kinesis* – The ARN of the data stream or a stream consumer.
|
|
6464
|
+
- *Amazon DynamoDB Streams* – The ARN of the stream.
|
|
6465
|
+
- *Amazon Simple Queue Service* – The ARN of the queue.
|
|
6466
|
+
- *Amazon Managed Streaming for Apache Kafka* – The ARN of the cluster or the ARN of the VPC connection (for `cross-account event source mappings <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#msk-multi-vpc>`_ ).
|
|
6467
|
+
- *Amazon MQ* – The ARN of the broker.
|
|
6468
|
+
- *Amazon DocumentDB* – The ARN of the DocumentDB change stream.
|
|
6469
|
+
|
|
6405
6470
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-eventsourcearn
|
|
6406
6471
|
'''
|
|
6407
6472
|
result = self._values.get("event_source_arn")
|
|
@@ -6411,7 +6476,9 @@ class CfnEventSourceMappingProps:
|
|
|
6411
6476
|
def filter_criteria(
|
|
6412
6477
|
self,
|
|
6413
6478
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.FilterCriteriaProperty]]:
|
|
6414
|
-
'''
|
|
6479
|
+
'''An object that defines the filter criteria that determine whether Lambda should process an event.
|
|
6480
|
+
|
|
6481
|
+
For more information, see `Lambda event filtering <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html>`_ .
|
|
6415
6482
|
|
|
6416
6483
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-filtercriteria
|
|
6417
6484
|
'''
|
|
@@ -6420,7 +6487,9 @@ class CfnEventSourceMappingProps:
|
|
|
6420
6487
|
|
|
6421
6488
|
@builtins.property
|
|
6422
6489
|
def function_response_types(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
6423
|
-
'''(Streams) A list of response
|
|
6490
|
+
'''(Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping.
|
|
6491
|
+
|
|
6492
|
+
Valid Values: ``ReportBatchItemFailures``
|
|
6424
6493
|
|
|
6425
6494
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-functionresponsetypes
|
|
6426
6495
|
'''
|
|
@@ -6429,7 +6498,7 @@ class CfnEventSourceMappingProps:
|
|
|
6429
6498
|
|
|
6430
6499
|
@builtins.property
|
|
6431
6500
|
def kms_key_arn(self) -> typing.Optional[builtins.str]:
|
|
6432
|
-
'''The
|
|
6501
|
+
'''The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that Lambda uses to encrypt your function's `filter criteria <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-basics>`_ .
|
|
6433
6502
|
|
|
6434
6503
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-kmskeyarn
|
|
6435
6504
|
'''
|
|
@@ -6438,7 +6507,13 @@ class CfnEventSourceMappingProps:
|
|
|
6438
6507
|
|
|
6439
6508
|
@builtins.property
|
|
6440
6509
|
def maximum_batching_window_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
6441
|
-
'''
|
|
6510
|
+
'''The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.
|
|
6511
|
+
|
|
6512
|
+
*Default ( Kinesis , DynamoDB , Amazon SQS event sources)* : 0
|
|
6513
|
+
|
|
6514
|
+
*Default ( Amazon MSK , Kafka, Amazon MQ , Amazon DocumentDB event sources)* : 500 ms
|
|
6515
|
+
|
|
6516
|
+
*Related setting:* For Amazon SQS event sources, when you set ``BatchSize`` to a value greater than 10, you must set ``MaximumBatchingWindowInSeconds`` to at least 1.
|
|
6442
6517
|
|
|
6443
6518
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumbatchingwindowinseconds
|
|
6444
6519
|
'''
|
|
@@ -6447,7 +6522,13 @@ class CfnEventSourceMappingProps:
|
|
|
6447
6522
|
|
|
6448
6523
|
@builtins.property
|
|
6449
6524
|
def maximum_record_age_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
6450
|
-
'''(
|
|
6525
|
+
'''(Kinesis and DynamoDB Streams only) Discard records older than the specified age.
|
|
6526
|
+
|
|
6527
|
+
The default value is -1,
|
|
6528
|
+
which sets the maximum age to infinite. When the value is set to infinite, Lambda never discards old records.
|
|
6529
|
+
.. epigraph::
|
|
6530
|
+
|
|
6531
|
+
The minimum valid value for maximum record age is 60s. Although values less than 60 and greater than -1 fall within the parameter's absolute range, they are not allowed
|
|
6451
6532
|
|
|
6452
6533
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumrecordageinseconds
|
|
6453
6534
|
'''
|
|
@@ -6456,7 +6537,10 @@ class CfnEventSourceMappingProps:
|
|
|
6456
6537
|
|
|
6457
6538
|
@builtins.property
|
|
6458
6539
|
def maximum_retry_attempts(self) -> typing.Optional[jsii.Number]:
|
|
6459
|
-
'''(
|
|
6540
|
+
'''(Kinesis and DynamoDB Streams only) Discard records after the specified number of retries.
|
|
6541
|
+
|
|
6542
|
+
The default value is -1,
|
|
6543
|
+
which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, Lambda retries failed records until the record expires in the event source.
|
|
6460
6544
|
|
|
6461
6545
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-maximumretryattempts
|
|
6462
6546
|
'''
|
|
@@ -6467,7 +6551,9 @@ class CfnEventSourceMappingProps:
|
|
|
6467
6551
|
def metrics_config(
|
|
6468
6552
|
self,
|
|
6469
6553
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.MetricsConfigProperty]]:
|
|
6470
|
-
'''
|
|
6554
|
+
'''The metrics configuration for your event source.
|
|
6555
|
+
|
|
6556
|
+
For more information, see `Event source mapping metrics <https://docs.aws.amazon.com/lambda/latest/dg/monitoring-metrics-types.html#event-source-mapping-metrics>`_ .
|
|
6471
6557
|
|
|
6472
6558
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-metricsconfig
|
|
6473
6559
|
'''
|
|
@@ -6476,7 +6562,9 @@ class CfnEventSourceMappingProps:
|
|
|
6476
6562
|
|
|
6477
6563
|
@builtins.property
|
|
6478
6564
|
def parallelization_factor(self) -> typing.Optional[jsii.Number]:
|
|
6479
|
-
'''(Streams) The number of batches to process from each shard
|
|
6565
|
+
'''(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard.
|
|
6566
|
+
|
|
6567
|
+
The default value is 1.
|
|
6480
6568
|
|
|
6481
6569
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-parallelizationfactor
|
|
6482
6570
|
'''
|
|
@@ -6487,7 +6575,9 @@ class CfnEventSourceMappingProps:
|
|
|
6487
6575
|
def provisioned_poller_config(
|
|
6488
6576
|
self,
|
|
6489
6577
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.ProvisionedPollerConfigProperty]]:
|
|
6490
|
-
'''
|
|
6578
|
+
'''(Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source.
|
|
6579
|
+
|
|
6580
|
+
For more information, see `provisioned mode <https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventsourcemapping.html#invocation-eventsourcemapping-provisioned-mode>`_ .
|
|
6491
6581
|
|
|
6492
6582
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-provisionedpollerconfig
|
|
6493
6583
|
'''
|
|
@@ -6496,7 +6586,7 @@ class CfnEventSourceMappingProps:
|
|
|
6496
6586
|
|
|
6497
6587
|
@builtins.property
|
|
6498
6588
|
def queues(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
6499
|
-
'''(
|
|
6589
|
+
'''(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.
|
|
6500
6590
|
|
|
6501
6591
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-queues
|
|
6502
6592
|
'''
|
|
@@ -6507,7 +6597,9 @@ class CfnEventSourceMappingProps:
|
|
|
6507
6597
|
def scaling_config(
|
|
6508
6598
|
self,
|
|
6509
6599
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.ScalingConfigProperty]]:
|
|
6510
|
-
'''The scaling configuration for the event source.
|
|
6600
|
+
'''(Amazon SQS only) The scaling configuration for the event source.
|
|
6601
|
+
|
|
6602
|
+
For more information, see `Configuring maximum concurrency for Amazon SQS event sources <https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#events-sqs-max-concurrency>`_ .
|
|
6511
6603
|
|
|
6512
6604
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-scalingconfig
|
|
6513
6605
|
'''
|
|
@@ -6518,7 +6610,7 @@ class CfnEventSourceMappingProps:
|
|
|
6518
6610
|
def self_managed_event_source(
|
|
6519
6611
|
self,
|
|
6520
6612
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.SelfManagedEventSourceProperty]]:
|
|
6521
|
-
'''The
|
|
6613
|
+
'''The self-managed Apache Kafka cluster for your event source.
|
|
6522
6614
|
|
|
6523
6615
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedeventsource
|
|
6524
6616
|
'''
|
|
@@ -6529,7 +6621,7 @@ class CfnEventSourceMappingProps:
|
|
|
6529
6621
|
def self_managed_kafka_event_source_config(
|
|
6530
6622
|
self,
|
|
6531
6623
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty]]:
|
|
6532
|
-
'''Specific configuration settings for a
|
|
6624
|
+
'''Specific configuration settings for a self-managed Apache Kafka event source.
|
|
6533
6625
|
|
|
6534
6626
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-selfmanagedkafkaeventsourceconfig
|
|
6535
6627
|
'''
|
|
@@ -6540,7 +6632,7 @@ class CfnEventSourceMappingProps:
|
|
|
6540
6632
|
def source_access_configurations(
|
|
6541
6633
|
self,
|
|
6542
6634
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnEventSourceMapping.SourceAccessConfigurationProperty]]]]:
|
|
6543
|
-
'''
|
|
6635
|
+
'''An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.
|
|
6544
6636
|
|
|
6545
6637
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-sourceaccessconfigurations
|
|
6546
6638
|
'''
|
|
@@ -6549,9 +6641,11 @@ class CfnEventSourceMappingProps:
|
|
|
6549
6641
|
|
|
6550
6642
|
@builtins.property
|
|
6551
6643
|
def starting_position(self) -> typing.Optional[builtins.str]:
|
|
6552
|
-
'''The position in a stream from which to start reading.
|
|
6644
|
+
'''The position in a stream from which to start reading. Required for Amazon Kinesis and Amazon DynamoDB.
|
|
6553
6645
|
|
|
6554
|
-
|
|
6646
|
+
- *LATEST* - Read only new records.
|
|
6647
|
+
- *TRIM_HORIZON* - Process all available records.
|
|
6648
|
+
- *AT_TIMESTAMP* - Specify a time from which to start reading records.
|
|
6555
6649
|
|
|
6556
6650
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingposition
|
|
6557
6651
|
'''
|
|
@@ -6560,7 +6654,9 @@ class CfnEventSourceMappingProps:
|
|
|
6560
6654
|
|
|
6561
6655
|
@builtins.property
|
|
6562
6656
|
def starting_position_timestamp(self) -> typing.Optional[jsii.Number]:
|
|
6563
|
-
'''With StartingPosition set to AT_TIMESTAMP, the time from which to start reading, in Unix time seconds.
|
|
6657
|
+
'''With ``StartingPosition`` set to ``AT_TIMESTAMP`` , the time from which to start reading, in Unix time seconds.
|
|
6658
|
+
|
|
6659
|
+
``StartingPositionTimestamp`` cannot be in the future.
|
|
6564
6660
|
|
|
6565
6661
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-startingpositiontimestamp
|
|
6566
6662
|
'''
|
|
@@ -6569,7 +6665,11 @@ class CfnEventSourceMappingProps:
|
|
|
6569
6665
|
|
|
6570
6666
|
@builtins.property
|
|
6571
6667
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
6572
|
-
'''A list of tags to
|
|
6668
|
+
'''A list of tags to add to the event source mapping.
|
|
6669
|
+
|
|
6670
|
+
.. epigraph::
|
|
6671
|
+
|
|
6672
|
+
You must have the ``lambda:TagResource`` , ``lambda:UntagResource`` , and ``lambda:ListTags`` permissions for your `IAM principal <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html>`_ to manage the AWS CloudFormation stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.
|
|
6573
6673
|
|
|
6574
6674
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tags
|
|
6575
6675
|
'''
|
|
@@ -6578,7 +6678,7 @@ class CfnEventSourceMappingProps:
|
|
|
6578
6678
|
|
|
6579
6679
|
@builtins.property
|
|
6580
6680
|
def topics(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
6581
|
-
'''
|
|
6681
|
+
'''The name of the Kafka topic.
|
|
6582
6682
|
|
|
6583
6683
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics
|
|
6584
6684
|
'''
|
|
@@ -6587,7 +6687,9 @@ class CfnEventSourceMappingProps:
|
|
|
6587
6687
|
|
|
6588
6688
|
@builtins.property
|
|
6589
6689
|
def tumbling_window_in_seconds(self) -> typing.Optional[jsii.Number]:
|
|
6590
|
-
'''(Streams)
|
|
6690
|
+
'''(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources.
|
|
6691
|
+
|
|
6692
|
+
A value of 0 seconds indicates no tumbling window.
|
|
6591
6693
|
|
|
6592
6694
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-tumblingwindowinseconds
|
|
6593
6695
|
'''
|
|
@@ -11455,7 +11557,7 @@ class Code(metaclass=jsii.JSIIAbstractClass, jsii_type="aws-cdk-lib.aws_lambda.C
|
|
|
11455
11557
|
def from_inline(cls, code: builtins.str) -> "InlineCode":
|
|
11456
11558
|
'''Inline code for Lambda handler.
|
|
11457
11559
|
|
|
11458
|
-
:param code: The actual handler code (
|
|
11560
|
+
:param code: The actual handler code (the resulting zip file cannot exceed 4MB).
|
|
11459
11561
|
|
|
11460
11562
|
:return: ``LambdaInlineCode`` with inline code.
|
|
11461
11563
|
'''
|