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

Contents

Description

Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes. This operation is only supported in the tape gateway type.

Synopsis

Creating a Request

createTapes Source #

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

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

  • ctGatewayARN - The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.
  • ctTapeSizeInBytes - The size, in bytes, of the virtual tapes that you want to create.
  • ctClientToken - A unique identifier that you use to retry a request. If you retry a request, use the same ClientToken you specified in the initial request.
  • ctNumTapesToCreate - The number of virtual tapes that you want to create.
  • ctTapeBarcodePrefix - A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.

data CreateTapes Source #

CreateTapesInput

See: createTapes smart constructor.

Instances

Eq CreateTapes Source # 
Data CreateTapes Source # 

Methods

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

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

toConstr :: CreateTapes -> Constr #

dataTypeOf :: CreateTapes -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateTapes Source # 
Show CreateTapes Source # 
Generic CreateTapes Source # 

Associated Types

type Rep CreateTapes :: * -> * #

Hashable CreateTapes Source # 
ToJSON CreateTapes Source # 
NFData CreateTapes Source # 

Methods

rnf :: CreateTapes -> () #

AWSRequest CreateTapes Source # 
ToHeaders CreateTapes Source # 

Methods

toHeaders :: CreateTapes -> [Header] #

ToPath CreateTapes Source # 
ToQuery CreateTapes Source # 
type Rep CreateTapes Source # 
type Rep CreateTapes = D1 * (MetaData "CreateTapes" "Network.AWS.StorageGateway.CreateTapes" "amazonka-storagegateway-1.6.0-4O2jykLIBNRAOy2n0S31Gg" False) (C1 * (MetaCons "CreateTapes'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ctGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_ctTapeSizeInBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Integer))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ctClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_ctNumTapesToCreate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Nat)) (S1 * (MetaSel (Just Symbol "_ctTapeBarcodePrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))
type Rs CreateTapes Source # 

Request Lenses

ctGatewayARN :: Lens' CreateTapes Text Source #

The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tapes with. Use the ListGateways operation to return a list of gateways for your account and region.

ctTapeSizeInBytes :: Lens' CreateTapes Integer Source #

The size, in bytes, of the virtual tapes that you want to create.

ctClientToken :: Lens' CreateTapes Text Source #

A unique identifier that you use to retry a request. If you retry a request, use the same ClientToken you specified in the initial request.

ctNumTapesToCreate :: Lens' CreateTapes Natural Source #

The number of virtual tapes that you want to create.

ctTapeBarcodePrefix :: Lens' CreateTapes Text Source #

A prefix that you append to the barcode of the virtual tape you are creating. This prefix makes the barcode unique.

Destructuring the Response

createTapesResponse Source #

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

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

  • ctrsTapeARNs - A list of unique Amazon Resource Names (ARNs) that represents the virtual tapes that were created.
  • ctrsResponseStatus - -- | The response status code.

data CreateTapesResponse Source #

CreateTapeOutput

See: createTapesResponse smart constructor.

Instances

Eq CreateTapesResponse Source # 
Data CreateTapesResponse Source # 

Methods

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

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

toConstr :: CreateTapesResponse -> Constr #

dataTypeOf :: CreateTapesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateTapesResponse Source # 
Show CreateTapesResponse Source # 
Generic CreateTapesResponse Source # 
NFData CreateTapesResponse Source # 

Methods

rnf :: CreateTapesResponse -> () #

type Rep CreateTapesResponse Source # 
type Rep CreateTapesResponse = D1 * (MetaData "CreateTapesResponse" "Network.AWS.StorageGateway.CreateTapes" "amazonka-storagegateway-1.6.0-4O2jykLIBNRAOy2n0S31Gg" False) (C1 * (MetaCons "CreateTapesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ctrsTapeARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_ctrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

ctrsTapeARNs :: Lens' CreateTapesResponse [Text] Source #

A list of unique Amazon Resource Names (ARNs) that represents the virtual tapes that were created.

ctrsResponseStatus :: Lens' CreateTapesResponse Int Source #

  • - | The response status code.