# DynamoDB Streams Custom Checkpoint (functionResponseType property)

**URL:** <https://forum.serverless.com/t/dynamodb-streams-custom-checkpoint-functionresponsetype-property/15618>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [July 24, 2021, 3:04am UTC](https://forum.serverless.com/t/dynamodb-streams-custom-checkpoint-functionresponsetype-property/15618 "2021-07-24T03:04:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boxed](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@boxed](https://forum.serverless.com/u/boxed)\
**Post date:** [July 24, 2021, 3:04am UTC](https://forum.serverless.com/t/dynamodb-streams-custom-checkpoint-functionresponsetype-property/15618/1 "2021-07-24T03:04:48Z")

</div>

Hello,

In AWS, we’ve added a DynamoDB stream to trigger a Lambda function using the enclosed serverless.yml configuration. We are able to get all the DynamoDB Stream properties set and work except the following property.

```auto
functionResponseType: ReportBatchItemFailures

(Set that property as per the following documentation https://www.serverless.com/framework/docs/providers/aws/events/streams/#setting-the-functionresponsetypes)

```

We are getting the following error while sls deploy to AWS

(ran the sls deploy using cicd/Jenkins

- serverless-domain-manager@5.1.3  
added 21 packages from 70 contributors and audited 21 packages in 3.134s)

**Serverless: Configuration warning at ‘functions.\<lambda\_function\>.events[0].stream’: unrecognized property 'functionResponseType’**

As per the AWS documentation ( [AWS::Lambda::EventSourceMapping - AWS CloudFormation (amazon.com)](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-bisectbatchonfunctionerror), this property is a List value and also the property name itself is plural.  
i.e., functionResponseType **s** : **[**‘ReportBatchItemFailures’**]**

So, I’ve tried the serverless.yml config with following possible combinations and still got the same error as listed above.  
functionResponseType: ReportBatchItemFailure  
functionResponseType: [‘ReportBatchItemFailures’]  
functionResponseTypes: ReportBatchItemFailures  
functionResponseTypes: [‘ReportBatchItemFailures’]

As per the following PR [feat(AWS Stream): Add support for custom checkpoint by imewish · Pull Request #9056 · serverless/serverless · GitHub](https://github.com/serverless/serverless/pull/9056)  
the following syntax should work, but it’s not working.

functionResponseType: ReportBatchItemFailure

This is the only property giving problem out of all DynamoDB stream properties.

Here is our serverless.yml DynamoDB Stream Event mapping for Lambda (obscured some of the values):

lambdaName:  
events:  
- stream:  
type: dynamodb  
arn: ${self:custom.StreamARN}  
enabled: true  
batchSize: 100  
batchWindow: 20  
parallelizationFactor: 5  
functionResponseType: ReportBatchItemFailures  
# functionResponseType: [‘ReportBatchItemFailures’]  
# functionResponseTypes: ReportBatchItemFailures  
# functionResponseTypes: [‘ReportBatchItemFailures’]  
maximumRecordAgeInSeconds: -1  
destinations:  
onFailure:  
arn: ${self:custom.StreamQueueARN}  
type: sqs  
maximumRetryAttempts: 10  
bisectBatchOnFunctionError: true  
startingPosition: TRIM\_HORIZON  
runtime: java11  
handler: com.xxxx.yyyy.lambda.config.lambda\_function  
name: ${self:custom.lambda\_function}

I’ve already spent lot of time troubleshooting this issue. Appreciate if you could please help.

Thanks,  
@boxed

---

<div class="post-metadata">

**Author:** ![boxed](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@boxed](https://forum.serverless.com/u/boxed)\
**Post date:** [July 26, 2021, 5:02pm UTC](https://forum.serverless.com/t/dynamodb-streams-custom-checkpoint-functionresponsetype-property/15618/2 "2021-07-26T17:02:57Z")

</div>

Appreciate if anyone could share whether they’re able to get this DynamoDB Streams property worked in their serverless.yml file. If so, could you please share the yml configuration for it.

**functionResponseType: ReportBatchItemFailures**

---

<div class="post-metadata">

**Author:** ![boxed](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@boxed](https://forum.serverless.com/u/boxed)\
**Post date:** [July 30, 2021, 1:19am UTC](https://forum.serverless.com/t/dynamodb-streams-custom-checkpoint-functionresponsetype-property/15618/3 "2021-07-30T01:19:57Z")

</div>

> [@boxed](#):
>
> As per the following PR [feat(AWS Stream): Add support for custom checkpoint by imewish · Pull Request #9056 · serverless/serverless · GitHub](https://github.com/serverless/serverless/pull/9056)

Being new to this forum, I’m wondering how do I bring this to the attention of [serverless.com](http://serverless.com). As mentioned in my initial post, we are getting the error even after making the changes as per the above merged PR.

Appreciate any help in this regard.

Thanks,  
@boxed
