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 Source #

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 Source #

See: createLaunchTemplateVersion smart constructor.

Instances

Eq CreateLaunchTemplateVersion Source # 
Data CreateLaunchTemplateVersion Source # 

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 Source # 
Show CreateLaunchTemplateVersion Source # 
Generic CreateLaunchTemplateVersion Source # 
Hashable CreateLaunchTemplateVersion Source # 
NFData CreateLaunchTemplateVersion Source # 
AWSRequest CreateLaunchTemplateVersion Source # 
ToHeaders CreateLaunchTemplateVersion Source # 
ToPath CreateLaunchTemplateVersion Source # 
ToQuery CreateLaunchTemplateVersion Source # 
type Rep CreateLaunchTemplateVersion Source # 
type Rep CreateLaunchTemplateVersion = D1 * (MetaData "CreateLaunchTemplateVersion" "Network.AWS.EC2.CreateLaunchTemplateVersion" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" 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 Source # 

Request Lenses

cltvLaunchTemplateName :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #

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) Source #

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

cltvLaunchTemplateId :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #

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) Source #

A description for the version of the launch template.

cltvSourceVersion :: Lens' CreateLaunchTemplateVersion (Maybe Text) Source #

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) 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

createLaunchTemplateVersionResponse Source #

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 Source #

See: createLaunchTemplateVersionResponse smart constructor.

Instances

Eq CreateLaunchTemplateVersionResponse Source # 
Data CreateLaunchTemplateVersionResponse Source # 

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 Source # 
Show CreateLaunchTemplateVersionResponse Source # 
Generic CreateLaunchTemplateVersionResponse Source # 
NFData CreateLaunchTemplateVersionResponse Source # 
type Rep CreateLaunchTemplateVersionResponse Source # 
type Rep CreateLaunchTemplateVersionResponse = D1 * (MetaData "CreateLaunchTemplateVersionResponse" "Network.AWS.EC2.CreateLaunchTemplateVersion" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" 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