You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::APIGateway::Types::CreateRequestValidatorRequest

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

Overview

Note:

When making an API call, you may pass CreateRequestValidatorRequest data as a hash:

{
  rest_api_id: "String", # required
  name: "String",
  validate_request_body: false,
  validate_request_parameters: false,
}

Creates a RequestValidator of a given RestApi.

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

The name of the to-be-created RequestValidator.

Returns:

  • (String)


916
917
918
919
920
921
922
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 916

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

#rest_api_idString

The string identifier of the associated RestApi.

Returns:

  • (String)


916
917
918
919
920
921
922
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 916

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

#validate_request_bodyBoolean

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

Returns:

  • (Boolean)


916
917
918
919
920
921
922
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 916

class CreateRequestValidatorRequest < Struct.new(
  :rest_api_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)


916
917
918
919
920
921
922
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 916

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