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

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 #

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 #

A JSON object containing the of the gateway.

See: describeWorkingStorage smart constructor.

Instances

Eq DescribeWorkingStorage # 
Data DescribeWorkingStorage # 

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 # 
Show DescribeWorkingStorage # 
Generic DescribeWorkingStorage # 
Hashable DescribeWorkingStorage # 
ToJSON DescribeWorkingStorage # 
NFData DescribeWorkingStorage # 

Methods

rnf :: DescribeWorkingStorage -> () #

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

Request Lenses

Destructuring the Response

describeWorkingStorageResponse #

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:

  • dwsrsGatewayARN - Undocumented member.
  • dwsrsDiskIds - 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 - The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.
  • dwsrsWorkingStorageUsedInBytes - The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.
  • dwsrsResponseStatus - -- | The response status code.

data DescribeWorkingStorageResponse #

A JSON object containing the following fields:

See: describeWorkingStorageResponse smart constructor.

Instances

Eq DescribeWorkingStorageResponse # 
Data DescribeWorkingStorageResponse # 

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 # 
Show DescribeWorkingStorageResponse # 
Generic DescribeWorkingStorageResponse # 
NFData DescribeWorkingStorageResponse # 
type Rep DescribeWorkingStorageResponse # 
type Rep DescribeWorkingStorageResponse = D1 (MetaData "DescribeWorkingStorageResponse" "Network.AWS.StorageGateway.DescribeWorkingStorage" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" 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 DecidedUnpack) (Rec0 Int))))))

Response Lenses

dwsrsDiskIds :: Lens' DescribeWorkingStorageResponse [Text] #

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) #

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) #

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