UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

159 lines (158 loc) 4.64 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage cr tag * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * // Tag cannot be created,please import by command `terraform import volcengine_cr_tag.default registry:namespace:repository:tag` * const _default = new volcengine.cr.Tag("default", { * namespace: "langyu", * registry: "enterprise-1", * repository: "repo", * }); * ``` * * ## Import * * CR tags can be imported using the registry:namespace:repository:tag, e.g. * * ```sh * $ pulumi import volcengine:cr/tag:Tag default cr-basic:namespace-1:repo-1:v1 * ``` */ export declare class Tag extends pulumi.CustomResource { /** * Get an existing Tag 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?: TagState, opts?: pulumi.CustomResourceOptions): Tag; /** * Returns true if the given object is an instance of Tag. 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 Tag; /** * The chart attribute,valid when tag type is Chart. */ readonly chartAttributes: pulumi.Output<outputs.cr.TagChartAttribute[]>; /** * The digest of image. */ readonly digest: pulumi.Output<string>; /** * The list of image attributes,valid when tag type is Image. */ readonly imageAttributes: pulumi.Output<outputs.cr.TagImageAttribute[]>; /** * The name of OCI product. */ readonly name: pulumi.Output<string>; /** * The target namespace name. */ readonly namespace: pulumi.Output<string>; /** * The last push time of OCI product. */ readonly pushTime: pulumi.Output<string>; /** * The CrRegistry name. */ readonly registry: pulumi.Output<string>; /** * The name of repository. */ readonly repository: pulumi.Output<string>; /** * The size of OCI product. */ readonly size: pulumi.Output<number>; /** * The type of OCI product tag. */ readonly type: pulumi.Output<string>; /** * Create a Tag 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: TagArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Tag resources. */ export interface TagState { /** * The chart attribute,valid when tag type is Chart. */ chartAttributes?: pulumi.Input<pulumi.Input<inputs.cr.TagChartAttribute>[]>; /** * The digest of image. */ digest?: pulumi.Input<string>; /** * The list of image attributes,valid when tag type is Image. */ imageAttributes?: pulumi.Input<pulumi.Input<inputs.cr.TagImageAttribute>[]>; /** * The name of OCI product. */ name?: pulumi.Input<string>; /** * The target namespace name. */ namespace?: pulumi.Input<string>; /** * The last push time of OCI product. */ pushTime?: pulumi.Input<string>; /** * The CrRegistry name. */ registry?: pulumi.Input<string>; /** * The name of repository. */ repository?: pulumi.Input<string>; /** * The size of OCI product. */ size?: pulumi.Input<number>; /** * The type of OCI product tag. */ type?: pulumi.Input<string>; } /** * The set of arguments for constructing a Tag resource. */ export interface TagArgs { /** * The name of OCI product. */ name?: pulumi.Input<string>; /** * The target namespace name. */ namespace: pulumi.Input<string>; /** * The CrRegistry name. */ registry: pulumi.Input<string>; /** * The name of repository. */ repository: pulumi.Input<string>; }