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 #

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

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

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

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Show DeleteClusterSnapshot # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Generic DeleteClusterSnapshot # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Associated Types

type Rep DeleteClusterSnapshot :: Type -> Type #

Hashable DeleteClusterSnapshot # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

AWSRequest DeleteClusterSnapshot # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Associated Types

type Rs DeleteClusterSnapshot :: Type #

ToHeaders DeleteClusterSnapshot # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

ToPath DeleteClusterSnapshot # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

ToQuery DeleteClusterSnapshot # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

NFData DeleteClusterSnapshot # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Methods

rnf :: DeleteClusterSnapshot -> () #

type Rep DeleteClusterSnapshot # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

type Rep DeleteClusterSnapshot = D1 (MetaData "DeleteClusterSnapshot" "Network.AWS.Redshift.DeleteClusterSnapshot" "amazonka-redshift-1.6.1-7E7pXybui4gHstewEovezS" 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 # 
Instance details

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

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

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

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Show DeleteClusterSnapshotResponse # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Generic DeleteClusterSnapshotResponse # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

Associated Types

type Rep DeleteClusterSnapshotResponse :: Type -> Type #

NFData DeleteClusterSnapshotResponse # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

type Rep DeleteClusterSnapshotResponse # 
Instance details

Defined in Network.AWS.Redshift.DeleteClusterSnapshot

type Rep DeleteClusterSnapshotResponse = D1 (MetaData "DeleteClusterSnapshotResponse" "Network.AWS.Redshift.DeleteClusterSnapshot" "amazonka-redshift-1.6.1-7E7pXybui4gHstewEovezS" 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