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

Contents

Description

Configures one or more gateway local disks as working storage for a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated in cached-volumes API version 20120630. Use AddUploadBuffer instead.

In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.

Synopsis

Creating a Request

addWorkingStorage #

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

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

  • awsGatewayARN - Undocumented member.
  • awsDiskIds - An array of strings that identify disks that are to be configured as working storage. Each string have a minimum length of 1 and maximum length of 300. You can get the disk IDs from the ListLocalDisks API.

data AddWorkingStorage #

A JSON object containing one or more of the following fields:

  • 'AddWorkingStorageInput$DiskIds'

See: addWorkingStorage smart constructor.

Instances

Eq AddWorkingStorage # 
Data AddWorkingStorage # 

Methods

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

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

toConstr :: AddWorkingStorage -> Constr #

dataTypeOf :: AddWorkingStorage -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AddWorkingStorage # 
Show AddWorkingStorage # 
Generic AddWorkingStorage # 
Hashable AddWorkingStorage # 
ToJSON AddWorkingStorage # 
NFData AddWorkingStorage # 

Methods

rnf :: AddWorkingStorage -> () #

AWSRequest AddWorkingStorage # 
ToQuery AddWorkingStorage # 
ToPath AddWorkingStorage # 
ToHeaders AddWorkingStorage # 
type Rep AddWorkingStorage # 
type Rep AddWorkingStorage = D1 (MetaData "AddWorkingStorage" "Network.AWS.StorageGateway.AddWorkingStorage" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" False) (C1 (MetaCons "AddWorkingStorage'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_awsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_awsDiskIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))
type Rs AddWorkingStorage # 

Request Lenses

awsGatewayARN :: Lens' AddWorkingStorage Text #

Undocumented member.

awsDiskIds :: Lens' AddWorkingStorage [Text] #

An array of strings that identify disks that are to be configured as working storage. Each string have a minimum length of 1 and maximum length of 300. You can get the disk IDs from the ListLocalDisks API.

Destructuring the Response

addWorkingStorageResponse #

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

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

data AddWorkingStorageResponse #

A JSON object containing the of the gateway for which working storage was configured.

See: addWorkingStorageResponse smart constructor.

Instances

Eq AddWorkingStorageResponse # 
Data AddWorkingStorageResponse # 

Methods

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

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

toConstr :: AddWorkingStorageResponse -> Constr #

dataTypeOf :: AddWorkingStorageResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AddWorkingStorageResponse # 
Show AddWorkingStorageResponse # 
Generic AddWorkingStorageResponse # 
NFData AddWorkingStorageResponse # 
type Rep AddWorkingStorageResponse # 
type Rep AddWorkingStorageResponse = D1 (MetaData "AddWorkingStorageResponse" "Network.AWS.StorageGateway.AddWorkingStorage" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" False) (C1 (MetaCons "AddWorkingStorageResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_awsrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_awsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

awsrsResponseStatus :: Lens' AddWorkingStorageResponse Int #

  • - | The response status code.