Copyright | (c) 2013-2021 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 |
Gets the RequestValidators collection of a given RestApi.
This operation returns paginated results.
Synopsis
- data GetRequestValidators = GetRequestValidators' {}
- newGetRequestValidators :: Text -> GetRequestValidators
- getRequestValidators_limit :: Lens' GetRequestValidators (Maybe Int)
- getRequestValidators_position :: Lens' GetRequestValidators (Maybe Text)
- getRequestValidators_restApiId :: Lens' GetRequestValidators Text
- data GetRequestValidatorsResponse = GetRequestValidatorsResponse' {
- items :: Maybe [RequestValidator]
- position :: Maybe Text
- httpStatus :: Int
- newGetRequestValidatorsResponse :: Int -> GetRequestValidatorsResponse
- getRequestValidatorsResponse_items :: Lens' GetRequestValidatorsResponse (Maybe [RequestValidator])
- getRequestValidatorsResponse_position :: Lens' GetRequestValidatorsResponse (Maybe Text)
- getRequestValidatorsResponse_httpStatus :: Lens' GetRequestValidatorsResponse Int
Creating a Request
data GetRequestValidators Source #
Gets the RequestValidators collection of a given RestApi.
See: newGetRequestValidators
smart constructor.
Instances
newGetRequestValidators Source #
Create a value of GetRequestValidators
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:limit:GetRequestValidators'
, getRequestValidators_limit
- The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
$sel:position:GetRequestValidators'
, getRequestValidators_position
- The current pagination position in the paged result set.
$sel:restApiId:GetRequestValidators'
, getRequestValidators_restApiId
- [Required] The string identifier of the associated RestApi.
Request Lenses
getRequestValidators_limit :: Lens' GetRequestValidators (Maybe Int) Source #
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
getRequestValidators_position :: Lens' GetRequestValidators (Maybe Text) Source #
The current pagination position in the paged result set.
getRequestValidators_restApiId :: Lens' GetRequestValidators Text Source #
- Required
- The string identifier of the associated RestApi.
Destructuring the Response
data GetRequestValidatorsResponse Source #
A collection of RequestValidator resources of a given RestApi.
In OpenAPI, the RequestValidators of an API is defined by the x-amazon-apigateway-request-validators extension.
Enable Basic Request Validation in API Gateway
See: newGetRequestValidatorsResponse
smart constructor.
GetRequestValidatorsResponse' | |
|
Instances
newGetRequestValidatorsResponse Source #
Create a value of GetRequestValidatorsResponse
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:items:GetRequestValidatorsResponse'
, getRequestValidatorsResponse_items
- The current page of elements from this collection.
$sel:position:GetRequestValidators'
, getRequestValidatorsResponse_position
- Undocumented member.
$sel:httpStatus:GetRequestValidatorsResponse'
, getRequestValidatorsResponse_httpStatus
- The response's http status code.
Response Lenses
getRequestValidatorsResponse_items :: Lens' GetRequestValidatorsResponse (Maybe [RequestValidator]) Source #
The current page of elements from this collection.
getRequestValidatorsResponse_position :: Lens' GetRequestValidatorsResponse (Maybe Text) Source #
Undocumented member.
getRequestValidatorsResponse_httpStatus :: Lens' GetRequestValidatorsResponse Int Source #
The response's http status code.