UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

112 lines (111 loc) 4.79 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages an IoTDA resource space within HuaweiCloud. * * A resource space is the basic unit of service management and provides independent device management and platform * configuration capabilities at the service layer. Resources (such as products and devices) must be created on * a resource space. * * > The **basic** edition instance does not support updating the resource. * * > When accessing an IoTDA **standard** or **enterprise** edition instance, you need to specify * the IoTDA service endpoint in `provider` block. * You can login to the IoTDA console, choose the instance **Overview** and click **Access Details** * to view the HTTPS application access address. An example of the access address might be * *9bc34xxxxx.st1.iotda-app.ap-southeast-1.myhuaweicloud.com*, then you need to configure the * `provider` block as follows: * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const name = config.requireObject("name"); * const test = new huaweicloud.iotda.Space("test", {}); * ``` * * ## Import * * The resource can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:IoTDA/space:Space test <id> * ``` */ export declare class Space extends pulumi.CustomResource { /** * Get an existing Space 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?: SpaceState, opts?: pulumi.CustomResourceOptions): Space; /** * Returns true if the given object is an instance of Space. 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 Space; /** * Whether it is the default resource space. The IoT platform automatically creates and assigns * a default resource space (undeletable) to your account. */ readonly isDefault: pulumi.Output<boolean>; /** * Specifies the space name. The name contains a maximum of `64` characters. * Only letters, digits, hyphens (-), underscore (_) and the following special characters are allowed: `?'#().,&%@!`. */ readonly name: pulumi.Output<string>; /** * Specifies the region in which to create the IoTDA resource space resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ readonly region: pulumi.Output<string>; /** * Create a Space 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?: SpaceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Space resources. */ export interface SpaceState { /** * Whether it is the default resource space. The IoT platform automatically creates and assigns * a default resource space (undeletable) to your account. */ isDefault?: pulumi.Input<boolean>; /** * Specifies the space name. The name contains a maximum of `64` characters. * Only letters, digits, hyphens (-), underscore (_) and the following special characters are allowed: `?'#().,&%@!`. */ name?: pulumi.Input<string>; /** * Specifies the region in which to create the IoTDA resource space resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; } /** * The set of arguments for constructing a Space resource. */ export interface SpaceArgs { /** * Specifies the space name. The name contains a maximum of `64` characters. * Only letters, digits, hyphens (-), underscore (_) and the following special characters are allowed: `?'#().,&%@!`. */ name?: pulumi.Input<string>; /** * Specifies the region in which to create the IoTDA resource space resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; }