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

flexibleengine.DliDatabase

Explore with Pulumi AI

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

    Manages DLI SQL database resource within FlexibleEngine.

    Example Usage

    Create a database

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const databaseName = config.requireObject("databaseName");
    const test = new flexibleengine.DliDatabase("test", {});
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    database_name = config.require_object("databaseName")
    test = flexibleengine.DliDatabase("test")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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, "")
    		databaseName := cfg.RequireObject("databaseName")
    		_, err := flexibleengine.NewDliDatabase(ctx, "test", 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 config = new Config();
        var databaseName = config.RequireObject<dynamic>("databaseName");
        var test = new Flexibleengine.DliDatabase("test");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.DliDatabase;
    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 databaseName = config.get("databaseName");
            var test = new DliDatabase("test");
    
        }
    }
    
    configuration:
      databaseName:
        type: dynamic
    resources:
      test:
        type: flexibleengine:DliDatabase
    

    Create DliDatabase Resource

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

    Constructor syntax

    new DliDatabase(name: string, args?: DliDatabaseArgs, opts?: CustomResourceOptions);
    @overload
    def DliDatabase(resource_name: str,
                    args: Optional[DliDatabaseArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def DliDatabase(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    dli_database_id: Optional[str] = None,
                    enterprise_project_id: Optional[str] = None,
                    name: Optional[str] = None,
                    owner: Optional[str] = None,
                    region: Optional[str] = None)
    func NewDliDatabase(ctx *Context, name string, args *DliDatabaseArgs, opts ...ResourceOption) (*DliDatabase, error)
    public DliDatabase(string name, DliDatabaseArgs? args = null, CustomResourceOptions? opts = null)
    public DliDatabase(String name, DliDatabaseArgs args)
    public DliDatabase(String name, DliDatabaseArgs args, CustomResourceOptions options)
    
    type: flexibleengine:DliDatabase
    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 DliDatabaseArgs
    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 DliDatabaseArgs
    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 DliDatabaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DliDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DliDatabaseArgs
    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 dliDatabaseResource = new Flexibleengine.DliDatabase("dliDatabaseResource", new()
    {
        Description = "string",
        DliDatabaseId = "string",
        EnterpriseProjectId = "string",
        Name = "string",
        Owner = "string",
        Region = "string",
    });
    
    example, err := flexibleengine.NewDliDatabase(ctx, "dliDatabaseResource", &flexibleengine.DliDatabaseArgs{
    	Description:         pulumi.String("string"),
    	DliDatabaseId:       pulumi.String("string"),
    	EnterpriseProjectId: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	Owner:               pulumi.String("string"),
    	Region:              pulumi.String("string"),
    })
    
    var dliDatabaseResource = new DliDatabase("dliDatabaseResource", DliDatabaseArgs.builder()
        .description("string")
        .dliDatabaseId("string")
        .enterpriseProjectId("string")
        .name("string")
        .owner("string")
        .region("string")
        .build());
    
    dli_database_resource = flexibleengine.DliDatabase("dliDatabaseResource",
        description="string",
        dli_database_id="string",
        enterprise_project_id="string",
        name="string",
        owner="string",
        region="string")
    
    const dliDatabaseResource = new flexibleengine.DliDatabase("dliDatabaseResource", {
        description: "string",
        dliDatabaseId: "string",
        enterpriseProjectId: "string",
        name: "string",
        owner: "string",
        region: "string",
    });
    
    type: flexibleengine:DliDatabase
    properties:
        description: string
        dliDatabaseId: string
        enterpriseProjectId: string
        name: string
        owner: string
        region: string
    

    DliDatabase 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 DliDatabase resource accepts the following input properties:

    Description string
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    DliDatabaseId string
    Resource ID. For database resources, the ID is the database name.
    EnterpriseProjectId string
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    Name string
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    Owner string
    Specifies the name of the SQL database owner. The owner must be IAM user.
    Region string
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.
    Description string
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    DliDatabaseId string
    Resource ID. For database resources, the ID is the database name.
    EnterpriseProjectId string
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    Name string
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    Owner string
    Specifies the name of the SQL database owner. The owner must be IAM user.
    Region string
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.
    description String
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    dliDatabaseId String
    Resource ID. For database resources, the ID is the database name.
    enterpriseProjectId String
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    name String
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    owner String
    Specifies the name of the SQL database owner. The owner must be IAM user.
    region String
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.
    description string
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    dliDatabaseId string
    Resource ID. For database resources, the ID is the database name.
    enterpriseProjectId string
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    name string
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    owner string
    Specifies the name of the SQL database owner. The owner must be IAM user.
    region string
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.
    description str
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    dli_database_id str
    Resource ID. For database resources, the ID is the database name.
    enterprise_project_id str
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    name str
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    owner str
    Specifies the name of the SQL database owner. The owner must be IAM user.
    region str
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.
    description String
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    dliDatabaseId String
    Resource ID. For database resources, the ID is the database name.
    enterpriseProjectId String
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    name String
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    owner String
    Specifies the name of the SQL database owner. The owner must be IAM user.
    region String
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DliDatabase 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 DliDatabase Resource

    Get an existing DliDatabase 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?: DliDatabaseState, opts?: CustomResourceOptions): DliDatabase
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            dli_database_id: Optional[str] = None,
            enterprise_project_id: Optional[str] = None,
            name: Optional[str] = None,
            owner: Optional[str] = None,
            region: Optional[str] = None) -> DliDatabase
    func GetDliDatabase(ctx *Context, name string, id IDInput, state *DliDatabaseState, opts ...ResourceOption) (*DliDatabase, error)
    public static DliDatabase Get(string name, Input<string> id, DliDatabaseState? state, CustomResourceOptions? opts = null)
    public static DliDatabase get(String name, Output<String> id, DliDatabaseState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:DliDatabase    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:
    Description string
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    DliDatabaseId string
    Resource ID. For database resources, the ID is the database name.
    EnterpriseProjectId string
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    Name string
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    Owner string
    Specifies the name of the SQL database owner. The owner must be IAM user.
    Region string
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.
    Description string
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    DliDatabaseId string
    Resource ID. For database resources, the ID is the database name.
    EnterpriseProjectId string
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    Name string
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    Owner string
    Specifies the name of the SQL database owner. The owner must be IAM user.
    Region string
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.
    description String
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    dliDatabaseId String
    Resource ID. For database resources, the ID is the database name.
    enterpriseProjectId String
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    name String
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    owner String
    Specifies the name of the SQL database owner. The owner must be IAM user.
    region String
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.
    description string
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    dliDatabaseId string
    Resource ID. For database resources, the ID is the database name.
    enterpriseProjectId string
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    name string
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    owner string
    Specifies the name of the SQL database owner. The owner must be IAM user.
    region string
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.
    description str
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    dli_database_id str
    Resource ID. For database resources, the ID is the database name.
    enterprise_project_id str
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    name str
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    owner str
    Specifies the name of the SQL database owner. The owner must be IAM user.
    region str
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.
    description String
    Specifies the description of a queue. Changing this parameter will create a new database resource.
    dliDatabaseId String
    Resource ID. For database resources, the ID is the database name.
    enterpriseProjectId String
    Specifies the enterprise project ID. The value 0 indicates the default enterprise project. Changing this parameter will create a new database resource.
    name String
    Specifies the database name. The name consists of 1 to 128 characters, starting with a letter or digit. Only letters, digits and underscores (_) are allowed and the name cannot be all digits. Changing this parameter will create a new database resource.
    owner String
    Specifies the name of the SQL database owner. The owner must be IAM user.
    region String
    Specifies the region in which to create the DLI database resource. If omitted, the provider-level region will be used. Changing this parameter will create a new database resource.

    Import

    DLI SQL databases can be imported by their name, e.g.

    $ pulumi import flexibleengine:index/dliDatabase:DliDatabase test terraform_test
    

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

    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