Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Initiates the failover process for an Aurora global database (GlobalCluster).
A failover for an Aurora global database promotes one of secondary read-only DB clusters to be the primary DB cluster and demotes the primary DB cluster to being a secondary (read-only) DB cluster. In other words, the role of the current primary DB cluster and the selected (target) DB cluster are switched. The selected secondary DB cluster assumes full read/write capabilities for the Aurora global database.
For more information about failing over an Amazon Aurora global database, see Managed planned failover for Amazon Aurora global databases in the Amazon Aurora User Guide.
This action applies to GlobalCluster (Aurora global databases) only. Use this action only on healthy Aurora global databases with running Aurora DB clusters and no Region-wide outages, to test disaster recovery scenarios or to reconfigure your Aurora global database topology.
Synopsis
- data FailoverGlobalCluster = FailoverGlobalCluster' {}
- newFailoverGlobalCluster :: Text -> Text -> FailoverGlobalCluster
- failoverGlobalCluster_globalClusterIdentifier :: Lens' FailoverGlobalCluster Text
- failoverGlobalCluster_targetDbClusterIdentifier :: Lens' FailoverGlobalCluster Text
- data FailoverGlobalClusterResponse = FailoverGlobalClusterResponse' {}
- newFailoverGlobalClusterResponse :: Int -> FailoverGlobalClusterResponse
- failoverGlobalClusterResponse_globalCluster :: Lens' FailoverGlobalClusterResponse (Maybe GlobalCluster)
- failoverGlobalClusterResponse_httpStatus :: Lens' FailoverGlobalClusterResponse Int
Creating a Request
data FailoverGlobalCluster Source #
See: newFailoverGlobalCluster
smart constructor.
FailoverGlobalCluster' | |
|
Instances
newFailoverGlobalCluster Source #
:: Text | |
-> Text | |
-> FailoverGlobalCluster |
Create a value of FailoverGlobalCluster
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:globalClusterIdentifier:FailoverGlobalCluster'
, failoverGlobalCluster_globalClusterIdentifier
- Identifier of the Aurora global database (GlobalCluster) that should be
failed over. The identifier is the unique key assigned by the user when
the Aurora global database was created. In other words, it's the name
of the Aurora global database that you want to fail over.
Constraints:
- Must match the identifier of an existing GlobalCluster (Aurora global database).
$sel:targetDbClusterIdentifier:FailoverGlobalCluster'
, failoverGlobalCluster_targetDbClusterIdentifier
- Identifier of the secondary Aurora DB cluster that you want to promote
to primary for the Aurora global database (GlobalCluster.) Use the
Amazon Resource Name (ARN) for the identifier so that Aurora can locate
the cluster in its Amazon Web Services Region.
Request Lenses
failoverGlobalCluster_globalClusterIdentifier :: Lens' FailoverGlobalCluster Text Source #
Identifier of the Aurora global database (GlobalCluster) that should be failed over. The identifier is the unique key assigned by the user when the Aurora global database was created. In other words, it's the name of the Aurora global database that you want to fail over.
Constraints:
- Must match the identifier of an existing GlobalCluster (Aurora global database).
failoverGlobalCluster_targetDbClusterIdentifier :: Lens' FailoverGlobalCluster Text Source #
Identifier of the secondary Aurora DB cluster that you want to promote to primary for the Aurora global database (GlobalCluster.) Use the Amazon Resource Name (ARN) for the identifier so that Aurora can locate the cluster in its Amazon Web Services Region.
Destructuring the Response
data FailoverGlobalClusterResponse Source #
See: newFailoverGlobalClusterResponse
smart constructor.
FailoverGlobalClusterResponse' | |
|
Instances
newFailoverGlobalClusterResponse Source #
Create a value of FailoverGlobalClusterResponse
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:globalCluster:FailoverGlobalClusterResponse'
, failoverGlobalClusterResponse_globalCluster
- Undocumented member.
$sel:httpStatus:FailoverGlobalClusterResponse'
, failoverGlobalClusterResponse_httpStatus
- The response's http status code.
Response Lenses
failoverGlobalClusterResponse_globalCluster :: Lens' FailoverGlobalClusterResponse (Maybe GlobalCluster) Source #
Undocumented member.
failoverGlobalClusterResponse_httpStatus :: Lens' FailoverGlobalClusterResponse Int Source #
The response's http status code.