RegistryArgs

data class RegistryArgs(val location: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<RegistryArgs>

Ensures that the Google Cloud Storage bucket that backs Google Container Registry exists. Creating this resource will create the backing bucket if it does not exist, or do nothing if the bucket already exists. Destroying this resource does NOT destroy the backing bucket. For more information see the official documentation This resource can be used to ensure that the GCS bucket exists prior to assigning permissions. For more information see the access control page for GCR.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.container.Registry;
import com.pulumi.gcp.container.RegistryArgs;
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 registry = new Registry("registry", RegistryArgs.builder()
.location("EU")
.project("my-project")
.build());
}
}

Import

This resource does not support import.

Constructors

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

Properties

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

The location of the registry. One of ASIA, EU, US or not specified. See the official documentation for more information on registry locations.

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(): RegistryArgs