amazonka-redshift-1.6.0: Amazon Redshift 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.Redshift.DeleteClusterSnapshot

Contents

Description

Deletes the specified manual snapshot. The snapshot must be in the available state, with no other users authorized to access the snapshot.

Unlike automated snapshots, manual snapshots are retained even after you delete your cluster. Amazon Redshift does not delete your manual snapshots. You must delete manual snapshot explicitly to avoid getting charged. If other accounts are authorized to access the snapshot, you must revoke all of the authorizations before you can delete the snapshot.

Synopsis

Creating a Request

deleteClusterSnapshot #

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

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

  • dcsSnapshotClusterIdentifier - The unique identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name. Constraints: Must be the name of valid cluster.
  • dcsSnapshotIdentifier - The unique identifier of the manual snapshot to be deleted. Constraints: Must be the name of an existing snapshot that is in the available state.

data DeleteClusterSnapshot #

See: deleteClusterSnapshot smart constructor.

Instances

Eq DeleteClusterSnapshot # 
Data DeleteClusterSnapshot # 

Methods

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

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

toConstr :: DeleteClusterSnapshot -> Constr #

dataTypeOf :: DeleteClusterSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteClusterSnapshot # 
Show DeleteClusterSnapshot # 
Generic DeleteClusterSnapshot # 
Hashable DeleteClusterSnapshot # 
NFData DeleteClusterSnapshot # 

Methods

rnf :: DeleteClusterSnapshot -> () #

AWSRequest DeleteClusterSnapshot # 
ToHeaders DeleteClusterSnapshot # 
ToPath DeleteClusterSnapshot # 
ToQuery DeleteClusterSnapshot # 
type Rep DeleteClusterSnapshot # 
type Rep DeleteClusterSnapshot = D1 * (MetaData "DeleteClusterSnapshot" "Network.AWS.Redshift.DeleteClusterSnapshot" "amazonka-redshift-1.6.0-LZqm5saD9VdK7dzUu4YYAo" False) (C1 * (MetaCons "DeleteClusterSnapshot'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dcsSnapshotClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dcsSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs DeleteClusterSnapshot # 

Request Lenses

dcsSnapshotClusterIdentifier :: Lens' DeleteClusterSnapshot (Maybe Text) #

The unique identifier of the cluster the snapshot was created from. This parameter is required if your IAM user has a policy containing a snapshot resource element that specifies anything other than * for the cluster name. Constraints: Must be the name of valid cluster.

dcsSnapshotIdentifier :: Lens' DeleteClusterSnapshot Text #

The unique identifier of the manual snapshot to be deleted. Constraints: Must be the name of an existing snapshot that is in the available state.

Destructuring the Response

deleteClusterSnapshotResponse #

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

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

data DeleteClusterSnapshotResponse #

See: deleteClusterSnapshotResponse smart constructor.

Instances

Eq DeleteClusterSnapshotResponse # 
Data DeleteClusterSnapshotResponse # 

Methods

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

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

toConstr :: DeleteClusterSnapshotResponse -> Constr #

dataTypeOf :: DeleteClusterSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteClusterSnapshotResponse # 
Show DeleteClusterSnapshotResponse # 
Generic DeleteClusterSnapshotResponse # 
NFData DeleteClusterSnapshotResponse # 
type Rep DeleteClusterSnapshotResponse # 
type Rep DeleteClusterSnapshotResponse = D1 * (MetaData "DeleteClusterSnapshotResponse" "Network.AWS.Redshift.DeleteClusterSnapshot" "amazonka-redshift-1.6.0-LZqm5saD9VdK7dzUu4YYAo" False) (C1 * (MetaCons "DeleteClusterSnapshotResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dcsrsSnapshot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Snapshot))) (S1 * (MetaSel (Just Symbol "_dcsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses