amazonka-elasticache-1.4.3: Amazon ElastiCache SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ElastiCache.DeleteReplicationGroup

Contents

Description

The DeleteReplicationGroup action deletes an existing replication group. By default, this action deletes the entire replication group, including the primary cluster and all of the read replicas. You can optionally delete only the read replicas, while retaining the primary cluster.

When you receive a successful response from this action, Amazon ElastiCache immediately begins deleting the selected resources; you cannot cancel or revert this action.

Synopsis

Creating a Request

deleteReplicationGroup Source #

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

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

data DeleteReplicationGroup Source #

Represents the input of a DeleteReplicationGroup action.

See: deleteReplicationGroup smart constructor.

Instances

Eq DeleteReplicationGroup Source # 
Data DeleteReplicationGroup Source # 

Methods

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

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

toConstr :: DeleteReplicationGroup -> Constr #

dataTypeOf :: DeleteReplicationGroup -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteReplicationGroup Source # 
Show DeleteReplicationGroup Source # 
Generic DeleteReplicationGroup Source # 
Hashable DeleteReplicationGroup Source # 
NFData DeleteReplicationGroup Source # 

Methods

rnf :: DeleteReplicationGroup -> () #

AWSRequest DeleteReplicationGroup Source # 
ToQuery DeleteReplicationGroup Source # 
ToPath DeleteReplicationGroup Source # 
ToHeaders DeleteReplicationGroup Source # 
type Rep DeleteReplicationGroup Source # 
type Rep DeleteReplicationGroup = D1 (MetaData "DeleteReplicationGroup" "Network.AWS.ElastiCache.DeleteReplicationGroup" "amazonka-elasticache-1.4.3-20zudJK8YfVEoQ6eKxOSeM" False) (C1 (MetaCons "DeleteReplicationGroup'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_drgFinalSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_drgRetainPrimaryCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_drgReplicationGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs DeleteReplicationGroup Source # 

Request Lenses

drgFinalSnapshotIdentifier :: Lens' DeleteReplicationGroup (Maybe Text) Source #

The name of a final node group snapshot. ElastiCache creates the snapshot from the primary node in the cluster, rather than one of the replicas; this is to ensure that it captures the freshest data. After the final snapshot is taken, the cluster is immediately deleted.

drgRetainPrimaryCluster :: Lens' DeleteReplicationGroup (Maybe Bool) Source #

If set to true, all of the read replicas will be deleted, but the primary node will be retained.

drgReplicationGroupId :: Lens' DeleteReplicationGroup Text Source #

The identifier for the cluster to be deleted. This parameter is not case sensitive.

Destructuring the Response

deleteReplicationGroupResponse Source #

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

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

data DeleteReplicationGroupResponse Source #

See: deleteReplicationGroupResponse smart constructor.

Instances

Eq DeleteReplicationGroupResponse Source # 
Data DeleteReplicationGroupResponse Source # 

Methods

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

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

toConstr :: DeleteReplicationGroupResponse -> Constr #

dataTypeOf :: DeleteReplicationGroupResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteReplicationGroupResponse Source # 
Show DeleteReplicationGroupResponse Source # 
Generic DeleteReplicationGroupResponse Source # 
NFData DeleteReplicationGroupResponse Source # 
type Rep DeleteReplicationGroupResponse Source # 
type Rep DeleteReplicationGroupResponse = D1 (MetaData "DeleteReplicationGroupResponse" "Network.AWS.ElastiCache.DeleteReplicationGroup" "amazonka-elasticache-1.4.3-20zudJK8YfVEoQ6eKxOSeM" False) (C1 (MetaCons "DeleteReplicationGroupResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_delrsReplicationGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ReplicationGroup))) (S1 (MetaSel (Just Symbol "_delrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses