AWS Native is in preview. AWS Classic is fully supported.
aws-native.apigateway.getRequestValidator
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.
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:
- Request
Validator stringId - The ID for the request validator. For example:
abc123
. - Rest
Api stringId - The string identifier of the associated RestApi.
- Request
Validator stringId - The ID for the request validator. For example:
abc123
. - Rest
Api stringId - The string identifier of the associated RestApi.
- request
Validator StringId - The ID for the request validator. For example:
abc123
. - rest
Api StringId - The string identifier of the associated RestApi.
- request
Validator stringId - The ID for the request validator. For example:
abc123
. - rest
Api 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.
- request
Validator StringId - The ID for the request validator. For example:
abc123
. - rest
Api StringId - The string identifier of the associated RestApi.
getRequestValidator Result
The following output properties are available:
- Request
Validator stringId - 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
).
- Request
Validator stringId - 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
).
- request
Validator StringId - The ID for the request validator. For example:
abc123
. - 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
).
- request
Validator stringId - The ID for the request validator. For example:
abc123
. - 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
).
- 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
).
- request
Validator StringId - The ID for the request validator. For example:
abc123
. - 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
).
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.