amazonka-storagegateway-1.6.0: 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.AddWorkingStorage

Contents

Description

Configures one or more gateway local disks as working storage for a gateway. This operation is only supported in the stored volume gateway type. This operation is deprecated in cached volume 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 Source #

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

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

  • 'AddWorkingStorageInput$DiskIds'

See: addWorkingStorage smart constructor.

Instances

Eq AddWorkingStorage Source # 
Data AddWorkingStorage Source # 

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

Methods

rnf :: AddWorkingStorage -> () #

AWSRequest AddWorkingStorage Source # 
ToHeaders AddWorkingStorage Source # 
ToPath AddWorkingStorage Source # 
ToQuery AddWorkingStorage Source # 
type Rep AddWorkingStorage Source # 
type Rep AddWorkingStorage = D1 * (MetaData "AddWorkingStorage" "Network.AWS.StorageGateway.AddWorkingStorage" "amazonka-storagegateway-1.6.0-4O2jykLIBNRAOy2n0S31Gg" 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 Source # 

Request Lenses

awsDiskIds :: Lens' AddWorkingStorage [Text] Source #

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

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

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

See: addWorkingStorageResponse smart constructor.

Instances

Eq AddWorkingStorageResponse Source # 
Data AddWorkingStorageResponse Source # 

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 Source # 
Show AddWorkingStorageResponse Source # 
Generic AddWorkingStorageResponse Source # 
NFData AddWorkingStorageResponse Source # 
type Rep AddWorkingStorageResponse Source # 
type Rep AddWorkingStorageResponse = D1 * (MetaData "AddWorkingStorageResponse" "Network.AWS.StorageGateway.AddWorkingStorage" "amazonka-storagegateway-1.6.0-4O2jykLIBNRAOy2n0S31Gg" False) (C1 * (MetaCons "AddWorkingStorageResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_awsrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_awsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses