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.

TestInvokeAuthorizerInput

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

type TestInvokeAuthorizerInput struct { AdditionalContext map[string]*string `locationName:"additionalContext" type:"map"` AuthorizerId *string `location:"uri" locationName:"authorizer_id" type:"string" required:"true"` Body *string `locationName:"body" type:"string"` Headers map[string]*string `locationName:"headers" type:"map"` MultiValueHeaders map[string][]*string `locationName:"multiValueHeaders" type:"map"` PathWithQueryString *string `locationName:"pathWithQueryString" type:"string"` RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` StageVariables map[string]*string `locationName:"stageVariables" type:"map"` }

Make a request to simulate the execution of an Authorizer.

AdditionalContext

Type: map[string]*string

[Optional] A key-value map of additional context variables.

AuthorizerId

Type: *string

[Required] Specifies a test invoke authorizer request's Authorizer ID.

AuthorizerId is a required field

Body

Type: *string

[Optional] The simulated request body of an incoming invocation request.

Headers

Type: map[string]*string

[Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.

MultiValueHeaders

Type: map[string][]*string

[Optional] The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.

PathWithQueryString

Type: *string

[Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

RestApiId

Type: *string

[Required] The string identifier of the associated RestApi.

RestApiId is a required field

StageVariables

Type: map[string]*string

A key-value map of stage variables to simulate an invocation on a deployed Stage.

Method

GoString

func (s TestInvokeAuthorizerInput) GoString() string

GoString returns the string representation

SetAdditionalContext

func (s *TestInvokeAuthorizerInput) SetAdditionalContext(v map[string]*string) *TestInvokeAuthorizerInput

SetAdditionalContext sets the AdditionalContext field's value.

SetAuthorizerId

func (s *TestInvokeAuthorizerInput) SetAuthorizerId(v string) *TestInvokeAuthorizerInput

SetAuthorizerId sets the AuthorizerId field's value.

SetBody

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

SetBody sets the Body field's value.

SetHeaders

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

SetHeaders sets the Headers field's value.

SetMultiValueHeaders

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

SetMultiValueHeaders sets the MultiValueHeaders field's value.

SetPathWithQueryString

func (s *TestInvokeAuthorizerInput) SetPathWithQueryString(v string) *TestInvokeAuthorizerInput

SetPathWithQueryString sets the PathWithQueryString field's value.

SetRestApiId

func (s *TestInvokeAuthorizerInput) SetRestApiId(v string) *TestInvokeAuthorizerInput

SetRestApiId sets the RestApiId field's value.

SetStageVariables

func (s *TestInvokeAuthorizerInput) SetStageVariables(v map[string]*string) *TestInvokeAuthorizerInput

SetStageVariables sets the StageVariables field's value.

String

func (s TestInvokeAuthorizerInput) String() string

String returns the string representation

Validate

func (s *TestInvokeAuthorizerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: