1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getRdsFlavorsV3
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getRdsFlavorsV3

Explore with Pulumi AI

Use this data source to get available FlexibleEngine RDS flavors.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const flavor = flexibleengine.getRdsFlavorsV3({
    dbType: "PostgreSQL",
    dbVersion: "12",
    instanceMode: "ha",
    vcpus: 4,
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

flavor = flexibleengine.get_rds_flavors_v3(db_type="PostgreSQL",
    db_version="12",
    instance_mode="ha",
    vcpus=4)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.GetRdsFlavorsV3(ctx, &flexibleengine.GetRdsFlavorsV3Args{
			DbType:       "PostgreSQL",
			DbVersion:    pulumi.StringRef("12"),
			InstanceMode: pulumi.StringRef("ha"),
			Vcpus:        pulumi.Float64Ref(4),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var flavor = Flexibleengine.GetRdsFlavorsV3.Invoke(new()
    {
        DbType = "PostgreSQL",
        DbVersion = "12",
        InstanceMode = "ha",
        Vcpus = 4,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetRdsFlavorsV3Args;
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 flavor = FlexibleengineFunctions.getRdsFlavorsV3(GetRdsFlavorsV3Args.builder()
            .dbType("PostgreSQL")
            .dbVersion("12")
            .instanceMode("ha")
            .vcpus(4)
            .build());

    }
}
Copy
variables:
  flavor:
    fn::invoke:
      function: flexibleengine:getRdsFlavorsV3
      arguments:
        dbType: PostgreSQL
        dbVersion: '12'
        instanceMode: ha
        vcpus: 4
Copy

Using getRdsFlavorsV3

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRdsFlavorsV3(args: GetRdsFlavorsV3Args, opts?: InvokeOptions): Promise<GetRdsFlavorsV3Result>
function getRdsFlavorsV3Output(args: GetRdsFlavorsV3OutputArgs, opts?: InvokeOptions): Output<GetRdsFlavorsV3Result>
Copy
def get_rds_flavors_v3(availability_zone: Optional[str] = None,
                       db_type: Optional[str] = None,
                       db_version: Optional[str] = None,
                       group_type: Optional[str] = None,
                       id: Optional[str] = None,
                       instance_mode: Optional[str] = None,
                       memory: Optional[float] = None,
                       region: Optional[str] = None,
                       vcpus: Optional[float] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRdsFlavorsV3Result
def get_rds_flavors_v3_output(availability_zone: Optional[pulumi.Input[str]] = None,
                       db_type: Optional[pulumi.Input[str]] = None,
                       db_version: Optional[pulumi.Input[str]] = None,
                       group_type: Optional[pulumi.Input[str]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       instance_mode: Optional[pulumi.Input[str]] = None,
                       memory: Optional[pulumi.Input[float]] = None,
                       region: Optional[pulumi.Input[str]] = None,
                       vcpus: Optional[pulumi.Input[float]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRdsFlavorsV3Result]
Copy
func GetRdsFlavorsV3(ctx *Context, args *GetRdsFlavorsV3Args, opts ...InvokeOption) (*GetRdsFlavorsV3Result, error)
func GetRdsFlavorsV3Output(ctx *Context, args *GetRdsFlavorsV3OutputArgs, opts ...InvokeOption) GetRdsFlavorsV3ResultOutput
Copy

> Note: This function is named GetRdsFlavorsV3 in the Go SDK.

public static class GetRdsFlavorsV3 
{
    public static Task<GetRdsFlavorsV3Result> InvokeAsync(GetRdsFlavorsV3Args args, InvokeOptions? opts = null)
    public static Output<GetRdsFlavorsV3Result> Invoke(GetRdsFlavorsV3InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRdsFlavorsV3Result> getRdsFlavorsV3(GetRdsFlavorsV3Args args, InvokeOptions options)
public static Output<GetRdsFlavorsV3Result> getRdsFlavorsV3(GetRdsFlavorsV3Args args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getRdsFlavorsV3:getRdsFlavorsV3
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DbType This property is required. string
Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer and MariaDB.
AvailabilityZone string
Specifies the availability zone which the RDS flavor belongs to.
DbVersion string
Specifies the database version. The supported versions of each database are as follows:

  • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
  • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
  • SQLServer: Microsoft SQL Server databases support 2014_SE, 2016_SE and 2016_EE.
  • MariaDB: MariaDB databases support 10.5.
GroupType string
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
Id string
The ID of the rds flavor.
InstanceMode string
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
Memory double
Specifies the memory size(GB) in the RDS flavor.
Region string
The region in which to query the data source. If omitted, the provider-level region will be used.
Vcpus double
Specifies the number of vCPUs in the RDS flavor.
DbType This property is required. string
Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer and MariaDB.
AvailabilityZone string
Specifies the availability zone which the RDS flavor belongs to.
DbVersion string
Specifies the database version. The supported versions of each database are as follows:

  • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
  • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
  • SQLServer: Microsoft SQL Server databases support 2014_SE, 2016_SE and 2016_EE.
  • MariaDB: MariaDB databases support 10.5.
GroupType string
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
Id string
The ID of the rds flavor.
InstanceMode string
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
Memory float64
Specifies the memory size(GB) in the RDS flavor.
Region string
The region in which to query the data source. If omitted, the provider-level region will be used.
Vcpus float64
Specifies the number of vCPUs in the RDS flavor.
dbType This property is required. String
Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer and MariaDB.
availabilityZone String
Specifies the availability zone which the RDS flavor belongs to.
dbVersion String
Specifies the database version. The supported versions of each database are as follows:

  • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
  • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
  • SQLServer: Microsoft SQL Server databases support 2014_SE, 2016_SE and 2016_EE.
  • MariaDB: MariaDB databases support 10.5.
groupType String
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
id String
The ID of the rds flavor.
instanceMode String
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
memory Double
Specifies the memory size(GB) in the RDS flavor.
region String
The region in which to query the data source. If omitted, the provider-level region will be used.
vcpus Double
Specifies the number of vCPUs in the RDS flavor.
dbType This property is required. string
Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer and MariaDB.
availabilityZone string
Specifies the availability zone which the RDS flavor belongs to.
dbVersion string
Specifies the database version. The supported versions of each database are as follows:

  • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
  • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
  • SQLServer: Microsoft SQL Server databases support 2014_SE, 2016_SE and 2016_EE.
  • MariaDB: MariaDB databases support 10.5.
groupType string
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
id string
The ID of the rds flavor.
instanceMode string
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
memory number
Specifies the memory size(GB) in the RDS flavor.
region string
The region in which to query the data source. If omitted, the provider-level region will be used.
vcpus number
Specifies the number of vCPUs in the RDS flavor.
db_type This property is required. str
Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer and MariaDB.
availability_zone str
Specifies the availability zone which the RDS flavor belongs to.
db_version str
Specifies the database version. The supported versions of each database are as follows:

  • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
  • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
  • SQLServer: Microsoft SQL Server databases support 2014_SE, 2016_SE and 2016_EE.
  • MariaDB: MariaDB databases support 10.5.
group_type str
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
id str
The ID of the rds flavor.
instance_mode str
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
memory float
Specifies the memory size(GB) in the RDS flavor.
region str
The region in which to query the data source. If omitted, the provider-level region will be used.
vcpus float
Specifies the number of vCPUs in the RDS flavor.
dbType This property is required. String
Specifies the DB engine. Value: MySQL, PostgreSQL, SQLServer and MariaDB.
availabilityZone String
Specifies the availability zone which the RDS flavor belongs to.
dbVersion String
Specifies the database version. The supported versions of each database are as follows:

  • MySQL: MySQL databases support 5.6, 5.7 and 8.0.
  • PostgreSQL: PostgreSQL databases support 9.5, 9.6, 10, 11, 12, 13, 14 and 1.0 (Enhanced Edition).
  • SQLServer: Microsoft SQL Server databases support 2014_SE, 2016_SE and 2016_EE.
  • MariaDB: MariaDB databases support 10.5.
groupType String
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
id String
The ID of the rds flavor.
instanceMode String
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
memory Number
Specifies the memory size(GB) in the RDS flavor.
region String
The region in which to query the data source. If omitted, the provider-level region will be used.
vcpus Number
Specifies the number of vCPUs in the RDS flavor.

getRdsFlavorsV3 Result

The following output properties are available:

DbType string
Flavors List<GetRdsFlavorsV3Flavor>
Indicates the flavors information. The flavors object structure is documented below.
Id string
The ID of the rds flavor.
Region string
AvailabilityZone string
DbVersion string
GroupType string
The performance specification.
InstanceMode string
The mode of instance.
Memory double
The memory size in GB.
Vcpus double
The CPU size.
DbType string
Flavors []GetRdsFlavorsV3Flavor
Indicates the flavors information. The flavors object structure is documented below.
Id string
The ID of the rds flavor.
Region string
AvailabilityZone string
DbVersion string
GroupType string
The performance specification.
InstanceMode string
The mode of instance.
Memory float64
The memory size in GB.
Vcpus float64
The CPU size.
dbType String
flavors List<GetRdsFlavorsV3Flavor>
Indicates the flavors information. The flavors object structure is documented below.
id String
The ID of the rds flavor.
region String
availabilityZone String
dbVersion String
groupType String
The performance specification.
instanceMode String
The mode of instance.
memory Double
The memory size in GB.
vcpus Double
The CPU size.
dbType string
flavors GetRdsFlavorsV3Flavor[]
Indicates the flavors information. The flavors object structure is documented below.
id string
The ID of the rds flavor.
region string
availabilityZone string
dbVersion string
groupType string
The performance specification.
instanceMode string
The mode of instance.
memory number
The memory size in GB.
vcpus number
The CPU size.
db_type str
flavors Sequence[GetRdsFlavorsV3Flavor]
Indicates the flavors information. The flavors object structure is documented below.
id str
The ID of the rds flavor.
region str
availability_zone str
db_version str
group_type str
The performance specification.
instance_mode str
The mode of instance.
memory float
The memory size in GB.
vcpus float
The CPU size.
dbType String
flavors List<Property Map>
Indicates the flavors information. The flavors object structure is documented below.
id String
The ID of the rds flavor.
region String
availabilityZone String
dbVersion String
groupType String
The performance specification.
instanceMode String
The mode of instance.
memory Number
The memory size in GB.
vcpus Number
The CPU size.

Supporting Types

GetRdsFlavorsV3Flavor

AvailabilityZones This property is required. List<string>
The availability zones which the RDS flavor belongs to.
DbVersions This property is required. List<string>
The Available versions of the database.
GroupType This property is required. string
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
Id This property is required. string
The ID of the rds flavor.
InstanceMode This property is required. string
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
Memory This property is required. double
Specifies the memory size(GB) in the RDS flavor.
Mode This property is required. string
Name This property is required. string
The name of the rds flavor.
Vcpus This property is required. double
Specifies the number of vCPUs in the RDS flavor.
AvailabilityZones This property is required. []string
The availability zones which the RDS flavor belongs to.
DbVersions This property is required. []string
The Available versions of the database.
GroupType This property is required. string
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
Id This property is required. string
The ID of the rds flavor.
InstanceMode This property is required. string
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
Memory This property is required. float64
Specifies the memory size(GB) in the RDS flavor.
Mode This property is required. string
Name This property is required. string
The name of the rds flavor.
Vcpus This property is required. float64
Specifies the number of vCPUs in the RDS flavor.
availabilityZones This property is required. List<String>
The availability zones which the RDS flavor belongs to.
dbVersions This property is required. List<String>
The Available versions of the database.
groupType This property is required. String
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
id This property is required. String
The ID of the rds flavor.
instanceMode This property is required. String
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
memory This property is required. Double
Specifies the memory size(GB) in the RDS flavor.
mode This property is required. String
name This property is required. String
The name of the rds flavor.
vcpus This property is required. Double
Specifies the number of vCPUs in the RDS flavor.
availabilityZones This property is required. string[]
The availability zones which the RDS flavor belongs to.
dbVersions This property is required. string[]
The Available versions of the database.
groupType This property is required. string
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
id This property is required. string
The ID of the rds flavor.
instanceMode This property is required. string
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
memory This property is required. number
Specifies the memory size(GB) in the RDS flavor.
mode This property is required. string
name This property is required. string
The name of the rds flavor.
vcpus This property is required. number
Specifies the number of vCPUs in the RDS flavor.
availability_zones This property is required. Sequence[str]
The availability zones which the RDS flavor belongs to.
db_versions This property is required. Sequence[str]
The Available versions of the database.
group_type This property is required. str
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
id This property is required. str
The ID of the rds flavor.
instance_mode This property is required. str
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
memory This property is required. float
Specifies the memory size(GB) in the RDS flavor.
mode This property is required. str
name This property is required. str
The name of the rds flavor.
vcpus This property is required. float
Specifies the number of vCPUs in the RDS flavor.
availabilityZones This property is required. List<String>
The availability zones which the RDS flavor belongs to.
dbVersions This property is required. List<String>
The Available versions of the database.
groupType This property is required. String
Specifies the performance specification, the valid values are as follows:

  • normal: General enhanced.
  • normal2: General enhanced type II.
  • dedicatedNormal: (dedicatedNormalLocalssd): Dedicated for x86.
  • normalLocalssd: x86 general type.
  • general: General type.
  • bigmem: Large memory type.
id This property is required. String
The ID of the rds flavor.
instanceMode This property is required. String
The mode of instance. Value: ha(indicates primary/standby instance), single(indicates single instance) and replica(indicates read replicas).
memory This property is required. Number
Specifies the memory size(GB) in the RDS flavor.
mode This property is required. String
name This property is required. String
The name of the rds flavor.
vcpus This property is required. Number
Specifies the number of vCPUs in the RDS flavor.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.