Delete Launch Template Versions
ec2_delete_launch_template_versions | R Documentation |
Deletes one or more versions of a launch template¶
Description¶
Deletes one or more versions of a launch template.
You can't delete the default version of a launch template; you must
first assign a different version as the default. If the default version
is the only version for the launch template, you must delete the entire
launch template using delete_launch_template
.
You can delete up to 200 launch template versions in a single request.
To delete more than 200 versions in a single request, use
delete_launch_template
, which deletes the launch template and all of
its versions.
For more information, see Delete a launch template version in the Amazon EC2 User Guide.
Usage¶
ec2_delete_launch_template_versions(DryRun, LaunchTemplateId,
LaunchTemplateName, Versions)
Arguments¶
DryRun |
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
|
LaunchTemplateId |
The ID of the launch template. You must specify either the launch template ID or the launch template name, but not both. |
LaunchTemplateName |
The name of the launch template. You must specify either the launch template ID or the launch template name, but not both. |
Versions |
[required] The version numbers of one or more launch template versions to delete. You can specify up to 200 launch template version numbers. |
Value¶
A list with the following syntax:
list(
SuccessfullyDeletedLaunchTemplateVersions = list(
list(
LaunchTemplateId = "string",
LaunchTemplateName = "string",
VersionNumber = 123
)
),
UnsuccessfullyDeletedLaunchTemplateVersions = list(
list(
LaunchTemplateId = "string",
LaunchTemplateName = "string",
VersionNumber = 123,
ResponseError = list(
Code = "launchTemplateIdDoesNotExist"|"launchTemplateIdMalformed"|"launchTemplateNameDoesNotExist"|"launchTemplateNameMalformed"|"launchTemplateVersionDoesNotExist"|"unexpectedError",
Message = "string"
)
)
)
)
Request syntax¶
svc$delete_launch_template_versions(
DryRun = TRUE|FALSE,
LaunchTemplateId = "string",
LaunchTemplateName = "string",
Versions = list(
"string"
)
)
Examples¶
## Not run:
# This example deletes the specified launch template version.
svc$delete_launch_template_versions(
LaunchTemplateId = "lt-0abcd290751193123",
Versions = list(
"1"
)
)
## End(Not run)