UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

285 lines (284 loc) 8.18 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of rds postgresql instances * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooZones = volcengine.ecs.getZones({}); * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-project1", * cidrBlock: "172.16.0.0/16", * }); * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", { * subnetName: "acc-subnet-test-2", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const fooInstance = new volcengine.rds_postgresql.Instance("fooInstance", { * dbEngineVersion: "PostgreSQL_12", * nodeSpec: "rds.postgres.1c2g", * primaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * secondaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * storageSpace: 40, * subnetId: fooSubnet.id, * instanceName: "acc-test-1", * chargeInfo: { * chargeType: "PostPaid", * }, * projectName: "default", * tags: [{ * key: "tfk1", * value: "tfv1", * }], * parameters: [ * { * name: "auto_explain.log_analyze", * value: "off", * }, * { * name: "auto_explain.log_format", * value: "text", * }, * ], * }); * const fooInstances = volcengine.rds_postgresql.getInstancesOutput({ * instanceId: fooInstance.id, * }); * ``` */ /** @deprecated volcengine.rds_postgresql.Instances has been deprecated in favor of volcengine.rds_postgresql.getInstances */ export declare function instances(args?: InstancesArgs, opts?: pulumi.InvokeOptions): Promise<InstancesResult>; /** * A collection of arguments for invoking Instances. */ export interface InstancesArgs { /** * The charge type of the RDS instance. */ chargeType?: string; /** * The end time of creating RDS PostgreSQL instance. */ createTimeEnd?: string; /** * The start time of creating RDS PostgreSQL instance. */ createTimeStart?: string; /** * The version of the RDS PostgreSQL instance. */ dbEngineVersion?: string; /** * The id of the RDS PostgreSQL instance. */ instanceId?: string; /** * The name of the RDS PostgreSQL instance. */ instanceName?: string; /** * The status of the RDS PostgreSQL instance. */ instanceStatus?: string; /** * A Name Regex of RDS instance. */ nameRegex?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The project name of the RDS PostgreSQL instance. */ projectName?: string; /** * The storage type of the RDS PostgreSQL instance. */ storageType?: string; /** * Tags. */ tags?: inputs.rds_postgresql.InstancesTag[]; /** * The available zone of the RDS PostgreSQL instance. */ zoneId?: string; } /** * A collection of values returned by Instances. */ export interface InstancesResult { /** * Payment type. Value: * PostPaid - Pay-As-You-Go * PrePaid - Yearly and monthly (default). */ readonly chargeType?: string; readonly createTimeEnd?: string; readonly createTimeStart?: string; /** * The engine version of the RDS PostgreSQL instance. */ readonly dbEngineVersion?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Instance ID. */ readonly instanceId?: string; /** * The name of the RDS PostgreSQL instance. */ readonly instanceName?: string; /** * The status of the RDS PostgreSQL instance. */ readonly instanceStatus?: string; /** * The collection of query. */ readonly instances: outputs.rds_postgresql.InstancesInstance[]; readonly nameRegex?: string; readonly outputFile?: string; /** * The project name of the RDS PostgreSQL instance. */ readonly projectName?: string; /** * Instance storage type. */ readonly storageType?: string; /** * Tags. */ readonly tags?: outputs.rds_postgresql.InstancesTag[]; /** * The total count of RDS instance query. */ readonly totalCount: number; /** * The available zone of the RDS PostgreSQL instance. */ readonly zoneId?: string; } /** * Use this data source to query detailed information of rds postgresql instances * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooZones = volcengine.ecs.getZones({}); * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-project1", * cidrBlock: "172.16.0.0/16", * }); * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", { * subnetName: "acc-subnet-test-2", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const fooInstance = new volcengine.rds_postgresql.Instance("fooInstance", { * dbEngineVersion: "PostgreSQL_12", * nodeSpec: "rds.postgres.1c2g", * primaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * secondaryZoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * storageSpace: 40, * subnetId: fooSubnet.id, * instanceName: "acc-test-1", * chargeInfo: { * chargeType: "PostPaid", * }, * projectName: "default", * tags: [{ * key: "tfk1", * value: "tfv1", * }], * parameters: [ * { * name: "auto_explain.log_analyze", * value: "off", * }, * { * name: "auto_explain.log_format", * value: "text", * }, * ], * }); * const fooInstances = volcengine.rds_postgresql.getInstancesOutput({ * instanceId: fooInstance.id, * }); * ``` */ /** @deprecated volcengine.rds_postgresql.Instances has been deprecated in favor of volcengine.rds_postgresql.getInstances */ export declare function instancesOutput(args?: InstancesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<InstancesResult>; /** * A collection of arguments for invoking Instances. */ export interface InstancesOutputArgs { /** * The charge type of the RDS instance. */ chargeType?: pulumi.Input<string>; /** * The end time of creating RDS PostgreSQL instance. */ createTimeEnd?: pulumi.Input<string>; /** * The start time of creating RDS PostgreSQL instance. */ createTimeStart?: pulumi.Input<string>; /** * The version of the RDS PostgreSQL instance. */ dbEngineVersion?: pulumi.Input<string>; /** * The id of the RDS PostgreSQL instance. */ instanceId?: pulumi.Input<string>; /** * The name of the RDS PostgreSQL instance. */ instanceName?: pulumi.Input<string>; /** * The status of the RDS PostgreSQL instance. */ instanceStatus?: pulumi.Input<string>; /** * A Name Regex of RDS instance. */ nameRegex?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The project name of the RDS PostgreSQL instance. */ projectName?: pulumi.Input<string>; /** * The storage type of the RDS PostgreSQL instance. */ storageType?: pulumi.Input<string>; /** * Tags. */ tags?: pulumi.Input<pulumi.Input<inputs.rds_postgresql.InstancesTagArgs>[]>; /** * The available zone of the RDS PostgreSQL instance. */ zoneId?: pulumi.Input<string>; }