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

Contents

Description

Creates a launch template. A launch template contains the parameters to launch an instance. When you launch an instance using RunInstances , you can specify a launch template instead of providing the launch parameters in the request.

Synopsis

Creating a Request

createLaunchTemplate Source #

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

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

  • cltClientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .
  • cltVersionDescription - A description for the first version of the launch template.
  • cltDryRun - 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 .
  • cltLaunchTemplateName - A name for the launch template.
  • cltLaunchTemplateData - The information for the launch template.

data CreateLaunchTemplate Source #

See: createLaunchTemplate smart constructor.

Instances

Eq CreateLaunchTemplate Source # 
Data CreateLaunchTemplate Source # 

Methods

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

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

toConstr :: CreateLaunchTemplate -> Constr #

dataTypeOf :: CreateLaunchTemplate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateLaunchTemplate Source # 
Show CreateLaunchTemplate Source # 
Generic CreateLaunchTemplate Source # 
Hashable CreateLaunchTemplate Source # 
NFData CreateLaunchTemplate Source # 

Methods

rnf :: CreateLaunchTemplate -> () #

AWSRequest CreateLaunchTemplate Source # 
ToHeaders CreateLaunchTemplate Source # 
ToPath CreateLaunchTemplate Source # 
ToQuery CreateLaunchTemplate Source # 
type Rep CreateLaunchTemplate Source # 
type Rep CreateLaunchTemplate = D1 * (MetaData "CreateLaunchTemplate" "Network.AWS.EC2.CreateLaunchTemplate" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "CreateLaunchTemplate'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cltClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cltVersionDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cltDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cltLaunchTemplateName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cltLaunchTemplateData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * RequestLaunchTemplateData))))))
type Rs CreateLaunchTemplate Source # 

Request Lenses

cltClientToken :: Lens' CreateLaunchTemplate (Maybe Text) Source #

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

cltVersionDescription :: Lens' CreateLaunchTemplate (Maybe Text) Source #

A description for the first version of the launch template.

cltDryRun :: Lens' CreateLaunchTemplate (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 .

cltLaunchTemplateName :: Lens' CreateLaunchTemplate Text Source #

A name for the launch template.

Destructuring the Response

createLaunchTemplateResponse Source #

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

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

data CreateLaunchTemplateResponse Source #

See: createLaunchTemplateResponse smart constructor.

Instances

Eq CreateLaunchTemplateResponse Source # 
Data CreateLaunchTemplateResponse Source # 

Methods

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

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

toConstr :: CreateLaunchTemplateResponse -> Constr #

dataTypeOf :: CreateLaunchTemplateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateLaunchTemplateResponse Source # 
Show CreateLaunchTemplateResponse Source # 
Generic CreateLaunchTemplateResponse Source # 
NFData CreateLaunchTemplateResponse Source # 
type Rep CreateLaunchTemplateResponse Source # 
type Rep CreateLaunchTemplateResponse = D1 * (MetaData "CreateLaunchTemplateResponse" "Network.AWS.EC2.CreateLaunchTemplate" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "CreateLaunchTemplateResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cltrsLaunchTemplate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe LaunchTemplate))) (S1 * (MetaSel (Just Symbol "_cltrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses