Skip to content

Describe Launch Templates

ec2_describe_launch_templates R Documentation

Describes one or more launch templates

Description

Describes one or more launch templates.

Usage

ec2_describe_launch_templates(DryRun, LaunchTemplateIds,
  LaunchTemplateNames, Filters, NextToken, MaxResults)

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.

LaunchTemplateIds

One or more launch template IDs.

LaunchTemplateNames

One or more launch template names.

Filters

One or more filters.

  • create-time - The time the launch template was created.

  • launch-template-name - The name of the launch template.

  • tag:\<key\> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA for the filter value.

  • tag-key - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.

NextToken

The token to request the next page of results.

MaxResults

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. This value can be between 1 and 200.

Value

A list with the following syntax:

list(
  LaunchTemplates = list(
    list(
      LaunchTemplateId = "string",
      LaunchTemplateName = "string",
      CreateTime = as.POSIXct(
        "2015-01-01"
      ),
      CreatedBy = "string",
      DefaultVersionNumber = 123,
      LatestVersionNumber = 123,
      Tags = list(
        list(
          Key = "string",
          Value = "string"
        )
      )
    )
  ),
  NextToken = "string"
)

Request syntax

svc$describe_launch_templates(
  DryRun = TRUE|FALSE,
  LaunchTemplateIds = list(
    "string"
  ),
  LaunchTemplateNames = list(
    "string"
  ),
  Filters = list(
    list(
      Name = "string",
      Values = list(
        "string"
      )
    )
  ),
  NextToken = "string",
  MaxResults = 123
)

Examples

## Not run: 
# This example describes the specified launch template.
svc$describe_launch_templates(
  LaunchTemplateIds = list(
    "lt-01238c059e3466abc"
  )
)

## End(Not run)