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

Contents

Description

Creates a cached volume on a specified cached volume gateway. This operation is only supported in the cached volume gateway type.

In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, the gateway creates the volume and returns information about it. This information includes the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

Optionally, you can provide the ARN for an existing volume as the SourceVolumeARN for this cached volume, which creates an exact copy of the existing volume’s latest recovery point. The VolumeSizeInBytes value must be equal to or larger than the size of the copied volume, in bytes.

Synopsis

Creating a Request

createCachediSCSIVolume Source #

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

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

data CreateCachediSCSIVolume Source #

See: createCachediSCSIVolume smart constructor.

Instances
Eq CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Data CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Methods

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

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

toConstr :: CreateCachediSCSIVolume -> Constr #

dataTypeOf :: CreateCachediSCSIVolume -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Show CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Generic CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Associated Types

type Rep CreateCachediSCSIVolume :: Type -> Type #

Hashable CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

ToJSON CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

AWSRequest CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Associated Types

type Rs CreateCachediSCSIVolume :: Type #

ToHeaders CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

ToPath CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

ToQuery CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

NFData CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Methods

rnf :: CreateCachediSCSIVolume -> () #

type Rep CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

type Rep CreateCachediSCSIVolume = D1 (MetaData "CreateCachediSCSIVolume" "Network.AWS.StorageGateway.CreateCachediSCSIVolume" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "CreateCachediSCSIVolume'" PrefixI True) ((S1 (MetaSel (Just "_ccscsivSourceVolumeARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ccscsivSnapshotId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccscsivGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: ((S1 (MetaSel (Just "_ccscsivVolumeSizeInBytes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Integer) :*: S1 (MetaSel (Just "_ccscsivTargetName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_ccscsivNetworkInterfaceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ccscsivClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateCachediSCSIVolume Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Request Lenses

ccscsivSourceVolumeARN :: Lens' CreateCachediSCSIVolume (Maybe Text) Source #

The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The VolumeSizeInBytes value for this new volume must be equal to or larger than the size of the existing volume, in bytes.

Destructuring the Response

createCachediSCSIVolumeResponse Source #

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

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

data CreateCachediSCSIVolumeResponse Source #

See: createCachediSCSIVolumeResponse smart constructor.

Instances
Eq CreateCachediSCSIVolumeResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Data CreateCachediSCSIVolumeResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Methods

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

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

toConstr :: CreateCachediSCSIVolumeResponse -> Constr #

dataTypeOf :: CreateCachediSCSIVolumeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateCachediSCSIVolumeResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Show CreateCachediSCSIVolumeResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Generic CreateCachediSCSIVolumeResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

Associated Types

type Rep CreateCachediSCSIVolumeResponse :: Type -> Type #

NFData CreateCachediSCSIVolumeResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

type Rep CreateCachediSCSIVolumeResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.CreateCachediSCSIVolume

type Rep CreateCachediSCSIVolumeResponse = D1 (MetaData "CreateCachediSCSIVolumeResponse" "Network.AWS.StorageGateway.CreateCachediSCSIVolume" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "CreateCachediSCSIVolumeResponse'" PrefixI True) (S1 (MetaSel (Just "_ccscsivrsTargetARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_ccscsivrsVolumeARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ccscsivrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses