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.

MethodSnapshot

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

type MethodSnapshot struct { ApiKeyRequired *bool `locationName:"apiKeyRequired" type:"boolean"` AuthorizationType *string `locationName:"authorizationType" type:"string"` }

Represents a summary of a Method resource, given a particular date and time.

ApiKeyRequired

Type: *bool

Specifies whether the method requires a valid ApiKey.

AuthorizationType

Type: *string

The method's authorization type. Valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, CUSTOM for using a custom authorizer, or COGNITO_USER_POOLS for using a Cognito user pool.

Method

GoString

func (s MethodSnapshot) GoString() string

GoString returns the string representation

SetApiKeyRequired

func (s *MethodSnapshot) SetApiKeyRequired(v bool) *MethodSnapshot

SetApiKeyRequired sets the ApiKeyRequired field's value.

SetAuthorizationType

func (s *MethodSnapshot) SetAuthorizationType(v string) *MethodSnapshot

SetAuthorizationType sets the AuthorizationType field's value.

String

func (s MethodSnapshot) String() string

String returns the string representation

On this page: