amazonka-storagegateway-1.4.3: 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.DescribeWorkingStorage

Contents

Description

Returns information about the working storage of a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer instead.

Working storage is also referred to as upload buffer. You can also use the DescribeUploadBuffer operation to add upload buffer to a stored-volume gateway.

The response includes disk IDs that are configured as working storage, and it includes the amount of working storage allocated and used.

Synopsis

Creating a Request

describeWorkingStorage Source #

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

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

data DescribeWorkingStorage Source #

A JSON object containing the of the gateway.

See: describeWorkingStorage smart constructor.

Instances

Eq DescribeWorkingStorage Source # 
Data DescribeWorkingStorage Source # 

Methods

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

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

toConstr :: DescribeWorkingStorage -> Constr #

dataTypeOf :: DescribeWorkingStorage -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeWorkingStorage Source # 
Show DescribeWorkingStorage Source # 
Generic DescribeWorkingStorage Source # 
ToJSON DescribeWorkingStorage Source # 
Hashable DescribeWorkingStorage Source # 
NFData DescribeWorkingStorage Source # 

Methods

rnf :: DescribeWorkingStorage -> () #

AWSRequest DescribeWorkingStorage Source # 
ToPath DescribeWorkingStorage Source # 
ToHeaders DescribeWorkingStorage Source # 
ToQuery DescribeWorkingStorage Source # 
type Rep DescribeWorkingStorage Source # 
type Rep DescribeWorkingStorage = D1 (MetaData "DescribeWorkingStorage" "Network.AWS.StorageGateway.DescribeWorkingStorage" "amazonka-storagegateway-1.4.3-1vbLkcG6haz5xfGUV2OLbS" True) (C1 (MetaCons "DescribeWorkingStorage'" PrefixI True) (S1 (MetaSel (Just Symbol "_dwsGatewayARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DescribeWorkingStorage Source # 

Request Lenses

Destructuring the Response

describeWorkingStorageResponse Source #

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

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

data DescribeWorkingStorageResponse Source #

A JSON object containing the following fields:

See: describeWorkingStorageResponse smart constructor.

Instances

Eq DescribeWorkingStorageResponse Source # 
Data DescribeWorkingStorageResponse Source # 

Methods

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

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

toConstr :: DescribeWorkingStorageResponse -> Constr #

dataTypeOf :: DescribeWorkingStorageResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeWorkingStorageResponse Source # 
Show DescribeWorkingStorageResponse Source # 
Generic DescribeWorkingStorageResponse Source # 
NFData DescribeWorkingStorageResponse Source # 
type Rep DescribeWorkingStorageResponse Source # 
type Rep DescribeWorkingStorageResponse = D1 (MetaData "DescribeWorkingStorageResponse" "Network.AWS.StorageGateway.DescribeWorkingStorage" "amazonka-storagegateway-1.4.3-1vbLkcG6haz5xfGUV2OLbS" False) (C1 (MetaCons "DescribeWorkingStorageResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dwsrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dwsrsDiskIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) ((:*:) (S1 (MetaSel (Just Symbol "_dwsrsWorkingStorageAllocatedInBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer))) ((:*:) (S1 (MetaSel (Just Symbol "_dwsrsWorkingStorageUsedInBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer))) (S1 (MetaSel (Just Symbol "_dwsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

dwsrsDiskIds :: Lens' DescribeWorkingStorageResponse [Text] Source #

An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.

dwsrsWorkingStorageAllocatedInBytes :: Lens' DescribeWorkingStorageResponse (Maybe Integer) Source #

The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.

dwsrsWorkingStorageUsedInBytes :: Lens' DescribeWorkingStorageResponse (Maybe Integer) Source #

The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.