| 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.NetworkManager.GetSites
Description
Gets information about one or more of your sites in a global network.
This operation returns paginated results.
Synopsis
- data GetSites = GetSites' {}
- newGetSites :: Text -> GetSites
- getSites_maxResults :: Lens' GetSites (Maybe Natural)
- getSites_nextToken :: Lens' GetSites (Maybe Text)
- getSites_siteIds :: Lens' GetSites (Maybe [Text])
- getSites_globalNetworkId :: Lens' GetSites Text
- data GetSitesResponse = GetSitesResponse' {}
- newGetSitesResponse :: Int -> GetSitesResponse
- getSitesResponse_nextToken :: Lens' GetSitesResponse (Maybe Text)
- getSitesResponse_sites :: Lens' GetSitesResponse (Maybe [Site])
- getSitesResponse_httpStatus :: Lens' GetSitesResponse Int
Creating a Request
See: newGetSites smart constructor.
Constructors
| GetSites' | |
Instances
Create a value of GetSites 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:GetSites', getSites_maxResults - The maximum number of results to return.
GetSites, getSites_nextToken - The token for the next page of results.
$sel:siteIds:GetSites', getSites_siteIds - One or more site IDs. The maximum is 10.
GetSites, getSites_globalNetworkId - The ID of the global network.
Request Lenses
getSites_maxResults :: Lens' GetSites (Maybe Natural) Source #
The maximum number of results to return.
Destructuring the Response
data GetSitesResponse Source #
See: newGetSitesResponse smart constructor.
Constructors
| GetSitesResponse' | |
Instances
Arguments
| :: Int | |
| -> GetSitesResponse |
Create a value of GetSitesResponse 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:
GetSites, getSitesResponse_nextToken - The token for the next page of results.
$sel:sites:GetSitesResponse', getSitesResponse_sites - The sites.
$sel:httpStatus:GetSitesResponse', getSitesResponse_httpStatus - The response's http status code.
Response Lenses
getSitesResponse_nextToken :: Lens' GetSitesResponse (Maybe Text) Source #
The token for the next page of results.
getSitesResponse_sites :: Lens' GetSitesResponse (Maybe [Site]) Source #
The sites.
getSitesResponse_httpStatus :: Lens' GetSitesResponse Int Source #
The response's http status code.