amazonka-ec2-1.6.1: 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 # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Data ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Show ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Generic ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Associated Types

type Rep ModifyLaunchTemplate :: Type -> Type #

Hashable ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

AWSRequest ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Associated Types

type Rs ModifyLaunchTemplate :: Type #

ToHeaders ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

ToPath ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

ToQuery ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

NFData ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Methods

rnf :: ModifyLaunchTemplate -> () #

type Rep ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

type Rep ModifyLaunchTemplate = D1 (MetaData "ModifyLaunchTemplate" "Network.AWS.EC2.ModifyLaunchTemplate" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ModifyLaunchTemplate'" PrefixI True) ((S1 (MetaSel (Just "_mltLaunchTemplateName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mltClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_mltLaunchTemplateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_mltDefaultVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_mltDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Rs ModifyLaunchTemplate Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

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 # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Data ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

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 # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Show ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Generic ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Associated Types

type Rep ModifyLaunchTemplateResponse :: Type -> Type #

NFData ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

type Rep ModifyLaunchTemplateResponse Source # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

type Rep ModifyLaunchTemplateResponse = D1 (MetaData "ModifyLaunchTemplateResponse" "Network.AWS.EC2.ModifyLaunchTemplate" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "ModifyLaunchTemplateResponse'" PrefixI True) (S1 (MetaSel (Just "_mltrsLaunchTemplate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LaunchTemplate)) :*: S1 (MetaSel (Just "_mltrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses