UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

87 lines (86 loc) 2.53 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of rds postgresql database endpoints * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const example = volcengine.rds_postgresql.getDatabaseEndpoints({ * instanceId: "postgres-72715e0d9f58", * nameRegex: "默认.*", * }); * ``` */ export declare function getDatabaseEndpoints(args?: GetDatabaseEndpointsArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabaseEndpointsResult>; /** * A collection of arguments for invoking getDatabaseEndpoints. */ export interface GetDatabaseEndpointsArgs { /** * The ID of the RDS PostgreSQL instance. */ instanceId?: string; /** * The name of the endpoint to filter. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by getDatabaseEndpoints. */ export interface GetDatabaseEndpointsResult { /** * The collection of query. */ readonly endpoints: outputs.rds_postgresql.GetDatabaseEndpointsEndpoint[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId?: string; readonly nameRegex?: string; readonly outputFile?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of rds postgresql database endpoints * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const example = volcengine.rds_postgresql.getDatabaseEndpoints({ * instanceId: "postgres-72715e0d9f58", * nameRegex: "默认.*", * }); * ``` */ export declare function getDatabaseEndpointsOutput(args?: GetDatabaseEndpointsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabaseEndpointsResult>; /** * A collection of arguments for invoking getDatabaseEndpoints. */ export interface GetDatabaseEndpointsOutputArgs { /** * The ID of the RDS PostgreSQL instance. */ instanceId?: pulumi.Input<string>; /** * The name of the endpoint to filter. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }