getInstanceClassInfos

This data source operation to query the instance types that are available to specific instances of Alibaba Cloud.

NOTE: Available in v1.196.0+

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.rds.RdsFunctions;
import com.pulumi.alicloud.rds.inputs.GetInstanceClassInfosArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var resources = RdsFunctions.getInstanceClassInfos(GetInstanceClassInfosArgs.builder()
.commodityCode("bards")
.orderType("BUY")
.outputFile("./classes.txt")
.build());
ctx.export("firstDbInstanceClass", resources.applyValue(getInstanceClassInfosResult -> getInstanceClassInfosResult.infos()[0]));
}
}

Return

A collection of values returned by getInstanceClassInfos.

Parameters

argument

A collection of arguments for invoking getInstanceClassInfos.


suspend fun getInstanceClassInfos(commodityCode: String, dbInstanceId: String? = null, infos: List<GetInstanceClassInfosInfo>? = null, orderType: String, outputFile: String? = null): GetInstanceClassInfosResult

Return

A collection of values returned by getInstanceClassInfos.

See also

Parameters

commodityCode

The commodity code of the instance. Valid values:

  • bards: The instance is a pay-as-you-go primary instance. This value is available on the China site (aliyun.com).

  • rds: The instance is a subscription primary instance. This value is available on the China site (aliyun.com).

  • rords: The instance is a pay-as-you-go read-only instance. This value is available on the China site (aliyun.com).

  • rds_rordspre_public_cn: The instance is a subscription read-only instance. This value is available on the China site (aliyun.com).

  • bards_intl: The instance is a pay-as-you-go primary instance. This value is available on the International site (alibabacloud.com).

  • rds_intl: The instance is a subscription primary instance. This value is available on the International site (alibabacloud.com).

  • rords_intl: The instance is a pay-as-you-go read-only instance. This value is available on the International site (alibabacloud.com).

  • rds_rordspre_public_intl: The instance is a subscription read-only instance. This value is available on the International site (alibabacloud.com).

dbInstanceId

The ID of the primary instance.

infos

A list of Rds available resource. Each element contains the following attributes:

orderType

FThe type of order that you want to query. Valid values:

  • BUY: specifies the query orders that are used to purchase instances.

  • UPGRADE: specifies the query orders that are used to change the specifications of instances.

  • RENEW: specifies the query orders that are used to renew instances.

  • CONVERT: specifies the query orders that are used to change the billing methods of instances.

outputFile

File name where to save data source results (after running pulumi up).

NOTE: If you use the CommodityCode parameter to query the instance types that are available to read-only instances, you must specify the DBInstanceId parameter.


Return

A collection of values returned by getInstanceClassInfos.

See also

Parameters

argument

Builder for com.pulumi.alicloud.rds.kotlin.inputs.GetInstanceClassInfosPlainArgs.