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

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 #

See: cancelCommand smart constructor.

Instances

Eq CancelCommand # 
Data 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 # 
Show CancelCommand # 
Generic CancelCommand # 

Associated Types

type Rep CancelCommand :: * -> * #

Hashable CancelCommand # 
ToJSON CancelCommand # 
NFData CancelCommand # 

Methods

rnf :: CancelCommand -> () #

AWSRequest CancelCommand # 
ToQuery CancelCommand # 
ToPath CancelCommand # 
ToHeaders CancelCommand # 
type Rep CancelCommand # 
type Rep CancelCommand = D1 (MetaData "CancelCommand" "Network.AWS.SSM.CancelCommand" "amazonka-ssm-1.4.5-1XugwZI5i6oEK9zpTg7Crt" False) (C1 (MetaCons "CancelCommand'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ccInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_ccCommandId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CancelCommand # 

Request Lenses

ccInstanceIds :: Lens' CancelCommand [Text] #

(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 #

The ID of the command you want to cancel.

Destructuring the Response

cancelCommandResponse #

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 #

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 # 
Data CancelCommandResponse # 

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 # 
Show CancelCommandResponse # 
Generic CancelCommandResponse # 
NFData CancelCommandResponse # 

Methods

rnf :: CancelCommandResponse -> () #

type Rep CancelCommandResponse # 
type Rep CancelCommandResponse = D1 (MetaData "CancelCommandResponse" "Network.AWS.SSM.CancelCommand" "amazonka-ssm-1.4.5-1XugwZI5i6oEK9zpTg7Crt" True) (C1 (MetaCons "CancelCommandResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_ccrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

ccrsResponseStatus :: Lens' CancelCommandResponse Int #

  • - | The response status code.