RepoArgs

data class RepoArgs(val detail: Output<String>? = null, val name: Output<String>? = null, val namespace: Output<String>? = null, val repoType: Output<String>? = null, val summary: Output<String>? = null) : ConvertibleToJava<RepoArgs>

This resource will help you to manager Container Registry repositories, see What is Repository.

NOTE: Available since v1.35.0. NOTE: You need to set your registry password in Container Registry console before use this resource.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cr.Namespace;
import com.pulumi.alicloud.cr.NamespaceArgs;
import com.pulumi.alicloud.cr.Repo;
import com.pulumi.alicloud.cr.RepoArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
.autoCreate(false)
.defaultVisibility("PUBLIC")
.build());
var exampleRepo = new Repo("exampleRepo", RepoArgs.builder()
.namespace(exampleNamespace.name())
.summary("this is summary of my new repo")
.repoType("PUBLIC")
.detail("this is a public repo")
.build());
}
}

Import

Container Registry repository can be imported using the namespace/repository, e.g.

$ pulumi import alicloud:cr/repo:Repo default `my-namespace/my-repo`

Constructors

Link copied to clipboard
fun RepoArgs(detail: Output<String>? = null, name: Output<String>? = null, namespace: Output<String>? = null, repoType: Output<String>? = null, summary: Output<String>? = null)

Functions

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

Properties

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

The repository specific information. MarkDown format is supported, and the length limit is 2000.

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

Name of container registry repository.

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

Name of container registry namespace where repository is located.

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

PUBLIC or PRIVATE, repo's visibility.

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

The repository general information. It can contain 1 to 80 characters.