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

Contents

Description

Configures one or more gateway local disks as cache for a gateway. This operation is only supported in the cached volume, tape and file gateway type (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 # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

Data AddCache Source # 
Instance details

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

Defined in Network.AWS.StorageGateway.AddCache

Show AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

Generic AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

Associated Types

type Rep AddCache :: Type -> Type #

Methods

from :: AddCache -> Rep AddCache x #

to :: Rep AddCache x -> AddCache #

Hashable AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

Methods

hashWithSalt :: Int -> AddCache -> Int #

hash :: AddCache -> Int #

ToJSON AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

AWSRequest AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

Associated Types

type Rs AddCache :: Type #

ToHeaders AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

Methods

toHeaders :: AddCache -> [Header] #

ToPath AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

ToQuery AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

NFData AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

Methods

rnf :: AddCache -> () #

type Rep AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

type Rep AddCache = D1 (MetaData "AddCache" "Network.AWS.StorageGateway.AddCache" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "AddCache'" PrefixI True) (S1 (MetaSel (Just "_acGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_acDiskIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])))
type Rs AddCache Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

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

Defined in Network.AWS.StorageGateway.AddCache

Data AddCacheResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

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

Defined in Network.AWS.StorageGateway.AddCache

Show AddCacheResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

Generic AddCacheResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

Associated Types

type Rep AddCacheResponse :: Type -> Type #

NFData AddCacheResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

Methods

rnf :: AddCacheResponse -> () #

type Rep AddCacheResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.AddCache

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

Response Lenses

acrsResponseStatus :: Lens' AddCacheResponse Int Source #

  • - | The response status code.