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

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Data DeleteClusterSnapshot Source # 
Instance details

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

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Show DeleteClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Generic DeleteClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Associated Types

type Rep DeleteClusterSnapshot :: Type -> Type #

Hashable DeleteClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

AWSRequest DeleteClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Associated Types

type Rs DeleteClusterSnapshot :: Type #

ToHeaders DeleteClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

ToPath DeleteClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

ToQuery DeleteClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

NFData DeleteClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Methods

rnf :: DeleteClusterSnapshot -> () #

type Rep DeleteClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

type Rep DeleteClusterSnapshot = D1 (MetaData "DeleteClusterSnapshot" "Network.AWS.Redshift.DeleteClusterSnapshot" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "DeleteClusterSnapshot'" PrefixI True) (S1 (MetaSel (Just "_dcsSnapshotClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dcsSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeleteClusterSnapshot Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

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

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Data DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

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

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Show DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Generic DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Associated Types

type Rep DeleteClusterSnapshotResponse :: Type -> Type #

NFData DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

type Rep DeleteClusterSnapshotResponse Source # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

type Rep DeleteClusterSnapshotResponse = D1 (MetaData "DeleteClusterSnapshotResponse" "Network.AWS.Redshift.DeleteClusterSnapshot" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "DeleteClusterSnapshotResponse'" PrefixI True) (S1 (MetaSel (Just "_dcsrsSnapshot") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Snapshot)) :*: S1 (MetaSel (Just "_dcsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses