amazonka-ec2-1.6.0: Amazon Elastic Compute Cloud 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.EC2.DeleteLaunchTemplate

Contents

Description

Deletes a launch template. Deleting a launch template deletes all of its versions.

Synopsis

Creating a Request

deleteLaunchTemplate :: DeleteLaunchTemplate #

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

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

  • dltLaunchTemplateName - The name of the launch template. You must specify either the launch template ID or launch template name in the request.
  • dltLaunchTemplateId - The ID of the launch template. You must specify either the launch template ID or launch template name in the request.
  • dltDryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

data DeleteLaunchTemplate #

See: deleteLaunchTemplate smart constructor.

Instances

Eq DeleteLaunchTemplate # 
Data DeleteLaunchTemplate # 

Methods

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

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

toConstr :: DeleteLaunchTemplate -> Constr #

dataTypeOf :: DeleteLaunchTemplate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteLaunchTemplate # 
Show DeleteLaunchTemplate # 
Generic DeleteLaunchTemplate # 
Hashable DeleteLaunchTemplate # 
NFData DeleteLaunchTemplate # 

Methods

rnf :: DeleteLaunchTemplate -> () #

AWSRequest DeleteLaunchTemplate # 
ToHeaders DeleteLaunchTemplate # 
ToPath DeleteLaunchTemplate # 
ToQuery DeleteLaunchTemplate # 
type Rep DeleteLaunchTemplate # 
type Rep DeleteLaunchTemplate = D1 * (MetaData "DeleteLaunchTemplate" "Network.AWS.EC2.DeleteLaunchTemplate" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "DeleteLaunchTemplate'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dltLaunchTemplateName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dltLaunchTemplateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_dltDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))))))
type Rs DeleteLaunchTemplate # 

Request Lenses

dltLaunchTemplateName :: Lens' DeleteLaunchTemplate (Maybe Text) #

The name of the launch template. You must specify either the launch template ID or launch template name in the request.

dltLaunchTemplateId :: Lens' DeleteLaunchTemplate (Maybe Text) #

The ID of the launch template. You must specify either the launch template ID or launch template name in the request.

dltDryRun :: Lens' DeleteLaunchTemplate (Maybe Bool) #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

Destructuring the Response

deleteLaunchTemplateResponse #

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

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

data DeleteLaunchTemplateResponse #

See: deleteLaunchTemplateResponse smart constructor.

Instances

Eq DeleteLaunchTemplateResponse # 
Data DeleteLaunchTemplateResponse # 

Methods

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

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

toConstr :: DeleteLaunchTemplateResponse -> Constr #

dataTypeOf :: DeleteLaunchTemplateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteLaunchTemplateResponse # 
Show DeleteLaunchTemplateResponse # 
Generic DeleteLaunchTemplateResponse # 
NFData DeleteLaunchTemplateResponse # 
type Rep DeleteLaunchTemplateResponse # 
type Rep DeleteLaunchTemplateResponse = D1 * (MetaData "DeleteLaunchTemplateResponse" "Network.AWS.EC2.DeleteLaunchTemplate" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "DeleteLaunchTemplateResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dltrsLaunchTemplate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe LaunchTemplate))) (S1 * (MetaSel (Just Symbol "_dltrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

dltrsLaunchTemplate :: Lens' DeleteLaunchTemplateResponse (Maybe LaunchTemplate) #

Information about the launch template.