amazonka-storagegateway-1.4.5: Amazon Storage Gateway 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.StorageGateway.ListLocalDisks

Contents

Description

Returns a list of the gateway's local disks. To specify which gateway to describe, you use the Amazon Resource Name (ARN) of the gateway in the body of the request.

The request returns a list of all disks, specifying which are configured as working storage, cache storage, or stored volume or not configured at all. The response includes a DiskStatus field. This field can have a value of present (the disk is available to use), missing (the disk is no longer connected to the gateway), or mismatch (the disk node is occupied by a disk that has incorrect metadata or the disk content is corrupted).

Synopsis

Creating a Request

listLocalDisks #

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

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

data ListLocalDisks #

A JSON object containing the of the gateway.

See: listLocalDisks smart constructor.

Instances

Eq ListLocalDisks # 
Data ListLocalDisks # 

Methods

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

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

toConstr :: ListLocalDisks -> Constr #

dataTypeOf :: ListLocalDisks -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListLocalDisks # 
Show ListLocalDisks # 
Generic ListLocalDisks # 

Associated Types

type Rep ListLocalDisks :: * -> * #

Hashable ListLocalDisks # 
ToJSON ListLocalDisks # 
NFData ListLocalDisks # 

Methods

rnf :: ListLocalDisks -> () #

AWSRequest ListLocalDisks # 
ToQuery ListLocalDisks # 
ToPath ListLocalDisks # 
ToHeaders ListLocalDisks # 
type Rep ListLocalDisks # 
type Rep ListLocalDisks = D1 (MetaData "ListLocalDisks" "Network.AWS.StorageGateway.ListLocalDisks" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" True) (C1 (MetaCons "ListLocalDisks'" PrefixI True) (S1 (MetaSel (Just Symbol "_lldGatewayARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs ListLocalDisks # 

Request Lenses

lldGatewayARN :: Lens' ListLocalDisks Text #

Undocumented member.

Destructuring the Response

listLocalDisksResponse #

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

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

data ListLocalDisksResponse #

See: listLocalDisksResponse smart constructor.

Instances

Eq ListLocalDisksResponse # 
Data ListLocalDisksResponse # 

Methods

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

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

toConstr :: ListLocalDisksResponse -> Constr #

dataTypeOf :: ListLocalDisksResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListLocalDisksResponse # 
Show ListLocalDisksResponse # 
Generic ListLocalDisksResponse # 
NFData ListLocalDisksResponse # 

Methods

rnf :: ListLocalDisksResponse -> () #

type Rep ListLocalDisksResponse # 
type Rep ListLocalDisksResponse = D1 (MetaData "ListLocalDisksResponse" "Network.AWS.StorageGateway.ListLocalDisks" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" False) (C1 (MetaCons "ListLocalDisksResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lldrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lldrsDisks") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Disk]))) (S1 (MetaSel (Just Symbol "_lldrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

lldrsDisks :: Lens' ListLocalDisksResponse [Disk] #

Undocumented member.

lldrsResponseStatus :: Lens' ListLocalDisksResponse Int #

  • - | The response status code.