Class: Aws::APIGateway::Types::CreateRequestValidatorRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::APIGateway::Types::CreateRequestValidatorRequest
- Defined in:
- gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb
Overview
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
-
#name ⇒ String
The name of the to-be-created RequestValidator.
-
#rest_api_id ⇒ String
The string identifier of the associated RestApi.
-
#validate_request_body ⇒ Boolean
A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (
true
) or not (false
). -
#validate_request_parameters ⇒ Boolean
A Boolean flag to indicate whether to validate request parameters,
true
, or notfalse
.
Instance Attribute Details
#name ⇒ String
The name of the to-be-created RequestValidator.
1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 1095 class CreateRequestValidatorRequest < Struct.new( :rest_api_id, :name, :validate_request_body, :validate_request_parameters) SENSITIVE = [] include Aws::Structure end |
#rest_api_id ⇒ String
The string identifier of the associated RestApi.
1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 1095 class CreateRequestValidatorRequest < Struct.new( :rest_api_id, :name, :validate_request_body, :validate_request_parameters) SENSITIVE = [] include Aws::Structure end |
#validate_request_body ⇒ Boolean
A Boolean flag to indicate whether to validate request body
according to the configured model schema for the method (true
) or
not (false
).
1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 1095 class CreateRequestValidatorRequest < Struct.new( :rest_api_id, :name, :validate_request_body, :validate_request_parameters) SENSITIVE = [] include Aws::Structure end |
#validate_request_parameters ⇒ Boolean
A Boolean flag to indicate whether to validate request parameters,
true
, or not false
.
1095 1096 1097 1098 1099 1100 1101 1102 |
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 1095 class CreateRequestValidatorRequest < Struct.new( :rest_api_id, :name, :validate_request_body, :validate_request_parameters) SENSITIVE = [] include Aws::Structure end |