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.

CreateRequestValidatorInput

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

type CreateRequestValidatorInput struct { Name *string `locationName:"name" type:"string"` RestApiId *string `location:"uri" locationName:"restapi_id" type:"string" required:"true"` ValidateRequestBody *bool `locationName:"validateRequestBody" type:"boolean"` ValidateRequestParameters *bool `locationName:"validateRequestParameters" type:"boolean"` }

Creates a RequestValidator of a given RestApi.

Name

Type: *string

The name of the to-be-created RequestValidator.

RestApiId

Type: *string

[Required] The string identifier of the associated RestApi.

RestApiId is a required field

ValidateRequestBody

Type: *bool

A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (true) or not (false).

ValidateRequestParameters

Type: *bool

A Boolean flag to indicate whether to validate request parameters, true, or not false.

Method

GoString

func (s CreateRequestValidatorInput) GoString() string

GoString returns the string representation

SetName

func (s *CreateRequestValidatorInput) SetName(v string) *CreateRequestValidatorInput

SetName sets the Name field's value.

SetRestApiId

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

SetRestApiId sets the RestApiId field's value.

SetValidateRequestBody

func (s *CreateRequestValidatorInput) SetValidateRequestBody(v bool) *CreateRequestValidatorInput

SetValidateRequestBody sets the ValidateRequestBody field's value.

SetValidateRequestParameters

func (s *CreateRequestValidatorInput) SetValidateRequestParameters(v bool) *CreateRequestValidatorInput

SetValidateRequestParameters sets the ValidateRequestParameters field's value.

String

func (s CreateRequestValidatorInput) String() string

String returns the string representation

Validate

func (s *CreateRequestValidatorInput) Validate() error

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

On this page: