@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
219 lines (218 loc) • 6.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a resource to manage cr registry
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* // create cr registry
* const fooRegistry = new volcengine.cr.Registry("fooRegistry", {
* deleteImmediately: false,
* password: "1qaz!QAZ",
* project: "default",
* });
* // create cr namespace
* const fooNamespace = new volcengine.cr.Namespace("fooNamespace", {
* registry: fooRegistry.id,
* project: "default",
* });
* // create cr repository
* const fooRepository = new volcengine.cr.Repository("fooRepository", {
* registry: fooRegistry.id,
* namespace: fooNamespace.name,
* description: "A test repository created by terraform.",
* accessLevel: "Public",
* });
* ```
*
* ## Import
*
* CR Registry can be imported using the name, e.g.
*
* ```sh
* $ pulumi import volcengine:cr/registry:Registry default enterprise-x
* ```
*/
export declare class Registry extends pulumi.CustomResource {
/**
* Get an existing Registry 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?: RegistryState, opts?: pulumi.CustomResourceOptions): Registry;
/**
* Returns true if the given object is an instance of Registry. 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 Registry;
/**
* The charge type of registry.
*/
readonly chargeType: pulumi.Output<string>;
/**
* The creation time of registry.
*/
readonly createTime: pulumi.Output<string>;
/**
* Whether delete registry immediately. Only effected in delete action.
*/
readonly deleteImmediately: pulumi.Output<boolean | undefined>;
/**
* The domain of registry.
*/
readonly domains: pulumi.Output<outputs.cr.RegistryDomain[]>;
/**
* The name of registry.
*/
readonly name: pulumi.Output<string>;
/**
* The password of registry user.
*/
readonly password: pulumi.Output<string | undefined>;
/**
* The ProjectName of the cr registry.
*/
readonly project: pulumi.Output<string>;
/**
* The proxy cache of registry. This field is valid when proxyCacheEnabled is true.
*/
readonly proxyCache: pulumi.Output<outputs.cr.RegistryProxyCache | undefined>;
/**
* Whether to enable proxy cache.
*/
readonly proxyCacheEnabled: pulumi.Output<boolean>;
/**
* Tags.
*/
readonly resourceTags: pulumi.Output<outputs.cr.RegistryResourceTag[] | undefined>;
/**
* The status of registry.
*/
readonly statuses: pulumi.Output<outputs.cr.RegistryStatus[]>;
/**
* The type of registry. Valid values: `Enterprise`, `Micro`. Default is `Enterprise`.
*/
readonly type: pulumi.Output<string>;
/**
* The status of user.
*/
readonly userStatus: pulumi.Output<string>;
/**
* The username of cr instance.
*/
readonly username: pulumi.Output<string>;
/**
* Create a Registry 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?: RegistryArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Registry resources.
*/
export interface RegistryState {
/**
* The charge type of registry.
*/
chargeType?: pulumi.Input<string>;
/**
* The creation time of registry.
*/
createTime?: pulumi.Input<string>;
/**
* Whether delete registry immediately. Only effected in delete action.
*/
deleteImmediately?: pulumi.Input<boolean>;
/**
* The domain of registry.
*/
domains?: pulumi.Input<pulumi.Input<inputs.cr.RegistryDomain>[]>;
/**
* The name of registry.
*/
name?: pulumi.Input<string>;
/**
* The password of registry user.
*/
password?: pulumi.Input<string>;
/**
* The ProjectName of the cr registry.
*/
project?: pulumi.Input<string>;
/**
* The proxy cache of registry. This field is valid when proxyCacheEnabled is true.
*/
proxyCache?: pulumi.Input<inputs.cr.RegistryProxyCache>;
/**
* Whether to enable proxy cache.
*/
proxyCacheEnabled?: pulumi.Input<boolean>;
/**
* Tags.
*/
resourceTags?: pulumi.Input<pulumi.Input<inputs.cr.RegistryResourceTag>[]>;
/**
* The status of registry.
*/
statuses?: pulumi.Input<pulumi.Input<inputs.cr.RegistryStatus>[]>;
/**
* The type of registry. Valid values: `Enterprise`, `Micro`. Default is `Enterprise`.
*/
type?: pulumi.Input<string>;
/**
* The status of user.
*/
userStatus?: pulumi.Input<string>;
/**
* The username of cr instance.
*/
username?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Registry resource.
*/
export interface RegistryArgs {
/**
* Whether delete registry immediately. Only effected in delete action.
*/
deleteImmediately?: pulumi.Input<boolean>;
/**
* The name of registry.
*/
name?: pulumi.Input<string>;
/**
* The password of registry user.
*/
password?: pulumi.Input<string>;
/**
* The ProjectName of the cr registry.
*/
project?: pulumi.Input<string>;
/**
* The proxy cache of registry. This field is valid when proxyCacheEnabled is true.
*/
proxyCache?: pulumi.Input<inputs.cr.RegistryProxyCache>;
/**
* Whether to enable proxy cache.
*/
proxyCacheEnabled?: pulumi.Input<boolean>;
/**
* Tags.
*/
resourceTags?: pulumi.Input<pulumi.Input<inputs.cr.RegistryResourceTag>[]>;
/**
* The type of registry. Valid values: `Enterprise`, `Micro`. Default is `Enterprise`.
*/
type?: pulumi.Input<string>;
}