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 # 
Data 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 # 
Show CreateLaunchTemplateVersion # 
Generic CreateLaunchTemplateVersion # 
Hashable CreateLaunchTemplateVersion # 
NFData CreateLaunchTemplateVersion # 
AWSRequest CreateLaunchTemplateVersion # 
ToHeaders CreateLaunchTemplateVersion # 
ToPath CreateLaunchTemplateVersion # 
ToQuery CreateLaunchTemplateVersion # 
type Rep CreateLaunchTemplateVersion # 
type Rep CreateLaunchTemplateVersion = D1 * (MetaData "CreateLaunchTemplateVersion" "Network.AWS.EC2.CreateLaunchTemplateVersion" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "CreateLaunchTemplateVersion'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cltvLaunchTemplateName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cltvClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cltvLaunchTemplateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cltvVersionDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cltvSourceVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cltvDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_cltvLaunchTemplateData") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * RequestLaunchTemplateData))))))
type Rs 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 # 
Data CreateLaunchTemplateVersionResponse # 

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 # 
Show CreateLaunchTemplateVersionResponse # 
Generic CreateLaunchTemplateVersionResponse # 
NFData CreateLaunchTemplateVersionResponse # 
type Rep CreateLaunchTemplateVersionResponse # 
type Rep CreateLaunchTemplateVersionResponse = D1 * (MetaData "CreateLaunchTemplateVersionResponse" "Network.AWS.EC2.CreateLaunchTemplateVersion" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "CreateLaunchTemplateVersionResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cltvrsLaunchTemplateVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe LaunchTemplateVersion))) (S1 * (MetaSel (Just Symbol "_cltvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses