amazonka-redshift-1.5.0: Amazon Redshift 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.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 Source #

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 Source #

See: deleteClusterSnapshot smart constructor.

Instances

Eq DeleteClusterSnapshot Source # 
Data DeleteClusterSnapshot Source # 

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 Source # 
Show DeleteClusterSnapshot Source # 
Generic DeleteClusterSnapshot Source # 
Hashable DeleteClusterSnapshot Source # 
NFData DeleteClusterSnapshot Source # 

Methods

rnf :: DeleteClusterSnapshot -> () #

AWSRequest DeleteClusterSnapshot Source # 
ToQuery DeleteClusterSnapshot Source # 
ToPath DeleteClusterSnapshot Source # 
ToHeaders DeleteClusterSnapshot Source # 
type Rep DeleteClusterSnapshot Source # 
type Rep DeleteClusterSnapshot = D1 (MetaData "DeleteClusterSnapshot" "Network.AWS.Redshift.DeleteClusterSnapshot" "amazonka-redshift-1.5.0-Dab3rZV2tPBCgimwpoJly0" 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 Source # 

Request Lenses

dcsSnapshotClusterIdentifier :: Lens' DeleteClusterSnapshot (Maybe Text) Source #

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 Source #

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 Source #

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 Source #

See: deleteClusterSnapshotResponse smart constructor.

Instances

Eq DeleteClusterSnapshotResponse Source # 
Data DeleteClusterSnapshotResponse Source # 

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 Source # 
Show DeleteClusterSnapshotResponse Source # 
Generic DeleteClusterSnapshotResponse Source # 
NFData DeleteClusterSnapshotResponse Source # 
type Rep DeleteClusterSnapshotResponse Source # 
type Rep DeleteClusterSnapshotResponse = D1 (MetaData "DeleteClusterSnapshotResponse" "Network.AWS.Redshift.DeleteClusterSnapshot" "amazonka-redshift-1.5.0-Dab3rZV2tPBCgimwpoJly0" 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