UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

165 lines (164 loc) 6 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages CSS thesaurus resource within HuaweiCloud * * > Only one thesaurus resource can be created for the specified cluster. * * ## Example Usage * ### Create a thesaurus * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const clusterId = config.requireObject("clusterId"); * const bucketName = config.requireObject("bucketName"); * const bucketObjKey = config.requireObject("bucketObjKey"); * const test = new huaweicloud.css.Thesaurus("test", { * clusterId: clusterId, * bucketName: bucketName, * mainObject: bucketObjKey, * }); * ``` * * ## Import * * CSS thesaurus can be imported by `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Css/thesaurus:Thesaurus test <id> * ``` */ export declare class Thesaurus extends pulumi.CustomResource { /** * Get an existing Thesaurus 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?: ThesaurusState, opts?: pulumi.CustomResourceOptions): Thesaurus; /** * Returns true if the given object is an instance of Thesaurus. 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 Thesaurus; /** * Specifies the OBS bucket where the thesaurus files are stored * (the bucket type must be standard storage or low-frequency storage, and archive storage is not supported). */ readonly bucketName: pulumi.Output<string>; /** * Specifies the CSS cluster ID for configuring the thesaurus. * Changing this parameter will create a new resource. */ readonly clusterId: pulumi.Output<string>; /** * Specifies the path of the main thesaurus file object. */ readonly mainObject: pulumi.Output<string>; /** * The region in which to create the thesaurus resource. If omitted, the * provider-level region will be used. Changing this creates a new thesaurus resource. */ readonly region: pulumi.Output<string>; /** * Indicates the status of the thesaurus loading */ readonly status: pulumi.Output<string>; /** * Specifies the path of the stop word library file object. */ readonly stopObject: pulumi.Output<string>; /** * Specifies the path of the synonyms thesaurus file object. */ readonly synonymObject: pulumi.Output<string>; /** * Specifies the time (UTC) when the thesaurus was modified. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ */ readonly updateTime: pulumi.Output<string>; /** * Create a Thesaurus 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: ThesaurusArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Thesaurus resources. */ export interface ThesaurusState { /** * Specifies the OBS bucket where the thesaurus files are stored * (the bucket type must be standard storage or low-frequency storage, and archive storage is not supported). */ bucketName?: pulumi.Input<string>; /** * Specifies the CSS cluster ID for configuring the thesaurus. * Changing this parameter will create a new resource. */ clusterId?: pulumi.Input<string>; /** * Specifies the path of the main thesaurus file object. */ mainObject?: pulumi.Input<string>; /** * The region in which to create the thesaurus resource. If omitted, the * provider-level region will be used. Changing this creates a new thesaurus resource. */ region?: pulumi.Input<string>; /** * Indicates the status of the thesaurus loading */ status?: pulumi.Input<string>; /** * Specifies the path of the stop word library file object. */ stopObject?: pulumi.Input<string>; /** * Specifies the path of the synonyms thesaurus file object. */ synonymObject?: pulumi.Input<string>; /** * Specifies the time (UTC) when the thesaurus was modified. The format is ISO8601:YYYY-MM-DDThh:mm:ssZ */ updateTime?: pulumi.Input<string>; } /** * The set of arguments for constructing a Thesaurus resource. */ export interface ThesaurusArgs { /** * Specifies the OBS bucket where the thesaurus files are stored * (the bucket type must be standard storage or low-frequency storage, and archive storage is not supported). */ bucketName: pulumi.Input<string>; /** * Specifies the CSS cluster ID for configuring the thesaurus. * Changing this parameter will create a new resource. */ clusterId: pulumi.Input<string>; /** * Specifies the path of the main thesaurus file object. */ mainObject?: pulumi.Input<string>; /** * The region in which to create the thesaurus resource. If omitted, the * provider-level region will be used. Changing this creates a new thesaurus resource. */ region?: pulumi.Input<string>; /** * Specifies the path of the stop word library file object. */ stopObject?: pulumi.Input<string>; /** * Specifies the path of the synonyms thesaurus file object. */ synonymObject?: pulumi.Input<string>; }