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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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. Default: A 30-minute window selected at random from an 8-hour block of time per 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 . * Times should 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 be the identifier for an existing Read Replica DB instance * 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: mydbinstance

data PromoteReadReplica Source #

See: promoteReadReplica smart constructor.

Instances

Eq PromoteReadReplica Source # 
Data PromoteReadReplica Source # 

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 # 
Show PromoteReadReplica Source # 
Generic PromoteReadReplica Source # 
Hashable PromoteReadReplica Source # 
NFData PromoteReadReplica Source # 

Methods

rnf :: PromoteReadReplica -> () #

AWSRequest PromoteReadReplica Source # 
ToPath PromoteReadReplica Source # 
ToHeaders PromoteReadReplica Source # 
ToQuery PromoteReadReplica Source # 
type Rep PromoteReadReplica Source # 
type Rep PromoteReadReplica = D1 (MetaData "PromoteReadReplica" "Network.AWS.RDS.PromoteReadReplica" "amazonka-rds-1.4.5-FycntHHvABz6gJkK2IrBDo" False) (C1 (MetaCons "PromoteReadReplica'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_prrPreferredBackupWindow") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_prrBackupRetentionPeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_prrDBInstanceIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs PromoteReadReplica Source # 

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. Default: A 30-minute window selected at random from an 8-hour block of time per 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 . * Times should 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 be the identifier for an existing Read Replica DB instance * 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: 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 # 
Data PromoteReadReplicaResponse Source # 

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 # 
Show PromoteReadReplicaResponse Source # 
Generic PromoteReadReplicaResponse Source # 
NFData PromoteReadReplicaResponse Source # 
type Rep PromoteReadReplicaResponse Source # 
type Rep PromoteReadReplicaResponse = D1 (MetaData "PromoteReadReplicaResponse" "Network.AWS.RDS.PromoteReadReplica" "amazonka-rds-1.4.5-FycntHHvABz6gJkK2IrBDo" False) (C1 (MetaCons "PromoteReadReplicaResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_prrrsDBInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe DBInstance))) (S1 (MetaSel (Just Symbol "_prrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses