amazonka-storagegateway-1.5.0: Amazon Storage Gateway SDK.

Copyright(c) 2013-2017 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.DeleteVolume

Contents

Description

Deletes the specified storage volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API. This operation is only supported in the cached volume and stored volume architectures. For stored volume gateways, the local disk that was configured as the storage volume is not deleted. You can reuse the local disk to create another storage volume.

Before you delete a volume, make sure there are no iSCSI connections to the volume you are deleting. You should also make sure there is no snapshot in progress. You can use the Amazon Elastic Compute Cloud (Amazon EC2) API to query snapshots on the volume you are deleting and check the snapshot status. For more information, go to DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference .

In the request, you must provide the Amazon Resource Name (ARN) of the storage volume you want to delete.

Synopsis

Creating a Request

deleteVolume Source #

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

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

  • dvVolumeARN - The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

data DeleteVolume Source #

A JSON object containing the 'DeleteVolumeInput$VolumeARN' to delete.

See: deleteVolume smart constructor.

Instances

Eq DeleteVolume Source # 
Data DeleteVolume Source # 

Methods

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

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

toConstr :: DeleteVolume -> Constr #

dataTypeOf :: DeleteVolume -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteVolume Source # 
Show DeleteVolume Source # 
Generic DeleteVolume Source # 

Associated Types

type Rep DeleteVolume :: * -> * #

Hashable DeleteVolume Source # 
ToJSON DeleteVolume Source # 
NFData DeleteVolume Source # 

Methods

rnf :: DeleteVolume -> () #

AWSRequest DeleteVolume Source # 
ToQuery DeleteVolume Source # 
ToPath DeleteVolume Source # 
ToHeaders DeleteVolume Source # 
type Rep DeleteVolume Source # 
type Rep DeleteVolume = D1 (MetaData "DeleteVolume" "Network.AWS.StorageGateway.DeleteVolume" "amazonka-storagegateway-1.5.0-Dl0pEQb6pvFBwTkfuWFwCu" True) (C1 (MetaCons "DeleteVolume'" PrefixI True) (S1 (MetaSel (Just Symbol "_dvVolumeARN") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteVolume Source # 

Request Lenses

dvVolumeARN :: Lens' DeleteVolume Text Source #

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.

Destructuring the Response

deleteVolumeResponse Source #

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

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

  • dvrsVolumeARN - The Amazon Resource Name (ARN) of the storage volume that was deleted. It is the same ARN you provided in the request.
  • dvrsResponseStatus - -- | The response status code.

data DeleteVolumeResponse Source #

A JSON object containing the of the storage volume that was deleted

See: deleteVolumeResponse smart constructor.

Instances

Eq DeleteVolumeResponse Source # 
Data DeleteVolumeResponse Source # 

Methods

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

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

toConstr :: DeleteVolumeResponse -> Constr #

dataTypeOf :: DeleteVolumeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteVolumeResponse Source # 
Show DeleteVolumeResponse Source # 
Generic DeleteVolumeResponse Source # 
NFData DeleteVolumeResponse Source # 

Methods

rnf :: DeleteVolumeResponse -> () #

type Rep DeleteVolumeResponse Source # 
type Rep DeleteVolumeResponse = D1 (MetaData "DeleteVolumeResponse" "Network.AWS.StorageGateway.DeleteVolume" "amazonka-storagegateway-1.5.0-Dl0pEQb6pvFBwTkfuWFwCu" False) (C1 (MetaCons "DeleteVolumeResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dvrsVolumeARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dvrsVolumeARN :: Lens' DeleteVolumeResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the storage volume that was deleted. It is the same ARN you provided in the request.

dvrsResponseStatus :: Lens' DeleteVolumeResponse Int Source #

  • - | The response status code.