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

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    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,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    flavor = flexibleengine.get_rds_flavors_v3(db_type="PostgreSQL",
        db_version="12",
        instance_mode="ha",
        vcpus=4)
    
    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
    	})
    }
    
    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,
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      flavor:
        fn::invoke:
          function: flexibleengine:getRdsFlavorsV3
          arguments:
            dbType: PostgreSQL
            dbVersion: '12'
            instanceMode: ha
            vcpus: 4
    

    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>
    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]
    func GetRdsFlavorsV3(ctx *Context, args *GetRdsFlavorsV3Args, opts ...InvokeOption) (*GetRdsFlavorsV3Result, error)
    func GetRdsFlavorsV3Output(ctx *Context, args *GetRdsFlavorsV3OutputArgs, opts ...InvokeOption) GetRdsFlavorsV3ResultOutput

    > 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)
    }
    public static CompletableFuture<GetRdsFlavorsV3Result> getRdsFlavorsV3(GetRdsFlavorsV3Args args, InvokeOptions options)
    public static Output<GetRdsFlavorsV3Result> getRdsFlavorsV3(GetRdsFlavorsV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getRdsFlavorsV3:getRdsFlavorsV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DbType 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 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 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 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 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 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 List<string>
    The availability zones which the RDS flavor belongs to.
    DbVersions List<string>
    The Available versions of the database.
    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.
    Mode string
    Name string
    The name of the rds flavor.
    Vcpus double
    Specifies the number of vCPUs in the RDS flavor.
    AvailabilityZones []string
    The availability zones which the RDS flavor belongs to.
    DbVersions []string
    The Available versions of the database.
    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.
    Mode string
    Name string
    The name of the rds flavor.
    Vcpus float64
    Specifies the number of vCPUs in the RDS flavor.
    availabilityZones List<String>
    The availability zones which the RDS flavor belongs to.
    dbVersions List<String>
    The Available versions of the database.
    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.
    mode String
    name String
    The name of the rds flavor.
    vcpus Double
    Specifies the number of vCPUs in the RDS flavor.
    availabilityZones string[]
    The availability zones which the RDS flavor belongs to.
    dbVersions string[]
    The Available versions of the database.
    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.
    mode string
    name string
    The name of the rds flavor.
    vcpus number
    Specifies the number of vCPUs in the RDS flavor.
    availability_zones Sequence[str]
    The availability zones which the RDS flavor belongs to.
    db_versions Sequence[str]
    The Available versions of the database.
    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.
    mode str
    name str
    The name of the rds flavor.
    vcpus float
    Specifies the number of vCPUs in the RDS flavor.
    availabilityZones List<String>
    The availability zones which the RDS flavor belongs to.
    dbVersions List<String>
    The Available versions of the database.
    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.
    mode String
    name String
    The name of the rds flavor.
    vcpus 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.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud