File Coverage

blib/lib/Paws/Lambda/InvocationResponse.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::Lambda::InvocationResponse;
3 1     1   385 use Moose;
  1         3  
  1         7  
4             has FunctionError => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'X-Amz-Function-Error');
5             has LogResult => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'X-Amz-Log-Result');
6             has Payload => (is => 'ro', isa => 'Str');
7             has StatusCode => (is => 'ro', isa => 'Int');
8 1     1   5563 use MooseX::ClassAttribute;
  1         2  
  1         9  
9             class_has _stream_param => (is => 'ro', default => 'Payload');
10             has _request_id => (is => 'ro', isa => 'Str');
11             1;
12              
13             ### main pod documentation begin ###
14              
15             =head1 NAME
16              
17             Paws::Lambda::InvocationResponse
18              
19             =head1 ATTRIBUTES
20              
21              
22             =head2 FunctionError => Str
23              
24             Indicates whether an error occurred while executing the Lambda
25             function. If an error occurred this field will have one of two values;
26             C<Handled> or C<Unhandled>. C<Handled> errors are errors that are
27             reported by the function while the C<Unhandled> errors are those
28             detected and reported by AWS Lambda. Unhandled errors include out of
29             memory errors and function timeouts. For information about how to
30             report an C<Handled> error, see Programming Model.
31              
32              
33             =head2 LogResult => Str
34              
35             It is the base64-encoded logs for the Lambda function invocation. This
36             is present only if the invocation type is C<RequestResponse> and the
37             logs were requested.
38              
39              
40             =head2 Payload => Str
41              
42             It is the JSON representation of the object returned by the Lambda
43             function. This is present only if the invocation type is
44             C<RequestResponse>.
45              
46             In the event of a function error this field contains a message
47             describing the error. For the C<Handled> errors the Lambda function
48             will report this message. For C<Unhandled> errors AWS Lambda reports
49             the message.
50              
51              
52             =head2 StatusCode => Int
53              
54             The HTTP status code will be in the 200 range for successful request.
55             For the C<RequestResponse> invocation type this status code will be
56             200. For the C<Event> invocation type this status code will be 202. For
57             the C<DryRun> invocation type the status code will be 204.
58              
59              
60             =head2 _request_id => Str
61              
62              
63             =cut
64