flexibleengine.DliDatasourceConnection
Explore with Pulumi AI
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:
- Subnet
Id string - The subnet ID of the service to be connected. Changing this parameter will create a new resource.
- Vpc
Id string - The VPC ID of the service to be connected. Changing this parameter will create a new resource.
- Dli
Datasource stringConnection Id - The resource ID.
- Hosts
List<Dli
Datasource Connection Host> - 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.
- Route
Table stringId - The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
- Routes
List<Dli
Datasource Connection Route> - List of routes.
- 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:
- Subnet
Id string - The subnet ID of the service to be connected. Changing this parameter will create a new resource.
- Vpc
Id string - The VPC ID of the service to be connected. Changing this parameter will create a new resource.
- Dli
Datasource stringConnection Id - The resource ID.
- Hosts
[]Dli
Datasource Connection Host Args - 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.
- Route
Table stringId - The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
- Routes
[]Dli
Datasource Connection Route Args - List of routes.
- 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:
- subnet
Id String - The subnet ID of the service to be connected. Changing this parameter will create a new resource.
- vpc
Id String - The VPC ID of the service to be connected. Changing this parameter will create a new resource.
- dli
Datasource StringConnection Id - The resource ID.
- hosts
List<Dli
Datasource Connection Host> - 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.
- route
Table StringId - The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
- routes
List<Dli
Datasource Connection Route> - List of routes.
- 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:
- subnet
Id string - The subnet ID of the service to be connected. Changing this parameter will create a new resource.
- vpc
Id string - The VPC ID of the service to be connected. Changing this parameter will create a new resource.
- dli
Datasource stringConnection Id - The resource ID.
- hosts
Dli
Datasource Connection Host[] - 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.
- route
Table stringId - The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
- routes
Dli
Datasource Connection Route[] - List of routes.
- {[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_ strconnection_ id - The resource ID.
- hosts
Sequence[Dli
Datasource Connection Host Args] - 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_ strid - The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
- routes
Sequence[Dli
Datasource Connection Route Args] - List of routes.
- 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:
- subnet
Id String - The subnet ID of the service to be connected. Changing this parameter will create a new resource.
- vpc
Id String - The VPC ID of the service to be connected. Changing this parameter will create a new resource.
- dli
Datasource StringConnection Id - 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.
- route
Table StringId - 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.
- 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:
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.
- Dli
Datasource stringConnection Id - The resource ID.
- Hosts
List<Dli
Datasource Connection Host> - 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.
- Route
Table stringId - The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
- Routes
List<Dli
Datasource Connection Route> - 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.
- Subnet
Id string - The subnet ID of the service to be connected. Changing this parameter will create a new resource.
- 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:- Vpc
Id string - The VPC ID of the service to be connected. Changing this parameter will create a new resource.
- Dli
Datasource stringConnection Id - The resource ID.
- Hosts
[]Dli
Datasource Connection Host Args - 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.
- Route
Table stringId - The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
- Routes
[]Dli
Datasource Connection Route Args - 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.
- Subnet
Id string - The subnet ID of the service to be connected. Changing this parameter will create a new resource.
- 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:- Vpc
Id string - The VPC ID of the service to be connected. Changing this parameter will create a new resource.
- dli
Datasource StringConnection Id - The resource ID.
- hosts
List<Dli
Datasource Connection Host> - 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.
- route
Table StringId - The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
- routes
List<Dli
Datasource Connection Route> - 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.
- subnet
Id String - The subnet ID of the service to be connected. Changing this parameter will create a new resource.
- 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:- vpc
Id String - The VPC ID of the service to be connected. Changing this parameter will create a new resource.
- dli
Datasource stringConnection Id - The resource ID.
- hosts
Dli
Datasource Connection Host[] - 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.
- route
Table stringId - The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
- routes
Dli
Datasource Connection Route[] - 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.
- subnet
Id string - The subnet ID of the service to be connected. Changing this parameter will create a new resource.
- {[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:- vpc
Id string - The VPC ID of the service to be connected. Changing this parameter will create a new resource.
- dli_
datasource_ strconnection_ id - The resource ID.
- hosts
Sequence[Dli
Datasource Connection Host Args] - 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_ strid - The route table ID associated with the subnet of the service to be connected. Changing this parameter will create a new resource.
- routes
Sequence[Dli
Datasource Connection Route Args] - 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.
- 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.
- dli
Datasource StringConnection Id - 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.
- route
Table StringId - 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.
- subnet
Id String - The subnet ID of the service to be connected. Changing this parameter will create a new resource.
- Map<String>
The key/value pairs to associate with the datasource connection. Changing this parameter will create a new resource.
The
hosts
block supports:- vpc
Id String - The VPC ID of the service to be connected. Changing this parameter will create a new resource.
Supporting Types
DliDatasourceConnectionHost, DliDatasourceConnectionHostArgs
DliDatasourceConnectionRoute, DliDatasourceConnectionRouteArgs
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.