| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.APIGateway.UpdateRequestValidator
Description
Updates a RequestValidator of a given RestApi .
- updateRequestValidator :: Text -> Text -> UpdateRequestValidator
- data UpdateRequestValidator
- urvPatchOperations :: Lens' UpdateRequestValidator [PatchOperation]
- urvRestAPIId :: Lens' UpdateRequestValidator Text
- urvRequestValidatorId :: Lens' UpdateRequestValidator Text
- requestValidator :: RequestValidator
- data RequestValidator
- rvValidateRequestParameters :: Lens' RequestValidator (Maybe Bool)
- rvName :: Lens' RequestValidator (Maybe Text)
- rvValidateRequestBody :: Lens' RequestValidator (Maybe Bool)
- rvId :: Lens' RequestValidator (Maybe Text)
Creating a Request
updateRequestValidator Source #
Arguments
| :: Text | |
| -> Text | |
| -> UpdateRequestValidator |
Creates a value of UpdateRequestValidator with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
urvPatchOperations- A list of update operations to be applied to the specified resource and in the order specified in this list.urvRestAPIId- [Required] The string identifier of the associatedRestApi.urvRequestValidatorId- [Required] The identifier ofRequestValidatorto be updated.
data UpdateRequestValidator Source #
Updates a RequestValidator of a given RestApi .
See: updateRequestValidator smart constructor.
Instances
Request Lenses
urvPatchOperations :: Lens' UpdateRequestValidator [PatchOperation] Source #
A list of update operations to be applied to the specified resource and in the order specified in this list.
urvRestAPIId :: Lens' UpdateRequestValidator Text Source #
- Required
- The string identifier of the associated
RestApi.
urvRequestValidatorId :: Lens' UpdateRequestValidator Text Source #
- Required
- The identifier of
RequestValidatorto be updated.
Destructuring the Response
requestValidator :: RequestValidator Source #
Creates a value of RequestValidator with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rvValidateRequestParameters- A Boolean flag to indicate whether to validate request parameters (true) or not (false).rvName- The name of thisRequestValidatorrvValidateRequestBody- A Boolean flag to indicate whether to validate a request body according to the configuredModelschema.rvId- The identifier of thisRequestValidator.
data RequestValidator Source #
A set of validation rules for incoming Method requests.
In Swagger, a RequestValidator of an API is defined by the x-amazon-apigateway-request-validators.requestValidator object. It the referenced using the x-amazon-apigateway-request-validator property.
Enable Basic Request Validation in API Gateway
See: requestValidator smart constructor.
Instances
Response Lenses
rvValidateRequestParameters :: Lens' RequestValidator (Maybe Bool) Source #
A Boolean flag to indicate whether to validate request parameters (true ) or not (false ).
rvName :: Lens' RequestValidator (Maybe Text) Source #
The name of this RequestValidator
rvValidateRequestBody :: Lens' RequestValidator (Maybe Bool) Source #
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
rvId :: Lens' RequestValidator (Maybe Text) Source #
The identifier of this RequestValidator .