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

com.pulumi.aws.synthetics.inputs.GetRuntimeVersionArgs 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.72.0
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.synthetics.inputs;

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


public final class GetRuntimeVersionArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetRuntimeVersionArgs Empty = new GetRuntimeVersionArgs();

    /**
     * Whether the latest version of the runtime should be fetched. Conflicts with `version`. Valid values: `true`.
     * 
     */
    @Import(name="latest")
    private @Nullable Output latest;

    /**
     * @return Whether the latest version of the runtime should be fetched. Conflicts with `version`. Valid values: `true`.
     * 
     */
    public Optional> latest() {
        return Optional.ofNullable(this.latest);
    }

    /**
     * Name prefix of the runtime version (for example, `syn-nodejs-puppeteer`).
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="prefix", required=true)
    private Output prefix;

    /**
     * @return Name prefix of the runtime version (for example, `syn-nodejs-puppeteer`).
     * 
     * The following arguments are optional:
     * 
     */
    public Output prefix() {
        return this.prefix;
    }

    /**
     * Version of the runtime to be fetched (for example, `9.0`). Conflicts with `latest`.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Version of the runtime to be fetched (for example, `9.0`). Conflicts with `latest`.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private GetRuntimeVersionArgs() {}

    private GetRuntimeVersionArgs(GetRuntimeVersionArgs $) {
        this.latest = $.latest;
        this.prefix = $.prefix;
        this.version = $.version;
    }

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

    public static final class Builder {
        private GetRuntimeVersionArgs $;

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

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

        /**
         * @param latest Whether the latest version of the runtime should be fetched. Conflicts with `version`. Valid values: `true`.
         * 
         * @return builder
         * 
         */
        public Builder latest(@Nullable Output latest) {
            $.latest = latest;
            return this;
        }

        /**
         * @param latest Whether the latest version of the runtime should be fetched. Conflicts with `version`. Valid values: `true`.
         * 
         * @return builder
         * 
         */
        public Builder latest(Boolean latest) {
            return latest(Output.of(latest));
        }

        /**
         * @param prefix Name prefix of the runtime version (for example, `syn-nodejs-puppeteer`).
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder prefix(Output prefix) {
            $.prefix = prefix;
            return this;
        }

        /**
         * @param prefix Name prefix of the runtime version (for example, `syn-nodejs-puppeteer`).
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder prefix(String prefix) {
            return prefix(Output.of(prefix));
        }

        /**
         * @param version Version of the runtime to be fetched (for example, `9.0`). Conflicts with `latest`.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Version of the runtime to be fetched (for example, `9.0`). Conflicts with `latest`.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public GetRuntimeVersionArgs build() {
            if ($.prefix == null) {
                throw new MissingRequiredPropertyException("GetRuntimeVersionArgs", "prefix");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy