amazonka-opsworks-cm-1.5.0: Amazon OpsWorks for Chef Automate SDK.

Copyright(c) 2013-2017 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.OpsWorksCM.UpdateServer

Contents

Description

Updates settings for a server.

This operation is synchronous.

Synopsis

Creating a Request

updateServer Source #

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

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

data UpdateServer Source #

See: updateServer smart constructor.

Instances

Eq UpdateServer Source # 
Data UpdateServer Source # 

Methods

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

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

toConstr :: UpdateServer -> Constr #

dataTypeOf :: UpdateServer -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateServer Source # 
Show UpdateServer Source # 
Generic UpdateServer Source # 

Associated Types

type Rep UpdateServer :: * -> * #

Hashable UpdateServer Source # 
ToJSON UpdateServer Source # 
NFData UpdateServer Source # 

Methods

rnf :: UpdateServer -> () #

AWSRequest UpdateServer Source # 
ToQuery UpdateServer Source # 
ToPath UpdateServer Source # 
ToHeaders UpdateServer Source # 
type Rep UpdateServer Source # 
type Rep UpdateServer = D1 (MetaData "UpdateServer" "Network.AWS.OpsWorksCM.UpdateServer" "amazonka-opsworks-cm-1.5.0-Hc1u21y7vMsK8PFWgko0CT" False) (C1 (MetaCons "UpdateServer'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_usDisableAutomatedBackup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_usPreferredMaintenanceWindow") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_usPreferredBackupWindow") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_usBackupRetentionCount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))) (S1 (MetaSel (Just Symbol "_usServerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs UpdateServer Source # 

Request Lenses

usDisableAutomatedBackup :: Lens' UpdateServer (Maybe Bool) Source #

Setting DisableAutomatedBackup to true disables automated or scheduled backups. Automated backups are enabled by default.

usBackupRetentionCount :: Lens' UpdateServer (Maybe Int) Source #

Sets the number of automated backups that you want to keep.

usServerName :: Lens' UpdateServer Text Source #

The name of the server to update.

Destructuring the Response

updateServerResponse Source #

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

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

data UpdateServerResponse Source #

See: updateServerResponse smart constructor.

Instances

Eq UpdateServerResponse Source # 
Data UpdateServerResponse Source # 

Methods

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

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

toConstr :: UpdateServerResponse -> Constr #

dataTypeOf :: UpdateServerResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UpdateServerResponse Source # 
Generic UpdateServerResponse Source # 
NFData UpdateServerResponse Source # 

Methods

rnf :: UpdateServerResponse -> () #

type Rep UpdateServerResponse Source # 
type Rep UpdateServerResponse = D1 (MetaData "UpdateServerResponse" "Network.AWS.OpsWorksCM.UpdateServer" "amazonka-opsworks-cm-1.5.0-Hc1u21y7vMsK8PFWgko0CT" False) (C1 (MetaCons "UpdateServerResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_usrsServer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Server))) (S1 (MetaSel (Just Symbol "_usrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

usrsServer :: Lens' UpdateServerResponse (Maybe Server) Source #

Contains the response to a UpdateServer request.

usrsResponseStatus :: Lens' UpdateServerResponse Int Source #

  • - | The response status code.