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

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

See: modifyLaunchTemplate smart constructor.

Instances

Eq ModifyLaunchTemplate Source # 
Data ModifyLaunchTemplate Source # 

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 Source # 
Show ModifyLaunchTemplate Source # 
Generic ModifyLaunchTemplate Source # 
Hashable ModifyLaunchTemplate Source # 
NFData ModifyLaunchTemplate Source # 

Methods

rnf :: ModifyLaunchTemplate -> () #

AWSRequest ModifyLaunchTemplate Source # 
ToHeaders ModifyLaunchTemplate Source # 
ToPath ModifyLaunchTemplate Source # 
ToQuery ModifyLaunchTemplate Source # 
type Rep ModifyLaunchTemplate Source # 
type Rep ModifyLaunchTemplate = D1 * (MetaData "ModifyLaunchTemplate" "Network.AWS.EC2.ModifyLaunchTemplate" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" 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 Source # 

Request Lenses

mltLaunchTemplateName :: Lens' ModifyLaunchTemplate (Maybe Text) Source #

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) Source #

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

mltLaunchTemplateId :: Lens' ModifyLaunchTemplate (Maybe Text) Source #

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) Source #

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

mltDryRun :: Lens' ModifyLaunchTemplate (Maybe Bool) Source #

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

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

See: modifyLaunchTemplateResponse smart constructor.

Instances

Eq ModifyLaunchTemplateResponse Source # 
Data ModifyLaunchTemplateResponse Source # 

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 Source # 
Show ModifyLaunchTemplateResponse Source # 
Generic ModifyLaunchTemplateResponse Source # 
NFData ModifyLaunchTemplateResponse Source # 
type Rep ModifyLaunchTemplateResponse Source # 
type Rep ModifyLaunchTemplateResponse = D1 * (MetaData "ModifyLaunchTemplateResponse" "Network.AWS.EC2.ModifyLaunchTemplate" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" 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