UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

92 lines (91 loc) 2.52 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get available GaussDB OpenGauss instances. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const thisOpengaussInstances = pulumi.output(huaweicloud.GaussDBforOpenGauss.getOpengaussInstances({ * name: "gaussdb-instance", * })); * ``` */ export declare function getOpengaussInstances(args?: GetOpengaussInstancesArgs, opts?: pulumi.InvokeOptions): Promise<GetOpengaussInstancesResult>; /** * A collection of arguments for invoking getOpengaussInstances. */ export interface GetOpengaussInstancesArgs { /** * Specifies the name of the instance. */ name?: string; /** * The region in which to obtain the instance. If omitted, the provider-level region will * be used. */ region?: string; /** * Specifies the network ID of a subnet. */ subnetId?: string; /** * Specifies the VPC ID. */ vpcId?: string; } /** * A collection of values returned by getOpengaussInstances. */ export interface GetOpengaussInstancesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * An array of available instances. */ readonly instances: outputs.GaussDBforOpenGauss.GetOpengaussInstancesInstance[]; /** * Indicates the node name. */ readonly name?: string; /** * The region of the instance. */ readonly region: string; /** * Indicates the network ID of a subnet. */ readonly subnetId?: string; /** * Indicates the VPC ID. */ readonly vpcId?: string; } export declare function getOpengaussInstancesOutput(args?: GetOpengaussInstancesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOpengaussInstancesResult>; /** * A collection of arguments for invoking getOpengaussInstances. */ export interface GetOpengaussInstancesOutputArgs { /** * Specifies the name of the instance. */ name?: pulumi.Input<string>; /** * The region in which to obtain the instance. If omitted, the provider-level region will * be used. */ region?: pulumi.Input<string>; /** * Specifies the network ID of a subnet. */ subnetId?: pulumi.Input<string>; /** * Specifies the VPC ID. */ vpcId?: pulumi.Input<string>; }