Class SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification


  • public final class SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecification
    extends java.lang.Object
    • Method Detail

      • id

        public java.util.Optional<java.lang.String> id()
        Returns:
        The ID of the launch template. Conflicts with `name`.
      • name

        public java.util.Optional<java.lang.String> name()
        Returns:
        The name of the launch template. Conflicts with `id`.
      • version

        public java.util.Optional<java.lang.String> version()
        Returns:
        Template version. Unlike the AutoScaling equivalent, does not support `$Latest` or `$Default`, so use the launchTemplate resource's attribute, e.g., `"${aws_launch_template.foo.latest_version}"`. It will use the default version if omitted. **Note:** The specified launch template can specify only a subset of the inputs of `aws.ec2.LaunchTemplate`. There are limitations on what you can specify as spot fleet does not support all the attributes that are supported by Auto Scaling groups. [AWS documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#launch-templates-spot-fleet) is currently sparse, but at least `instanceInitiatedShutdownBehavior` is confirmed unsupported.