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 |
Returns information about one or more of your Amazon Lightsail content delivery network (CDN) distributions.
Synopsis
- data GetDistributions = GetDistributions' {}
- newGetDistributions :: GetDistributions
- getDistributions_distributionName :: Lens' GetDistributions (Maybe Text)
- getDistributions_pageToken :: Lens' GetDistributions (Maybe Text)
- data GetDistributionsResponse = GetDistributionsResponse' {}
- newGetDistributionsResponse :: Int -> GetDistributionsResponse
- getDistributionsResponse_nextPageToken :: Lens' GetDistributionsResponse (Maybe Text)
- getDistributionsResponse_distributions :: Lens' GetDistributionsResponse (Maybe [LightsailDistribution])
- getDistributionsResponse_httpStatus :: Lens' GetDistributionsResponse Int
Creating a Request
data GetDistributions Source #
See: newGetDistributions
smart constructor.
GetDistributions' | |
|
Instances
newGetDistributions :: GetDistributions Source #
Create a value of GetDistributions
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:distributionName:GetDistributions'
, getDistributions_distributionName
- The name of the distribution for which to return information.
When omitted, the response includes all of your distributions in the AWS Region where the request is made.
$sel:pageToken:GetDistributions'
, getDistributions_pageToken
- The token to advance to the next page of results from your request.
To get a page token, perform an initial GetDistributions
request. If
your results are paginated, the response will return a next page token
that you can specify as the page token in a subsequent request.
Request Lenses
getDistributions_distributionName :: Lens' GetDistributions (Maybe Text) Source #
The name of the distribution for which to return information.
When omitted, the response includes all of your distributions in the AWS Region where the request is made.
getDistributions_pageToken :: Lens' GetDistributions (Maybe Text) Source #
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetDistributions
request. If
your results are paginated, the response will return a next page token
that you can specify as the page token in a subsequent request.
Destructuring the Response
data GetDistributionsResponse Source #
See: newGetDistributionsResponse
smart constructor.
GetDistributionsResponse' | |
|
Instances
newGetDistributionsResponse Source #
Create a value of GetDistributionsResponse
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:nextPageToken:GetDistributionsResponse'
, getDistributionsResponse_nextPageToken
- The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetDistributions
request and specify the next page token using the pageToken
parameter.
$sel:distributions:GetDistributionsResponse'
, getDistributionsResponse_distributions
- An array of objects that describe your distributions.
$sel:httpStatus:GetDistributionsResponse'
, getDistributionsResponse_httpStatus
- The response's http status code.
Response Lenses
getDistributionsResponse_nextPageToken :: Lens' GetDistributionsResponse (Maybe Text) Source #
The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetDistributions
request and specify the next page token using the pageToken
parameter.
getDistributionsResponse_distributions :: Lens' GetDistributionsResponse (Maybe [LightsailDistribution]) Source #
An array of objects that describe your distributions.
getDistributionsResponse_httpStatus :: Lens' GetDistributionsResponse Int Source #
The response's http status code.