@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
173 lines (172 loc) • 5.9 kB
TypeScript
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 instance price differences
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const example = volcengine.rds_postgresql.getInstancePriceDifferences({
* chargeInfo: {
* chargeType: "PostPaid",
* number: 1,
* },
* instanceId: "postgres-72715e0d9f58",
* modifyType: "Usually",
* nodeInfos: [
* {
* nodeId: "postgres-72715e0d9f58",
* nodeSpec: "rds.postgres.2c4g",
* nodeType: "Primary",
* zoneId: "cn-beijing-a",
* },
* {
* nodeId: "postgres-72715e0d9f58-iyys",
* nodeSpec: "rds.postgres.2c4g",
* nodeType: "Secondary",
* zoneId: "cn-beijing-a",
* },
* ],
* storageSpace: 100,
* storageType: "LocalSSD",
* });
* ```
*/
export declare function getInstancePriceDifferences(args: GetInstancePriceDifferencesArgs, opts?: pulumi.InvokeOptions): Promise<GetInstancePriceDifferencesResult>;
/**
* A collection of arguments for invoking getInstancePriceDifferences.
*/
export interface GetInstancePriceDifferencesArgs {
/**
* Charge info of the instance.
*/
chargeInfo: inputs.rds_postgresql.GetInstancePriceDifferencesChargeInfo;
/**
* Instance ID.
*/
instanceId: string;
/**
* Spec change type. Usually or Temporary. Default value: Usually. This parameter can only take the value Temporary when the billing type of the instance is a yearly/monthly subscription instance.
*/
modifyType?: string;
/**
* Instance spec nodes. Primary=1, Secondary=1, ReadOnly=0~10.
*/
nodeInfos: inputs.rds_postgresql.GetInstancePriceDifferencesNodeInfo[];
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ. This parameter is required when the modifyType is set to Temporary.
*/
rollbackTime?: string;
/**
* The storage space of the instance. Value range: [20, 3000], unit: GB, step 10GB.
*/
storageSpace: number;
/**
* The type of the storage. Valid values: LocalSSD.
*/
storageType: string;
}
/**
* A collection of values returned by getInstancePriceDifferences.
*/
export interface GetInstancePriceDifferencesResult {
readonly chargeInfo: outputs.rds_postgresql.GetInstancePriceDifferencesChargeInfo;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceId: string;
/**
* The collection of query.
*/
readonly instancesPrices: outputs.rds_postgresql.GetInstancePriceDifferencesInstancesPrice[];
readonly modifyType?: string;
readonly nodeInfos: outputs.rds_postgresql.GetInstancePriceDifferencesNodeInfo[];
readonly outputFile?: string;
readonly rollbackTime?: string;
readonly storageSpace: number;
readonly storageType: string;
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of rds postgresql instance price differences
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const example = volcengine.rds_postgresql.getInstancePriceDifferences({
* chargeInfo: {
* chargeType: "PostPaid",
* number: 1,
* },
* instanceId: "postgres-72715e0d9f58",
* modifyType: "Usually",
* nodeInfos: [
* {
* nodeId: "postgres-72715e0d9f58",
* nodeSpec: "rds.postgres.2c4g",
* nodeType: "Primary",
* zoneId: "cn-beijing-a",
* },
* {
* nodeId: "postgres-72715e0d9f58-iyys",
* nodeSpec: "rds.postgres.2c4g",
* nodeType: "Secondary",
* zoneId: "cn-beijing-a",
* },
* ],
* storageSpace: 100,
* storageType: "LocalSSD",
* });
* ```
*/
export declare function getInstancePriceDifferencesOutput(args: GetInstancePriceDifferencesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstancePriceDifferencesResult>;
/**
* A collection of arguments for invoking getInstancePriceDifferences.
*/
export interface GetInstancePriceDifferencesOutputArgs {
/**
* Charge info of the instance.
*/
chargeInfo: pulumi.Input<inputs.rds_postgresql.GetInstancePriceDifferencesChargeInfoArgs>;
/**
* Instance ID.
*/
instanceId: pulumi.Input<string>;
/**
* Spec change type. Usually or Temporary. Default value: Usually. This parameter can only take the value Temporary when the billing type of the instance is a yearly/monthly subscription instance.
*/
modifyType?: pulumi.Input<string>;
/**
* Instance spec nodes. Primary=1, Secondary=1, ReadOnly=0~10.
*/
nodeInfos: pulumi.Input<pulumi.Input<inputs.rds_postgresql.GetInstancePriceDifferencesNodeInfoArgs>[]>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* Rollback time for Temporary change, UTC format yyyy-MM-ddTHH:mm:ss.sssZ. This parameter is required when the modifyType is set to Temporary.
*/
rollbackTime?: pulumi.Input<string>;
/**
* The storage space of the instance. Value range: [20, 3000], unit: GB, step 10GB.
*/
storageSpace: pulumi.Input<number>;
/**
* The type of the storage. Valid values: LocalSSD.
*/
storageType: pulumi.Input<string>;
}