amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.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

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 #

Generic GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Associated Types

type Rep GetInstances :: Type -> Type #

Read GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Show GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

NFData GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Methods

rnf :: GetInstances -> () #

Eq GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Hashable GetInstances Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetInstances'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

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 :: Maybe [Instance]

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

  • 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Associated Types

type Rep GetInstancesResponse :: Type -> Type #

Read GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Show GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

NFData GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

Methods

rnf :: GetInstancesResponse -> () #

Eq GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

type Rep GetInstancesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetInstances

type Rep GetInstancesResponse = D1 ('MetaData "GetInstancesResponse" "Amazonka.Lightsail.GetInstances" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Instance])) :*: (S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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: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.