using System;
using System.Collections.Generic;
using Amazon.Lambda.Model;
using Amazon.Lambda.Model.Internal.MarshallTransformations;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.Lambda
{
public partial class AmazonLambdaClient : AmazonServiceClient, IAmazonLambda
{
///
/// Submits an invocation request to Lambda. Upon receiving the request, Lambda executes
/// the specified cloud function asynchronously. To see the logs generated by the cloud
/// function execution, see the CloudWatch logs console.
///
/// This operation requires permission for the lambda:InvokeAsync
action.
///
///
/// The InvokeArgs will be set to an empty json document.
///
///
/// The cloud function to invoke.
/// The response from the InvokeAsync service method, as returned by Lambda.
///
///
///
public InvokeAsyncResponse InvokeAsync(string functionName)
{
return this.InvokeAsync(functionName, "{}");
}
///
/// Submits an invocation request to Lambda. Upon receiving the request, Lambda executes
/// the specified cloud function asynchronously. To see the logs generated by the cloud
/// function execution, see the CloudWatch logs console.
///
/// This operation requires permission for the lambda:InvokeAsync
action.
///
///
/// The cloud function to invoke.
/// A Json document that will be passed to the cloud function.
/// The response from the InvokeAsync service method, as returned by Lambda.
///
///
///
public InvokeAsyncResponse InvokeAsync(string functionName, string invokeArgs)
{
#pragma warning disable 618
return this.InvokeAsync(new InvokeAsyncRequest { FunctionName = functionName, InvokeArgs = invokeArgs });
#pragma warning restore 618
}
}
}