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

flexibleengine.getRdsEngineVersions

Explore with Pulumi AI

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

    Use this data source to obtain all version information of the specified engine type of FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const test = flexibleengine.getRdsEngineVersions({
        type: "SQLServer",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    test = flexibleengine.get_rds_engine_versions(type="SQLServer")
    
    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.GetRdsEngineVersions(ctx, &flexibleengine.GetRdsEngineVersionsArgs{
    			Type: pulumi.StringRef("SQLServer"),
    		}, 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 test = Flexibleengine.GetRdsEngineVersions.Invoke(new()
        {
            Type = "SQLServer",
        });
    
    });
    
    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.GetRdsEngineVersionsArgs;
    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 test = FlexibleengineFunctions.getRdsEngineVersions(GetRdsEngineVersionsArgs.builder()
                .type("SQLServer")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getRdsEngineVersions
          arguments:
            type: SQLServer
    

    Using getRdsEngineVersions

    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 getRdsEngineVersions(args: GetRdsEngineVersionsArgs, opts?: InvokeOptions): Promise<GetRdsEngineVersionsResult>
    function getRdsEngineVersionsOutput(args: GetRdsEngineVersionsOutputArgs, opts?: InvokeOptions): Output<GetRdsEngineVersionsResult>
    def get_rds_engine_versions(id: Optional[str] = None,
                                region: Optional[str] = None,
                                type: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetRdsEngineVersionsResult
    def get_rds_engine_versions_output(id: Optional[pulumi.Input[str]] = None,
                                region: Optional[pulumi.Input[str]] = None,
                                type: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetRdsEngineVersionsResult]
    func GetRdsEngineVersions(ctx *Context, args *GetRdsEngineVersionsArgs, opts ...InvokeOption) (*GetRdsEngineVersionsResult, error)
    func GetRdsEngineVersionsOutput(ctx *Context, args *GetRdsEngineVersionsOutputArgs, opts ...InvokeOption) GetRdsEngineVersionsResultOutput

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

    public static class GetRdsEngineVersions 
    {
        public static Task<GetRdsEngineVersionsResult> InvokeAsync(GetRdsEngineVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetRdsEngineVersionsResult> Invoke(GetRdsEngineVersionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRdsEngineVersionsResult> getRdsEngineVersions(GetRdsEngineVersionsArgs args, InvokeOptions options)
    public static Output<GetRdsEngineVersionsResult> getRdsEngineVersions(GetRdsEngineVersionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getRdsEngineVersions:getRdsEngineVersions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Indicates the database version ID. Its value is unique.
    Region string
    The region in which to obtain the RDS engine versions. If omitted, the provider-level region will be used.
    Type string
    Specifies the RDS engine type. The valid values are MySQL, PostgreSQL, SQLServer and MariaDB, default to MySQL.
    Id string
    Indicates the database version ID. Its value is unique.
    Region string
    The region in which to obtain the RDS engine versions. If omitted, the provider-level region will be used.
    Type string
    Specifies the RDS engine type. The valid values are MySQL, PostgreSQL, SQLServer and MariaDB, default to MySQL.
    id String
    Indicates the database version ID. Its value is unique.
    region String
    The region in which to obtain the RDS engine versions. If omitted, the provider-level region will be used.
    type String
    Specifies the RDS engine type. The valid values are MySQL, PostgreSQL, SQLServer and MariaDB, default to MySQL.
    id string
    Indicates the database version ID. Its value is unique.
    region string
    The region in which to obtain the RDS engine versions. If omitted, the provider-level region will be used.
    type string
    Specifies the RDS engine type. The valid values are MySQL, PostgreSQL, SQLServer and MariaDB, default to MySQL.
    id str
    Indicates the database version ID. Its value is unique.
    region str
    The region in which to obtain the RDS engine versions. If omitted, the provider-level region will be used.
    type str
    Specifies the RDS engine type. The valid values are MySQL, PostgreSQL, SQLServer and MariaDB, default to MySQL.
    id String
    Indicates the database version ID. Its value is unique.
    region String
    The region in which to obtain the RDS engine versions. If omitted, the provider-level region will be used.
    type String
    Specifies the RDS engine type. The valid values are MySQL, PostgreSQL, SQLServer and MariaDB, default to MySQL.

    getRdsEngineVersions Result

    The following output properties are available:

    Id string
    Indicates the database version ID. Its value is unique.
    Versions List<GetRdsEngineVersionsVersion>
    Indicates the list of database versions. The versions object structure is documented below.
    Region string
    Type string
    Id string
    Indicates the database version ID. Its value is unique.
    Versions []GetRdsEngineVersionsVersion
    Indicates the list of database versions. The versions object structure is documented below.
    Region string
    Type string
    id String
    Indicates the database version ID. Its value is unique.
    versions List<GetRdsEngineVersionsVersion>
    Indicates the list of database versions. The versions object structure is documented below.
    region String
    type String
    id string
    Indicates the database version ID. Its value is unique.
    versions GetRdsEngineVersionsVersion[]
    Indicates the list of database versions. The versions object structure is documented below.
    region string
    type string
    id str
    Indicates the database version ID. Its value is unique.
    versions Sequence[GetRdsEngineVersionsVersion]
    Indicates the list of database versions. The versions object structure is documented below.
    region str
    type str
    id String
    Indicates the database version ID. Its value is unique.
    versions List<Property Map>
    Indicates the list of database versions. The versions object structure is documented below.
    region String
    type String

    Supporting Types

    GetRdsEngineVersionsVersion

    Id string
    Indicates the database version ID. Its value is unique.
    Name string
    Indicates the database version number. Only the major version number (two digits) is returned. For example, if the version number is MySQL 5.6.X, only 5.6 is returned.
    Id string
    Indicates the database version ID. Its value is unique.
    Name string
    Indicates the database version number. Only the major version number (two digits) is returned. For example, if the version number is MySQL 5.6.X, only 5.6 is returned.
    id String
    Indicates the database version ID. Its value is unique.
    name String
    Indicates the database version number. Only the major version number (two digits) is returned. For example, if the version number is MySQL 5.6.X, only 5.6 is returned.
    id string
    Indicates the database version ID. Its value is unique.
    name string
    Indicates the database version number. Only the major version number (two digits) is returned. For example, if the version number is MySQL 5.6.X, only 5.6 is returned.
    id str
    Indicates the database version ID. Its value is unique.
    name str
    Indicates the database version number. Only the major version number (two digits) is returned. For example, if the version number is MySQL 5.6.X, only 5.6 is returned.
    id String
    Indicates the database version ID. Its value is unique.
    name String
    Indicates the database version number. Only the major version number (two digits) is returned. For example, if the version number is MySQL 5.6.X, only 5.6 is returned.

    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