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.ModifyLaunchTemplate

Contents

Description

Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.

Synopsis

Creating a Request

modifyLaunchTemplate :: ModifyLaunchTemplate #

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

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

  • mltLaunchTemplateName - The name of the launch template. You must specify either the launch template ID or launch template name in the request.
  • mltClientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .
  • mltLaunchTemplateId - The ID of the launch template. You must specify either the launch template ID or launch template name in the request.
  • mltDefaultVersion - The version number of the launch template to set as the default version.
  • mltDryRun - 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 ModifyLaunchTemplate #

See: modifyLaunchTemplate smart constructor.

Instances

Eq ModifyLaunchTemplate # 
Data ModifyLaunchTemplate # 

Methods

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

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

toConstr :: ModifyLaunchTemplate -> Constr #

dataTypeOf :: ModifyLaunchTemplate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyLaunchTemplate # 
Show ModifyLaunchTemplate # 
Generic ModifyLaunchTemplate # 
Hashable ModifyLaunchTemplate # 
NFData ModifyLaunchTemplate # 

Methods

rnf :: ModifyLaunchTemplate -> () #

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

Request Lenses

mltLaunchTemplateName :: Lens' ModifyLaunchTemplate (Maybe Text) #

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

mltClientToken :: Lens' ModifyLaunchTemplate (Maybe Text) #

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .

mltLaunchTemplateId :: Lens' ModifyLaunchTemplate (Maybe Text) #

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

mltDefaultVersion :: Lens' ModifyLaunchTemplate (Maybe Text) #

The version number of the launch template to set as the default version.

mltDryRun :: Lens' ModifyLaunchTemplate (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

modifyLaunchTemplateResponse #

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

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

data ModifyLaunchTemplateResponse #

See: modifyLaunchTemplateResponse smart constructor.

Instances

Eq ModifyLaunchTemplateResponse # 
Data ModifyLaunchTemplateResponse # 

Methods

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

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

toConstr :: ModifyLaunchTemplateResponse -> Constr #

dataTypeOf :: ModifyLaunchTemplateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses

mltrsLaunchTemplate :: Lens' ModifyLaunchTemplateResponse (Maybe LaunchTemplate) #

Information about the launch template.