| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.APIGateway.UpdateRequestValidator
Description
Updates a RequestValidator of a given RestApi.
Synopsis
- data UpdateRequestValidator = UpdateRequestValidator' {}
- newUpdateRequestValidator :: Text -> Text -> UpdateRequestValidator
- updateRequestValidator_patchOperations :: Lens' UpdateRequestValidator (Maybe [PatchOperation])
- updateRequestValidator_restApiId :: Lens' UpdateRequestValidator Text
- updateRequestValidator_requestValidatorId :: Lens' UpdateRequestValidator Text
- data RequestValidator = RequestValidator' {}
- newRequestValidator :: RequestValidator
- requestValidator_id :: Lens' RequestValidator (Maybe Text)
- requestValidator_name :: Lens' RequestValidator (Maybe Text)
- requestValidator_validateRequestBody :: Lens' RequestValidator (Maybe Bool)
- requestValidator_validateRequestParameters :: Lens' RequestValidator (Maybe Bool)
Creating a Request
data UpdateRequestValidator Source #
Updates a RequestValidator of a given RestApi.
See: newUpdateRequestValidator smart constructor.
Constructors
| UpdateRequestValidator' | |
Fields
| |
Instances
newUpdateRequestValidator Source #
Create a value of UpdateRequestValidator with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:patchOperations:UpdateRequestValidator', updateRequestValidator_patchOperations - For more information about supported patch operations, see
Patch Operations.
UpdateRequestValidator, updateRequestValidator_restApiId - The string identifier of the associated RestApi.
UpdateRequestValidator, updateRequestValidator_requestValidatorId - The identifier of RequestValidator to be updated.
Request Lenses
updateRequestValidator_patchOperations :: Lens' UpdateRequestValidator (Maybe [PatchOperation]) Source #
For more information about supported patch operations, see Patch Operations.
updateRequestValidator_restApiId :: Lens' UpdateRequestValidator Text Source #
The string identifier of the associated RestApi.
updateRequestValidator_requestValidatorId :: Lens' UpdateRequestValidator Text Source #
The identifier of RequestValidator to be updated.
Destructuring the Response
data RequestValidator Source #
A set of validation rules for incoming Method requests.
See: newRequestValidator smart constructor.
Constructors
| RequestValidator' | |
Fields
| |
Instances
newRequestValidator :: RequestValidator Source #
Create a value of RequestValidator with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:id:RequestValidator', requestValidator_id - The identifier of this RequestValidator.
$sel:name:RequestValidator', requestValidator_name - The name of this RequestValidator
$sel:validateRequestBody:RequestValidator', requestValidator_validateRequestBody - A Boolean flag to indicate whether to validate a request body according
to the configured Model schema.
$sel:validateRequestParameters:RequestValidator', requestValidator_validateRequestParameters - A Boolean flag to indicate whether to validate request parameters
(true) or not (false).
Response Lenses
requestValidator_id :: Lens' RequestValidator (Maybe Text) Source #
The identifier of this RequestValidator.
requestValidator_name :: Lens' RequestValidator (Maybe Text) Source #
The name of this RequestValidator
requestValidator_validateRequestBody :: Lens' RequestValidator (Maybe Bool) Source #
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
requestValidator_validateRequestParameters :: Lens' RequestValidator (Maybe Bool) Source #
A Boolean flag to indicate whether to validate request parameters
(true) or not (false).