Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Backtracks a DB cluster to a specific time, without creating a new DB cluster.
For more information on backtracking, see Backtracking an Aurora DB Cluster in the Amazon RDS User Guide.
Synopsis
- backtrackDBCluster :: Text -> UTCTime -> BacktrackDBCluster
- data BacktrackDBCluster
- bdcForce :: Lens' BacktrackDBCluster (Maybe Bool)
- bdcUseEarliestTimeOnPointInTimeUnavailable :: Lens' BacktrackDBCluster (Maybe Bool)
- bdcDBClusterIdentifier :: Lens' BacktrackDBCluster Text
- bdcBacktrackTo :: Lens' BacktrackDBCluster UTCTime
- dbClusterBacktrack :: DBClusterBacktrack
- data DBClusterBacktrack
- dcbStatus :: Lens' DBClusterBacktrack (Maybe Text)
- dcbBacktrackIdentifier :: Lens' DBClusterBacktrack (Maybe Text)
- dcbBacktrackTo :: Lens' DBClusterBacktrack (Maybe UTCTime)
- dcbDBClusterIdentifier :: Lens' DBClusterBacktrack (Maybe Text)
- dcbBacktrackedFrom :: Lens' DBClusterBacktrack (Maybe UTCTime)
- dcbBacktrackRequestCreationTime :: Lens' DBClusterBacktrack (Maybe UTCTime)
Creating a Request
Creates a value of BacktrackDBCluster
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bdcForce
- A value that, if specified, forces the DB cluster to backtrack when binary logging is enabled. Otherwise, an error occurs when binary logging is enabled.bdcUseEarliestTimeOnPointInTimeUnavailable
- If BacktrackTo is set to a timestamp earlier than the earliest backtrack time, this value backtracks the DB cluster to the earliest possible backtrack time. Otherwise, an error occurs.bdcDBClusterIdentifier
- The DB cluster identifier of the DB cluster to be backtracked. This parameter is stored as a lowercase string. 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. Example:my-cluster1
bdcBacktrackTo
- The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia page. Constraints: * Must contain a valid ISO 8601 timestamp. * Cannot contain a timestamp set in the future. Example:2017-07-08T18:00Z
data BacktrackDBCluster Source #
See: backtrackDBCluster
smart constructor.
Instances
Request Lenses
bdcForce :: Lens' BacktrackDBCluster (Maybe Bool) Source #
A value that, if specified, forces the DB cluster to backtrack when binary logging is enabled. Otherwise, an error occurs when binary logging is enabled.
bdcUseEarliestTimeOnPointInTimeUnavailable :: Lens' BacktrackDBCluster (Maybe Bool) Source #
If BacktrackTo is set to a timestamp earlier than the earliest backtrack time, this value backtracks the DB cluster to the earliest possible backtrack time. Otherwise, an error occurs.
bdcDBClusterIdentifier :: Lens' BacktrackDBCluster Text Source #
The DB cluster identifier of the DB cluster to be backtracked. This parameter is stored as a lowercase string. 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. Example: my-cluster1
bdcBacktrackTo :: Lens' BacktrackDBCluster UTCTime Source #
The timestamp of the time to backtrack the DB cluster to, specified in ISO 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia page. Constraints: * Must contain a valid ISO 8601 timestamp. * Cannot contain a timestamp set in the future. Example: 2017-07-08T18:00Z
Destructuring the Response
dbClusterBacktrack :: DBClusterBacktrack Source #
Creates a value of DBClusterBacktrack
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dcbStatus
- The status of the backtrack. This property returns one of the following values: *applying
- The backtrack is currently being applied to or rolled back from the DB cluster. *completed
- The backtrack has successfully been applied to or rolled back from the DB cluster. *failed
- An error occurred while the backtrack was applied to or rolled back from the DB cluster. *pending
- The backtrack is currently pending application to or rollback from the DB cluster.dcbBacktrackIdentifier
- Contains the backtrack identifier.dcbBacktrackTo
- The timestamp of the time to which the DB cluster was backtracked.dcbDBClusterIdentifier
- Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.dcbBacktrackedFrom
- The timestamp of the time from which the DB cluster was backtracked.dcbBacktrackRequestCreationTime
- The timestamp of the time at which the backtrack was requested.
data DBClusterBacktrack Source #
This data type is used as a response element in the DescribeDBClusterBacktracks
action.
See: dbClusterBacktrack
smart constructor.
Instances
Response Lenses
dcbStatus :: Lens' DBClusterBacktrack (Maybe Text) Source #
The status of the backtrack. This property returns one of the following values: * applying
- The backtrack is currently being applied to or rolled back from the DB cluster. * completed
- The backtrack has successfully been applied to or rolled back from the DB cluster. * failed
- An error occurred while the backtrack was applied to or rolled back from the DB cluster. * pending
- The backtrack is currently pending application to or rollback from the DB cluster.
dcbBacktrackIdentifier :: Lens' DBClusterBacktrack (Maybe Text) Source #
Contains the backtrack identifier.
dcbBacktrackTo :: Lens' DBClusterBacktrack (Maybe UTCTime) Source #
The timestamp of the time to which the DB cluster was backtracked.
dcbDBClusterIdentifier :: Lens' DBClusterBacktrack (Maybe Text) Source #
Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.
dcbBacktrackedFrom :: Lens' DBClusterBacktrack (Maybe UTCTime) Source #
The timestamp of the time from which the DB cluster was backtracked.
dcbBacktrackRequestCreationTime :: Lens' DBClusterBacktrack (Maybe UTCTime) Source #
The timestamp of the time at which the backtrack was requested.