AWS Native is in preview. AWS Classic is fully supported.
aws-native.apigateway.RequestValidator
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
The AWS::ApiGateway::RequestValidator
resource sets up basic validation rules for incoming requests to your API. For more information, see Enable Basic Request Validation for an API in API Gateway in the API Gateway Developer Guide.
Create RequestValidator Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RequestValidator(name: string, args: RequestValidatorArgs, opts?: CustomResourceOptions);
@overload
def RequestValidator(resource_name: str,
args: RequestValidatorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RequestValidator(resource_name: str,
opts: Optional[ResourceOptions] = None,
rest_api_id: Optional[str] = None,
name: Optional[str] = None,
validate_request_body: Optional[bool] = None,
validate_request_parameters: Optional[bool] = None)
func NewRequestValidator(ctx *Context, name string, args RequestValidatorArgs, opts ...ResourceOption) (*RequestValidator, error)
public RequestValidator(string name, RequestValidatorArgs args, CustomResourceOptions? opts = null)
public RequestValidator(String name, RequestValidatorArgs args)
public RequestValidator(String name, RequestValidatorArgs args, CustomResourceOptions options)
type: aws-native:apigateway:RequestValidator
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RequestValidatorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RequestValidatorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RequestValidatorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RequestValidatorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RequestValidatorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RequestValidator Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The RequestValidator resource accepts the following input properties:
- Rest
Api stringId - The string identifier of the associated RestApi.
- Name string
- The name of this RequestValidator
- Validate
Request boolBody - A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- Validate
Request boolParameters - A Boolean flag to indicate whether to validate request parameters (
true
) or not (false
).
- Rest
Api stringId - The string identifier of the associated RestApi.
- Name string
- The name of this RequestValidator
- Validate
Request boolBody - A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- Validate
Request boolParameters - A Boolean flag to indicate whether to validate request parameters (
true
) or not (false
).
- rest
Api StringId - The string identifier of the associated RestApi.
- name String
- The name of this RequestValidator
- validate
Request BooleanBody - A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- validate
Request BooleanParameters - A Boolean flag to indicate whether to validate request parameters (
true
) or not (false
).
- rest
Api stringId - The string identifier of the associated RestApi.
- name string
- The name of this RequestValidator
- validate
Request booleanBody - A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- validate
Request booleanParameters - A Boolean flag to indicate whether to validate request parameters (
true
) or not (false
).
- rest_
api_ strid - The string identifier of the associated RestApi.
- name str
- The name of this RequestValidator
- validate_
request_ boolbody - A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- validate_
request_ boolparameters - A Boolean flag to indicate whether to validate request parameters (
true
) or not (false
).
- rest
Api StringId - The string identifier of the associated RestApi.
- name String
- The name of this RequestValidator
- validate
Request BooleanBody - A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- validate
Request BooleanParameters - A Boolean flag to indicate whether to validate request parameters (
true
) or not (false
).
Outputs
All input properties are implicitly available as output properties. Additionally, the RequestValidator resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Request
Validator stringId - The ID for the request validator. For example:
abc123
.
- Id string
- The provider-assigned unique ID for this managed resource.
- Request
Validator stringId - The ID for the request validator. For example:
abc123
.
- id String
- The provider-assigned unique ID for this managed resource.
- request
Validator StringId - The ID for the request validator. For example:
abc123
.
- id string
- The provider-assigned unique ID for this managed resource.
- request
Validator stringId - The ID for the request validator. For example:
abc123
.
- id str
- The provider-assigned unique ID for this managed resource.
- request_
validator_ strid - The ID for the request validator. For example:
abc123
.
- id String
- The provider-assigned unique ID for this managed resource.
- request
Validator StringId - The ID for the request validator. For example:
abc123
.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.