You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: event_source_mapping.rb
    path of file: ./repos/jets/lib/jets/cfn/resource/lambda
    
    the code of the file until where you have to start completion: # Note the Lambda function timeout must be less than or equal to the sqs queue default timeout.
module Jets::Cfn::Resource::Lambda
  class EventSourceMapping < Jets::Cfn::Base
    def initialize(props={})
      @props = props # associated_properties from dsl.rb
    end

    def definition
      # Cloud
    
    def definition
      # CloudFormation Docs: https://amzn.to/2WM6165
      properties = {
        # BatchSize: 10, # Defaults: Kinesis 100, DynamoDB Streams: 100, SQS: 10
        # Enabled: boolean,
        # EventSourceArn: string, # required
        FunctionName: "!Ref {namespace}LambdaFunction",
        # StartingPosition: string # reqiured for Required for Amazon Kinesis and Amazon DynamoDB Streams sources
      }
      properties.merge!(@props)

      {
        event_source_mapping_logical_id => {
          Type: "AWS::Lambda::EventSourceMapping",
          Properties: properties
        }
      }
    end