amazonka-storagegateway-1.4.4: 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.CreateTapes

Contents

Description

Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes.

Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway.

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:

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 # 
NFData CreateTapes Source # 

Methods

rnf :: CreateTapes -> () #

AWSRequest CreateTapes Source # 
ToPath CreateTapes Source # 
ToHeaders CreateTapes Source # 

Methods

toHeaders :: CreateTapes -> [Header] #

ToQuery CreateTapes Source # 
ToJSON CreateTapes Source # 

Methods

toJSON :: CreateTapes -> Value #

toEncoding :: CreateTapes -> Encoding #

type Rep CreateTapes Source # 
type Rep CreateTapes = D1 (MetaData "CreateTapes" "Network.AWS.StorageGateway.CreateTapes" "amazonka-storagegateway-1.4.4-HOInns2Rr9V9xD6G5ZVbNW" 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.

The size must be aligned by gigabyte (1024*1024*1024 byte).

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.

Using the same ClientToken prevents creating the tape multiple times.

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.

The prefix must be 1 to 4 characters in length and must be one of the uppercase letters from A to Z.

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:

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.4.4-HOInns2Rr9V9xD6G5ZVbNW" False) (C1 (MetaCons "CreateTapesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ctrsTapeARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_ctrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (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.