amazonka-storagegateway-1.5.0: Amazon Storage Gateway SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 only supported in the stored volumes gateway 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 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 # 
Hashable DescribeWorkingStorage Source # 
ToJSON DescribeWorkingStorage Source # 
NFData DescribeWorkingStorage Source # 

Methods

rnf :: DescribeWorkingStorage -> () #

AWSRequest DescribeWorkingStorage Source # 
ToQuery DescribeWorkingStorage Source # 
ToPath DescribeWorkingStorage Source # 
ToHeaders DescribeWorkingStorage Source # 
type Rep DescribeWorkingStorage Source # 
type Rep DescribeWorkingStorage = D1 (MetaData "DescribeWorkingStorage" "Network.AWS.StorageGateway.DescribeWorkingStorage" "amazonka-storagegateway-1.5.0-Dl0pEQb6pvFBwTkfuWFwCu" 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:

  • 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 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.5.0-Dl0pEQb6pvFBwTkfuWFwCu" 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.