amazonka-storagegateway-1.4.2: 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.AddCache

Contents

Description

Configures one or more gateway local disks as cache for a cached-volume gateway. This operation is supported only for the gateway-cached volume architecture (see Storage Gateway Concepts).

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

Synopsis

Creating a Request

addCache Source #

Arguments

:: Text

acGatewayARN

-> AddCache 

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

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

data AddCache Source #

See: addCache smart constructor.

Instances

Eq AddCache Source # 
Data AddCache Source # 

Methods

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

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

toConstr :: AddCache -> Constr #

dataTypeOf :: AddCache -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AddCache Source # 
Show AddCache Source # 
Generic AddCache Source # 

Associated Types

type Rep AddCache :: * -> * #

Methods

from :: AddCache -> Rep AddCache x #

to :: Rep AddCache x -> AddCache #

ToJSON AddCache Source # 
Hashable AddCache Source # 

Methods

hashWithSalt :: Int -> AddCache -> Int #

hash :: AddCache -> Int #

NFData AddCache Source # 

Methods

rnf :: AddCache -> () #

AWSRequest AddCache Source # 
ToPath AddCache Source # 
ToHeaders AddCache Source # 

Methods

toHeaders :: AddCache -> [Header] #

ToQuery AddCache Source # 
type Rep AddCache Source # 
type Rep AddCache = D1 (MetaData "AddCache" "Network.AWS.StorageGateway.AddCache" "amazonka-storagegateway-1.4.2-6QlWW7emDRu7IjwBFv6RzL" False) (C1 (MetaCons "AddCache'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_acGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_acDiskIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))
type Rs AddCache Source # 

Request Lenses

acGatewayARN :: Lens' AddCache Text Source #

Undocumented member.

acDiskIds :: Lens' AddCache [Text] Source #

Undocumented member.

Destructuring the Response

addCacheResponse Source #

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

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

data AddCacheResponse Source #

See: addCacheResponse smart constructor.

Instances

Eq AddCacheResponse Source # 
Data AddCacheResponse Source # 

Methods

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

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

toConstr :: AddCacheResponse -> Constr #

dataTypeOf :: AddCacheResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AddCacheResponse Source # 
Show AddCacheResponse Source # 
Generic AddCacheResponse Source # 
NFData AddCacheResponse Source # 

Methods

rnf :: AddCacheResponse -> () #

type Rep AddCacheResponse Source # 
type Rep AddCacheResponse = D1 (MetaData "AddCacheResponse" "Network.AWS.StorageGateway.AddCache" "amazonka-storagegateway-1.4.2-6QlWW7emDRu7IjwBFv6RzL" False) (C1 (MetaCons "AddCacheResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_acrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_acrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

acrsResponseStatus :: Lens' AddCacheResponse Int Source #

The response status code.