1. Packages
  2. AWS Native
  3. API Docs
  4. apigateway
  5. RequestValidator

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

aws-native.apigateway.RequestValidator

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const requestValidatorResource = new aws_native.apigateway.RequestValidator("requestValidatorResource", {
        restApiId: "string",
        name: "string",
        validateRequestBody: false,
        validateRequestParameters: false,
    });
    
    Coming soon!
    

    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:

    RestApiId string
    The string identifier of the associated RestApi.
    Name string
    The name of this RequestValidator
    ValidateRequestBody bool
    A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
    ValidateRequestParameters bool
    A Boolean flag to indicate whether to validate request parameters (true) or not (false).
    RestApiId string
    The string identifier of the associated RestApi.
    Name string
    The name of this RequestValidator
    ValidateRequestBody bool
    A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
    ValidateRequestParameters bool
    A Boolean flag to indicate whether to validate request parameters (true) or not (false).
    restApiId String
    The string identifier of the associated RestApi.
    name String
    The name of this RequestValidator
    validateRequestBody Boolean
    A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
    validateRequestParameters Boolean
    A Boolean flag to indicate whether to validate request parameters (true) or not (false).
    restApiId string
    The string identifier of the associated RestApi.
    name string
    The name of this RequestValidator
    validateRequestBody boolean
    A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
    validateRequestParameters boolean
    A Boolean flag to indicate whether to validate request parameters (true) or not (false).
    rest_api_id str
    The string identifier of the associated RestApi.
    name str
    The name of this RequestValidator
    validate_request_body bool
    A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
    validate_request_parameters bool
    A Boolean flag to indicate whether to validate request parameters (true) or not (false).
    restApiId String
    The string identifier of the associated RestApi.
    name String
    The name of this RequestValidator
    validateRequestBody Boolean
    A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
    validateRequestParameters Boolean
    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.
    RequestValidatorId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RequestValidatorId string
    id String
    The provider-assigned unique ID for this managed resource.
    requestValidatorId String
    id string
    The provider-assigned unique ID for this managed resource.
    requestValidatorId string
    id str
    The provider-assigned unique ID for this managed resource.
    request_validator_id str
    id String
    The provider-assigned unique ID for this managed resource.
    requestValidatorId String

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.103.0 published on Monday, Apr 22, 2024 by Pulumi