Class CfnLaunchTemplate.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.CfnLaunchTemplate.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplate>
Enclosing class:
CfnLaunchTemplate

@Stability(Stable) public static final class CfnLaunchTemplate.Builder extends Object implements software.amazon.jsii.Builder<CfnLaunchTemplate>
A fluent builder for CfnLaunchTemplate.
  • Method Details

    • create

      @Stability(Stable) public static CfnLaunchTemplate.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnLaunchTemplate.Builder.
    • launchTemplateData

      @Stability(Stable) public CfnLaunchTemplate.Builder launchTemplateData(IResolvable launchTemplateData)
      The information for the launch template.

      Parameters:
      launchTemplateData - The information for the launch template. This parameter is required.
      Returns:
      this
    • launchTemplateData

      @Stability(Stable) public CfnLaunchTemplate.Builder launchTemplateData(CfnLaunchTemplate.LaunchTemplateDataProperty launchTemplateData)
      The information for the launch template.

      Parameters:
      launchTemplateData - The information for the launch template. This parameter is required.
      Returns:
      this
    • launchTemplateName

      @Stability(Stable) public CfnLaunchTemplate.Builder launchTemplateName(String launchTemplateName)
      A name for the launch template.

      Parameters:
      launchTemplateName - A name for the launch template. This parameter is required.
      Returns:
      this
    • tagSpecifications

      @Stability(Stable) public CfnLaunchTemplate.Builder tagSpecifications(IResolvable tagSpecifications)
      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 the resources that are created when an instance is launched, you must use the TagSpecifications parameter in the launch template data structure.

      Parameters:
      tagSpecifications - The tags to apply to the launch template on creation. This parameter is required.
      Returns:
      this
    • tagSpecifications

      @Stability(Stable) public CfnLaunchTemplate.Builder tagSpecifications(List<? extends Object> tagSpecifications)
      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 the resources that are created when an instance is launched, you must use the TagSpecifications parameter in the launch template data structure.

      Parameters:
      tagSpecifications - The tags to apply to the launch template on creation. This parameter is required.
      Returns:
      this
    • versionDescription

      @Stability(Stable) public CfnLaunchTemplate.Builder versionDescription(String versionDescription)
      A description for the first version of the launch template.

      Parameters:
      versionDescription - A description for the first version of the launch template. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnLaunchTemplate build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnLaunchTemplate>
      Returns:
      a newly built instance of CfnLaunchTemplate.