public void LambdaGetFunctionEventInvokeConfig() { #region to-get-an-asynchronous-invocation-configuration-1586481338463 var response = client.GetFunctionEventInvokeConfig(new GetFunctionEventInvokeConfigRequest { FunctionName = "my-function", Qualifier = "BLUE" }); DestinationConfig destinationConfig = response.DestinationConfig; string functionArn = response.FunctionArn; DateTime lastModified = response.LastModified; int maximumEventAgeInSeconds = response.MaximumEventAgeInSeconds; int maximumRetryAttempts = response.MaximumRetryAttempts; #endregion }
private Amazon.Lambda.Model.GetFunctionEventInvokeConfigResponse CallAWSServiceOperation(IAmazonLambda client, Amazon.Lambda.Model.GetFunctionEventInvokeConfigRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Lambda", "GetFunctionEventInvokeConfig"); try { #if DESKTOP return(client.GetFunctionEventInvokeConfig(request)); #elif CORECLR return(client.GetFunctionEventInvokeConfigAsync(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; } }