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

flexibleengine.DliDatasourceConnection

Explore with Pulumi AI

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

    Manages a DLI datasource enhanced connection resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const name = config.requireObject("name");
    const vpcId = config.requireObject("vpcId");
    const subnetId = config.requireObject("subnetId");
    const test = new flexibleengine.DliDatasourceConnection("test", {
        vpcId: vpcId,
        subnetId: subnetId,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    name = config.require_object("name")
    vpc_id = config.require_object("vpcId")
    subnet_id = config.require_object("subnetId")
    test = flexibleengine.DliDatasourceConnection("test",
        vpc_id=vpc_id,
        subnet_id=subnet_id)
    
    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, "")
    		name := cfg.RequireObject("name")
    		vpcId := cfg.RequireObject("vpcId")
    		subnetId := cfg.RequireObject("subnetId")
    		_, err := flexibleengine.NewDliDatasourceConnection(ctx, "test", &flexibleengine.DliDatasourceConnectionArgs{
    			VpcId:    pulumi.Any(vpcId),
    			SubnetId: pulumi.Any(subnetId),
    		})
    		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 name = config.RequireObject<dynamic>("name");
        var vpcId = config.RequireObject<dynamic>("vpcId");
        var subnetId = config.RequireObject<dynamic>("subnetId");
        var test = new Flexibleengine.DliDatasourceConnection("test", new()
        {
            VpcId = vpcId,
            SubnetId = subnetId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.DliDatasourceConnection;
    import com.pulumi.flexibleengine.DliDatasourceConnectionArgs;
    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");
            final var vpcId = config.get("vpcId");
            final var subnetId = config.get("subnetId");
            var test = new DliDatasourceConnection("test", DliDatasourceConnectionArgs.builder()
                .vpcId(vpcId)
                .subnetId(subnetId)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: dynamic
      vpcId:
        type: dynamic
      subnetId:
        type: dynamic
    resources:
      test:
        type: flexibleengine:DliDatasourceConnection
        properties:
          vpcId: ${vpcId}
          subnetId: ${subnetId}
    

    Create DliDatasourceConnection Resource

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

    Constructor syntax

    new DliDatasourceConnection(name: string, args: DliDatasourceConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def DliDatasourceConnection(resource_name: str,
                                args: DliDatasourceConnectionArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def DliDatasourceConnection(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                subnet_id: Optional[str] = None,
                                vpc_id: Optional[str] = None,
                                dli_datasource_connection_id: Optional[str] = None,
                                hosts: Optional[Sequence[DliDatasourceConnectionHostArgs]] = None,
                                name: Optional[str] = None,
                                queues: Optional[Sequence[str]] = None,
                                region: Optional[str] = None,
                                route_table_id: Optional[str] = None,
                                routes: Optional[Sequence[DliDatasourceConnectionRouteArgs]] = None,
                                tags: Optional[Mapping[str, str]] = None)
    func NewDliDatasourceConnection(ctx *Context, name string, args DliDatasourceConnectionArgs, opts ...ResourceOption) (*DliDatasourceConnection, error)
    public DliDatasourceConnection(string name, DliDatasourceConnectionArgs args, CustomResourceOptions? opts = null)
    public DliDatasourceConnection(String name, DliDatasourceConnectionArgs args)
    public DliDatasourceConnection(String name, DliDatasourceConnectionArgs args, CustomResourceOptions options)
    
    type: flexibleengine:DliDatasourceConnection
    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 DliDatasourceConnectionArgs
    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 DliDatasourceConnectionArgs
    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 DliDatasourceConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DliDatasourceConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DliDatasourceConnectionArgs
    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 dliDatasourceConnectionResource = new Flexibleengine.DliDatasourceConnection("dliDatasourceConnectionResource", new()
    {
        SubnetId = "string",
        VpcId = "string",
        DliDatasourceConnectionId = "string",
        Hosts = new[]
        {
            new Flexibleengine.Inputs.DliDatasourceConnectionHostArgs
            {
                Ip = "string",
                Name = "string",
            },
        },
        Name = "string",
        Queues = new[]
        {
            "string",
        },
        Region = "string",
        RouteTableId = "string",
        Routes = new[]
        {
            new Flexibleengine.Inputs.DliDatasourceConnectionRouteArgs
            {
                Cidr = "string",
                Name = "string",
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := flexibleengine.NewDliDatasourceConnection(ctx, "dliDatasourceConnectionResource", &flexibleengine.DliDatasourceConnectionArgs{
    	SubnetId:                  pulumi.String("string"),
    	VpcId:                     pulumi.String("string"),
    	DliDatasourceConnectionId: pulumi.String("string"),
    	Hosts: flexibleengine.DliDatasourceConnectionHostArray{
    		&flexibleengine.DliDatasourceConnectionHostArgs{
    			Ip:   pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	Queues: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Region:       pulumi.String("string"),
    	RouteTableId: pulumi.String("string"),
    	Routes: flexibleengine.DliDatasourceConnectionRouteArray{
    		&flexibleengine.DliDatasourceConnectionRouteArgs{
    			Cidr: pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var dliDatasourceConnectionResource = new DliDatasourceConnection("dliDatasourceConnectionResource", DliDatasourceConnectionArgs.builder()
        .subnetId("string")
        .vpcId("string")
        .dliDatasourceConnectionId("string")
        .hosts(DliDatasourceConnectionHostArgs.builder()
            .ip("string")
            .name("string")
            .build())
        .name("string")
        .queues("string")
        .region("string")
        .routeTableId("string")
        .routes(DliDatasourceConnectionRouteArgs.builder()
            .cidr("string")
            .name("string")
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    dli_datasource_connection_resource = flexibleengine.DliDatasourceConnection("dliDatasourceConnectionResource",
        subnet_id="string",
        vpc_id="string",
        dli_datasource_connection_id="string",
        hosts=[{
            "ip": "string",
            "name": "string",
        }],
        name="string",
        queues=["string"],
        region="string",
        route_table_id="string",
        routes=[{
            "cidr": "string",
            "name": "string",
        }],
        tags={
            "string": "string",
        })
    
    const dliDatasourceConnectionResource = new flexibleengine.DliDatasourceConnection("dliDatasourceConnectionResource", {
        subnetId: "string",
        vpcId: "string",
        dliDatasourceConnectionId: "string",
        hosts: [{
            ip: "string",
            name: "string",
        }],
        name: "string",
        queues: ["string"],
        region: "string",
        routeTableId: "string",
        routes: [{
            cidr: "string",
            name: "string",
        }],
        tags: {
            string: "string",
        },
    });
    
    type: flexibleengine:DliDatasourceConnection
    properties:
        dliDatasourceConnectionId: string
        hosts:
            - ip: string
              name: string
        name: string
        queues:
            - string
        region: string
        routeTableId: string
        routes:
            - cidr: string
              name: string
        subnetId: string
        tags:
            string: string
        vpcId: string
    

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

    SubnetId string
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    VpcId string
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    DliDatasourceConnectionId string
    The resource ID.
    Hosts List<DliDatasourceConnectionHost>
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    Name string
    The user-defined host name.
    Queues List<string>
    List of queue names that are available for datasource connections.
    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    RouteTableId string
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    Routes List<DliDatasourceConnectionRoute>
    List of routes.
    Tags Dictionary<string, string>

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    SubnetId string
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    VpcId string
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    DliDatasourceConnectionId string
    The resource ID.
    Hosts []DliDatasourceConnectionHostArgs
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    Name string
    The user-defined host name.
    Queues []string
    List of queue names that are available for datasource connections.
    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    RouteTableId string
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    Routes []DliDatasourceConnectionRouteArgs
    List of routes.
    Tags map[string]string

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    subnetId String
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    vpcId String
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    dliDatasourceConnectionId String
    The resource ID.
    hosts List<DliDatasourceConnectionHost>
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    name String
    The user-defined host name.
    queues List<String>
    List of queue names that are available for datasource connections.
    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    routeTableId String
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    routes List<DliDatasourceConnectionRoute>
    List of routes.
    tags Map<String,String>

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    subnetId string
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    vpcId string
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    dliDatasourceConnectionId string
    The resource ID.
    hosts DliDatasourceConnectionHost[]
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    name string
    The user-defined host name.
    queues string[]
    List of queue names that are available for datasource connections.
    region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    routeTableId string
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    routes DliDatasourceConnectionRoute[]
    List of routes.
    tags {[key: string]: string}

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    subnet_id str
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    vpc_id str
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    dli_datasource_connection_id str
    The resource ID.
    hosts Sequence[DliDatasourceConnectionHostArgs]
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    name str
    The user-defined host name.
    queues Sequence[str]
    List of queue names that are available for datasource connections.
    region str
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    route_table_id str
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    routes Sequence[DliDatasourceConnectionRouteArgs]
    List of routes.
    tags Mapping[str, str]

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    subnetId String
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    vpcId String
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    dliDatasourceConnectionId String
    The resource ID.
    hosts List<Property Map>
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    name String
    The user-defined host name.
    queues List<String>
    List of queue names that are available for datasource connections.
    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    routeTableId String
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    routes List<Property Map>
    List of routes.
    tags Map<String>

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.

    Look up Existing DliDatasourceConnection Resource

    Get an existing DliDatasourceConnection 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?: DliDatasourceConnectionState, opts?: CustomResourceOptions): DliDatasourceConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dli_datasource_connection_id: Optional[str] = None,
            hosts: Optional[Sequence[DliDatasourceConnectionHostArgs]] = None,
            name: Optional[str] = None,
            queues: Optional[Sequence[str]] = None,
            region: Optional[str] = None,
            route_table_id: Optional[str] = None,
            routes: Optional[Sequence[DliDatasourceConnectionRouteArgs]] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            vpc_id: Optional[str] = None) -> DliDatasourceConnection
    func GetDliDatasourceConnection(ctx *Context, name string, id IDInput, state *DliDatasourceConnectionState, opts ...ResourceOption) (*DliDatasourceConnection, error)
    public static DliDatasourceConnection Get(string name, Input<string> id, DliDatasourceConnectionState? state, CustomResourceOptions? opts = null)
    public static DliDatasourceConnection get(String name, Output<String> id, DliDatasourceConnectionState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:DliDatasourceConnection    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:
    DliDatasourceConnectionId string
    The resource ID.
    Hosts List<DliDatasourceConnectionHost>
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    Name string
    The user-defined host name.
    Queues List<string>
    List of queue names that are available for datasource connections.
    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    RouteTableId string
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    Routes List<DliDatasourceConnectionRoute>
    List of routes.
    Status string
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    SubnetId string
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    Tags Dictionary<string, string>

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    VpcId string
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    DliDatasourceConnectionId string
    The resource ID.
    Hosts []DliDatasourceConnectionHostArgs
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    Name string
    The user-defined host name.
    Queues []string
    List of queue names that are available for datasource connections.
    Region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    RouteTableId string
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    Routes []DliDatasourceConnectionRouteArgs
    List of routes.
    Status string
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    SubnetId string
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    Tags map[string]string

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    VpcId string
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    dliDatasourceConnectionId String
    The resource ID.
    hosts List<DliDatasourceConnectionHost>
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    name String
    The user-defined host name.
    queues List<String>
    List of queue names that are available for datasource connections.
    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    routeTableId String
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    routes List<DliDatasourceConnectionRoute>
    List of routes.
    status String
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    subnetId String
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    tags Map<String,String>

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    vpcId String
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    dliDatasourceConnectionId string
    The resource ID.
    hosts DliDatasourceConnectionHost[]
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    name string
    The user-defined host name.
    queues string[]
    List of queue names that are available for datasource connections.
    region string
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    routeTableId string
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    routes DliDatasourceConnectionRoute[]
    List of routes.
    status string
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    subnetId string
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    tags {[key: string]: string}

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    vpcId string
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    dli_datasource_connection_id str
    The resource ID.
    hosts Sequence[DliDatasourceConnectionHostArgs]
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    name str
    The user-defined host name.
    queues Sequence[str]
    List of queue names that are available for datasource connections.
    region str
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    route_table_id str
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    routes Sequence[DliDatasourceConnectionRouteArgs]
    List of routes.
    status str
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    subnet_id str
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    tags Mapping[str, str]

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    vpc_id str
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.
    dliDatasourceConnectionId String
    The resource ID.
    hosts List<Property Map>
    The user-defined host information. A maximum of 20,000 records are supported. The hosts object structure is documented below.
    name String
    The user-defined host name.
    queues List<String>
    List of queue names that are available for datasource connections.
    region String
    Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    routeTableId String
    The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
    routes List<Property Map>
    List of routes.
    status String
    The connection status. The options are as follows:

    • ACTIVE: The datasource connection is activated.
    • DELETED: The datasource connection is deleted.
    subnetId String
    The subnet ID of the service to be connected. Changing this parameter will create a new resource.
    tags Map<String>

    The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.

    The hosts block supports:

    vpcId String
    The VPC ID of the service to be connected. Changing this parameter will create a new resource.

    Supporting Types

    DliDatasourceConnectionHost, DliDatasourceConnectionHostArgs

    Ip string
    IPv4 address of the host.
    Name string
    The user-defined host name.
    Ip string
    IPv4 address of the host.
    Name string
    The user-defined host name.
    ip String
    IPv4 address of the host.
    name String
    The user-defined host name.
    ip string
    IPv4 address of the host.
    name string
    The user-defined host name.
    ip str
    IPv4 address of the host.
    name str
    The user-defined host name.
    ip String
    IPv4 address of the host.
    name String
    The user-defined host name.

    DliDatasourceConnectionRoute, DliDatasourceConnectionRouteArgs

    Cidr string
    The CIDR of the route.
    Name string
    The user-defined host name.
    Cidr string
    The CIDR of the route.
    Name string
    The user-defined host name.
    cidr String
    The CIDR of the route.
    name String
    The user-defined host name.
    cidr string
    The CIDR of the route.
    name string
    The user-defined host name.
    cidr str
    The CIDR of the route.
    name str
    The user-defined host name.
    cidr String
    The CIDR of the route.
    name String
    The user-defined host name.

    Import

    The DLI datasource connection can be imported using the id, e.g.

    $ pulumi import flexibleengine:index/dliDatasourceConnection:DliDatasourceConnection test 0ce123456a00f2591fabc00385ff1234
    

    Note that the imported state may not be identical to your resource definition, due to some attributes missing from the

    API response, security or some other reason. The missing attributes include: tags.

    It is generally recommended running pulumi preview after importing a resource.

    You can then decide if changes should be applied to the resource, or the resource definition should be updated to

    align with the resource. Also, you can ignore changes as below.

    hcl

    resource “flexibleengine_dli_datasource_connection” “test” {

    ...
    
    lifecycle {
    
      ignore_changes = [
    
        tags,
    
      ]
    
    }
    

    }

    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