Modify Launch Template
| ec2_modify_launch_template | R Documentation |
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¶
DryRunChecks 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.ClientTokenUnique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraint: Maximum 128 ASCII characters.
LaunchTemplateIdThe ID of the launch template.
You must specify either the launch template ID or the launch template name, but not both.
LaunchTemplateNameThe name of the launch template.
You must specify either the launch template ID or the launch template name, but not both.
DefaultVersionThe version number of the launch template to set as the default version.
Value¶
A list with the following syntax:
list(
LaunchTemplate = list(
LaunchTemplateId = "string",
LaunchTemplateName = "string",
CreateTime = as.POSIXct(
"2015-01-01"
),
CreatedBy = "string",
DefaultVersionNumber = 123,
LatestVersionNumber = 123,
Tags = list(
list(
Key = "string",
Value = "string"
)
)
)
)
Request syntax¶
svc$modify_launch_template(
DryRun = TRUE|FALSE,
ClientToken = "string",
LaunchTemplateId = "string",
LaunchTemplateName = "string",
DefaultVersion = "string"
)