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 |
Switches over an Oracle standby database in an Oracle Data Guard environment, making it the new primary database. Issue this command in the Region that hosts the current standby database.
Synopsis
- data SwitchoverReadReplica = SwitchoverReadReplica' {}
- newSwitchoverReadReplica :: Text -> SwitchoverReadReplica
- switchoverReadReplica_dbInstanceIdentifier :: Lens' SwitchoverReadReplica Text
- data SwitchoverReadReplicaResponse = SwitchoverReadReplicaResponse' {}
- newSwitchoverReadReplicaResponse :: Int -> SwitchoverReadReplicaResponse
- switchoverReadReplicaResponse_dbInstance :: Lens' SwitchoverReadReplicaResponse (Maybe DBInstance)
- switchoverReadReplicaResponse_httpStatus :: Lens' SwitchoverReadReplicaResponse Int
Creating a Request
data SwitchoverReadReplica Source #
See: newSwitchoverReadReplica
smart constructor.
SwitchoverReadReplica' | |
|
Instances
newSwitchoverReadReplica Source #
Create a value of SwitchoverReadReplica
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:
SwitchoverReadReplica
, switchoverReadReplica_dbInstanceIdentifier
- The DB instance identifier of the current standby database. This value
is stored as a lowercase string.
Constraints:
- Must match the identifier of an existing Oracle read replica DB instance.
Request Lenses
switchoverReadReplica_dbInstanceIdentifier :: Lens' SwitchoverReadReplica Text Source #
The DB instance identifier of the current standby database. This value is stored as a lowercase string.
Constraints:
- Must match the identifier of an existing Oracle read replica DB instance.
Destructuring the Response
data SwitchoverReadReplicaResponse Source #
See: newSwitchoverReadReplicaResponse
smart constructor.
SwitchoverReadReplicaResponse' | |
|
Instances
newSwitchoverReadReplicaResponse Source #
Create a value of SwitchoverReadReplicaResponse
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:dbInstance:SwitchoverReadReplicaResponse'
, switchoverReadReplicaResponse_dbInstance
- Undocumented member.
$sel:httpStatus:SwitchoverReadReplicaResponse'
, switchoverReadReplicaResponse_httpStatus
- The response's http status code.
Response Lenses
switchoverReadReplicaResponse_dbInstance :: Lens' SwitchoverReadReplicaResponse (Maybe DBInstance) Source #
Undocumented member.
switchoverReadReplicaResponse_httpStatus :: Lens' SwitchoverReadReplicaResponse Int Source #
The response's http status code.