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

Description

Returns the list of bundles that are available for purchase. A bundle describes the specs for your virtual private server (or instance).

This operation returns paginated results.

Synopsis

Creating a Request

data GetBundles Source #

See: newGetBundles smart constructor.

Constructors

GetBundles' 

Fields

  • includeInactive :: Maybe Bool

    A Boolean value that indicates whether to include inactive bundle results in your request.

  • pageToken :: Maybe Text

    The token to advance to the next page of results from your request.

    To get a page token, perform an initial GetBundles 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 GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Read GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Show GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Generic GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Associated Types

type Rep GetBundles :: Type -> Type #

NFData GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Methods

rnf :: GetBundles -> () #

Hashable GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

ToJSON GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

AWSPager GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

AWSRequest GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Associated Types

type AWSResponse GetBundles #

ToHeaders GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Methods

toHeaders :: GetBundles -> [Header] #

ToPath GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

ToQuery GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

type Rep GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

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

Defined in Amazonka.Lightsail.GetBundles

newGetBundles :: GetBundles Source #

Create a value of GetBundles 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:includeInactive:GetBundles', getBundles_includeInactive - A Boolean value that indicates whether to include inactive bundle results in your request.

$sel:pageToken:GetBundles', getBundles_pageToken - The token to advance to the next page of results from your request.

To get a page token, perform an initial GetBundles 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

getBundles_includeInactive :: Lens' GetBundles (Maybe Bool) Source #

A Boolean value that indicates whether to include inactive bundle results in your request.

getBundles_pageToken :: Lens' GetBundles (Maybe Text) Source #

The token to advance to the next page of results from your request.

To get a page token, perform an initial GetBundles 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 GetBundlesResponse Source #

See: newGetBundlesResponse smart constructor.

Constructors

GetBundlesResponse' 

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 GetBundles request and specify the next page token using the pageToken parameter.

  • bundles :: Maybe [Bundle]

    An array of key-value pairs that contains information about the available bundles.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Read GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Show GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Generic GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Associated Types

type Rep GetBundlesResponse :: Type -> Type #

NFData GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Methods

rnf :: GetBundlesResponse -> () #

type Rep GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

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

newGetBundlesResponse Source #

Create a value of GetBundlesResponse 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:GetBundlesResponse', getBundlesResponse_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 GetBundles request and specify the next page token using the pageToken parameter.

$sel:bundles:GetBundlesResponse', getBundlesResponse_bundles - An array of key-value pairs that contains information about the available bundles.

$sel:httpStatus:GetBundlesResponse', getBundlesResponse_httpStatus - The response's http status code.

Response Lenses

getBundlesResponse_nextPageToken :: Lens' GetBundlesResponse (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 GetBundles request and specify the next page token using the pageToken parameter.

getBundlesResponse_bundles :: Lens' GetBundlesResponse (Maybe [Bundle]) Source #

An array of key-value pairs that contains information about the available bundles.