Class CfnEventSourceMappingProps.Jsii$Proxy
- All Implemented Interfaces:
CfnEventSourceMappingProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnEventSourceMappingProps
CfnEventSourceMappingProps-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.CfnEventSourceMappingProps
CfnEventSourceMappingProps.Builder, CfnEventSourceMappingProps.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnEventSourceMappingProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal ObjectSpecific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.final NumberThe maximum number of records in each batch that Lambda pulls from your stream or queue and sends to your function.final Object(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.final Object(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.final ObjectSpecific configuration settings for a DocumentDB event source.final ObjectWhen true, the event source mapping is active.final StringThe Amazon Resource Name (ARN) of the event source.final ObjectAn object that defines the filter criteria that determine whether Lambda should process an event.final StringThe name or ARN of the Lambda function.(Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping.final StringThe ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that Lambda uses to encrypt your function's filter criteria .final NumberThe maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function.final Number(Kinesis and DynamoDB Streams only) Discard records older than the specified age.final Number(Kinesis and DynamoDB Streams only) Discard records after the specified number of retries.final ObjectThe metrics configuration for your event source.final Number(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard.final Object(Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source.(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.final Object(Amazon SQS only) The scaling configuration for the event source.final ObjectThe self-managed Apache Kafka cluster for your event source.final ObjectSpecific configuration settings for a self-managed Apache Kafka event source.final ObjectAn array of the authentication protocol, VPC components, or virtual host to secure and define your event source.final StringThe position in a stream from which to start reading.final NumberWithStartingPositionset toAT_TIMESTAMP, the time from which to start reading, in Unix time seconds.getTags()A list of tags to add to the event source mapping.The name of the Kafka topic.final Number(Kinesis and DynamoDB Streams only) The duration in seconds of a processing window for DynamoDB and Kinesis Streams event sources.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnEventSourceMappingProps.Builder.
-
-
Method Details
-
getFunctionName
Description copied from interface:CfnEventSourceMappingPropsThe 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.
- Specified by:
getFunctionNamein interfaceCfnEventSourceMappingProps- See Also:
- Function ARN –
-
getAmazonManagedKafkaEventSourceConfig
Description copied from interface:CfnEventSourceMappingPropsSpecific configuration settings for an Amazon Managed Streaming for Apache Kafka (Amazon MSK) event source.Returns union: either
IResolvableorCfnEventSourceMapping.AmazonManagedKafkaEventSourceConfigProperty- Specified by:
getAmazonManagedKafkaEventSourceConfigin interfaceCfnEventSourceMappingProps- See Also:
-
getBatchSize
Description copied from interface:CfnEventSourceMappingPropsThe 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.
- Specified by:
getBatchSizein interfaceCfnEventSourceMappingProps- See Also:
-
getBisectBatchOnFunctionError
Description copied from interface:CfnEventSourceMappingProps(Kinesis and DynamoDB Streams only) If the function returns an error, split the batch in two and retry.The default value is false.
When using
BisectBatchOnFunctionError, check theBatchSizeparameter in theOnFailuredestination message's metadata. TheBatchSizecould be greater than 1 since Lambda consolidates failed messages metadata when writing to theOnFailuredestination.Returns union: either
BooleanorIResolvable- Specified by:
getBisectBatchOnFunctionErrorin interfaceCfnEventSourceMappingProps- See Also:
-
getDestinationConfig
Description copied from interface:CfnEventSourceMappingProps(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.Returns union: either
IResolvableorCfnEventSourceMapping.DestinationConfigProperty- Specified by:
getDestinationConfigin interfaceCfnEventSourceMappingProps- See Also:
-
getDocumentDbEventSourceConfig
Description copied from interface:CfnEventSourceMappingPropsSpecific configuration settings for a DocumentDB event source.Returns union: either
IResolvableorCfnEventSourceMapping.DocumentDBEventSourceConfigProperty- Specified by:
getDocumentDbEventSourceConfigin interfaceCfnEventSourceMappingProps- See Also:
-
getEnabled
Description copied from interface:CfnEventSourceMappingPropsWhen true, the event source mapping is active. When false, Lambda pauses polling and invocation.Default: True
Returns union: either
BooleanorIResolvable- Specified by:
getEnabledin interfaceCfnEventSourceMappingProps- See Also:
-
getEventSourceArn
Description copied from interface:CfnEventSourceMappingPropsThe 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 ).
- Amazon MQ – The ARN of the broker.
- Amazon DocumentDB – The ARN of the DocumentDB change stream.
- Specified by:
getEventSourceArnin interfaceCfnEventSourceMappingProps- See Also:
-
getFilterCriteria
Description copied from interface:CfnEventSourceMappingPropsAn object that defines the filter criteria that determine whether Lambda should process an event.For more information, see Lambda event filtering .
Returns union: either
IResolvableorCfnEventSourceMapping.FilterCriteriaProperty- Specified by:
getFilterCriteriain interfaceCfnEventSourceMappingProps- See Also:
-
getFunctionResponseTypes
Description copied from interface:CfnEventSourceMappingProps(Kinesis, DynamoDB Streams, and SQS) A list of current response type enums applied to the event source mapping.Valid Values:
ReportBatchItemFailures- Specified by:
getFunctionResponseTypesin interfaceCfnEventSourceMappingProps- See Also:
-
getKmsKeyArn
Description copied from interface:CfnEventSourceMappingPropsThe ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that Lambda uses to encrypt your function's filter criteria .- Specified by:
getKmsKeyArnin interfaceCfnEventSourceMappingProps- See Also:
-
getMaximumBatchingWindowInSeconds
Description copied from interface:CfnEventSourceMappingPropsThe 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
BatchSizeto a value greater than 10, you must setMaximumBatchingWindowInSecondsto at least 1.- Specified by:
getMaximumBatchingWindowInSecondsin interfaceCfnEventSourceMappingProps- See Also:
-
getMaximumRecordAgeInSeconds
Description copied from interface:CfnEventSourceMappingProps(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.
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
- Specified by:
getMaximumRecordAgeInSecondsin interfaceCfnEventSourceMappingProps- See Also:
-
getMaximumRetryAttempts
Description copied from interface:CfnEventSourceMappingProps(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.
- Specified by:
getMaximumRetryAttemptsin interfaceCfnEventSourceMappingProps- See Also:
-
getMetricsConfig
Description copied from interface:CfnEventSourceMappingPropsThe metrics configuration for your event source.For more information, see Event source mapping metrics .
Returns union: either
IResolvableorCfnEventSourceMapping.MetricsConfigProperty- Specified by:
getMetricsConfigin interfaceCfnEventSourceMappingProps- See Also:
-
getParallelizationFactor
Description copied from interface:CfnEventSourceMappingProps(Kinesis and DynamoDB Streams only) The number of batches to process concurrently from each shard.The default value is 1.
- Specified by:
getParallelizationFactorin interfaceCfnEventSourceMappingProps- See Also:
-
getProvisionedPollerConfig
Description copied from interface:CfnEventSourceMappingProps(Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source.For more information, see provisioned mode .
Returns union: either
IResolvableorCfnEventSourceMapping.ProvisionedPollerConfigProperty- Specified by:
getProvisionedPollerConfigin interfaceCfnEventSourceMappingProps- See Also:
-
getQueues
Description copied from interface:CfnEventSourceMappingProps(Amazon MQ) The name of the Amazon MQ broker destination queue to consume.- Specified by:
getQueuesin interfaceCfnEventSourceMappingProps- See Also:
-
getScalingConfig
Description copied from interface:CfnEventSourceMappingProps(Amazon SQS only) The scaling configuration for the event source.For more information, see Configuring maximum concurrency for Amazon SQS event sources .
Returns union: either
IResolvableorCfnEventSourceMapping.ScalingConfigProperty- Specified by:
getScalingConfigin interfaceCfnEventSourceMappingProps- See Also:
-
getSelfManagedEventSource
Description copied from interface:CfnEventSourceMappingPropsThe self-managed Apache Kafka cluster for your event source.Returns union: either
IResolvableorCfnEventSourceMapping.SelfManagedEventSourceProperty- Specified by:
getSelfManagedEventSourcein interfaceCfnEventSourceMappingProps- See Also:
-
getSelfManagedKafkaEventSourceConfig
Description copied from interface:CfnEventSourceMappingPropsSpecific configuration settings for a self-managed Apache Kafka event source.Returns union: either
IResolvableorCfnEventSourceMapping.SelfManagedKafkaEventSourceConfigProperty- Specified by:
getSelfManagedKafkaEventSourceConfigin interfaceCfnEventSourceMappingProps- See Also:
-
getSourceAccessConfigurations
Description copied from interface:CfnEventSourceMappingPropsAn array of the authentication protocol, VPC components, or virtual host to secure and define your event source.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnEventSourceMapping.SourceAccessConfigurationProperty>- Specified by:
getSourceAccessConfigurationsin interfaceCfnEventSourceMappingProps- See Also:
-
getStartingPosition
Description copied from interface:CfnEventSourceMappingPropsThe 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.
- Specified by:
getStartingPositionin interfaceCfnEventSourceMappingProps- See Also:
-
getStartingPositionTimestamp
Description copied from interface:CfnEventSourceMappingPropsWithStartingPositionset toAT_TIMESTAMP, the time from which to start reading, in Unix time seconds.StartingPositionTimestampcannot be in the future.- Specified by:
getStartingPositionTimestampin interfaceCfnEventSourceMappingProps- See Also:
-
getTags
Description copied from interface:CfnEventSourceMappingPropsA list of tags to add to the event source mapping.You must have the
lambda:TagResource,lambda:UntagResource, andlambda:ListTagspermissions for your IAM principal 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.- Specified by:
getTagsin interfaceCfnEventSourceMappingProps- See Also:
-
getTopics
Description copied from interface:CfnEventSourceMappingPropsThe name of the Kafka topic.- Specified by:
getTopicsin interfaceCfnEventSourceMappingProps- See Also:
-
getTumblingWindowInSeconds
Description copied from interface:CfnEventSourceMappingProps(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.
- Specified by:
getTumblingWindowInSecondsin interfaceCfnEventSourceMappingProps- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-