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

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.getRequestValidator

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.

    Using getRequestValidator

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getRequestValidator(args: GetRequestValidatorArgs, opts?: InvokeOptions): Promise<GetRequestValidatorResult>
    function getRequestValidatorOutput(args: GetRequestValidatorOutputArgs, opts?: InvokeOptions): Output<GetRequestValidatorResult>
    def get_request_validator(request_validator_id: Optional[str] = None,
                              rest_api_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetRequestValidatorResult
    def get_request_validator_output(request_validator_id: Optional[pulumi.Input[str]] = None,
                              rest_api_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetRequestValidatorResult]
    func LookupRequestValidator(ctx *Context, args *LookupRequestValidatorArgs, opts ...InvokeOption) (*LookupRequestValidatorResult, error)
    func LookupRequestValidatorOutput(ctx *Context, args *LookupRequestValidatorOutputArgs, opts ...InvokeOption) LookupRequestValidatorResultOutput

    > Note: This function is named LookupRequestValidator in the Go SDK.

    public static class GetRequestValidator 
    {
        public static Task<GetRequestValidatorResult> InvokeAsync(GetRequestValidatorArgs args, InvokeOptions? opts = null)
        public static Output<GetRequestValidatorResult> Invoke(GetRequestValidatorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRequestValidatorResult> getRequestValidator(GetRequestValidatorArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:apigateway:getRequestValidator
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RequestValidatorId string
    RestApiId string
    The string identifier of the associated RestApi.
    RequestValidatorId string
    RestApiId string
    The string identifier of the associated RestApi.
    requestValidatorId String
    restApiId String
    The string identifier of the associated RestApi.
    requestValidatorId string
    restApiId string
    The string identifier of the associated RestApi.
    request_validator_id str
    rest_api_id str
    The string identifier of the associated RestApi.
    requestValidatorId String
    restApiId String
    The string identifier of the associated RestApi.

    getRequestValidator Result

    The following output properties are available:

    RequestValidatorId string
    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).
    RequestValidatorId string
    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).
    requestValidatorId String
    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).
    requestValidatorId string
    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).
    request_validator_id str
    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).
    requestValidatorId String
    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).

    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