amazonka-ssm-1.6.1: Amazon Simple Systems Manager (SSM) 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.SSM.CancelCommand

Contents

Description

Attempts to cancel the command specified by the Command ID. There is no guarantee that the command will be terminated and the underlying process stopped.

Synopsis

Creating a Request

cancelCommand Source #

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

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

  • ccInstanceIds - (Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.
  • ccCommandId - The ID of the command you want to cancel.

data CancelCommand Source #

See: cancelCommand smart constructor.

Instances
Eq CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Data CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Methods

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

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

toConstr :: CancelCommand -> Constr #

dataTypeOf :: CancelCommand -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Show CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Generic CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Associated Types

type Rep CancelCommand :: Type -> Type #

Hashable CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

ToJSON CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

AWSRequest CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Associated Types

type Rs CancelCommand :: Type #

ToHeaders CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

ToPath CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

ToQuery CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

NFData CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Methods

rnf :: CancelCommand -> () #

type Rep CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

type Rep CancelCommand = D1 (MetaData "CancelCommand" "Network.AWS.SSM.CancelCommand" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" False) (C1 (MetaCons "CancelCommand'" PrefixI True) (S1 (MetaSel (Just "_ccInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_ccCommandId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs CancelCommand Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Request Lenses

ccInstanceIds :: Lens' CancelCommand [Text] Source #

(Optional) A list of instance IDs on which you want to cancel the command. If not provided, the command is canceled on every instance on which it was requested.

ccCommandId :: Lens' CancelCommand Text Source #

The ID of the command you want to cancel.

Destructuring the Response

cancelCommandResponse Source #

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

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

data CancelCommandResponse Source #

Whether or not the command was successfully canceled. There is no guarantee that a request can be canceled.

See: cancelCommandResponse smart constructor.

Instances
Eq CancelCommandResponse Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Data CancelCommandResponse Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Methods

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

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

toConstr :: CancelCommandResponse -> Constr #

dataTypeOf :: CancelCommandResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CancelCommandResponse Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Show CancelCommandResponse Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Generic CancelCommandResponse Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Associated Types

type Rep CancelCommandResponse :: Type -> Type #

NFData CancelCommandResponse Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

Methods

rnf :: CancelCommandResponse -> () #

type Rep CancelCommandResponse Source # 
Instance details

Defined in Network.AWS.SSM.CancelCommand

type Rep CancelCommandResponse = D1 (MetaData "CancelCommandResponse" "Network.AWS.SSM.CancelCommand" "amazonka-ssm-1.6.1-7PbnocxNW5qAr7pEvzAy6Q" True) (C1 (MetaCons "CancelCommandResponse'" PrefixI True) (S1 (MetaSel (Just "_ccrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

ccrsResponseStatus :: Lens' CancelCommandResponse Int Source #

  • - | The response status code.