ProjectMetadataItemArgs

data class ProjectMetadataItemArgs(val key: Output<String>? = null, val project: Output<String>? = null, val value: Output<String>? = null) : ConvertibleToJava<ProjectMetadataItemArgs>

Manages a single key/value pair on metadata common to all instances for a project in GCE. Using gcp.compute.ProjectMetadataItem lets you manage a single key/value setting in the provider rather than the entire project metadata map.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ProjectMetadataItem;
import com.pulumi.gcp.compute.ProjectMetadataItemArgs;
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 default_ = new ProjectMetadataItem("default", ProjectMetadataItemArgs.builder()
.key("my_metadata")
.value("my_value")
.build());
}
}

Import

Project metadata items can be imported using the key, e.g.

$ pulumi import gcp:compute/projectMetadataItem:ProjectMetadataItem default my_metadata

Constructors

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

Properties

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

The metadata key to set.

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.

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

The value to set for the given metadata key.

Functions

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