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

Contents

Description

Creates a virtual tape by using your own barcode. You write data to the virtual tape and then archive the tape. A barcode is unique and can not be reused if it has already been used on a tape . This applies to barcodes used on deleted tapes. This operation is only supported in the tape gateway type.

Synopsis

Creating a Request

createTapeWithBarcode Source #

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

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

  • ctwbGatewayARN - The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tape with. Use the ListGateways operation to return a list of gateways for your account and region.
  • ctwbTapeSizeInBytes - The size, in bytes, of the virtual tape that you want to create.
  • ctwbTapeBarcode - The barcode that you want to assign to the tape.

data CreateTapeWithBarcode Source #

CreateTapeWithBarcodeInput

See: createTapeWithBarcode smart constructor.

Instances

Eq CreateTapeWithBarcode Source # 
Data CreateTapeWithBarcode Source # 

Methods

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

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

toConstr :: CreateTapeWithBarcode -> Constr #

dataTypeOf :: CreateTapeWithBarcode -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Methods

rnf :: CreateTapeWithBarcode -> () #

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

Request Lenses

ctwbGatewayARN :: Lens' CreateTapeWithBarcode Text Source #

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

ctwbTapeSizeInBytes :: Lens' CreateTapeWithBarcode Integer Source #

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

ctwbTapeBarcode :: Lens' CreateTapeWithBarcode Text Source #

The barcode that you want to assign to the tape.

Destructuring the Response

createTapeWithBarcodeResponse Source #

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

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

data CreateTapeWithBarcodeResponse Source #

CreateTapeOutput

See: createTapeWithBarcodeResponse smart constructor.

Instances

Eq CreateTapeWithBarcodeResponse Source # 
Data CreateTapeWithBarcodeResponse Source # 

Methods

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

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

toConstr :: CreateTapeWithBarcodeResponse -> Constr #

dataTypeOf :: CreateTapeWithBarcodeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses

ctwbrsTapeARN :: Lens' CreateTapeWithBarcodeResponse (Maybe Text) Source #

A unique Amazon Resource Name (ARN) that represents the virtual tape that was created.