Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Forces a failover for a DB cluster.
A failover for a DB cluster promotes one of the read-only instances in the DB cluster to the master DB instance (the cluster writer) and deletes the current primary instance.
Amazon Aurora will automatically fail over to a read-only instance, if one exists, when the primary instance fails. You can force a failover when you want to simulate a failure of a DB 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.
For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.
See: AWS API Reference for FailoverDBCluster.
- failoverDBCluster :: FailoverDBCluster
- data FailoverDBCluster
- fdcDBClusterIdentifier :: Lens' FailoverDBCluster (Maybe Text)
- failoverDBClusterResponse :: Int -> FailoverDBClusterResponse
- data FailoverDBClusterResponse
- fdcrsDBCluster :: Lens' FailoverDBClusterResponse (Maybe DBCluster)
- fdcrsStatus :: Lens' FailoverDBClusterResponse Int
Creating a Request
failoverDBCluster :: FailoverDBCluster Source
Creates a value of FailoverDBCluster
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FailoverDBCluster Source
See: failoverDBCluster
smart constructor.
Request Lenses
fdcDBClusterIdentifier :: Lens' FailoverDBCluster (Maybe Text) Source
A DB cluster identifier to force a failover for. This parameter is not case-sensitive.
Constraints:
- Must contain from 1 to 63 alphanumeric characters or hyphens
- First character must be a letter
- Cannot end with a hyphen or contain two consecutive hyphens
Destructuring the Response
failoverDBClusterResponse Source
Creates a value of FailoverDBClusterResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FailoverDBClusterResponse Source
See: failoverDBClusterResponse
smart constructor.
Response Lenses
fdcrsDBCluster :: Lens' FailoverDBClusterResponse (Maybe DBCluster) Source
Undocumented member.
fdcrsStatus :: Lens' FailoverDBClusterResponse Int Source
The response status code.