LaunchTemplateArgs

data class LaunchTemplateArgs(val launchTemplateData: Output<LaunchTemplateDataArgs>? = null, val launchTemplateName: Output<String>? = null, val tagSpecifications: Output<List<LaunchTemplateTagSpecificationArgs>>? = null, val versionDescription: Output<String>? = null) : ConvertibleToJava<LaunchTemplateArgs>

Specifies the properties for creating a launch template. The minimum required properties for specifying a launch template are as follows:

  • You must specify at least one property for the launch template data.

  • You can optionally specify a name for the launch template. If you do not specify a name, CFN creates a name for you. A launch template can contain some or all of the configuration information to launch an instance. When you launch an instance using a launch template, instance properties that are not specified in the launch template use default values, except the `ImageId` property, which has no default value. If you do not specify an AMI ID for the launch template `ImageId` property, you must specify an AMI ID for the instance `ImageId` property. For more information, see Launch an instance from a launch template in the Amazon EC2 User Guide.

Constructors

Link copied to clipboard
constructor(launchTemplateData: Output<LaunchTemplateDataArgs>? = null, launchTemplateName: Output<String>? = null, tagSpecifications: Output<List<LaunchTemplateTagSpecificationArgs>>? = null, versionDescription: Output<String>? = null)

Properties

Link copied to clipboard

The information for the launch template.

Link copied to clipboard
val launchTemplateName: Output<String>? = null

A name for the launch template.

Link copied to clipboard

The tags to apply to the launch template on creation. To tag the launch template, the resource type must be `launch-template`. To specify the tags for resources that are created during instance launch, use TagSpecifications.

Link copied to clipboard
val versionDescription: Output<String>? = null

A description for the first version of the launch template.

Functions

Link copied to clipboard
open override fun toJava(): LaunchTemplateArgs