We recommend new projects start with resources from the AWS provider.
aws-native.apigateway.getRequestValidator
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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)
public static Output<GetRequestValidatorResult> getRequestValidator(GetRequestValidatorArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:apigateway:getRequestValidator
  arguments:
    # arguments dictionaryThe following arguments are supported:
- RequestValidator stringId 
- The ID for the request validator. For example: abc123.
- RestApi stringId 
- The string identifier of the associated RestApi.
- RequestValidator stringId 
- The ID for the request validator. For example: abc123.
- RestApi stringId 
- The string identifier of the associated RestApi.
- requestValidator StringId 
- The ID for the request validator. For example: abc123.
- restApi StringId 
- The string identifier of the associated RestApi.
- requestValidator stringId 
- The ID for the request validator. For example: abc123.
- restApi stringId 
- The string identifier of the associated RestApi.
- request_validator_ strid 
- The ID for the request validator. For example: abc123.
- rest_api_ strid 
- The string identifier of the associated RestApi.
- requestValidator StringId 
- The ID for the request validator. For example: abc123.
- restApi StringId 
- The string identifier of the associated RestApi.
getRequestValidator Result
The following output properties are available:
- RequestValidator stringId 
- The ID for the request validator. For example: abc123.
- ValidateRequest boolBody 
- A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- ValidateRequest boolParameters 
- A Boolean flag to indicate whether to validate request parameters ( true) or not (false).
- RequestValidator stringId 
- The ID for the request validator. For example: abc123.
- ValidateRequest boolBody 
- A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- ValidateRequest boolParameters 
- A Boolean flag to indicate whether to validate request parameters ( true) or not (false).
- requestValidator StringId 
- The ID for the request validator. For example: abc123.
- validateRequest BooleanBody 
- A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- validateRequest BooleanParameters 
- A Boolean flag to indicate whether to validate request parameters ( true) or not (false).
- requestValidator stringId 
- The ID for the request validator. For example: abc123.
- validateRequest booleanBody 
- A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- validateRequest booleanParameters 
- A Boolean flag to indicate whether to validate request parameters ( true) or not (false).
- request_validator_ strid 
- The ID for the request validator. For example: abc123.
- 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).
- requestValidator StringId 
- The ID for the request validator. For example: abc123.
- validateRequest BooleanBody 
- A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
- validateRequest BooleanParameters 
- 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
We recommend new projects start with resources from the AWS provider.