| 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.Lightsail.GetInstances
Description
Returns information about all Amazon Lightsail virtual private servers, or instances.
This operation returns paginated results.
Synopsis
- data GetInstances = GetInstances' {}
- newGetInstances :: GetInstances
- getInstances_pageToken :: Lens' GetInstances (Maybe Text)
- data GetInstancesResponse = GetInstancesResponse' {
- instances :: Maybe [Instance]
- nextPageToken :: Maybe Text
- httpStatus :: Int
- newGetInstancesResponse :: Int -> GetInstancesResponse
- getInstancesResponse_instances :: Lens' GetInstancesResponse (Maybe [Instance])
- getInstancesResponse_nextPageToken :: Lens' GetInstancesResponse (Maybe Text)
- getInstancesResponse_httpStatus :: Lens' GetInstancesResponse Int
Creating a Request
data GetInstances Source #
See: newGetInstances smart constructor.
Constructors
| GetInstances' | |
Instances
newGetInstances :: GetInstances Source #
Create a value of GetInstances 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:pageToken:GetInstances', getInstances_pageToken - The token to advance to the next page of results from your request.
To get a page token, perform an initial GetInstances 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
getInstances_pageToken :: Lens' GetInstances (Maybe Text) Source #
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetInstances 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 GetInstancesResponse Source #
See: newGetInstancesResponse smart constructor.
Constructors
| GetInstancesResponse' | |
Fields
| |
Instances
newGetInstancesResponse Source #
Arguments
| :: Int | |
| -> GetInstancesResponse |
Create a value of GetInstancesResponse 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:instances:GetInstancesResponse', getInstancesResponse_instances - An array of key-value pairs containing information about your instances.
$sel:nextPageToken:GetInstancesResponse', getInstancesResponse_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 GetInstances request
and specify the next page token using the pageToken parameter.
$sel:httpStatus:GetInstancesResponse', getInstancesResponse_httpStatus - The response's http status code.
Response Lenses
getInstancesResponse_instances :: Lens' GetInstancesResponse (Maybe [Instance]) Source #
An array of key-value pairs containing information about your instances.
getInstancesResponse_nextPageToken :: Lens' GetInstancesResponse (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 GetInstances request
and specify the next page token using the pageToken parameter.
getInstancesResponse_httpStatus :: Lens' GetInstancesResponse Int Source #
The response's http status code.