paws.compute (version 0.1.0)

ec2_delete_launch_template_versions: Deletes one or more versions of a launch template

Description

Deletes one or more versions of a launch template. You cannot 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 DeleteLaunchTemplate.

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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

LaunchTemplateId

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

LaunchTemplateName

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

Versions

[required] The version numbers of one or more launch template versions to delete.

Request syntax

svc$delete_launch_template_versions(
  DryRun = TRUE|FALSE,
  LaunchTemplateId = "string",
  LaunchTemplateName = "string",
  Versions = list(
    "string"
  )
)

Examples

Run this code
# NOT RUN {
# This example deletes the specified launch template version.
# }
# NOT RUN {
svc$delete_launch_template_versions(
  LaunchTemplateId = "lt-0abcd290751193123",
  Versions = list(
    "1"
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab