@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
74 lines (73 loc) • 2.14 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of RDS PostgreSQL accounts.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const instanceId = config.requireObject("instanceId");
* const test = huaweicloud.Rds.getPgAccounts({
* instanceId: instanceId,
* });
* ```
*/
export declare function getPgAccounts(args: GetPgAccountsArgs, opts?: pulumi.InvokeOptions): Promise<GetPgAccountsResult>;
/**
* A collection of arguments for invoking getPgAccounts.
*/
export interface GetPgAccountsArgs {
/**
* Specifies the PostgreSQL instance ID.
*/
instanceId: string;
/**
* Specifies the region in which to query the data source.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* Specifies the username of the DB account.
*/
userName?: string;
}
/**
* A collection of values returned by getPgAccounts.
*/
export interface GetPgAccountsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId: string;
readonly region: string;
readonly userName?: string;
/**
* Indicates the user list.
* The users structure is documented below.
*/
readonly users: outputs.Rds.GetPgAccountsUser[];
}
export declare function getPgAccountsOutput(args: GetPgAccountsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPgAccountsResult>;
/**
* A collection of arguments for invoking getPgAccounts.
*/
export interface GetPgAccountsOutputArgs {
/**
* Specifies the PostgreSQL instance ID.
*/
instanceId: pulumi.Input<string>;
/**
* Specifies the region in which to query the data source.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the username of the DB account.
*/
userName?: pulumi.Input<string>;
}