Interface CfnInstance.LaunchTemplateSpecificationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnInstance.LaunchTemplateSpecificationProperty.Jsii$Proxy
Enclosing class:
CfnInstance

@Stability(Stable) public static interface CfnInstance.LaunchTemplateSpecificationProperty extends software.amazon.jsii.JsiiSerializable
Specifies a launch template to use when launching an Amazon EC2 instance.

You must specify the following:

  • The ID or the name of the launch template, but not both.
  • The version of the launch template.

For information about creating a launch template, see AWS::EC2::LaunchTemplate and Create a launch template in the Amazon EC2 User Guide . For example launch templates, see the Examples for AWS::EC2::LaunchTemplate .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 LaunchTemplateSpecificationProperty launchTemplateSpecificationProperty = LaunchTemplateSpecificationProperty.builder()
         .version("version")
         // the properties below are optional
         .launchTemplateId("launchTemplateId")
         .launchTemplateName("launchTemplateName")
         .build();
 

See Also: