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

Amazonka.ElastiCache.DeleteReplicationGroup

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.

This operation is valid for Redis only.

Synopsis

Creating a Request

data DeleteReplicationGroup Source #

Represents the input of a DeleteReplicationGroup operation.

See: newDeleteReplicationGroup smart constructor.

Constructors

DeleteReplicationGroup' 

Fields

  • finalSnapshotIdentifier :: Maybe Text

    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.

  • retainPrimaryCluster :: Maybe Bool

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

  • replicationGroupId :: Text

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

Instances

Instances details
Eq DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

Read DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

Show DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

Generic DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

Associated Types

type Rep DeleteReplicationGroup :: Type -> Type #

NFData DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

Methods

rnf :: DeleteReplicationGroup -> () #

Hashable DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

AWSRequest DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

Associated Types

type AWSResponse DeleteReplicationGroup #

ToHeaders DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

ToPath DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

ToQuery DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

type Rep DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

type Rep DeleteReplicationGroup = D1 ('MetaData "DeleteReplicationGroup" "Amazonka.ElastiCache.DeleteReplicationGroup" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" 'False) (C1 ('MetaCons "DeleteReplicationGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "finalSnapshotIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "retainPrimaryCluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "replicationGroupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse DeleteReplicationGroup Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

newDeleteReplicationGroup Source #

Create a value of DeleteReplicationGroup with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:finalSnapshotIdentifier:DeleteReplicationGroup', deleteReplicationGroup_finalSnapshotIdentifier - 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.

$sel:retainPrimaryCluster:DeleteReplicationGroup', deleteReplicationGroup_retainPrimaryCluster - If set to true, all of the read replicas are deleted, but the primary node is retained.

$sel:replicationGroupId:DeleteReplicationGroup', deleteReplicationGroup_replicationGroupId - The identifier for the cluster to be deleted. This parameter is not case sensitive.

Request Lenses

deleteReplicationGroup_finalSnapshotIdentifier :: 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.

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

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

deleteReplicationGroup_replicationGroupId :: Lens' DeleteReplicationGroup Text Source #

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

Destructuring the Response

data DeleteReplicationGroupResponse Source #

See: newDeleteReplicationGroupResponse smart constructor.

Constructors

DeleteReplicationGroupResponse' 

Fields

Instances

Instances details
Eq DeleteReplicationGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

Read DeleteReplicationGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

Show DeleteReplicationGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

Generic DeleteReplicationGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

Associated Types

type Rep DeleteReplicationGroupResponse :: Type -> Type #

NFData DeleteReplicationGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

type Rep DeleteReplicationGroupResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DeleteReplicationGroup

type Rep DeleteReplicationGroupResponse = D1 ('MetaData "DeleteReplicationGroupResponse" "Amazonka.ElastiCache.DeleteReplicationGroup" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" 'False) (C1 ('MetaCons "DeleteReplicationGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "replicationGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReplicationGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteReplicationGroupResponse Source #

Create a value of DeleteReplicationGroupResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:replicationGroup:DeleteReplicationGroupResponse', deleteReplicationGroupResponse_replicationGroup - Undocumented member.

$sel:httpStatus:DeleteReplicationGroupResponse', deleteReplicationGroupResponse_httpStatus - The response's http status code.

Response Lenses