amazonka-storagegateway-1.6.1: 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 # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Data CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.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 Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Show CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Generic CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Associated Types

type Rep CreateTapes :: Type -> Type #

Hashable CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

ToJSON CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

AWSRequest CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Associated Types

type Rs CreateTapes :: Type #

ToHeaders CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Methods

toHeaders :: CreateTapes -> [Header] #

ToPath CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

ToQuery CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

NFData CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Methods

rnf :: CreateTapes -> () #

type Rep CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

type Rep CreateTapes = D1 (MetaData "CreateTapes" "Network.AWS.StorageGateway.CreateTapes" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "CreateTapes'" PrefixI True) ((S1 (MetaSel (Just "_ctGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ctTapeSizeInBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Integer)) :*: (S1 (MetaSel (Just "_ctClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_ctNumTapesToCreate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Nat) :*: S1 (MetaSel (Just "_ctTapeBarcodePrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateTapes Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

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 # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Data CreateTapesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

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 # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Show CreateTapesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Generic CreateTapesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Associated Types

type Rep CreateTapesResponse :: Type -> Type #

NFData CreateTapesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

Methods

rnf :: CreateTapesResponse -> () #

type Rep CreateTapesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateTapes

type Rep CreateTapesResponse = D1 (MetaData "CreateTapesResponse" "Network.AWS.StorageGateway.CreateTapes" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "CreateTapesResponse'" PrefixI True) (S1 (MetaSel (Just "_ctrsTapeARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_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.