@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
92 lines (91 loc) • 2.63 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of rds postgresql databases
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.rds_postgresql.getDatabases({
* dbName: "test001",
* instanceId: "postgres-95******8233",
* });
* ```
*/
/** @deprecated volcengine.rds_postgresql.Databases has been deprecated in favor of volcengine.rds_postgresql.getDatabases */
export declare function databases(args: DatabasesArgs, opts?: pulumi.InvokeOptions): Promise<DatabasesResult>;
/**
* A collection of arguments for invoking Databases.
*/
export interface DatabasesArgs {
/**
* The name of the RDS database.
*/
dbName?: string;
/**
* The id of the RDS instance.
*/
instanceId: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
}
/**
* A collection of values returned by Databases.
*/
export interface DatabasesResult {
/**
* The collection of RDS instance account query.
*/
readonly databases: outputs.rds_postgresql.DatabasesDatabase[];
/**
* The name of the RDS database.
*/
readonly dbName?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId: string;
readonly outputFile?: string;
/**
* The total count of RDS database query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of rds postgresql databases
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.rds_postgresql.getDatabases({
* dbName: "test001",
* instanceId: "postgres-95******8233",
* });
* ```
*/
/** @deprecated volcengine.rds_postgresql.Databases has been deprecated in favor of volcengine.rds_postgresql.getDatabases */
export declare function databasesOutput(args: DatabasesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<DatabasesResult>;
/**
* A collection of arguments for invoking Databases.
*/
export interface DatabasesOutputArgs {
/**
* The name of the RDS database.
*/
dbName?: pulumi.Input<string>;
/**
* The id of the RDS instance.
*/
instanceId: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
}