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 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_nextToken :: Lens' GetSites (Maybe Text)
- getSites_siteIds :: Lens' GetSites (Maybe [Text])
- getSites_maxResults :: Lens' GetSites (Maybe Natural)
- 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.
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:nextToken: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.
$sel:maxResults:GetSites'
, getSites_maxResults
- The maximum number of results to return.
$sel:globalNetworkId: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.
Instances
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:
$sel:nextToken: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.