public void ResumeLambda(string functionName) { var res = lambdaClient.DeleteFunctionConcurrencyAsync( new DeleteFunctionConcurrencyRequest { FunctionName = functionName }); var lambda = lambdaRepository.Find(x => x.FunctionName.Equals(functionName)); lambda.Status = LambdaStatus.AllowExecution; }
private Amazon.Lambda.Model.DeleteFunctionConcurrencyResponse CallAWSServiceOperation(IAmazonLambda client, Amazon.Lambda.Model.DeleteFunctionConcurrencyRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Lambda", "DeleteFunctionConcurrency"); try { #if DESKTOP return(client.DeleteFunctionConcurrency(request)); #elif CORECLR return(client.DeleteFunctionConcurrencyAsync(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; } }