UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

214 lines (213 loc) 7.07 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a custom dependency package within HuaweiCloud FunctionGraph. * * > This resource will be deprecated in a future version. Please use `huaweicloudFgsDependencyVersion` resource to * replace it. For specific usage instructions, please refer to the corresponding document. * * ## Example Usage * * ## Import * * Dependencies can be imported using the `id`, e.g.bash * * ```sh * $ pulumi import huaweicloud:FunctionGraph/dependency:Dependency test 795e722f-0c23-41b6-a189-dcd56f889cf6 * ``` */ export declare class Dependency extends pulumi.CustomResource { /** * Get an existing Dependency 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?: DependencyState, opts?: pulumi.CustomResourceOptions): Dependency; /** * Returns true if the given object is an instance of Dependency. 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 Dependency; /** * Specifies the dependency description. * The description can contain a maximum of `512` characters. */ readonly description: pulumi.Output<string>; /** * The unique ID of the dependency package. */ readonly etag: pulumi.Output<string>; /** * The OBS storage URL of the dependency package. */ readonly link: pulumi.Output<string>; /** * Specifies the dependency name. * The name can contain a maximum of `96` characters and must start with a letter and end with a letter or digit. * Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. */ readonly name: pulumi.Output<string>; /** * The base64 encoded digest of the dependency after encryption by MD5. */ readonly owner: pulumi.Output<string>; /** * Specifies the region in which to create a custom dependency package. * If omitted, the provider-level region will be used. Changing this will create a new resource. */ readonly region: pulumi.Output<string>; /** * Specifies the dependency package runtime. * The valid values are as follows: * + **Java8** * + **Java11** * + **Node.js6.10** * + **Node.js8.10** * + **Node.js10.16** * + **Node.js12.13** * + **Node.js14.18** * + **Python2.7** * + **Python3.6** * + **Python3.9** * + **Go1.8** * + **Go1.x** * + **C#(.NET Core 2.0)** * + **C#(.NET Core 2.1)** * + **C#(.NET Core 3.1)** * + **PHP7.3** * + **Custom** * + **http** */ readonly runtime: pulumi.Output<string>; /** * The dependency package size in bytes. */ readonly size: pulumi.Output<number>; /** * The dependency package version. */ readonly version: pulumi.Output<number>; /** * Create a Dependency 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: DependencyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Dependency resources. */ export interface DependencyState { /** * Specifies the dependency description. * The description can contain a maximum of `512` characters. */ description?: pulumi.Input<string>; /** * The unique ID of the dependency package. */ etag?: pulumi.Input<string>; /** * The OBS storage URL of the dependency package. */ link?: pulumi.Input<string>; /** * Specifies the dependency name. * The name can contain a maximum of `96` characters and must start with a letter and end with a letter or digit. * Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. */ name?: pulumi.Input<string>; /** * The base64 encoded digest of the dependency after encryption by MD5. */ owner?: pulumi.Input<string>; /** * Specifies the region in which to create a custom dependency package. * If omitted, the provider-level region will be used. Changing this will create a new resource. */ region?: pulumi.Input<string>; /** * Specifies the dependency package runtime. * The valid values are as follows: * + **Java8** * + **Java11** * + **Node.js6.10** * + **Node.js8.10** * + **Node.js10.16** * + **Node.js12.13** * + **Node.js14.18** * + **Python2.7** * + **Python3.6** * + **Python3.9** * + **Go1.8** * + **Go1.x** * + **C#(.NET Core 2.0)** * + **C#(.NET Core 2.1)** * + **C#(.NET Core 3.1)** * + **PHP7.3** * + **Custom** * + **http** */ runtime?: pulumi.Input<string>; /** * The dependency package size in bytes. */ size?: pulumi.Input<number>; /** * The dependency package version. */ version?: pulumi.Input<number>; } /** * The set of arguments for constructing a Dependency resource. */ export interface DependencyArgs { /** * Specifies the dependency description. * The description can contain a maximum of `512` characters. */ description?: pulumi.Input<string>; /** * The OBS storage URL of the dependency package. */ link: pulumi.Input<string>; /** * Specifies the dependency name. * The name can contain a maximum of `96` characters and must start with a letter and end with a letter or digit. * Only letters, digits, underscores (_), periods (.), and hyphens (-) are allowed. */ name?: pulumi.Input<string>; /** * Specifies the region in which to create a custom dependency package. * If omitted, the provider-level region will be used. Changing this will create a new resource. */ region?: pulumi.Input<string>; /** * Specifies the dependency package runtime. * The valid values are as follows: * + **Java8** * + **Java11** * + **Node.js6.10** * + **Node.js8.10** * + **Node.js10.16** * + **Node.js12.13** * + **Node.js14.18** * + **Python2.7** * + **Python3.6** * + **Python3.9** * + **Go1.8** * + **Go1.x** * + **C#(.NET Core 2.0)** * + **C#(.NET Core 2.1)** * + **C#(.NET Core 3.1)** * + **PHP7.3** * + **Custom** * + **http** */ runtime: pulumi.Input<string>; }