| 1 | |||
| 2 | package Paws::Lambda::InvocationResponse; | ||
| 3 | use Moose; | ||
| 4 | has ExecutedVersion => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'X-Amz-Executed-Version'); | ||
| 5 | has FunctionError => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'X-Amz-Function-Error'); | ||
| 6 | has LogResult => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'X-Amz-Log-Result'); | ||
| 7 | has Payload => (is => 'ro', isa => 'Str'); | ||
| 8 | has StatusCode => (is => 'ro', isa => 'Int'); | ||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | class_has _stream_param => (is => 'ro', default => 'Payload'); | ||
| 11 | has _request_id => (is => 'ro', isa => 'Str'); | ||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::Lambda::InvocationResponse | ||
| 19 | |||
| 20 | =head1 ATTRIBUTES | ||
| 21 | |||
| 22 | |||
| 23 | =head2 ExecutedVersion => Str | ||
| 24 | |||
| 25 | The version of the function that executed. When you invoke a function | ||
| 26 | with an alias, this indicates which version the alias resolved to. | ||
| 27 | |||
| 28 | |||
| 29 | =head2 FunctionError => Str | ||
| 30 | |||
| 31 | If present, indicates that an error occurred during function execution. | ||
| 32 | Details about the error are included in the response payload. | ||
| 33 | |||
| 34 | |||
| 35 | =head2 LogResult => Str | ||
| 36 | |||
| 37 | The last 4 KB of the execution log, which is base64 encoded. | ||
| 38 | |||
| 39 | |||
| 40 | =head2 Payload => Str | ||
| 41 | |||
| 42 | The response from the function, or an error object. | ||
| 43 | |||
| 44 | |||
| 45 | =head2 StatusCode => Int | ||
| 46 | |||
| 47 | The HTTP status code is in the 200 range for a successful request. For | ||
| 48 | the C<RequestResponse> invocation type, this status code is 200. For | ||
| 49 | the C<Event> invocation type, this status code is 202. For the | ||
| 50 | C<DryRun> invocation type, the status code is 204. | ||
| 51 | |||
| 52 | |||
| 53 | =head2 _request_id => Str | ||
| 54 | |||
| 55 | |||
| 56 | =cut | ||
| 57 |