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.

TestInvokeMethodOutput

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

type TestInvokeMethodOutput struct { Body *string `locationName:"body" type:"string"` Headers map[string]*string `locationName:"headers" type:"map"` Latency *int64 `locationName:"latency" type:"long"` Log *string `locationName:"log" type:"string"` MultiValueHeaders map[string][]*string `locationName:"multiValueHeaders" type:"map"` Status *int64 `locationName:"status" type:"integer"` }

Represents the response of the test invoke request in the HTTP method.

Test API using the API Gateway console (https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-test-method.html#how-to-test-method-console)

Body

Type: *string

The body of the HTTP response.

Headers

Type: map[string]*string

The headers of the HTTP response.

Latency

Type: *int64

The execution latency of the test invoke request.

Log

Type: *string

The API Gateway execution log for the test invoke request.

MultiValueHeaders

Type: map[string][]*string

The headers of the HTTP response as a map from string to list of values.

Status

Type: *int64

The HTTP status code.

Method

GoString

func (s TestInvokeMethodOutput) GoString() string

GoString returns the string representation

SetBody

func (s *TestInvokeMethodOutput) SetBody(v string) *TestInvokeMethodOutput

SetBody sets the Body field's value.

SetHeaders

func (s *TestInvokeMethodOutput) SetHeaders(v map[string]*string) *TestInvokeMethodOutput

SetHeaders sets the Headers field's value.

SetLatency

func (s *TestInvokeMethodOutput) SetLatency(v int64) *TestInvokeMethodOutput

SetLatency sets the Latency field's value.

SetLog

func (s *TestInvokeMethodOutput) SetLog(v string) *TestInvokeMethodOutput

SetLog sets the Log field's value.

SetMultiValueHeaders

func (s *TestInvokeMethodOutput) SetMultiValueHeaders(v map[string][]*string) *TestInvokeMethodOutput

SetMultiValueHeaders sets the MultiValueHeaders field's value.

SetStatus

func (s *TestInvokeMethodOutput) SetStatus(v int64) *TestInvokeMethodOutput

SetStatus sets the Status field's value.

String

func (s TestInvokeMethodOutput) String() string

String returns the string representation

On this page: