NAME

Paws::Lambda::Invoke - Arguments for method Invoke on Paws::Lambda

DESCRIPTION

This class represents the parameters used for calling the method Invoke on the AWS Lambda service. Use the attributes of this class as arguments to method Invoke.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to Invoke.

As an example:

$service_obj->Invoke(Att1 => $value1, Att2 => $value2, ...);

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.

ATTRIBUTES

ClientContext => Str

Using the C<ClientContext> you can pass client-specific information to
the Lambda function you are invoking. You can then process the client
information in your Lambda function as you choose through the context
variable. For an example of a ClientContext JSON, go to PutEvents in
the I<Amazon Mobile Analytics API Reference and User Guide>.

The ClientContext JSON must be base64-encoded.

REQUIRED FunctionName => Str

The Lambda function name.

You can specify an unqualified function name (for example, "Thumbnail") or you can specify Amazon Resource Name (ARN) of the function (for example, "arn:aws:lambda:us-west-2:account-id:function:ThumbNail"). AWS Lambda also allows you to specify only the account ID qualifier (for example, "account-id:Thumbnail"). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.

InvocationType => Str

By default, the C<Invoke> API assumes "RequestResponse" invocation
type. You can optionally request asynchronous execution by specifying
"Event" as the C<InvocationType>. You can also use this parameter to
request AWS Lambda to not execute the function but do some
verification, such as if the caller is authorized to invoke the
function and if the inputs are valid. You request this by specifying
"DryRun" as the C<InvocationType>. This is useful in a cross-account
scenario when you want to verify access to a function without running
it.

LogType => Str

You can set this optional parameter to "Tail" in the request only if
you specify the C<InvocationType> parameter with value
"RequestResponse". In this case, AWS Lambda returns the base64-encoded
last 4 KB of log data produced by your Lambda function in the
C<x-amz-log-results> header.

Payload => Str

JSON that you want to provide to your Lambda function as input.

Qualifier => Str

You can use this optional paramter to specify a Lambda function version
or alias name. If you specify function version, the API uses qualified
function ARN to invoke a specific Lambda function. If you specify alias
name, the API uses the alias ARN to invoke the Lambda function version
to which the alias points.

If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the $LATEST version.

SEE ALSO

This class forms part of Paws, documenting arguments for method Invoke in Paws::Lambda

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues