1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. rds
  5. AiInstance
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
alicloud logo
Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi

    Provides a Rds Ai Instance resource.

    For information about Rds Ai Instance and how to use it, see What is Instance.

    NOTE: Available since v1.268.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = alicloud.vpc.getSwitches({
        zoneId: "cn-hangzhou-i",
    });
    const defaultInstance = new alicloud.rds.Instance("default", {
        engine: "PostgreSQL",
        engineVersion: "17.0",
        dbInstanceStorageType: "general_essd",
        instanceType: "pg.n2.1c.1m",
        instanceStorage: 100,
        vswitchId: _default.then(_default => _default.ids?.[0]),
        instanceName: name,
    });
    const defaultAiInstance = new alicloud.rds.AiInstance("default", {
        appName: name,
        appType: "supabase",
        dbInstanceName: defaultInstance.id,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.vpc.get_switches(zone_id="cn-hangzhou-i")
    default_instance = alicloud.rds.Instance("default",
        engine="PostgreSQL",
        engine_version="17.0",
        db_instance_storage_type="general_essd",
        instance_type="pg.n2.1c.1m",
        instance_storage=100,
        vswitch_id=default.ids[0],
        instance_name=name)
    default_ai_instance = alicloud.rds.AiInstance("default",
        app_name=name,
        app_type="supabase",
        db_instance_name=default_instance.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rds"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
    			ZoneId: pulumi.StringRef("cn-hangzhou-i"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultInstance, err := rds.NewInstance(ctx, "default", &rds.InstanceArgs{
    			Engine:                pulumi.String("PostgreSQL"),
    			EngineVersion:         pulumi.String("17.0"),
    			DbInstanceStorageType: pulumi.String("general_essd"),
    			InstanceType:          pulumi.String("pg.n2.1c.1m"),
    			InstanceStorage:       pulumi.Int(100),
    			VswitchId:             pulumi.String(_default.Ids[0]),
    			InstanceName:          pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = rds.NewAiInstance(ctx, "default", &rds.AiInstanceArgs{
    			AppName:        pulumi.String(name),
    			AppType:        pulumi.String("supabase"),
    			DbInstanceName: defaultInstance.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.Vpc.GetSwitches.Invoke(new()
        {
            ZoneId = "cn-hangzhou-i",
        });
    
        var defaultInstance = new AliCloud.Rds.Instance("default", new()
        {
            Engine = "PostgreSQL",
            EngineVersion = "17.0",
            DbInstanceStorageType = "general_essd",
            InstanceType = "pg.n2.1c.1m",
            InstanceStorage = 100,
            VswitchId = @default.Apply(@default => @default.Apply(getSwitchesResult => getSwitchesResult.Ids[0])),
            InstanceName = name,
        });
    
        var defaultAiInstance = new AliCloud.Rds.AiInstance("default", new()
        {
            AppName = name,
            AppType = "supabase",
            DbInstanceName = defaultInstance.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.vpc.VpcFunctions;
    import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
    import com.pulumi.alicloud.rds.Instance;
    import com.pulumi.alicloud.rds.InstanceArgs;
    import com.pulumi.alicloud.rds.AiInstance;
    import com.pulumi.alicloud.rds.AiInstanceArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
                .zoneId("cn-hangzhou-i")
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
                .engine("PostgreSQL")
                .engineVersion("17.0")
                .dbInstanceStorageType("general_essd")
                .instanceType("pg.n2.1c.1m")
                .instanceStorage(100)
                .vswitchId(default_.ids()[0])
                .instanceName(name)
                .build());
    
            var defaultAiInstance = new AiInstance("defaultAiInstance", AiInstanceArgs.builder()
                .appName(name)
                .appType("supabase")
                .dbInstanceName(defaultInstance.id())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      defaultInstance:
        type: alicloud:rds:Instance
        name: default
        properties:
          engine: PostgreSQL
          engineVersion: '17.0'
          dbInstanceStorageType: general_essd
          instanceType: pg.n2.1c.1m
          instanceStorage: 100
          vswitchId: ${default.ids[0]}
          instanceName: ${name}
      defaultAiInstance:
        type: alicloud:rds:AiInstance
        name: default
        properties:
          appName: ${name}
          appType: supabase
          dbInstanceName: ${defaultInstance.id}
    variables:
      default:
        fn::invoke:
          function: alicloud:vpc:getSwitches
          arguments:
            zoneId: cn-hangzhou-i
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create AiInstance Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AiInstance(name: string, args: AiInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def AiInstance(resource_name: str,
                   args: AiInstanceArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def AiInstance(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   app_name: Optional[str] = None,
                   app_type: Optional[str] = None,
                   auth_config_lists: Optional[Sequence[AiInstanceAuthConfigListArgs]] = None,
                   ca_type: Optional[str] = None,
                   dashboard_password: Optional[str] = None,
                   database_password: Optional[str] = None,
                   db_instance_name: Optional[str] = None,
                   initialize_with_existing_data: Optional[bool] = None,
                   public_endpoint_enabled: Optional[bool] = None,
                   public_network_access_enabled: Optional[bool] = None,
                   server_cert: Optional[str] = None,
                   server_key: Optional[str] = None,
                   ssl_enabled: Optional[int] = None,
                   status: Optional[str] = None,
                   storage_config_lists: Optional[Sequence[AiInstanceStorageConfigListArgs]] = None)
    func NewAiInstance(ctx *Context, name string, args AiInstanceArgs, opts ...ResourceOption) (*AiInstance, error)
    public AiInstance(string name, AiInstanceArgs args, CustomResourceOptions? opts = null)
    public AiInstance(String name, AiInstanceArgs args)
    public AiInstance(String name, AiInstanceArgs args, CustomResourceOptions options)
    
    type: alicloud:rds:AiInstance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AiInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AiInstanceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AiInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AiInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AiInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var aiInstanceResource = new AliCloud.Rds.AiInstance("aiInstanceResource", new()
    {
        AppName = "string",
        AppType = "string",
        AuthConfigLists = new[]
        {
            new AliCloud.Rds.Inputs.AiInstanceAuthConfigListArgs
            {
                Name = "string",
                Value = "string",
            },
        },
        CaType = "string",
        DashboardPassword = "string",
        DatabasePassword = "string",
        DbInstanceName = "string",
        InitializeWithExistingData = false,
        PublicEndpointEnabled = false,
        PublicNetworkAccessEnabled = false,
        ServerCert = "string",
        ServerKey = "string",
        SslEnabled = 0,
        Status = "string",
        StorageConfigLists = new[]
        {
            new AliCloud.Rds.Inputs.AiInstanceStorageConfigListArgs
            {
                Name = "string",
                Value = "string",
            },
        },
    });
    
    example, err := rds.NewAiInstance(ctx, "aiInstanceResource", &rds.AiInstanceArgs{
    	AppName: pulumi.String("string"),
    	AppType: pulumi.String("string"),
    	AuthConfigLists: rds.AiInstanceAuthConfigListArray{
    		&rds.AiInstanceAuthConfigListArgs{
    			Name:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	CaType:                     pulumi.String("string"),
    	DashboardPassword:          pulumi.String("string"),
    	DatabasePassword:           pulumi.String("string"),
    	DbInstanceName:             pulumi.String("string"),
    	InitializeWithExistingData: pulumi.Bool(false),
    	PublicEndpointEnabled:      pulumi.Bool(false),
    	PublicNetworkAccessEnabled: pulumi.Bool(false),
    	ServerCert:                 pulumi.String("string"),
    	ServerKey:                  pulumi.String("string"),
    	SslEnabled:                 pulumi.Int(0),
    	Status:                     pulumi.String("string"),
    	StorageConfigLists: rds.AiInstanceStorageConfigListArray{
    		&rds.AiInstanceStorageConfigListArgs{
    			Name:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    var aiInstanceResource = new AiInstance("aiInstanceResource", AiInstanceArgs.builder()
        .appName("string")
        .appType("string")
        .authConfigLists(AiInstanceAuthConfigListArgs.builder()
            .name("string")
            .value("string")
            .build())
        .caType("string")
        .dashboardPassword("string")
        .databasePassword("string")
        .dbInstanceName("string")
        .initializeWithExistingData(false)
        .publicEndpointEnabled(false)
        .publicNetworkAccessEnabled(false)
        .serverCert("string")
        .serverKey("string")
        .sslEnabled(0)
        .status("string")
        .storageConfigLists(AiInstanceStorageConfigListArgs.builder()
            .name("string")
            .value("string")
            .build())
        .build());
    
    ai_instance_resource = alicloud.rds.AiInstance("aiInstanceResource",
        app_name="string",
        app_type="string",
        auth_config_lists=[{
            "name": "string",
            "value": "string",
        }],
        ca_type="string",
        dashboard_password="string",
        database_password="string",
        db_instance_name="string",
        initialize_with_existing_data=False,
        public_endpoint_enabled=False,
        public_network_access_enabled=False,
        server_cert="string",
        server_key="string",
        ssl_enabled=0,
        status="string",
        storage_config_lists=[{
            "name": "string",
            "value": "string",
        }])
    
    const aiInstanceResource = new alicloud.rds.AiInstance("aiInstanceResource", {
        appName: "string",
        appType: "string",
        authConfigLists: [{
            name: "string",
            value: "string",
        }],
        caType: "string",
        dashboardPassword: "string",
        databasePassword: "string",
        dbInstanceName: "string",
        initializeWithExistingData: false,
        publicEndpointEnabled: false,
        publicNetworkAccessEnabled: false,
        serverCert: "string",
        serverKey: "string",
        sslEnabled: 0,
        status: "string",
        storageConfigLists: [{
            name: "string",
            value: "string",
        }],
    });
    
    type: alicloud:rds:AiInstance
    properties:
        appName: string
        appType: string
        authConfigLists:
            - name: string
              value: string
        caType: string
        dashboardPassword: string
        databasePassword: string
        dbInstanceName: string
        initializeWithExistingData: false
        publicEndpointEnabled: false
        publicNetworkAccessEnabled: false
        serverCert: string
        serverKey: string
        sslEnabled: 0
        status: string
        storageConfigLists:
            - name: string
              value: string
    

    AiInstance Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AiInstance resource accepts the following input properties:

    AppName string
    The name of the new AI application.
    AppType string
    Application type. Currently, only supabase is supported.
    AuthConfigLists List<Pulumi.AliCloud.Rds.Inputs.AiInstanceAuthConfigList>
    Authentication information list. See auth_config_list below.
    CaType string

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    DashboardPassword string
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    DatabasePassword string
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    DbInstanceName string
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    InitializeWithExistingData bool
    Whether to recover from existing PG data. Valid values:
    PublicEndpointEnabled bool
    Whether to enable the public network connection address. Valid values:
    PublicNetworkAccessEnabled bool
    Whether to enable the public network NAT gateway. Valid values:
    ServerCert string

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    ServerKey string

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    SslEnabled int
    Enable or disable SSL. Valid values:
    Status string
    The status of the instance. Valid values: Running, Stopped.
    StorageConfigLists List<Pulumi.AliCloud.Rds.Inputs.AiInstanceStorageConfigList>
    A list of storage configurations. See storage_config_list below.
    AppName string
    The name of the new AI application.
    AppType string
    Application type. Currently, only supabase is supported.
    AuthConfigLists []AiInstanceAuthConfigListArgs
    Authentication information list. See auth_config_list below.
    CaType string

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    DashboardPassword string
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    DatabasePassword string
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    DbInstanceName string
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    InitializeWithExistingData bool
    Whether to recover from existing PG data. Valid values:
    PublicEndpointEnabled bool
    Whether to enable the public network connection address. Valid values:
    PublicNetworkAccessEnabled bool
    Whether to enable the public network NAT gateway. Valid values:
    ServerCert string

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    ServerKey string

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    SslEnabled int
    Enable or disable SSL. Valid values:
    Status string
    The status of the instance. Valid values: Running, Stopped.
    StorageConfigLists []AiInstanceStorageConfigListArgs
    A list of storage configurations. See storage_config_list below.
    appName String
    The name of the new AI application.
    appType String
    Application type. Currently, only supabase is supported.
    authConfigLists List<AiInstanceAuthConfigList>
    Authentication information list. See auth_config_list below.
    caType String

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    dashboardPassword String
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    databasePassword String
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    dbInstanceName String
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    initializeWithExistingData Boolean
    Whether to recover from existing PG data. Valid values:
    publicEndpointEnabled Boolean
    Whether to enable the public network connection address. Valid values:
    publicNetworkAccessEnabled Boolean
    Whether to enable the public network NAT gateway. Valid values:
    serverCert String

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    serverKey String

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    sslEnabled Integer
    Enable or disable SSL. Valid values:
    status String
    The status of the instance. Valid values: Running, Stopped.
    storageConfigLists List<AiInstanceStorageConfigList>
    A list of storage configurations. See storage_config_list below.
    appName string
    The name of the new AI application.
    appType string
    Application type. Currently, only supabase is supported.
    authConfigLists AiInstanceAuthConfigList[]
    Authentication information list. See auth_config_list below.
    caType string

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    dashboardPassword string
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    databasePassword string
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    dbInstanceName string
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    initializeWithExistingData boolean
    Whether to recover from existing PG data. Valid values:
    publicEndpointEnabled boolean
    Whether to enable the public network connection address. Valid values:
    publicNetworkAccessEnabled boolean
    Whether to enable the public network NAT gateway. Valid values:
    serverCert string

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    serverKey string

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    sslEnabled number
    Enable or disable SSL. Valid values:
    status string
    The status of the instance. Valid values: Running, Stopped.
    storageConfigLists AiInstanceStorageConfigList[]
    A list of storage configurations. See storage_config_list below.
    app_name str
    The name of the new AI application.
    app_type str
    Application type. Currently, only supabase is supported.
    auth_config_lists Sequence[AiInstanceAuthConfigListArgs]
    Authentication information list. See auth_config_list below.
    ca_type str

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    dashboard_password str
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    database_password str
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    db_instance_name str
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    initialize_with_existing_data bool
    Whether to recover from existing PG data. Valid values:
    public_endpoint_enabled bool
    Whether to enable the public network connection address. Valid values:
    public_network_access_enabled bool
    Whether to enable the public network NAT gateway. Valid values:
    server_cert str

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    server_key str

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    ssl_enabled int
    Enable or disable SSL. Valid values:
    status str
    The status of the instance. Valid values: Running, Stopped.
    storage_config_lists Sequence[AiInstanceStorageConfigListArgs]
    A list of storage configurations. See storage_config_list below.
    appName String
    The name of the new AI application.
    appType String
    Application type. Currently, only supabase is supported.
    authConfigLists List<Property Map>
    Authentication information list. See auth_config_list below.
    caType String

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    dashboardPassword String
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    databasePassword String
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    dbInstanceName String
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    initializeWithExistingData Boolean
    Whether to recover from existing PG data. Valid values:
    publicEndpointEnabled Boolean
    Whether to enable the public network connection address. Valid values:
    publicNetworkAccessEnabled Boolean
    Whether to enable the public network NAT gateway. Valid values:
    serverCert String

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    serverKey String

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    sslEnabled Number
    Enable or disable SSL. Valid values:
    status String
    The status of the instance. Valid values: Running, Stopped.
    storageConfigLists List<Property Map>
    A list of storage configurations. See storage_config_list below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AiInstance resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AiInstance Resource

    Get an existing AiInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AiInstanceState, opts?: CustomResourceOptions): AiInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_name: Optional[str] = None,
            app_type: Optional[str] = None,
            auth_config_lists: Optional[Sequence[AiInstanceAuthConfigListArgs]] = None,
            ca_type: Optional[str] = None,
            dashboard_password: Optional[str] = None,
            database_password: Optional[str] = None,
            db_instance_name: Optional[str] = None,
            initialize_with_existing_data: Optional[bool] = None,
            public_endpoint_enabled: Optional[bool] = None,
            public_network_access_enabled: Optional[bool] = None,
            server_cert: Optional[str] = None,
            server_key: Optional[str] = None,
            ssl_enabled: Optional[int] = None,
            status: Optional[str] = None,
            storage_config_lists: Optional[Sequence[AiInstanceStorageConfigListArgs]] = None) -> AiInstance
    func GetAiInstance(ctx *Context, name string, id IDInput, state *AiInstanceState, opts ...ResourceOption) (*AiInstance, error)
    public static AiInstance Get(string name, Input<string> id, AiInstanceState? state, CustomResourceOptions? opts = null)
    public static AiInstance get(String name, Output<String> id, AiInstanceState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:rds:AiInstance    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AppName string
    The name of the new AI application.
    AppType string
    Application type. Currently, only supabase is supported.
    AuthConfigLists List<Pulumi.AliCloud.Rds.Inputs.AiInstanceAuthConfigList>
    Authentication information list. See auth_config_list below.
    CaType string

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    DashboardPassword string
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    DatabasePassword string
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    DbInstanceName string
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    InitializeWithExistingData bool
    Whether to recover from existing PG data. Valid values:
    PublicEndpointEnabled bool
    Whether to enable the public network connection address. Valid values:
    PublicNetworkAccessEnabled bool
    Whether to enable the public network NAT gateway. Valid values:
    ServerCert string

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    ServerKey string

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    SslEnabled int
    Enable or disable SSL. Valid values:
    Status string
    The status of the instance. Valid values: Running, Stopped.
    StorageConfigLists List<Pulumi.AliCloud.Rds.Inputs.AiInstanceStorageConfigList>
    A list of storage configurations. See storage_config_list below.
    AppName string
    The name of the new AI application.
    AppType string
    Application type. Currently, only supabase is supported.
    AuthConfigLists []AiInstanceAuthConfigListArgs
    Authentication information list. See auth_config_list below.
    CaType string

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    DashboardPassword string
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    DatabasePassword string
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    DbInstanceName string
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    InitializeWithExistingData bool
    Whether to recover from existing PG data. Valid values:
    PublicEndpointEnabled bool
    Whether to enable the public network connection address. Valid values:
    PublicNetworkAccessEnabled bool
    Whether to enable the public network NAT gateway. Valid values:
    ServerCert string

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    ServerKey string

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    SslEnabled int
    Enable or disable SSL. Valid values:
    Status string
    The status of the instance. Valid values: Running, Stopped.
    StorageConfigLists []AiInstanceStorageConfigListArgs
    A list of storage configurations. See storage_config_list below.
    appName String
    The name of the new AI application.
    appType String
    Application type. Currently, only supabase is supported.
    authConfigLists List<AiInstanceAuthConfigList>
    Authentication information list. See auth_config_list below.
    caType String

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    dashboardPassword String
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    databasePassword String
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    dbInstanceName String
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    initializeWithExistingData Boolean
    Whether to recover from existing PG data. Valid values:
    publicEndpointEnabled Boolean
    Whether to enable the public network connection address. Valid values:
    publicNetworkAccessEnabled Boolean
    Whether to enable the public network NAT gateway. Valid values:
    serverCert String

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    serverKey String

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    sslEnabled Integer
    Enable or disable SSL. Valid values:
    status String
    The status of the instance. Valid values: Running, Stopped.
    storageConfigLists List<AiInstanceStorageConfigList>
    A list of storage configurations. See storage_config_list below.
    appName string
    The name of the new AI application.
    appType string
    Application type. Currently, only supabase is supported.
    authConfigLists AiInstanceAuthConfigList[]
    Authentication information list. See auth_config_list below.
    caType string

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    dashboardPassword string
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    databasePassword string
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    dbInstanceName string
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    initializeWithExistingData boolean
    Whether to recover from existing PG data. Valid values:
    publicEndpointEnabled boolean
    Whether to enable the public network connection address. Valid values:
    publicNetworkAccessEnabled boolean
    Whether to enable the public network NAT gateway. Valid values:
    serverCert string

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    serverKey string

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    sslEnabled number
    Enable or disable SSL. Valid values:
    status string
    The status of the instance. Valid values: Running, Stopped.
    storageConfigLists AiInstanceStorageConfigList[]
    A list of storage configurations. See storage_config_list below.
    app_name str
    The name of the new AI application.
    app_type str
    Application type. Currently, only supabase is supported.
    auth_config_lists Sequence[AiInstanceAuthConfigListArgs]
    Authentication information list. See auth_config_list below.
    ca_type str

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    dashboard_password str
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    database_password str
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    db_instance_name str
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    initialize_with_existing_data bool
    Whether to recover from existing PG data. Valid values:
    public_endpoint_enabled bool
    Whether to enable the public network connection address. Valid values:
    public_network_access_enabled bool
    Whether to enable the public network NAT gateway. Valid values:
    server_cert str

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    server_key str

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    ssl_enabled int
    Enable or disable SSL. Valid values:
    status str
    The status of the instance. Valid values: Running, Stopped.
    storage_config_lists Sequence[AiInstanceStorageConfigListArgs]
    A list of storage configurations. See storage_config_list below.
    appName String
    The name of the new AI application.
    appType String
    Application type. Currently, only supabase is supported.
    authConfigLists List<Property Map>
    Authentication information list. See auth_config_list below.
    caType String

    The type of the certificate. Currently, only custom is supported. A custom certificate is used.

    NOTE: When ssl_enabled is set to 1, this parameter must be configured.

    dashboardPassword String
    Supabase Dashboard password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    databasePassword String
    The RDS Database access password. The password must be 8 to 32 characters in length and contain three or more characters: uppercase letters, lowercase letters, numbers, and underscores (_).
    dbInstanceName String
    The ID of the RDS PostgreSQL database instance accessed by the AI application. supports only newly purchased empty RDS PostgreSQL instances. The major version is 17, and the minor version is 20250630 or later.>
    initializeWithExistingData Boolean
    Whether to recover from existing PG data. Valid values:
    publicEndpointEnabled Boolean
    Whether to enable the public network connection address. Valid values:
    publicNetworkAccessEnabled Boolean
    Whether to enable the public network NAT gateway. Valid values:
    serverCert String

    Customize the certificate content.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    serverKey String

    The certificate private key.

    NOTE: When ca_type is set to custom, this parameter must be configured.

    sslEnabled Number
    Enable or disable SSL. Valid values:
    status String
    The status of the instance. Valid values: Running, Stopped.
    storageConfigLists List<Property Map>
    A list of storage configurations. See storage_config_list below.

    Supporting Types

    AiInstanceAuthConfigList, AiInstanceAuthConfigListArgs

    Name string
    The configuration item name. For more information, see How to use it.
    Value string
    The value of the configuration item.
    Name string
    The configuration item name. For more information, see How to use it.
    Value string
    The value of the configuration item.
    name String
    The configuration item name. For more information, see How to use it.
    value String
    The value of the configuration item.
    name string
    The configuration item name. For more information, see How to use it.
    value string
    The value of the configuration item.
    name str
    The configuration item name. For more information, see How to use it.
    value str
    The value of the configuration item.
    name String
    The configuration item name. For more information, see How to use it.
    value String
    The value of the configuration item.

    AiInstanceStorageConfigList, AiInstanceStorageConfigListArgs

    Name string
    The configuration item name. For more information, see How to use it.
    Value string
    The value of the configuration item.
    Name string
    The configuration item name. For more information, see How to use it.
    Value string
    The value of the configuration item.
    name String
    The configuration item name. For more information, see How to use it.
    value String
    The value of the configuration item.
    name string
    The configuration item name. For more information, see How to use it.
    value string
    The value of the configuration item.
    name str
    The configuration item name. For more information, see How to use it.
    value str
    The value of the configuration item.
    name String
    The configuration item name. For more information, see How to use it.
    value String
    The value of the configuration item.

    Import

    Rds Ai Instance can be imported using the id, e.g.

    $ pulumi import alicloud:rds/aiInstance:AiInstance example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.95.0 published on Thursday, Feb 12, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate