All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.ec2.inputs.SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.ec2.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs extends com.pulumi.resources.ResourceArgs {

    public static final SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs Empty = new SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs();

    /**
     * The ID of the launch template. Conflicts with `name`.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The ID of the launch template. Conflicts with `name`.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The name of the launch template. Conflicts with `id`.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the launch template. Conflicts with `id`.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Template version. Unlike the autoscaling equivalent, does not support `$Latest` or `$Default`, so use the launch_template 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 autoscaling 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 `instance_initiated_shutdown_behavior` is confirmed unsupported.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Template version. Unlike the autoscaling equivalent, does not support `$Latest` or `$Default`, so use the launch_template 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 autoscaling 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 `instance_initiated_shutdown_behavior` is confirmed unsupported.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs() {}

    private SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs(SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs $) {
        this.id = $.id;
        this.name = $.name;
        this.version = $.version;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs $;

        public Builder() {
            $ = new SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs();
        }

        public Builder(SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs defaults) {
            $ = new SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param id The ID of the launch template. Conflicts with `name`.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The ID of the launch template. Conflicts with `name`.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param name The name of the launch template. Conflicts with `id`.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the launch template. Conflicts with `id`.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param version Template version. Unlike the autoscaling equivalent, does not support `$Latest` or `$Default`, so use the launch_template 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 autoscaling 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 `instance_initiated_shutdown_behavior` is confirmed unsupported.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Template version. Unlike the autoscaling equivalent, does not support `$Latest` or `$Default`, so use the launch_template 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 autoscaling 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 `instance_initiated_shutdown_behavior` is confirmed unsupported.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public SpotFleetRequestLaunchTemplateConfigLaunchTemplateSpecificationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy