amazonka-rds-1.6.1: 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 Source #

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 Source #

See: promoteReadReplica smart constructor.

Instances
Eq PromoteReadReplica Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Data PromoteReadReplica Source # 
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 Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Show PromoteReadReplica Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Generic PromoteReadReplica Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Associated Types

type Rep PromoteReadReplica :: Type -> Type #

Hashable PromoteReadReplica Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

AWSRequest PromoteReadReplica Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Associated Types

type Rs PromoteReadReplica :: Type #

ToHeaders PromoteReadReplica Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

ToPath PromoteReadReplica Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

ToQuery PromoteReadReplica Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

NFData PromoteReadReplica Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Methods

rnf :: PromoteReadReplica -> () #

type Rep PromoteReadReplica Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

type Rep PromoteReadReplica = D1 (MetaData "PromoteReadReplica" "Network.AWS.RDS.PromoteReadReplica" "amazonka-rds-1.6.1-GvYb6r2di9RGFKQcoJXq1A" 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 Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Request Lenses

prrPreferredBackupWindow :: Lens' PromoteReadReplica (Maybe Text) Source #

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) Source #

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 Source #

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 Source #

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 Source #

See: promoteReadReplicaResponse smart constructor.

Instances
Eq PromoteReadReplicaResponse Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Data PromoteReadReplicaResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Show PromoteReadReplicaResponse Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Generic PromoteReadReplicaResponse Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

Associated Types

type Rep PromoteReadReplicaResponse :: Type -> Type #

NFData PromoteReadReplicaResponse Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

type Rep PromoteReadReplicaResponse Source # 
Instance details

Defined in Network.AWS.RDS.PromoteReadReplica

type Rep PromoteReadReplicaResponse = D1 (MetaData "PromoteReadReplicaResponse" "Network.AWS.RDS.PromoteReadReplica" "amazonka-rds-1.6.1-GvYb6r2di9RGFKQcoJXq1A" 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