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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

The name of the to-be-created RequestValidator.

Returns:

  • (String)


1227
1228
1229
1230
1231
1232
1233
1234
# File 'lib/aws-sdk-apigateway/types.rb', line 1227

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

#rest_api_idString

[Required] The string identifier of the associated RestApi.

Returns:

  • (String)


1227
1228
1229
1230
1231
1232
1233
1234
# File 'lib/aws-sdk-apigateway/types.rb', line 1227

class CreateRequestValidatorRequest < Struct.new(
  :rest_api_id,
  :name,
  :validate_request_body,
  :validate_request_parameters)
  SENSITIVE = []
  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)


1227
1228
1229
1230
1231
1232
1233
1234
# File 'lib/aws-sdk-apigateway/types.rb', line 1227

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

#validate_request_parametersBoolean

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

Returns:

  • (Boolean)


1227
1228
1229
1230
1231
1232
1233
1234
# File 'lib/aws-sdk-apigateway/types.rb', line 1227

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