Exemplo n.º 1
0
        public void LambdaGetEventSourceMapping()
        {
            #region to-retrieve-a-lambda-functions-event-source-mapping-1481661622799

            var response = client.GetEventSourceMapping(new GetEventSourceMappingRequest 
            {
                UUID = "123489-xxxxx-kdla8d89d7"
            });

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

            #endregion
        }
Exemplo n.º 2
0
 private Amazon.Lambda.Model.GetEventSourceMappingResponse CallAWSServiceOperation(IAmazonLambda client, Amazon.Lambda.Model.GetEventSourceMappingRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Lambda", "GetEventSourceMapping");
     try
     {
         #if DESKTOP
         return(client.GetEventSourceMapping(request));
         #elif CORECLR
         return(client.GetEventSourceMappingAsync(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;
     }
 }
        public void LambdaGetEventSourceMapping()
        {
            #region to-get-a-lambda-functions-event-source-mapping-1481661622799

            var response = client.GetEventSourceMapping(new GetEventSourceMappingRequest
            {
                UUID = "14e0db71-xmpl-4eb5-b481-8945cf9d10c2"
            });

            int  batchSize = response.BatchSize;
            bool bisectBatchOnFunctionError        = response.BisectBatchOnFunctionError;
            DestinationConfig destinationConfig    = response.DestinationConfig;
            string            eventSourceArn       = response.EventSourceArn;
            string            functionArn          = response.FunctionArn;
            DateTime          lastModified         = response.LastModified;
            string            lastProcessingResult = response.LastProcessingResult;
            int    maximumRecordAgeInSeconds       = response.MaximumRecordAgeInSeconds;
            int    maximumRetryAttempts            = response.MaximumRetryAttempts;
            string state = response.State;
            string stateTransitionReason = response.StateTransitionReason;
            string uuid = response.UUID;

            #endregion
        }