paws.compute (version 0.1.0)

ec2_modify_launch_template: Modifies a launch template

Description

Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.

Usage

ec2_modify_launch_template(DryRun, ClientToken, LaunchTemplateId,
  LaunchTemplateName, DefaultVersion)

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.

ClientToken

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

Constraint: Maximum 128 ASCII characters.

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.

DefaultVersion

The version number of the launch template to set as the default version.

Request syntax

svc$modify_launch_template(
  DryRun = TRUE|FALSE,
  ClientToken = "string",
  LaunchTemplateId = "string",
  LaunchTemplateName = "string",
  DefaultVersion = "string"
)

Examples

Run this code
# NOT RUN {
# This example specifies version 2 as the default version of the specified
# launch template.
# }
# NOT RUN {
svc$modify_launch_template(
  DefaultVersion = "2",
  LaunchTemplateId = "lt-0abcd290751193123"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab