UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

141 lines (140 loc) 3.88 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get available HuaweiCloud GeminiDB Cassandra instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const thisCassandraInstance = pulumi.output(huaweicloud.GaussDBforNoSQL.getCassandraInstance({ * name: "gaussdb-instance", * })); * ``` */ export declare function getCassandraInstance(args?: GetCassandraInstanceArgs, opts?: pulumi.InvokeOptions): Promise<GetCassandraInstanceResult>; /** * A collection of arguments for invoking getCassandraInstance. */ export interface GetCassandraInstanceArgs { /** * 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 getCassandraInstance. */ export interface GetCassandraInstanceResult { /** * Indicates the availability zone where the node resides. */ readonly availabilityZone: string; /** * Indicates the advanced backup policy. Structure is documented below. */ readonly backupStrategies: outputs.GaussDBforNoSQL.GetCassandraInstanceBackupStrategy[]; /** * Indicates the database information. Structure is documented below. */ readonly datastores: outputs.GaussDBforNoSQL.GetCassandraInstanceDatastore[]; /** * Indicates the default username. */ readonly dbUserName: string; /** * Indicates the enterprise project id. */ readonly enterpriseProjectId: string; /** * Indicates the instance specifications. */ readonly flavor: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Indicates the instance mode. */ readonly mode: string; /** * Indicates the node name. */ readonly name: string; /** * Indicates the count of the nodes. */ readonly nodeNum: number; /** * Indicates the instance nodes information. Structure is documented below. */ readonly nodes: outputs.GaussDBforNoSQL.GetCassandraInstanceNode[]; /** * Indicates the database port. */ readonly port: number; /** * Indicates the list of private IP address of the nodes. */ readonly privateIps: string[]; readonly region: string; /** * Indicates the security group ID. */ readonly securityGroupId: string; /** * Indicates the node status. */ readonly status: string; readonly subnetId: string; /** * Indicates the key/value tags of the instance. */ readonly tags: { [key: string]: string; }; /** * Indicates the size of the volume. */ readonly volumeSize: number; readonly vpcId: string; } export declare function getCassandraInstanceOutput(args?: GetCassandraInstanceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCassandraInstanceResult>; /** * A collection of arguments for invoking getCassandraInstance. */ export interface GetCassandraInstanceOutputArgs { /** * 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>; }