amazonka-rds-1.6.0: Amazon Relational Database Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.RDS.PromoteReadReplica

Contents

Description

Promotes a Read Replica DB instance to a standalone DB instance.

Synopsis

Creating a Request

promoteReadReplica #

Creates a value of PromoteReadReplica with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • prrPreferredBackupWindow - The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide. Constraints: * Must be in the format hh24:mi-hh24:mi . * Must be in Universal Coordinated Time (UTC). * Must not conflict with the preferred maintenance window. * Must be at least 30 minutes.
  • prrBackupRetentionPeriod - The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups. Default: 1 Constraints: * Must be a value from 0 to 8
  • prrDBInstanceIdentifier - The DB instance identifier. This value is stored as a lowercase string. Constraints: * Must match the identifier of an existing Read Replica DB instance. Example: mydbinstance

data PromoteReadReplica #

See: promoteReadReplica smart constructor.

Instances
Eq PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Data PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PromoteReadReplica -> c PromoteReadReplica #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PromoteReadReplica #

toConstr :: PromoteReadReplica -> Constr #

dataTypeOf :: PromoteReadReplica -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PromoteReadReplica) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PromoteReadReplica) #

gmapT :: (forall b. Data b => b -> b) -> PromoteReadReplica -> PromoteReadReplica #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PromoteReadReplica -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PromoteReadReplica -> r #

gmapQ :: (forall d. Data d => d -> u) -> PromoteReadReplica -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PromoteReadReplica -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PromoteReadReplica -> m PromoteReadReplica #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PromoteReadReplica -> m PromoteReadReplica #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PromoteReadReplica -> m PromoteReadReplica #

Read PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Show PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Generic PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Associated Types

type Rep PromoteReadReplica :: * -> * #

Hashable PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

AWSRequest PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Associated Types

type Rs PromoteReadReplica :: * #

ToHeaders PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

ToPath PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

ToQuery PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

NFData PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Methods

rnf :: PromoteReadReplica -> () #

type Rep PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

type Rep PromoteReadReplica = D1 (MetaData "PromoteReadReplica" "Network.AWS.RDS.PromoteReadReplica" "amazonka-rds-1.6.0-62mw5vrBA3M4x0SZvkmRx5" False) (C1 (MetaCons "PromoteReadReplica'" PrefixI True) (S1 (MetaSel (Just "_prrPreferredBackupWindow") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_prrBackupRetentionPeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)) :*: S1 (MetaSel (Just "_prrDBInstanceIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs PromoteReadReplica # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Request Lenses

prrPreferredBackupWindow :: Lens' PromoteReadReplica (Maybe Text) #

The daily time range during which automated backups are created if automated backups are enabled, using the BackupRetentionPeriod parameter. The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region. To see the time blocks available, see Adjusting the Preferred Maintenance Window in the Amazon RDS User Guide. Constraints: * Must be in the format hh24:mi-hh24:mi . * Must be in Universal Coordinated Time (UTC). * Must not conflict with the preferred maintenance window. * Must be at least 30 minutes.

prrBackupRetentionPeriod :: Lens' PromoteReadReplica (Maybe Int) #

The number of days to retain automated backups. Setting this parameter to a positive number enables backups. Setting this parameter to 0 disables automated backups. Default: 1 Constraints: * Must be a value from 0 to 8

prrDBInstanceIdentifier :: Lens' PromoteReadReplica Text #

The DB instance identifier. This value is stored as a lowercase string. Constraints: * Must match the identifier of an existing Read Replica DB instance. Example: mydbinstance

Destructuring the Response

promoteReadReplicaResponse #

Creates a value of PromoteReadReplicaResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PromoteReadReplicaResponse #

See: promoteReadReplicaResponse smart constructor.

Instances
Eq PromoteReadReplicaResponse # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Data PromoteReadReplicaResponse # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PromoteReadReplicaResponse -> c PromoteReadReplicaResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PromoteReadReplicaResponse #

toConstr :: PromoteReadReplicaResponse -> Constr #

dataTypeOf :: PromoteReadReplicaResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PromoteReadReplicaResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PromoteReadReplicaResponse) #

gmapT :: (forall b. Data b => b -> b) -> PromoteReadReplicaResponse -> PromoteReadReplicaResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PromoteReadReplicaResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PromoteReadReplicaResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PromoteReadReplicaResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PromoteReadReplicaResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PromoteReadReplicaResponse -> m PromoteReadReplicaResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PromoteReadReplicaResponse -> m PromoteReadReplicaResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PromoteReadReplicaResponse -> m PromoteReadReplicaResponse #

Read PromoteReadReplicaResponse # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Show PromoteReadReplicaResponse # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Generic PromoteReadReplicaResponse # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Associated Types

type Rep PromoteReadReplicaResponse :: * -> * #

NFData PromoteReadReplicaResponse # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

type Rep PromoteReadReplicaResponse # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

type Rep PromoteReadReplicaResponse = D1 (MetaData "PromoteReadReplicaResponse" "Network.AWS.RDS.PromoteReadReplica" "amazonka-rds-1.6.0-62mw5vrBA3M4x0SZvkmRx5" False) (C1 (MetaCons "PromoteReadReplicaResponse'" PrefixI True) (S1 (MetaSel (Just "_prrrsDBInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DBInstance)) :*: S1 (MetaSel (Just "_prrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

prrrsResponseStatus :: Lens' PromoteReadReplicaResponse Int #

  • - | The response status code.