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 Stages for an API.
This operation returns paginated results.
Synopsis
- data GetStages = GetStages' {}
- newGetStages :: Text -> GetStages
- getStages_nextToken :: Lens' GetStages (Maybe Text)
- getStages_maxResults :: 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.
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:nextToken:GetStages'
, getStages_nextToken
- The next page of elements from this collection. Not valid for the last
element of the collection.
$sel:maxResults:GetStages'
, getStages_maxResults
- The maximum number of elements to be returned for this resource.
$sel:apiId:GetStages'
, getStages_apiId
- The API identifier.
Request Lenses
getStages_nextToken :: Lens' GetStages (Maybe Text) Source #
The next page of elements from this collection. Not valid for the last element of the collection.
getStages_maxResults :: Lens' GetStages (Maybe Text) Source #
The maximum number of elements to be returned for this resource.
Destructuring the Response
data GetStagesResponse Source #
See: newGetStagesResponse
smart constructor.
Instances
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.
$sel:nextToken: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.