
com.pulumi.aws.appsync.inputs.FunctionRuntimeArgs Maven / Gradle / Ivy
// *** 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.appsync.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class FunctionRuntimeArgs extends com.pulumi.resources.ResourceArgs {
public static final FunctionRuntimeArgs Empty = new FunctionRuntimeArgs();
/**
* The name of the runtime to use. Currently, the only allowed value is `APPSYNC_JS`.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return The name of the runtime to use. Currently, the only allowed value is `APPSYNC_JS`.
*
*/
public Output name() {
return this.name;
}
/**
* The version of the runtime to use. Currently, the only allowed version is `1.0.0`.
*
*/
@Import(name="runtimeVersion", required=true)
private Output runtimeVersion;
/**
* @return The version of the runtime to use. Currently, the only allowed version is `1.0.0`.
*
*/
public Output runtimeVersion() {
return this.runtimeVersion;
}
private FunctionRuntimeArgs() {}
private FunctionRuntimeArgs(FunctionRuntimeArgs $) {
this.name = $.name;
this.runtimeVersion = $.runtimeVersion;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FunctionRuntimeArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private FunctionRuntimeArgs $;
public Builder() {
$ = new FunctionRuntimeArgs();
}
public Builder(FunctionRuntimeArgs defaults) {
$ = new FunctionRuntimeArgs(Objects.requireNonNull(defaults));
}
/**
* @param name The name of the runtime to use. Currently, the only allowed value is `APPSYNC_JS`.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the runtime to use. Currently, the only allowed value is `APPSYNC_JS`.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param runtimeVersion The version of the runtime to use. Currently, the only allowed version is `1.0.0`.
*
* @return builder
*
*/
public Builder runtimeVersion(Output runtimeVersion) {
$.runtimeVersion = runtimeVersion;
return this;
}
/**
* @param runtimeVersion The version of the runtime to use. Currently, the only allowed version is `1.0.0`.
*
* @return builder
*
*/
public Builder runtimeVersion(String runtimeVersion) {
return runtimeVersion(Output.of(runtimeVersion));
}
public FunctionRuntimeArgs build() {
if ($.name == null) {
throw new MissingRequiredPropertyException("FunctionRuntimeArgs", "name");
}
if ($.runtimeVersion == null) {
throw new MissingRequiredPropertyException("FunctionRuntimeArgs", "runtimeVersion");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy