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

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.apigateway.getRequestValidator

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 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>
Copy
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]
Copy
func LookupRequestValidator(ctx *Context, args *LookupRequestValidatorArgs, opts ...InvokeOption) (*LookupRequestValidatorResult, error)
func LookupRequestValidatorOutput(ctx *Context, args *LookupRequestValidatorOutputArgs, opts ...InvokeOption) LookupRequestValidatorResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRequestValidatorResult> getRequestValidator(GetRequestValidatorArgs args, InvokeOptions options)
public static Output<GetRequestValidatorResult> getRequestValidator(GetRequestValidatorArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:apigateway:getRequestValidator
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

RequestValidatorId This property is required. string
The ID for the request validator. For example: abc123 .
RestApiId This property is required. string
The string identifier of the associated RestApi.
RequestValidatorId This property is required. string
The ID for the request validator. For example: abc123 .
RestApiId This property is required. string
The string identifier of the associated RestApi.
requestValidatorId This property is required. String
The ID for the request validator. For example: abc123 .
restApiId This property is required. String
The string identifier of the associated RestApi.
requestValidatorId This property is required. string
The ID for the request validator. For example: abc123 .
restApiId This property is required. string
The string identifier of the associated RestApi.
request_validator_id This property is required. str
The ID for the request validator. For example: abc123 .
rest_api_id This property is required. str
The string identifier of the associated RestApi.
requestValidatorId This property is required. String
The ID for the request validator. For example: abc123 .
restApiId This property is required. String
The string identifier of the associated RestApi.

getRequestValidator Result

The following output properties are available:

RequestValidatorId string
The ID for the request validator. For example: abc123 .
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
The ID for the request validator. For example: abc123 .
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
The ID for the request validator. For example: abc123 .
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
The ID for the request validator. For example: abc123 .
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
The ID for the request validator. For example: abc123 .
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
The ID for the request validator. For example: abc123 .
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

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi