Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ResourceFactory.prototype.makeDynamoDBStreamEventSourceMapping = function () {
return new cloudform_1.Lambda.EventSourceMapping({
BatchSize: 100,
Enabled: true,
EventSourceArn: cloudform_1.Fn.GetAtt(amplify_graphql_transformer_common_1.ResourceConstants.RESOURCES.DynamoDBModelTableLogicalID, 'StreamArn'),
FunctionName: cloudform_1.Fn.GetAtt(amplify_graphql_transformer_common_1.ResourceConstants.RESOURCES.ElasticSearchStreamingLambdaFunctionLogicalID, 'Arn'),
StartingPosition: 'TRIM_HORIZON'
});
};
/**
ResourceFactory.prototype.makeDynamoDBStreamEventSourceMapping = function () {
return new cloudform_1.Lambda.EventSourceMapping({
BatchSize: 100,
Enabled: true,
EventSourceArn: cloudform_1.Fn.GetAtt(ResourceFactory.DynamoDBTableLogicalID, 'StreamArn'),
FunctionName: cloudform_1.Fn.GetAtt(ResourceFactory.StreamingLambdaFunctionLogicalID, 'Arn'),
StartingPosition: 'TRIM_HORIZON'
});
};
/**