| 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.ApiGatewayV2.GetStages
Description
Gets the Stages for an API.
This operation returns paginated results.
Synopsis
- data GetStages = GetStages' {}
- newGetStages :: Text -> GetStages
- getStages_maxResults :: Lens' GetStages (Maybe Text)
- getStages_nextToken :: Lens' GetStages (Maybe Text)
- getStages_apiId :: Lens' GetStages Text
- data GetStagesResponse = GetStagesResponse' {}
- newGetStagesResponse :: Int -> GetStagesResponse
- getStagesResponse_items :: Lens' GetStagesResponse (Maybe [Stage])
- getStagesResponse_nextToken :: Lens' GetStagesResponse (Maybe Text)
- getStagesResponse_httpStatus :: Lens' GetStagesResponse Int
Creating a Request
See: newGetStages smart constructor.
Constructors
| GetStages' | |
Instances
Create a value of GetStages 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:maxResults:GetStages', getStages_maxResults - The maximum number of elements to be returned for this resource.
GetStages, getStages_nextToken - The next page of elements from this collection. Not valid for the last
element of the collection.
GetStages, getStages_apiId - The API identifier.
Request Lenses
getStages_maxResults :: Lens' GetStages (Maybe Text) Source #
The maximum number of elements to be returned for this resource.
getStages_nextToken :: Lens' GetStages (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
Destructuring the Response
data GetStagesResponse Source #
See: newGetStagesResponse smart constructor.
Constructors
| GetStagesResponse' | |
Instances
Arguments
| :: Int | |
| -> GetStagesResponse |
Create a value of GetStagesResponse 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:GetStagesResponse', getStagesResponse_items - The elements from this collection.
GetStages, getStagesResponse_nextToken - The next page of elements from this collection. Not valid for the last
element of the collection.
$sel:httpStatus:GetStagesResponse', getStagesResponse_httpStatus - The response's http status code.
Response Lenses
getStagesResponse_items :: Lens' GetStagesResponse (Maybe [Stage]) Source #
The elements from this collection.
getStagesResponse_nextToken :: Lens' GetStagesResponse (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
getStagesResponse_httpStatus :: Lens' GetStagesResponse Int Source #
The response's http status code.