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

Contents

Description

Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a tape gateway. Virtual tapes archived in the VTS are not associated with any gateway. However after a tape is retrieved, it is associated with a gateway, even though it is also listed in the VTS, that is, archive. This operation is only supported in the tape gateway type.

Once a tape is successfully retrieved to a gateway, it cannot be retrieved again to another gateway. You must archive the tape again before you can retrieve it to another gateway. This operation is only supported in the tape gateway type.

Synopsis

Creating a Request

retrieveTapeArchive Source #

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

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

  • rtaTapeARN - The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from the virtual tape shelf (VTS).
  • rtaGatewayARN - The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual tape to. Use the ListGateways operation to return a list of gateways for your account and region. You retrieve archived virtual tapes to only one gateway and the gateway must be a tape gateway.

data RetrieveTapeArchive Source #

RetrieveTapeArchiveInput

See: retrieveTapeArchive smart constructor.

Instances

Eq RetrieveTapeArchive Source # 
Data RetrieveTapeArchive Source # 

Methods

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

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

toConstr :: RetrieveTapeArchive -> Constr #

dataTypeOf :: RetrieveTapeArchive -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RetrieveTapeArchive Source # 
Show RetrieveTapeArchive Source # 
Generic RetrieveTapeArchive Source # 
Hashable RetrieveTapeArchive Source # 
ToJSON RetrieveTapeArchive Source # 
NFData RetrieveTapeArchive Source # 

Methods

rnf :: RetrieveTapeArchive -> () #

AWSRequest RetrieveTapeArchive Source # 
ToHeaders RetrieveTapeArchive Source # 
ToPath RetrieveTapeArchive Source # 
ToQuery RetrieveTapeArchive Source # 
type Rep RetrieveTapeArchive Source # 
type Rep RetrieveTapeArchive = D1 * (MetaData "RetrieveTapeArchive" "Network.AWS.StorageGateway.RetrieveTapeArchive" "amazonka-storagegateway-1.6.0-4O2jykLIBNRAOy2n0S31Gg" False) (C1 * (MetaCons "RetrieveTapeArchive'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtaTapeARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_rtaGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs RetrieveTapeArchive Source # 

Request Lenses

rtaTapeARN :: Lens' RetrieveTapeArchive Text Source #

The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from the virtual tape shelf (VTS).

rtaGatewayARN :: Lens' RetrieveTapeArchive Text Source #

The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual tape to. Use the ListGateways operation to return a list of gateways for your account and region. You retrieve archived virtual tapes to only one gateway and the gateway must be a tape gateway.

Destructuring the Response

retrieveTapeArchiveResponse Source #

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

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

data RetrieveTapeArchiveResponse Source #

RetrieveTapeArchiveOutput

See: retrieveTapeArchiveResponse smart constructor.

Instances

Eq RetrieveTapeArchiveResponse Source # 
Data RetrieveTapeArchiveResponse Source # 

Methods

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

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

toConstr :: RetrieveTapeArchiveResponse -> Constr #

dataTypeOf :: RetrieveTapeArchiveResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RetrieveTapeArchiveResponse Source # 
Show RetrieveTapeArchiveResponse Source # 
Generic RetrieveTapeArchiveResponse Source # 
NFData RetrieveTapeArchiveResponse Source # 
type Rep RetrieveTapeArchiveResponse Source # 
type Rep RetrieveTapeArchiveResponse = D1 * (MetaData "RetrieveTapeArchiveResponse" "Network.AWS.StorageGateway.RetrieveTapeArchive" "amazonka-storagegateway-1.6.0-4O2jykLIBNRAOy2n0S31Gg" False) (C1 * (MetaCons "RetrieveTapeArchiveResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rtarsTapeARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_rtarsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

rtarsTapeARN :: Lens' RetrieveTapeArchiveResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the retrieved virtual tape.