amazonka-elasticache-1.6.1: Amazon ElastiCache 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.ElastiCache.DeleteReplicationGroup

Contents

Description

Deletes an existing replication group. By default, this operation deletes the entire replication group, including the primary/primaries and all of the read replicas. If the replication group has only one primary, you can optionally delete only the read replicas, while retaining the primary by setting RetainPrimaryCluster=true .

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

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:

  • drgFinalSnapshotIdentifier - The name of a final node group (shard) 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 replication group is immediately deleted.
  • drgRetainPrimaryCluster - If set to true , all of the read replicas are deleted, but the primary node is retained.
  • drgReplicationGroupId - The identifier for the cluster to be deleted. This parameter is not case sensitive.

data DeleteReplicationGroup Source #

Represents the input of a DeleteReplicationGroup operation.

See: deleteReplicationGroup smart constructor.

Instances
Eq DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Data DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

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

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Show DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Generic DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Associated Types

type Rep DeleteReplicationGroup :: Type -> Type #

Hashable DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

AWSRequest DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Associated Types

type Rs DeleteReplicationGroup :: Type #

ToHeaders DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

ToPath DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

ToQuery DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

NFData DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Methods

rnf :: DeleteReplicationGroup -> () #

type Rep DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

type Rep DeleteReplicationGroup = D1 (MetaData "DeleteReplicationGroup" "Network.AWS.ElastiCache.DeleteReplicationGroup" "amazonka-elasticache-1.6.1-7qPjCRJV7Sp8jKm0QWBmxX" False) (C1 (MetaCons "DeleteReplicationGroup'" PrefixI True) (S1 (MetaSel (Just "_drgFinalSnapshotIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_drgRetainPrimaryCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_drgReplicationGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteReplicationGroup Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Request Lenses

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

The name of a final node group (shard) 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 replication group is immediately deleted.

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

If set to true , all of the read replicas are deleted, but the primary node is 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 # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Data DeleteReplicationGroupResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

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

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Show DeleteReplicationGroupResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Generic DeleteReplicationGroupResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

Associated Types

type Rep DeleteReplicationGroupResponse :: Type -> Type #

NFData DeleteReplicationGroupResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

type Rep DeleteReplicationGroupResponse Source # 
Instance details

Defined in Network.AWS.ElastiCache.DeleteReplicationGroup

type Rep DeleteReplicationGroupResponse = D1 (MetaData "DeleteReplicationGroupResponse" "Network.AWS.ElastiCache.DeleteReplicationGroup" "amazonka-elasticache-1.6.1-7qPjCRJV7Sp8jKm0QWBmxX" False) (C1 (MetaCons "DeleteReplicationGroupResponse'" PrefixI True) (S1 (MetaSel (Just "_delrsReplicationGroup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ReplicationGroup)) :*: S1 (MetaSel (Just "_delrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses