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.StartMaintenance

Contents

Description

Manually starts server maintenance. This command can be useful if an earlier maintenance attempt failed, and the underlying cause of maintenance failure has been resolved. The server is in an UNDER_MAINTENANCE state while maintenance is in progress.

Maintenance can only be started on servers in HEALTHY and UNHEALTHY states. Otherwise, an InvalidStateException is thrown. A ResourceNotFoundException is thrown when the server does not exist. A ValidationException is raised when parameters of the request are not valid.

Synopsis

Creating a Request

startMaintenance Source #

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

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

  • smEngineAttributes - Engine attributes that are specific to the server on which you want to run maintenance.
  • smServerName - The name of the server on which to run maintenance.

data StartMaintenance Source #

See: startMaintenance smart constructor.

Instances

Eq StartMaintenance Source # 
Data StartMaintenance Source # 

Methods

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

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

toConstr :: StartMaintenance -> Constr #

dataTypeOf :: StartMaintenance -> DataType #

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

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

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

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

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

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

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

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

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

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

Show StartMaintenance Source # 
Generic StartMaintenance Source # 
Hashable StartMaintenance Source # 
ToJSON StartMaintenance Source # 
NFData StartMaintenance Source # 

Methods

rnf :: StartMaintenance -> () #

AWSRequest StartMaintenance Source # 
ToQuery StartMaintenance Source # 
ToPath StartMaintenance Source # 
ToHeaders StartMaintenance Source # 
type Rep StartMaintenance Source # 
type Rep StartMaintenance = D1 (MetaData "StartMaintenance" "Network.AWS.OpsWorksCM.StartMaintenance" "amazonka-opsworks-cm-1.5.0-Hc1u21y7vMsK8PFWgko0CT" False) (C1 (MetaCons "StartMaintenance'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_smEngineAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EngineAttribute]))) (S1 (MetaSel (Just Symbol "_smServerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs StartMaintenance Source # 

Request Lenses

smEngineAttributes :: Lens' StartMaintenance [EngineAttribute] Source #

Engine attributes that are specific to the server on which you want to run maintenance.

smServerName :: Lens' StartMaintenance Text Source #

The name of the server on which to run maintenance.

Destructuring the Response

startMaintenanceResponse Source #

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

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

data StartMaintenanceResponse Source #

See: startMaintenanceResponse smart constructor.

Instances

Eq StartMaintenanceResponse Source # 
Data StartMaintenanceResponse Source # 

Methods

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

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

toConstr :: StartMaintenanceResponse -> Constr #

dataTypeOf :: StartMaintenanceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Show StartMaintenanceResponse Source # 
Generic StartMaintenanceResponse Source # 
NFData StartMaintenanceResponse Source # 
type Rep StartMaintenanceResponse Source # 
type Rep StartMaintenanceResponse = D1 (MetaData "StartMaintenanceResponse" "Network.AWS.OpsWorksCM.StartMaintenance" "amazonka-opsworks-cm-1.5.0-Hc1u21y7vMsK8PFWgko0CT" False) (C1 (MetaCons "StartMaintenanceResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_smrsServer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Server))) (S1 (MetaSel (Just Symbol "_smrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

smrsServer :: Lens' StartMaintenanceResponse (Maybe Server) Source #

Contains the response to a StartMaintenance request.