amazonka-lightsail-1.4.5: Amazon Lightsail SDK.

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

Network.AWS.Lightsail.GetBundles

Contents

Description

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

Synopsis

Creating a Request

getBundles :: GetBundles Source #

Creates a value of GetBundles with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gIncludeInactive - A Boolean value that indicates whether to include inactive bundle results in your request.
  • gPageToken - A token used for advancing to the next page of results from your get bundles request.

data GetBundles Source #

See: getBundles smart constructor.

Instances

Eq GetBundles Source # 
Data GetBundles Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetBundles -> c GetBundles #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetBundles #

toConstr :: GetBundles -> Constr #

dataTypeOf :: GetBundles -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetBundles) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetBundles) #

gmapT :: (forall b. Data b => b -> b) -> GetBundles -> GetBundles #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetBundles -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetBundles -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetBundles -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetBundles -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetBundles -> m GetBundles #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBundles -> m GetBundles #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBundles -> m GetBundles #

Read GetBundles Source # 
Show GetBundles Source # 
Generic GetBundles Source # 

Associated Types

type Rep GetBundles :: * -> * #

Hashable GetBundles Source # 
ToJSON GetBundles Source # 
NFData GetBundles Source # 

Methods

rnf :: GetBundles -> () #

AWSRequest GetBundles Source # 
ToPath GetBundles Source # 
ToHeaders GetBundles Source # 

Methods

toHeaders :: GetBundles -> [Header] #

ToQuery GetBundles Source # 
type Rep GetBundles Source # 
type Rep GetBundles = D1 (MetaData "GetBundles" "Network.AWS.Lightsail.GetBundles" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "GetBundles'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gIncludeInactive") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_gPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Rs GetBundles Source # 

Request Lenses

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

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

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

A token used for advancing to the next page of results from your get bundles request.

Destructuring the Response

getBundlesResponse Source #

Creates a value of GetBundlesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • gbrsNextPageToken - A token used for advancing to the next page of results from your get active names request.
  • gbrsBundles - An array of key-value pairs that contains information about the available bundles.
  • gbrsResponseStatus - -- | The response status code.

data GetBundlesResponse Source #

See: getBundlesResponse smart constructor.

Instances

Eq GetBundlesResponse Source # 
Data GetBundlesResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetBundlesResponse -> c GetBundlesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetBundlesResponse #

toConstr :: GetBundlesResponse -> Constr #

dataTypeOf :: GetBundlesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetBundlesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetBundlesResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetBundlesResponse -> GetBundlesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetBundlesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetBundlesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetBundlesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetBundlesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetBundlesResponse -> m GetBundlesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBundlesResponse -> m GetBundlesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetBundlesResponse -> m GetBundlesResponse #

Read GetBundlesResponse Source # 
Show GetBundlesResponse Source # 
Generic GetBundlesResponse Source # 
NFData GetBundlesResponse Source # 

Methods

rnf :: GetBundlesResponse -> () #

type Rep GetBundlesResponse Source # 
type Rep GetBundlesResponse = D1 (MetaData "GetBundlesResponse" "Network.AWS.Lightsail.GetBundles" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "GetBundlesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gbrsNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gbrsBundles") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Bundle]))) (S1 (MetaSel (Just Symbol "_gbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

gbrsNextPageToken :: Lens' GetBundlesResponse (Maybe Text) Source #

A token used for advancing to the next page of results from your get active names request.

gbrsBundles :: Lens' GetBundlesResponse [Bundle] Source #

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

gbrsResponseStatus :: Lens' GetBundlesResponse Int Source #

  • - | The response status code.