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 |
Gets a RequestValidator
of a given RestApi
.
Synopsis
- getRequestValidator :: Text -> Text -> GetRequestValidator
- data GetRequestValidator
- grvrRestAPIId :: Lens' GetRequestValidator Text
- grvrRequestValidatorId :: Lens' GetRequestValidator 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
Creates a value of GetRequestValidator
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grvrRestAPIId
- [Required] The string identifier of the associatedRestApi
.grvrRequestValidatorId
- [Required] The identifier of theRequestValidator
to be retrieved.
data GetRequestValidator Source #
Gets a RequestValidator
of a given RestApi
.
See: getRequestValidator
smart constructor.
Instances
Request Lenses
grvrRestAPIId :: Lens' GetRequestValidator Text Source #
- Required
- The string identifier of the associated
RestApi
.
grvrRequestValidatorId :: Lens' GetRequestValidator Text Source #
- Required
- The identifier of the
RequestValidator
to be retrieved.
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 thisRequestValidator
rvValidateRequestBody
- A Boolean flag to indicate whether to validate a request body according to the configuredModel
schema.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
.