@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
119 lines (118 loc) • 3.72 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage cr namespace
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.cr.Namespace("foo", {
* project: "default",
* registry: "tf-test-cr",
* });
* const foo1 = new volcengine.cr.Namespace("foo1", {
* project: "default",
* registry: "tf-test-cr",
* });
* ```
*
* ## Import
*
* CR namespace can be imported using the registry:name, e.g.
*
* ```sh
* $ pulumi import volcengine:cr/namespace:Namespace default cr-basic:namespace-1
* ```
*/
export declare class Namespace extends pulumi.CustomResource {
/**
* Get an existing Namespace 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?: NamespaceState, opts?: pulumi.CustomResourceOptions): Namespace;
/**
* Returns true if the given object is an instance of Namespace. 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 Namespace;
/**
* The time when namespace created.
*/
readonly createTime: pulumi.Output<string>;
/**
* The name of CrNamespace.
*/
readonly name: pulumi.Output<string>;
/**
* The ProjectName of the CrNamespace.
*/
readonly project: pulumi.Output<string>;
/**
* The registry name.
*/
readonly registry: pulumi.Output<string>;
/**
* The default access level of repository. Valid values: `Private`, `Public`. Default is `Private`.
*/
readonly repositoryDefaultAccessLevel: pulumi.Output<string>;
/**
* Create a Namespace 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: NamespaceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Namespace resources.
*/
export interface NamespaceState {
/**
* The time when namespace created.
*/
createTime?: pulumi.Input<string>;
/**
* The name of CrNamespace.
*/
name?: pulumi.Input<string>;
/**
* The ProjectName of the CrNamespace.
*/
project?: pulumi.Input<string>;
/**
* The registry name.
*/
registry?: pulumi.Input<string>;
/**
* The default access level of repository. Valid values: `Private`, `Public`. Default is `Private`.
*/
repositoryDefaultAccessLevel?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Namespace resource.
*/
export interface NamespaceArgs {
/**
* The name of CrNamespace.
*/
name?: pulumi.Input<string>;
/**
* The ProjectName of the CrNamespace.
*/
project?: pulumi.Input<string>;
/**
* The registry name.
*/
registry: pulumi.Input<string>;
/**
* The default access level of repository. Valid values: `Private`, `Public`. Default is `Private`.
*/
repositoryDefaultAccessLevel?: pulumi.Input<string>;
}