| 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.GetDocumentationVersions
Description
Gets documentation versions.
This operation returns paginated results.
Synopsis
- data GetDocumentationVersions = GetDocumentationVersions' {}
- newGetDocumentationVersions :: Text -> GetDocumentationVersions
- getDocumentationVersions_limit :: Lens' GetDocumentationVersions (Maybe Int)
- getDocumentationVersions_position :: Lens' GetDocumentationVersions (Maybe Text)
- getDocumentationVersions_restApiId :: Lens' GetDocumentationVersions Text
- data GetDocumentationVersionsResponse = GetDocumentationVersionsResponse' {
- items :: Maybe [DocumentationVersion]
- position :: Maybe Text
- httpStatus :: Int
- newGetDocumentationVersionsResponse :: Int -> GetDocumentationVersionsResponse
- getDocumentationVersionsResponse_items :: Lens' GetDocumentationVersionsResponse (Maybe [DocumentationVersion])
- getDocumentationVersionsResponse_position :: Lens' GetDocumentationVersionsResponse (Maybe Text)
- getDocumentationVersionsResponse_httpStatus :: Lens' GetDocumentationVersionsResponse Int
Creating a Request
data GetDocumentationVersions Source #
Gets the documentation versions of an API.
See: newGetDocumentationVersions smart constructor.
Constructors
| GetDocumentationVersions' | |
Instances
newGetDocumentationVersions Source #
Arguments
| :: Text | |
| -> GetDocumentationVersions |
Create a value of GetDocumentationVersions 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:
GetDocumentationVersions, getDocumentationVersions_limit - The maximum number of returned results per page. The default value is 25
and the maximum value is 500.
GetDocumentationVersions, getDocumentationVersions_position - The current pagination position in the paged result set.
GetDocumentationVersions, getDocumentationVersions_restApiId - The string identifier of the associated RestApi.
Request Lenses
getDocumentationVersions_limit :: Lens' GetDocumentationVersions (Maybe Int) Source #
The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
getDocumentationVersions_position :: Lens' GetDocumentationVersions (Maybe Text) Source #
The current pagination position in the paged result set.
getDocumentationVersions_restApiId :: Lens' GetDocumentationVersions Text Source #
The string identifier of the associated RestApi.
Destructuring the Response
data GetDocumentationVersionsResponse Source #
The collection of documentation snapshots of an API.
See: newGetDocumentationVersionsResponse smart constructor.
Constructors
| GetDocumentationVersionsResponse' | |
Fields
| |
Instances
newGetDocumentationVersionsResponse Source #
Create a value of GetDocumentationVersionsResponse 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:
GetDocumentationVersionsResponse, getDocumentationVersionsResponse_items - The current page of elements from this collection.
GetDocumentationVersions, getDocumentationVersionsResponse_position - Undocumented member.
$sel:httpStatus:GetDocumentationVersionsResponse', getDocumentationVersionsResponse_httpStatus - The response's http status code.
Response Lenses
getDocumentationVersionsResponse_items :: Lens' GetDocumentationVersionsResponse (Maybe [DocumentationVersion]) Source #
The current page of elements from this collection.
getDocumentationVersionsResponse_position :: Lens' GetDocumentationVersionsResponse (Maybe Text) Source #
Undocumented member.
getDocumentationVersionsResponse_httpStatus :: Lens' GetDocumentationVersionsResponse Int Source #
The response's http status code.