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

Defined in Network.AWS.EC2.ModifyLaunchTemplate

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

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Show ModifyLaunchTemplate # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Generic ModifyLaunchTemplate # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Associated Types

type Rep ModifyLaunchTemplate :: * -> * #

Hashable ModifyLaunchTemplate # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

AWSRequest ModifyLaunchTemplate # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Associated Types

type Rs ModifyLaunchTemplate :: * #

ToHeaders ModifyLaunchTemplate # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

ToPath ModifyLaunchTemplate # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

ToQuery ModifyLaunchTemplate # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

NFData ModifyLaunchTemplate # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Methods

rnf :: ModifyLaunchTemplate -> () #

type Rep ModifyLaunchTemplate # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

type Rep ModifyLaunchTemplate = D1 (MetaData "ModifyLaunchTemplate" "Network.AWS.EC2.ModifyLaunchTemplate" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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 # 
Instance details

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

Defined in Network.AWS.EC2.ModifyLaunchTemplate

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

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Show ModifyLaunchTemplateResponse # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Generic ModifyLaunchTemplateResponse # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

Associated Types

type Rep ModifyLaunchTemplateResponse :: * -> * #

NFData ModifyLaunchTemplateResponse # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

type Rep ModifyLaunchTemplateResponse # 
Instance details

Defined in Network.AWS.EC2.ModifyLaunchTemplate

type Rep ModifyLaunchTemplateResponse = D1 (MetaData "ModifyLaunchTemplateResponse" "Network.AWS.EC2.ModifyLaunchTemplate" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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

mltrsLaunchTemplate :: Lens' ModifyLaunchTemplateResponse (Maybe LaunchTemplate) #

Information about the launch template.