amazonka-storagegateway-1.6.1: Amazon Storage Gateway SDK.

Copyright(c) 2013-2018 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 type. 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 # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

Data DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.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 Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

Show DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

Generic DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

Associated Types

type Rep DescribeWorkingStorage :: Type -> Type #

Hashable DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

ToJSON DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

AWSRequest DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

Associated Types

type Rs DescribeWorkingStorage :: Type #

ToHeaders DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

ToPath DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

ToQuery DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

NFData DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

Methods

rnf :: DescribeWorkingStorage -> () #

type Rep DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

type Rep DescribeWorkingStorage = D1 (MetaData "DescribeWorkingStorage" "Network.AWS.StorageGateway.DescribeWorkingStorage" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" True) (C1 (MetaCons "DescribeWorkingStorage'" PrefixI True) (S1 (MetaSel (Just "_dwsGatewayARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DescribeWorkingStorage Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

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 # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

Data DescribeWorkingStorageResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

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 # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

Show DescribeWorkingStorageResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

Generic DescribeWorkingStorageResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

Associated Types

type Rep DescribeWorkingStorageResponse :: Type -> Type #

NFData DescribeWorkingStorageResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

type Rep DescribeWorkingStorageResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.DescribeWorkingStorage

type Rep DescribeWorkingStorageResponse = D1 (MetaData "DescribeWorkingStorageResponse" "Network.AWS.StorageGateway.DescribeWorkingStorage" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "DescribeWorkingStorageResponse'" PrefixI True) ((S1 (MetaSel (Just "_dwsrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dwsrsDiskIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 (MetaSel (Just "_dwsrsWorkingStorageAllocatedInBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 (MetaSel (Just "_dwsrsWorkingStorageUsedInBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 (MetaSel (Just "_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.