public void LambdaDeleteEventSourceMapping()
        {
            #region to-delete-a-lambda-function-event-source-mapping-1481658973862

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

            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
        }
示例#2
0
        public void LambdaDeleteEventSourceMapping()
        {
            #region to-delete-a-lambda-function-event-source-mapping-1481658973862

            var response = client.DeleteEventSourceMapping(new DeleteEventSourceMappingRequest 
            {
                UUID = "12345kxodurf3443"
            });

            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
        }
示例#3
0
 private Amazon.Lambda.Model.DeleteEventSourceMappingResponse CallAWSServiceOperation(IAmazonLambda client, Amazon.Lambda.Model.DeleteEventSourceMappingRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Lambda", "DeleteEventSourceMapping");
     try
     {
         #if DESKTOP
         return(client.DeleteEventSourceMapping(request));
         #elif CORECLR
         return(client.DeleteEventSourceMappingAsync(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;
     }
 }