Class: Aws::APIGateway::Types::RequestValidator

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-apigateway/types.rb

Overview

A set of validation rules for incoming Method requests.

<div class=“remarks” markdown=“1”> In Swagger, a RequestValidator of an API is defined by the

x-amazon-apigateway-request-validators.requestValidator][1

object.

It the referenced using the [x-amazon-apigateway-request-validator] property.

</div>

<div class=“seeAlso”>

Enable Basic Request Validation in API Gateway][3

</div>

[1]: docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validators.requestValidator.html [2]: docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html#api-gateway-swagger-extensions-request-validator [3]: docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-request-validation.html

Instance Attribute Summary collapse

Instance Attribute Details

#idString

The identifier of this RequestValidator.

Returns:

  • (String)


5174
5175
5176
5177
5178
5179
5180
# File 'lib/aws-sdk-apigateway/types.rb', line 5174

class RequestValidator < Struct.new(
  :id,
  :name,
  :validate_request_body,
  :validate_request_parameters)
  include Aws::Structure
end

#nameString

The name of this RequestValidator

Returns:

  • (String)


5174
5175
5176
5177
5178
5179
5180
# File 'lib/aws-sdk-apigateway/types.rb', line 5174

class RequestValidator < Struct.new(
  :id,
  :name,
  :validate_request_body,
  :validate_request_parameters)
  include Aws::Structure
end

#validate_request_bodyBoolean

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

Returns:

  • (Boolean)


5174
5175
5176
5177
5178
5179
5180
# File 'lib/aws-sdk-apigateway/types.rb', line 5174

class RequestValidator < Struct.new(
  :id,
  :name,
  :validate_request_body,
  :validate_request_parameters)
  include Aws::Structure
end

#validate_request_parametersBoolean

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

Returns:

  • (Boolean)


5174
5175
5176
5177
5178
5179
5180
# File 'lib/aws-sdk-apigateway/types.rb', line 5174

class RequestValidator < Struct.new(
  :id,
  :name,
  :validate_request_body,
  :validate_request_parameters)
  include Aws::Structure
end