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

Contents

Description

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

Synopsis

Creating a Request

createTapes #

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 #

CreateTapesInput

See: createTapes smart constructor.

Instances

Eq CreateTapes # 
Data CreateTapes # 

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

Associated Types

type Rep CreateTapes :: * -> * #

Hashable CreateTapes # 
ToJSON CreateTapes # 
NFData CreateTapes # 

Methods

rnf :: CreateTapes -> () #

AWSRequest CreateTapes # 
ToQuery CreateTapes # 
ToPath CreateTapes # 
ToHeaders CreateTapes # 

Methods

toHeaders :: CreateTapes -> [Header] #

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

Request Lenses

ctGatewayARN :: Lens' CreateTapes Text #

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 #

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

ctClientToken :: Lens' CreateTapes Text #

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 #

The number of virtual tapes that you want to create.

ctTapeBarcodePrefix :: Lens' CreateTapes Text #

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 #

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 #

CreateTapeOutput

See: createTapesResponse smart constructor.

Instances

Eq CreateTapesResponse # 
Data CreateTapesResponse # 

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

Methods

rnf :: CreateTapesResponse -> () #

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

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

ctrsResponseStatus :: Lens' CreateTapesResponse Int #

  • - | The response status code.