ConfigArgs

data class ConfigArgs(val description: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<ConfigArgs>

Example Usage

Example creating a RuntimeConfig resource.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.runtimeconfig.Config;
import com.pulumi.gcp.runtimeconfig.ConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var my_runtime_config = new Config("my-runtime-config", ConfigArgs.builder()
.description("Runtime configuration values for my service")
.build());
}
}

Import

Runtime Configs can be imported using the name or full config name, e.g.

$ pulumi import gcp:runtimeconfig/config:Config myconfig myconfig
$ pulumi import gcp:runtimeconfig/config:Config myconfig projects/my-gcp-project/configs/myconfig

When importing using only the name, the provider project must be set.

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

The description to associate with the runtime config.

Link copied to clipboard
val name: Output<String>? = null

The name of the runtime config.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Functions

Link copied to clipboard
open override fun toJava(): ConfigArgs