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 |
Initiates the failover process for a Neptune global database.
A failover for a Neptune 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 secondary DB cluster are switched. The selected secondary DB cluster assumes full read/write capabilities for the Neptune global database.
This action applies only to Neptune global databases. This action is only intended for use on healthy Neptune global databases with healthy Neptune DB clusters and no region-wide outages, to test disaster recovery scenarios or to reconfigure the 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:
FailoverGlobalCluster
, failoverGlobalCluster_globalClusterIdentifier
- Identifier of the Neptune global database that should be failed over.
The identifier is the unique key assigned by the user when the Neptune
global database was created. In other words, it's the name of the
global database that you want to fail over.
Constraints: Must match the identifier of an existing Neptune global database.
$sel:targetDbClusterIdentifier:FailoverGlobalCluster'
, failoverGlobalCluster_targetDbClusterIdentifier
- The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that
you want to promote to primary for the global database.
Request Lenses
failoverGlobalCluster_globalClusterIdentifier :: Lens' FailoverGlobalCluster Text Source #
Identifier of the Neptune global database that should be failed over. The identifier is the unique key assigned by the user when the Neptune global database was created. In other words, it's the name of the global database that you want to fail over.
Constraints: Must match the identifier of an existing Neptune global database.
failoverGlobalCluster_targetDbClusterIdentifier :: Lens' FailoverGlobalCluster Text Source #
The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you want to promote to primary for the global database.
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.