UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

90 lines (89 loc) 2.65 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of rds postgresql accounts * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.rds_postgresql.getAccounts({ * instanceId: "postgres-954****f7233", * }); * ``` */ /** @deprecated volcengine.rds_postgresql.Accounts has been deprecated in favor of volcengine.rds_postgresql.getAccounts */ export declare function accounts(args: AccountsArgs, opts?: pulumi.InvokeOptions): Promise<AccountsResult>; /** * A collection of arguments for invoking Accounts. */ export interface AccountsArgs { /** * The name of the database account. This field supports fuzzy query. */ accountName?: 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 Accounts. */ export interface AccountsResult { /** * The name of the database account. */ readonly accountName?: string; /** * The collection of RDS instance account query. */ readonly accounts: outputs.rds_postgresql.AccountsAccount[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId: string; readonly outputFile?: string; /** * The total count of database account query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of rds postgresql accounts * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.rds_postgresql.getAccounts({ * instanceId: "postgres-954****f7233", * }); * ``` */ /** @deprecated volcengine.rds_postgresql.Accounts has been deprecated in favor of volcengine.rds_postgresql.getAccounts */ export declare function accountsOutput(args: AccountsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<AccountsResult>; /** * A collection of arguments for invoking Accounts. */ export interface AccountsOutputArgs { /** * The name of the database account. This field supports fuzzy query. */ accountName?: 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>; }