amazonka-opsworks-1.5.0: Amazon OpsWorks 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.OpsWorks.DeleteInstance

Contents

Description

Deletes a specified instance, which terminates the associated Amazon EC2 instance. You must stop an instance before you can delete it.

For more information, see Deleting Instances .

Required Permissions : To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions .

Synopsis

Creating a Request

deleteInstance Source #

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

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

data DeleteInstance Source #

See: deleteInstance smart constructor.

Instances

Eq DeleteInstance Source # 
Data DeleteInstance Source # 

Methods

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

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

toConstr :: DeleteInstance -> Constr #

dataTypeOf :: DeleteInstance -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteInstance Source # 
Show DeleteInstance Source # 
Generic DeleteInstance Source # 

Associated Types

type Rep DeleteInstance :: * -> * #

Hashable DeleteInstance Source # 
ToJSON DeleteInstance Source # 
NFData DeleteInstance Source # 

Methods

rnf :: DeleteInstance -> () #

AWSRequest DeleteInstance Source # 
ToQuery DeleteInstance Source # 
ToPath DeleteInstance Source # 
ToHeaders DeleteInstance Source # 
type Rep DeleteInstance Source # 
type Rep DeleteInstance = D1 (MetaData "DeleteInstance" "Network.AWS.OpsWorks.DeleteInstance" "amazonka-opsworks-1.5.0-9Cz7dbg1Tt8zDXFeRwqsG" False) (C1 (MetaCons "DeleteInstance'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_diDeleteVolumes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_diDeleteElasticIP") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_diInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs DeleteInstance Source # 

Request Lenses

diDeleteVolumes :: Lens' DeleteInstance (Maybe Bool) Source #

Whether to delete the instance's Amazon EBS volumes.

diDeleteElasticIP :: Lens' DeleteInstance (Maybe Bool) Source #

Whether to delete the instance Elastic IP address.

Destructuring the Response

deleteInstanceResponse :: DeleteInstanceResponse Source #

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

data DeleteInstanceResponse Source #

See: deleteInstanceResponse smart constructor.

Instances

Eq DeleteInstanceResponse Source # 
Data DeleteInstanceResponse Source # 

Methods

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

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

toConstr :: DeleteInstanceResponse -> Constr #

dataTypeOf :: DeleteInstanceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteInstanceResponse Source # 
Show DeleteInstanceResponse Source # 
Generic DeleteInstanceResponse Source # 
NFData DeleteInstanceResponse Source # 

Methods

rnf :: DeleteInstanceResponse -> () #

type Rep DeleteInstanceResponse Source # 
type Rep DeleteInstanceResponse = D1 (MetaData "DeleteInstanceResponse" "Network.AWS.OpsWorks.DeleteInstance" "amazonka-opsworks-1.5.0-9Cz7dbg1Tt8zDXFeRwqsG" False) (C1 (MetaCons "DeleteInstanceResponse'" PrefixI False) U1)