libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.GetInstances

Description

Returns information about all Amazon Lightsail virtual private servers, or instances.

This operation returns paginated results.

Synopsis

Creating a Request

data GetInstances Source #

See: newGetInstances smart constructor.

Constructors

GetInstances' 

Fields

  • pageToken :: Maybe Text

    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.

Instances

Instances details
Eq GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Read GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Show GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Generic GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Associated Types

type Rep GetInstances :: Type -> Type #

NFData GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Methods

rnf :: GetInstances -> () #

Hashable GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

ToJSON GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

AWSPager GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

AWSRequest GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Associated Types

type AWSResponse GetInstances #

ToHeaders GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

ToPath GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

ToQuery GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

type Rep GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

type Rep GetInstances = D1 ('MetaData "GetInstances" "Amazonka.Lightsail.GetInstances" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetInstances'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))
type AWSResponse GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

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

  • nextPageToken :: Maybe Text

    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.

  • instances :: Maybe [Instance]

    An array of key-value pairs containing information about your instances.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Read GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Show GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Generic GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Associated Types

type Rep GetInstancesResponse :: Type -> Type #

NFData GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Methods

rnf :: GetInstancesResponse -> () #

type Rep GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

type Rep GetInstancesResponse = D1 ('MetaData "GetInstancesResponse" "Amazonka.Lightsail.GetInstances" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "instances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Instance])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetInstancesResponse Source #

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: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:instances:GetInstancesResponse', getInstancesResponse_instances - An array of key-value pairs containing information about your instances.

$sel:httpStatus:GetInstancesResponse', getInstancesResponse_httpStatus - The response's http status code.

Response Lenses

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_instances :: Lens' GetInstancesResponse (Maybe [Instance]) Source #

An array of key-value pairs containing information about your instances.