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.

UpdateRequestValidatorOutput

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

type UpdateRequestValidatorOutput struct { Id *string `locationName:"id" type:"string"` Name *string `locationName:"name" type:"string"` ValidateRequestBody *bool `locationName:"validateRequestBody" type:"boolean"` ValidateRequestParameters *bool `locationName:"validateRequestParameters" type:"boolean"` }

A set of validation rules for incoming Method requests.

In OpenAPI, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validators.requestValidator.html) object. It the referenced using the x-amazon-apigateway-request-validator (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validator) property.

Enable Basic Request Validation in API Gateway (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-request-validation.html)

Id

Type: *string

The identifier of this RequestValidator.

Name

Type: *string

The name of this RequestValidator

ValidateRequestBody

Type: *bool

A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

ValidateRequestParameters

Type: *bool

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

Method

GoString

func (s UpdateRequestValidatorOutput) GoString() string

GoString returns the string representation

SetId

func (s *UpdateRequestValidatorOutput) SetId(v string) *UpdateRequestValidatorOutput

SetId sets the Id field's value.

SetName

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

SetName sets the Name field's value.

SetValidateRequestBody

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

SetValidateRequestBody sets the ValidateRequestBody field's value.

SetValidateRequestParameters

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

SetValidateRequestParameters sets the ValidateRequestParameters field's value.

String

func (s UpdateRequestValidatorOutput) String() string

String returns the string representation

On this page: