AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

InvokeOutput

import "github.com/aws/aws-sdk-go/service/lambda"

type InvokeOutput struct { ExecutedVersion *string `location:"header" locationName:"X-Amz-Executed-Version" min:"1" type:"string"` FunctionError *string `location:"header" locationName:"X-Amz-Function-Error" type:"string"` LogResult *string `location:"header" locationName:"X-Amz-Log-Result" type:"string"` Payload []byte `type:"blob" sensitive:"true"` StatusCode *int64 `location:"statusCode" type:"integer"` }

ExecutedVersion

Type: *string

The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.

FunctionError

Type: *string

If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.

  • Handled - The runtime caught an error thrown by the function and formatted it into a JSON document.

  • Unhandled - The runtime didn't handle the error. For example, the function ran out of memory or timed out.

LogResult

Type: *string

The last 4 KB of the execution log, which is base64 encoded.

Payload

Type: []byte

The response from the function, or an error object.

StatusCode

Type: *int64

The HTTP status code is in the 200 range for a successful request. For the RequestResponse invocation type, this status code is 200. For the Event invocation type, this status code is 202. For the DryRun invocation type, the status code is 204.

Method

GoString

func (s InvokeOutput) GoString() string

GoString returns the string representation

SetExecutedVersion

func (s *InvokeOutput) SetExecutedVersion(v string) *InvokeOutput

SetExecutedVersion sets the ExecutedVersion field's value.

SetFunctionError

func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput

SetFunctionError sets the FunctionError field's value.

SetLogResult

func (s *InvokeOutput) SetLogResult(v string) *InvokeOutput

SetLogResult sets the LogResult field's value.

SetPayload

func (s *InvokeOutput) SetPayload(v []byte) *InvokeOutput

SetPayload sets the Payload field's value.

SetStatusCode

func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput

SetStatusCode sets the StatusCode field's value.

String

func (s InvokeOutput) String() string

String returns the string representation

On this page: