Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Returns information about all Amazon Lightsail virtual private servers, or instances .
This operation returns paginated results.
- getInstances :: GetInstances
- data GetInstances
- giPageToken :: Lens' GetInstances (Maybe Text)
- getInstancesResponse :: Int -> GetInstancesResponse
- data GetInstancesResponse
- grsNextPageToken :: Lens' GetInstancesResponse (Maybe Text)
- grsInstances :: Lens' GetInstancesResponse [Instance]
- grsResponseStatus :: Lens' GetInstancesResponse Int
Creating a Request
getInstances :: GetInstances Source #
Creates a value of GetInstances
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
giPageToken
- A token used for advancing to the next page of results from your get instances request.
data GetInstances Source #
See: getInstances
smart constructor.
Request Lenses
giPageToken :: Lens' GetInstances (Maybe Text) Source #
A token used for advancing to the next page of results from your get instances request.
Destructuring the Response
Creates a value of GetInstancesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
grsNextPageToken
- A token used for advancing to the next page of results from your get instances request.grsInstances
- An array of key-value pairs containing information about your instances.grsResponseStatus
- -- | The response status code.
data GetInstancesResponse Source #
See: getInstancesResponse
smart constructor.
Response Lenses
grsNextPageToken :: Lens' GetInstancesResponse (Maybe Text) Source #
A token used for advancing to the next page of results from your get instances request.
grsInstances :: Lens' GetInstancesResponse [Instance] Source #
An array of key-value pairs containing information about your instances.
grsResponseStatus :: Lens' GetInstancesResponse Int Source #
- - | The response status code.