amazonka-opsworks-cm-1.6.1: Amazon OpsWorks for Chef Automate 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.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 # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

Data StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

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 # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

Generic StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

Associated Types

type Rep StartMaintenance :: Type -> Type #

Hashable StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

ToJSON StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

AWSRequest StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

Associated Types

type Rs StartMaintenance :: Type #

ToHeaders StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

ToPath StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

ToQuery StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

NFData StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

Methods

rnf :: StartMaintenance -> () #

type Rep StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

type Rep StartMaintenance = D1 (MetaData "StartMaintenance" "Network.AWS.OpsWorksCM.StartMaintenance" "amazonka-opsworks-cm-1.6.1-DBtTlJOATBfGleOMllIGPs" False) (C1 (MetaCons "StartMaintenance'" PrefixI True) (S1 (MetaSel (Just "_smEngineAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EngineAttribute])) :*: S1 (MetaSel (Just "_smServerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs StartMaintenance Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

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 # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

Data StartMaintenanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

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 # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

Generic StartMaintenanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

Associated Types

type Rep StartMaintenanceResponse :: Type -> Type #

NFData StartMaintenanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

type Rep StartMaintenanceResponse Source # 
Instance details

Defined in Network.AWS.OpsWorksCM.StartMaintenance

type Rep StartMaintenanceResponse = D1 (MetaData "StartMaintenanceResponse" "Network.AWS.OpsWorksCM.StartMaintenance" "amazonka-opsworks-cm-1.6.1-DBtTlJOATBfGleOMllIGPs" False) (C1 (MetaCons "StartMaintenanceResponse'" PrefixI True) (S1 (MetaSel (Just "_smrsServer") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Server)) :*: S1 (MetaSel (Just "_smrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

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

Contains the response to a StartMaintenance request.