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

Contents

Description

Returns a list of all valid regions for Amazon Lightsail.

Synopsis

Creating a Request

getRegions :: GetRegions #

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

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

  • grIncludeAvailabilityZones - A Boolean value indicating whether to also include Availability Zones in your get regions request. Availability Zones are indicated with a letter: e.g., us-east-1a .

data GetRegions #

See: getRegions smart constructor.

Instances

Eq GetRegions # 
Data GetRegions # 

Methods

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

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

toConstr :: GetRegions -> Constr #

dataTypeOf :: GetRegions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRegions # 
Show GetRegions # 
Generic GetRegions # 

Associated Types

type Rep GetRegions :: * -> * #

Hashable GetRegions # 
ToJSON GetRegions # 
NFData GetRegions # 

Methods

rnf :: GetRegions -> () #

AWSRequest GetRegions # 
ToQuery GetRegions # 
ToPath GetRegions # 
ToHeaders GetRegions # 

Methods

toHeaders :: GetRegions -> [Header] #

type Rep GetRegions # 
type Rep GetRegions = D1 (MetaData "GetRegions" "Network.AWS.Lightsail.GetRegions" "amazonka-lightsail-1.4.5-1xtmakXHWr2BG215OJNbvq" True) (C1 (MetaCons "GetRegions'" PrefixI True) (S1 (MetaSel (Just Symbol "_grIncludeAvailabilityZones") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Bool))))
type Rs GetRegions # 

Request Lenses

grIncludeAvailabilityZones :: Lens' GetRegions (Maybe Bool) #

A Boolean value indicating whether to also include Availability Zones in your get regions request. Availability Zones are indicated with a letter: e.g., us-east-1a .

Destructuring the Response

getRegionsResponse #

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

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

  • grrsRegions - An array of key-value pairs containing information about your get regions request.
  • grrsResponseStatus - -- | The response status code.

data GetRegionsResponse #

See: getRegionsResponse smart constructor.

Instances

Eq GetRegionsResponse # 
Data GetRegionsResponse # 

Methods

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

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

toConstr :: GetRegionsResponse -> Constr #

dataTypeOf :: GetRegionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetRegionsResponse # 
Show GetRegionsResponse # 
Generic GetRegionsResponse # 
NFData GetRegionsResponse # 

Methods

rnf :: GetRegionsResponse -> () #

type Rep GetRegionsResponse # 
type Rep GetRegionsResponse = D1 (MetaData "GetRegionsResponse" "Network.AWS.Lightsail.GetRegions" "amazonka-lightsail-1.4.5-1xtmakXHWr2BG215OJNbvq" False) (C1 (MetaCons "GetRegionsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_grrsRegions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [RegionInfo]))) (S1 (MetaSel (Just Symbol "_grrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

grrsRegions :: Lens' GetRegionsResponse [RegionInfo] #

An array of key-value pairs containing information about your get regions request.

grrsResponseStatus :: Lens' GetRegionsResponse Int #

  • - | The response status code.