public void LambdaCreateEventSourceMapping()
        {
            #region to-create-a-mapping-between-an-event-source-and-an-aws-lambda-function-1586480555467

            var response = client.CreateEventSourceMapping(new CreateEventSourceMappingRequest
            {
                BatchSize      = 5,
                EventSourceArn = "arn:aws:sqs:us-west-2:123456789012:my-queue",
                FunctionName   = "my-function"
            });

            int      batchSize             = response.BatchSize;
            string   eventSourceArn        = response.EventSourceArn;
            string   functionArn           = response.FunctionArn;
            DateTime lastModified          = response.LastModified;
            string   state                 = response.State;
            string   stateTransitionReason = response.StateTransitionReason;
            string   uuid = response.UUID;

            #endregion
        }
 private Amazon.Lambda.Model.CreateEventSourceMappingResponse CallAWSServiceOperation(IAmazonLambda client, Amazon.Lambda.Model.CreateEventSourceMappingRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Lambda", "CreateEventSourceMapping");
     try
     {
         #if DESKTOP
         return(client.CreateEventSourceMapping(request));
         #elif CORECLR
         return(client.CreateEventSourceMappingAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }