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 |
Lists the placement(s) of a project.
This operation returns paginated results.
Synopsis
- data ListPlacements = ListPlacements' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- projectName :: Text
- newListPlacements :: Text -> ListPlacements
- listPlacements_nextToken :: Lens' ListPlacements (Maybe Text)
- listPlacements_maxResults :: Lens' ListPlacements (Maybe Natural)
- listPlacements_projectName :: Lens' ListPlacements Text
- data ListPlacementsResponse = ListPlacementsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- placements :: [PlacementSummary]
- newListPlacementsResponse :: Int -> ListPlacementsResponse
- listPlacementsResponse_nextToken :: Lens' ListPlacementsResponse (Maybe Text)
- listPlacementsResponse_httpStatus :: Lens' ListPlacementsResponse Int
- listPlacementsResponse_placements :: Lens' ListPlacementsResponse [PlacementSummary]
Creating a Request
data ListPlacements Source #
See: newListPlacements
smart constructor.
ListPlacements' | |
|
Instances
Create a value of ListPlacements
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:ListPlacements'
, listPlacements_nextToken
- The token to retrieve the next set of results.
$sel:maxResults:ListPlacements'
, listPlacements_maxResults
- The maximum number of results to return per request. If not set, a
default value of 100 is used.
$sel:projectName:ListPlacements'
, listPlacements_projectName
- The project containing the placements to be listed.
Request Lenses
listPlacements_nextToken :: Lens' ListPlacements (Maybe Text) Source #
The token to retrieve the next set of results.
listPlacements_maxResults :: Lens' ListPlacements (Maybe Natural) Source #
The maximum number of results to return per request. If not set, a default value of 100 is used.
listPlacements_projectName :: Lens' ListPlacements Text Source #
The project containing the placements to be listed.
Destructuring the Response
data ListPlacementsResponse Source #
See: newListPlacementsResponse
smart constructor.
ListPlacementsResponse' | |
|
Instances
newListPlacementsResponse Source #
Create a value of ListPlacementsResponse
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:ListPlacements'
, listPlacementsResponse_nextToken
- The token used to retrieve the next set of results - will be effectively
empty if there are no further results.
$sel:httpStatus:ListPlacementsResponse'
, listPlacementsResponse_httpStatus
- The response's http status code.
$sel:placements:ListPlacementsResponse'
, listPlacementsResponse_placements
- An object listing the requested placements.
Response Lenses
listPlacementsResponse_nextToken :: Lens' ListPlacementsResponse (Maybe Text) Source #
The token used to retrieve the next set of results - will be effectively empty if there are no further results.
listPlacementsResponse_httpStatus :: Lens' ListPlacementsResponse Int Source #
The response's http status code.
listPlacementsResponse_placements :: Lens' ListPlacementsResponse [PlacementSummary] Source #
An object listing the requested placements.