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

Description

Returns the bundles that you can apply to an Amazon Lightsail instance when you create it.

A bundle describes the specifications of an instance, such as the monthly cost, amount of memory, the number of vCPUs, amount of storage space, and monthly network data transfer quota.

Bundles are referred to as instance plans in the Lightsail console.

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 (unavailable) bundles in the response of 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
ToJSON GetBundles Source # 
Instance details

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

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 #

Generic GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Associated Types

type Rep GetBundles :: Type -> Type #

Read GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Show GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

NFData GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Methods

rnf :: GetBundles -> () #

Eq GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Hashable GetBundles Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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))))

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 (unavailable) bundles in the response of 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 (unavailable) bundles in the response of 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

  • bundles :: Maybe [Bundle]

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

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Associated Types

type Rep GetBundlesResponse :: Type -> Type #

Read GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Show GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

NFData GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

Methods

rnf :: GetBundlesResponse -> () #

Eq GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

type Rep GetBundlesResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBundles

type Rep GetBundlesResponse = D1 ('MetaData "GetBundlesResponse" "Amazonka.Lightsail.GetBundles" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetBundlesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "bundles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Bundle])) :*: (S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:bundles:GetBundlesResponse', getBundlesResponse_bundles - An array of key-value pairs that contains information about the available bundles.

$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:httpStatus:GetBundlesResponse', getBundlesResponse_httpStatus - The response's http status code.

Response Lenses

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

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

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.