UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

137 lines (136 loc) 4 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage cr repository * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.cr.Repository("foo", { * accessLevel: "Public", * description: "A test repository created by terraform.", * namespace: "namespace-1", * registry: "tf-2", * }); * ``` * * ## Import * * CR Repository can be imported using the registry:namespace:name, e.g. * * ```sh * $ pulumi import volcengine:cr/repository:Repository default cr-basic:namespace-1:repo-1 * ``` */ export declare class Repository extends pulumi.CustomResource { /** * Get an existing Repository resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RepositoryState, opts?: pulumi.CustomResourceOptions): Repository; /** * Returns true if the given object is an instance of Repository. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Repository; /** * The access level of CrRepository. */ readonly accessLevel: pulumi.Output<string | undefined>; /** * The creation time of repository. */ readonly createTime: pulumi.Output<string>; /** * The description of CrRepository. */ readonly description: pulumi.Output<string | undefined>; /** * The name of CrRepository. */ readonly name: pulumi.Output<string>; /** * The target namespace name. */ readonly namespace: pulumi.Output<string>; /** * The CrRegistry name. */ readonly registry: pulumi.Output<string>; /** * The last update time of repository. */ readonly updateTime: pulumi.Output<string>; /** * Create a Repository resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: RepositoryArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Repository resources. */ export interface RepositoryState { /** * The access level of CrRepository. */ accessLevel?: pulumi.Input<string>; /** * The creation time of repository. */ createTime?: pulumi.Input<string>; /** * The description of CrRepository. */ description?: pulumi.Input<string>; /** * The name of CrRepository. */ name?: pulumi.Input<string>; /** * The target namespace name. */ namespace?: pulumi.Input<string>; /** * The CrRegistry name. */ registry?: pulumi.Input<string>; /** * The last update time of repository. */ updateTime?: pulumi.Input<string>; } /** * The set of arguments for constructing a Repository resource. */ export interface RepositoryArgs { /** * The access level of CrRepository. */ accessLevel?: pulumi.Input<string>; /** * The description of CrRepository. */ description?: pulumi.Input<string>; /** * The name of CrRepository. */ name?: pulumi.Input<string>; /** * The target namespace name. */ namespace: pulumi.Input<string>; /** * The CrRegistry name. */ registry: pulumi.Input<string>; }