/AWS1/CL_EC2=>CREATELAUNCHTEMPLATEVERSION()
¶
About CreateLaunchTemplateVersion¶
Creates a new version of a launch template. You must specify an existing launch template, either by name or ID. You can determine whether the new version inherits parameters from a source version, and add or overwrite parameters as needed.
Launch template versions are numbered in the order in which they are created. You can't specify, change, or replace the numbering of launch template versions.
Launch templates are immutable; after you create a launch template, you can't modify it. Instead, you can create a new version of the launch template that includes the changes that you require.
For more information, see Modify a launch template (manage launch template versions) in the Amazon EC2 User Guide.
Method Signature¶
IMPORTING¶
Required arguments:¶
IO_LAUNCHTEMPLATEDATA
TYPE REF TO /AWS1/CL_EC2REQLAUNCHTMPLDATA
/AWS1/CL_EC2REQLAUNCHTMPLDATA
¶
The information for the launch template.
Optional arguments:¶
IV_DRYRUN
TYPE /AWS1/EC2BOOLEAN
/AWS1/EC2BOOLEAN
¶
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 isUnauthorizedOperation
.
IV_CLIENTTOKEN
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If a client token isn't specified, a randomly generated token is used in the request to ensure idempotency.
For more information, see Ensuring idempotency.
Constraint: Maximum 128 ASCII characters.
IV_LAUNCHTEMPLATEID
TYPE /AWS1/EC2LAUNCHTEMPLATEID
/AWS1/EC2LAUNCHTEMPLATEID
¶
The ID of the launch template.
You must specify either the launch template ID or the launch template name, but not both.
IV_LAUNCHTEMPLATENAME
TYPE /AWS1/EC2LAUNCHTEMPLATENAME
/AWS1/EC2LAUNCHTEMPLATENAME
¶
The name of the launch template.
You must specify either the launch template ID or the launch template name, but not both.
IV_SOURCEVERSION
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
The version of the launch template on which to base the new version. Snapshots applied to the block device mapping are ignored when creating a new version unless they are explicitly included.
If you specify this parameter, the new version inherits the launch parameters from the source version. If you specify additional launch parameters for the new version, they overwrite any corresponding launch parameters inherited from the source version.
If you omit this parameter, the new version contains only the launch parameters that you specify for the new version.
IV_VERSIONDESCRIPTION
TYPE /AWS1/EC2VERSIONDESCRIPTION
/AWS1/EC2VERSIONDESCRIPTION
¶
A description for the version of the launch template.
IV_RESOLVEALIAS
TYPE /AWS1/EC2BOOLEAN
/AWS1/EC2BOOLEAN
¶
If
true
, and if a Systems Manager parameter is specified forImageId
, the AMI ID is displayed in the response forimageID
. For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon EC2 User Guide.Default:
false
RETURNING¶
OO_OUTPUT
TYPE REF TO /AWS1/CL_EC2CRELAUNCHTMPLVRSRS
/AWS1/CL_EC2CRELAUNCHTMPLVRSRS
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC