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 |
Promotes a read replica DB cluster to a standalone DB cluster.
This action only applies to Aurora DB clusters.
Synopsis
- data PromoteReadReplicaDBCluster = PromoteReadReplicaDBCluster' {}
- newPromoteReadReplicaDBCluster :: Text -> PromoteReadReplicaDBCluster
- promoteReadReplicaDBCluster_dbClusterIdentifier :: Lens' PromoteReadReplicaDBCluster Text
- data PromoteReadReplicaDBClusterResponse = PromoteReadReplicaDBClusterResponse' {
- dbCluster :: Maybe DBCluster
- httpStatus :: Int
- newPromoteReadReplicaDBClusterResponse :: Int -> PromoteReadReplicaDBClusterResponse
- promoteReadReplicaDBClusterResponse_dbCluster :: Lens' PromoteReadReplicaDBClusterResponse (Maybe DBCluster)
- promoteReadReplicaDBClusterResponse_httpStatus :: Lens' PromoteReadReplicaDBClusterResponse Int
Creating a Request
data PromoteReadReplicaDBCluster Source #
See: newPromoteReadReplicaDBCluster
smart constructor.
PromoteReadReplicaDBCluster' | |
|
Instances
newPromoteReadReplicaDBCluster Source #
Create a value of PromoteReadReplicaDBCluster
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:dbClusterIdentifier:PromoteReadReplicaDBCluster'
, promoteReadReplicaDBCluster_dbClusterIdentifier
- The identifier of the DB cluster read replica to promote. This parameter
isn't case-sensitive.
Constraints:
- Must match the identifier of an existing DB cluster read replica.
Example: my-cluster-replica1
Request Lenses
promoteReadReplicaDBCluster_dbClusterIdentifier :: Lens' PromoteReadReplicaDBCluster Text Source #
The identifier of the DB cluster read replica to promote. This parameter isn't case-sensitive.
Constraints:
- Must match the identifier of an existing DB cluster read replica.
Example: my-cluster-replica1
Destructuring the Response
data PromoteReadReplicaDBClusterResponse Source #
See: newPromoteReadReplicaDBClusterResponse
smart constructor.
PromoteReadReplicaDBClusterResponse' | |
|
Instances
Eq PromoteReadReplicaDBClusterResponse Source # | |
Read PromoteReadReplicaDBClusterResponse Source # | |
Show PromoteReadReplicaDBClusterResponse Source # | |
Generic PromoteReadReplicaDBClusterResponse Source # | |
NFData PromoteReadReplicaDBClusterResponse Source # | |
Defined in Amazonka.RDS.PromoteReadReplicaDBCluster rnf :: PromoteReadReplicaDBClusterResponse -> () # | |
type Rep PromoteReadReplicaDBClusterResponse Source # | |
Defined in Amazonka.RDS.PromoteReadReplicaDBCluster type Rep PromoteReadReplicaDBClusterResponse = D1 ('MetaData "PromoteReadReplicaDBClusterResponse" "Amazonka.RDS.PromoteReadReplicaDBCluster" "libZSservicesZSamazonka-rdsZSamazonka-rds" 'False) (C1 ('MetaCons "PromoteReadReplicaDBClusterResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dbCluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DBCluster)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPromoteReadReplicaDBClusterResponse Source #
Create a value of PromoteReadReplicaDBClusterResponse
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:dbCluster:PromoteReadReplicaDBClusterResponse'
, promoteReadReplicaDBClusterResponse_dbCluster
- Undocumented member.
$sel:httpStatus:PromoteReadReplicaDBClusterResponse'
, promoteReadReplicaDBClusterResponse_httpStatus
- The response's http status code.
Response Lenses
promoteReadReplicaDBClusterResponse_dbCluster :: Lens' PromoteReadReplicaDBClusterResponse (Maybe DBCluster) Source #
Undocumented member.
promoteReadReplicaDBClusterResponse_httpStatus :: Lens' PromoteReadReplicaDBClusterResponse Int Source #
The response's http status code.