UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

202 lines (201 loc) 6.08 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a CCE chart resource within HuaweiCloud. * * ## Example Usage * ### Basic Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const test = new huaweicloud.Cce.Chart("test", { * content: "./kube-prometheus-stack-55.4.1.tgz", * parameters: "{\"override\":true,\"skip_lint\":true,\"source\":\"package\"}", * }); * ``` * * ## Import * * CCE chart can be imported using the `id`, e.g.bash * * ```sh * $ pulumi import huaweicloud:Cce/chart:Chart test 19413aa0-9fe4-11ee-83b0-0255ac10026b * ``` * * Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`content` and `parameters`. It is generally recommended running `terraform plan` after importing an CCE chart. You can then decide if changes should be applied to the chart, or the resource definition should be updated to align with the chart. Also you can ignore changes as below. hcl resource "huaweicloud_cce_chart" "test" { * * ... * * lifecycle { * * ignore_changes = [ * * content, parameters, * * ] * * } } */ export declare class Chart extends pulumi.CustomResource { /** * Get an existing Chart 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?: ChartState, opts?: pulumi.CustomResourceOptions): Chart; /** * Returns true if the given object is an instance of Chart. 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 Chart; /** * The chart url. */ readonly chartUrl: pulumi.Output<string>; /** * Specifies the path of the chart package to be uploaded. */ readonly content: pulumi.Output<string>; /** * The create time. */ readonly createdAt: pulumi.Output<string>; /** * The description of the chart. */ readonly description: pulumi.Output<string>; /** * The instruction of the chart. */ readonly instruction: pulumi.Output<string>; /** * The chart name. */ readonly name: pulumi.Output<string>; /** * Specifies the parameters of the CCE chart. */ readonly parameters: pulumi.Output<string | undefined>; /** * Whether the chart is public. */ readonly public: pulumi.Output<boolean>; /** * Specifies the region in which to create the CCE chart resource. * If omitted, the provider-level region will be used. Changing this creates a new CCE chart resource. */ readonly region: pulumi.Output<string>; /** * The source of the chart. */ readonly source: pulumi.Output<string>; /** * The traslate source of the chart. */ readonly translate: pulumi.Output<string>; /** * The update time. */ readonly updatedAt: pulumi.Output<string>; /** * The value of the chart. */ readonly value: pulumi.Output<string>; /** * The chart version. */ readonly version: pulumi.Output<string>; /** * Create a Chart 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: ChartArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Chart resources. */ export interface ChartState { /** * The chart url. */ chartUrl?: pulumi.Input<string>; /** * Specifies the path of the chart package to be uploaded. */ content?: pulumi.Input<string>; /** * The create time. */ createdAt?: pulumi.Input<string>; /** * The description of the chart. */ description?: pulumi.Input<string>; /** * The instruction of the chart. */ instruction?: pulumi.Input<string>; /** * The chart name. */ name?: pulumi.Input<string>; /** * Specifies the parameters of the CCE chart. */ parameters?: pulumi.Input<string>; /** * Whether the chart is public. */ public?: pulumi.Input<boolean>; /** * Specifies the region in which to create the CCE chart resource. * If omitted, the provider-level region will be used. Changing this creates a new CCE chart resource. */ region?: pulumi.Input<string>; /** * The source of the chart. */ source?: pulumi.Input<string>; /** * The traslate source of the chart. */ translate?: pulumi.Input<string>; /** * The update time. */ updatedAt?: pulumi.Input<string>; /** * The value of the chart. */ value?: pulumi.Input<string>; /** * The chart version. */ version?: pulumi.Input<string>; } /** * The set of arguments for constructing a Chart resource. */ export interface ChartArgs { /** * Specifies the path of the chart package to be uploaded. */ content: pulumi.Input<string>; /** * Specifies the parameters of the CCE chart. */ parameters?: pulumi.Input<string>; /** * Specifies the region in which to create the CCE chart resource. * If omitted, the provider-level region will be used. Changing this creates a new CCE chart resource. */ region?: pulumi.Input<string>; }