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

Contents

Description

Creates a new version for a launch template. You can specify an existing version of launch template from which to base the new version.

Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.

Synopsis

Creating a Request

createLaunchTemplateVersion #

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

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

  • cltvLaunchTemplateName - The name of the launch template. You must specify either the launch template ID or launch template name in the request.
  • cltvClientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency .
  • cltvLaunchTemplateId - The ID of the launch template. You must specify either the launch template ID or launch template name in the request.
  • cltvVersionDescription - A description for the version of the launch template.
  • cltvSourceVersion - The version number of the launch template version on which to base the new version. The new version inherits the same launch parameters as the source version, except for parameters that you specify in LaunchTemplateData.
  • cltvDryRun - 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 .
  • cltvLaunchTemplateData - The information for the launch template.

data CreateLaunchTemplateVersion #

See: createLaunchTemplateVersion smart constructor.

Instances
Eq CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Data CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Methods

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

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

toConstr :: CreateLaunchTemplateVersion -> Constr #

dataTypeOf :: CreateLaunchTemplateVersion -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Show CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Generic CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Associated Types

type Rep CreateLaunchTemplateVersion :: * -> * #

Hashable CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

AWSRequest CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Associated Types

type Rs CreateLaunchTemplateVersion :: * #

ToHeaders CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

ToPath CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

ToQuery CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

NFData CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

type Rep CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

type Rep CreateLaunchTemplateVersion = D1 (MetaData "CreateLaunchTemplateVersion" "Network.AWS.EC2.CreateLaunchTemplateVersion" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "CreateLaunchTemplateVersion'" PrefixI True) ((S1 (MetaSel (Just "_cltvLaunchTemplateName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cltvClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cltvLaunchTemplateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_cltvVersionDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cltvSourceVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_cltvDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_cltvLaunchTemplateData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RequestLaunchTemplateData)))))
type Rs CreateLaunchTemplateVersion # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Request Lenses

cltvLaunchTemplateName :: Lens' CreateLaunchTemplateVersion (Maybe Text) #

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

cltvClientToken :: Lens' CreateLaunchTemplateVersion (Maybe Text) #

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

cltvLaunchTemplateId :: Lens' CreateLaunchTemplateVersion (Maybe Text) #

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

cltvVersionDescription :: Lens' CreateLaunchTemplateVersion (Maybe Text) #

A description for the version of the launch template.

cltvSourceVersion :: Lens' CreateLaunchTemplateVersion (Maybe Text) #

The version number of the launch template version on which to base the new version. The new version inherits the same launch parameters as the source version, except for parameters that you specify in LaunchTemplateData.

cltvDryRun :: Lens' CreateLaunchTemplateVersion (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

createLaunchTemplateVersionResponse #

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

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

data CreateLaunchTemplateVersionResponse #

See: createLaunchTemplateVersionResponse smart constructor.

Instances
Eq CreateLaunchTemplateVersionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Data CreateLaunchTemplateVersionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Methods

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

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

toConstr :: CreateLaunchTemplateVersionResponse -> Constr #

dataTypeOf :: CreateLaunchTemplateVersionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateLaunchTemplateVersionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Show CreateLaunchTemplateVersionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Generic CreateLaunchTemplateVersionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

Associated Types

type Rep CreateLaunchTemplateVersionResponse :: * -> * #

NFData CreateLaunchTemplateVersionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

type Rep CreateLaunchTemplateVersionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateLaunchTemplateVersion

type Rep CreateLaunchTemplateVersionResponse = D1 (MetaData "CreateLaunchTemplateVersionResponse" "Network.AWS.EC2.CreateLaunchTemplateVersion" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" False) (C1 (MetaCons "CreateLaunchTemplateVersionResponse'" PrefixI True) (S1 (MetaSel (Just "_cltvrsLaunchTemplateVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LaunchTemplateVersion)) :*: S1 (MetaSel (Just "_cltvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses