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

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 #

See: addCache smart constructor.

Instances

Eq AddCache # 
Data AddCache # 

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 # 
Show AddCache # 
Generic AddCache # 

Associated Types

type Rep AddCache :: * -> * #

Methods

from :: AddCache -> Rep AddCache x #

to :: Rep AddCache x -> AddCache #

Hashable AddCache # 

Methods

hashWithSalt :: Int -> AddCache -> Int #

hash :: AddCache -> Int #

ToJSON AddCache # 
NFData AddCache # 

Methods

rnf :: AddCache -> () #

AWSRequest AddCache # 
ToQuery AddCache # 
ToPath AddCache # 
ToHeaders AddCache # 

Methods

toHeaders :: AddCache -> [Header] #

type Rep AddCache # 
type Rep AddCache = D1 (MetaData "AddCache" "Network.AWS.StorageGateway.AddCache" "amazonka-storagegateway-1.4.5-ChAHao40T5hDKKv8LXBPA4" 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 # 

Request Lenses

acGatewayARN :: Lens' AddCache Text #

Undocumented member.

acDiskIds :: Lens' AddCache [Text] #

Undocumented member.

Destructuring the Response

addCacheResponse #

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 #

See: addCacheResponse smart constructor.

Instances

Eq AddCacheResponse # 
Data AddCacheResponse # 

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 # 
Show AddCacheResponse # 
Generic AddCacheResponse # 
NFData AddCacheResponse # 

Methods

rnf :: AddCacheResponse -> () #

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

Response Lenses

acrsGatewayARN :: Lens' AddCacheResponse (Maybe Text) #

Undocumented member.

acrsResponseStatus :: Lens' AddCacheResponse Int #

  • - | The response status code.