| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Neptune.FailoverDBCluster
Description
Forces a failover for a DB cluster.
A failover for a DB cluster promotes one of the Read Replicas (read-only instances) in the DB cluster to be the primary instance (the cluster writer).
Amazon Neptune will automatically fail over to a Read Replica, if one exists, when the primary instance fails. You can force a failover when you want to simulate a failure of a primary instance for testing. Because each instance in a DB cluster has its own endpoint address, you will need to clean up and re-establish any existing connections that use those endpoint addresses when the failover is complete.
Synopsis
- data FailoverDBCluster = FailoverDBCluster' {}
- newFailoverDBCluster :: FailoverDBCluster
- failoverDBCluster_dbClusterIdentifier :: Lens' FailoverDBCluster (Maybe Text)
- failoverDBCluster_targetDBInstanceIdentifier :: Lens' FailoverDBCluster (Maybe Text)
- data FailoverDBClusterResponse = FailoverDBClusterResponse' {
- dbCluster :: Maybe DBCluster
- httpStatus :: Int
- newFailoverDBClusterResponse :: Int -> FailoverDBClusterResponse
- failoverDBClusterResponse_dbCluster :: Lens' FailoverDBClusterResponse (Maybe DBCluster)
- failoverDBClusterResponse_httpStatus :: Lens' FailoverDBClusterResponse Int
Creating a Request
data FailoverDBCluster Source #
See: newFailoverDBCluster smart constructor.
Constructors
| FailoverDBCluster' | |
Fields
| |
Instances
newFailoverDBCluster :: FailoverDBCluster Source #
Create a value of FailoverDBCluster 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:
FailoverDBCluster, failoverDBCluster_dbClusterIdentifier - A DB cluster identifier to force a failover for. This parameter is not
case-sensitive.
Constraints:
- Must match the identifier of an existing DBCluster.
$sel:targetDBInstanceIdentifier:FailoverDBCluster', failoverDBCluster_targetDBInstanceIdentifier - The name of the instance to promote to the primary instance.
You must specify the instance identifier for an Read Replica in the DB
cluster. For example, mydbcluster-replica1.
Request Lenses
failoverDBCluster_dbClusterIdentifier :: Lens' FailoverDBCluster (Maybe Text) Source #
A DB cluster identifier to force a failover for. This parameter is not case-sensitive.
Constraints:
- Must match the identifier of an existing DBCluster.
failoverDBCluster_targetDBInstanceIdentifier :: Lens' FailoverDBCluster (Maybe Text) Source #
The name of the instance to promote to the primary instance.
You must specify the instance identifier for an Read Replica in the DB
cluster. For example, mydbcluster-replica1.
Destructuring the Response
data FailoverDBClusterResponse Source #
See: newFailoverDBClusterResponse smart constructor.
Constructors
| FailoverDBClusterResponse' | |
Fields
| |
Instances
newFailoverDBClusterResponse Source #
Create a value of FailoverDBClusterResponse 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:dbCluster:FailoverDBClusterResponse', failoverDBClusterResponse_dbCluster - Undocumented member.
$sel:httpStatus:FailoverDBClusterResponse', failoverDBClusterResponse_httpStatus - The response's http status code.
Response Lenses
failoverDBClusterResponse_dbCluster :: Lens' FailoverDBClusterResponse (Maybe DBCluster) Source #
Undocumented member.
failoverDBClusterResponse_httpStatus :: Lens' FailoverDBClusterResponse Int Source #
The response's http status code.