1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dataworks
  5. DataSource
Alibaba Cloud v3.73.0 published on Wednesday, Jan 15, 2025 by Pulumi

alicloud.dataworks.DataSource

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.73.0 published on Wednesday, Jan 15, 2025 by Pulumi

    Provides a Data Works Data Source resource.

    For information about Data Works Data Source and how to use it, see What is Data Source.

    NOTE: Available since v1.237.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf_example";
    const randint = new random.index.Integer("randint", {
        max: 999,
        min: 1,
    });
    const default = alicloud.resourcemanager.getResourceGroups({});
    const defaultkguw4R = new alicloud.dataworks.Project("defaultkguw4R", {
        status: "Available",
        description: "tf_desc",
        projectName: `${name}${randint.id}`,
        paiTaskEnabled: false,
        displayName: "tf_new_api_display",
        devRoleDisabled: true,
        devEnvironmentEnabled: false,
        resourceGroupId: _default.then(_default => _default.ids?.[0]),
    });
    const defaultDataSource = new alicloud.dataworks.DataSource("default", {
        type: "hive",
        dataSourceName: name,
        connectionProperties: JSON.stringify({
            address: [{
                host: "127.0.0.1",
                port: "1234",
            }],
            database: "hive_database",
            metaType: "HiveMetastore",
            metastoreUris: "thrift://123:123",
            version: "2.3.9",
            loginMode: "Anonymous",
            securityProtocol: "authTypeNone",
            envType: "Prod",
            properties: {
                key1: "value1",
            },
        }),
        connectionPropertiesMode: "UrlMode",
        projectId: defaultkguw4R.id,
        description: name,
    });
    
    import pulumi
    import json
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_example"
    randint = random.index.Integer("randint",
        max=999,
        min=1)
    default = alicloud.resourcemanager.get_resource_groups()
    defaultkguw4_r = alicloud.dataworks.Project("defaultkguw4R",
        status="Available",
        description="tf_desc",
        project_name=f"{name}{randint['id']}",
        pai_task_enabled=False,
        display_name="tf_new_api_display",
        dev_role_disabled=True,
        dev_environment_enabled=False,
        resource_group_id=default.ids[0])
    default_data_source = alicloud.dataworks.DataSource("default",
        type="hive",
        data_source_name=name,
        connection_properties=json.dumps({
            "address": [{
                "host": "127.0.0.1",
                "port": "1234",
            }],
            "database": "hive_database",
            "metaType": "HiveMetastore",
            "metastoreUris": "thrift://123:123",
            "version": "2.3.9",
            "loginMode": "Anonymous",
            "securityProtocol": "authTypeNone",
            "envType": "Prod",
            "properties": {
                "key1": "value1",
            },
        }),
        connection_properties_mode="UrlMode",
        project_id=defaultkguw4_r.id,
        description=name)
    
    package main
    
    import (
    	"encoding/json"
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dataworks"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"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 := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		randint, err := random.NewInteger(ctx, "randint", &random.IntegerArgs{
    			Max: 999,
    			Min: 1,
    		})
    		if err != nil {
    			return err
    		}
    		_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		defaultkguw4R, err := dataworks.NewProject(ctx, "defaultkguw4R", &dataworks.ProjectArgs{
    			Status:                pulumi.String("Available"),
    			Description:           pulumi.String("tf_desc"),
    			ProjectName:           pulumi.Sprintf("%v%v", name, randint.Id),
    			PaiTaskEnabled:        pulumi.Bool(false),
    			DisplayName:           pulumi.String("tf_new_api_display"),
    			DevRoleDisabled:       pulumi.Bool(true),
    			DevEnvironmentEnabled: pulumi.Bool(false),
    			ResourceGroupId:       pulumi.String(_default.Ids[0]),
    		})
    		if err != nil {
    			return err
    		}
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"address": []map[string]interface{}{
    				map[string]interface{}{
    					"host": "127.0.0.1",
    					"port": "1234",
    				},
    			},
    			"database":         "hive_database",
    			"metaType":         "HiveMetastore",
    			"metastoreUris":    "thrift://123:123",
    			"version":          "2.3.9",
    			"loginMode":        "Anonymous",
    			"securityProtocol": "authTypeNone",
    			"envType":          "Prod",
    			"properties": map[string]interface{}{
    				"key1": "value1",
    			},
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = dataworks.NewDataSource(ctx, "default", &dataworks.DataSourceArgs{
    			Type:                     pulumi.String("hive"),
    			DataSourceName:           pulumi.String(name),
    			ConnectionProperties:     pulumi.String(json0),
    			ConnectionPropertiesMode: pulumi.String("UrlMode"),
    			ProjectId:                defaultkguw4R.ID(),
    			Description:              pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf_example";
        var randint = new Random.Index.Integer("randint", new()
        {
            Max = 999,
            Min = 1,
        });
    
        var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
    
        var defaultkguw4R = new AliCloud.DataWorks.Project("defaultkguw4R", new()
        {
            Status = "Available",
            Description = "tf_desc",
            ProjectName = $"{name}{randint.Id}",
            PaiTaskEnabled = false,
            DisplayName = "tf_new_api_display",
            DevRoleDisabled = true,
            DevEnvironmentEnabled = false,
            ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0])),
        });
    
        var defaultDataSource = new AliCloud.DataWorks.DataSource("default", new()
        {
            Type = "hive",
            DataSourceName = name,
            ConnectionProperties = JsonSerializer.Serialize(new Dictionary<string, object?>
            {
                ["address"] = new[]
                {
                    new Dictionary<string, object?>
                    {
                        ["host"] = "127.0.0.1",
                        ["port"] = "1234",
                    },
                },
                ["database"] = "hive_database",
                ["metaType"] = "HiveMetastore",
                ["metastoreUris"] = "thrift://123:123",
                ["version"] = "2.3.9",
                ["loginMode"] = "Anonymous",
                ["securityProtocol"] = "authTypeNone",
                ["envType"] = "Prod",
                ["properties"] = new Dictionary<string, object?>
                {
                    ["key1"] = "value1",
                },
            }),
            ConnectionPropertiesMode = "UrlMode",
            ProjectId = defaultkguw4R.Id,
            Description = name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.integer;
    import com.pulumi.random.IntegerArgs;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.dataworks.Project;
    import com.pulumi.alicloud.dataworks.ProjectArgs;
    import com.pulumi.alicloud.dataworks.DataSource;
    import com.pulumi.alicloud.dataworks.DataSourceArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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("tf_example");
            var randint = new Integer("randint", IntegerArgs.builder()
                .max(999)
                .min(1)
                .build());
    
            final var default = ResourcemanagerFunctions.getResourceGroups();
    
            var defaultkguw4R = new Project("defaultkguw4R", ProjectArgs.builder()
                .status("Available")
                .description("tf_desc")
                .projectName(String.format("%s%s", name,randint.id()))
                .paiTaskEnabled("false")
                .displayName("tf_new_api_display")
                .devRoleDisabled("true")
                .devEnvironmentEnabled("false")
                .resourceGroupId(default_.ids()[0])
                .build());
    
            var defaultDataSource = new DataSource("defaultDataSource", DataSourceArgs.builder()
                .type("hive")
                .dataSourceName(name)
                .connectionProperties(serializeJson(
                    jsonObject(
                        jsonProperty("address", jsonArray(jsonObject(
                            jsonProperty("host", "127.0.0.1"),
                            jsonProperty("port", "1234")
                        ))),
                        jsonProperty("database", "hive_database"),
                        jsonProperty("metaType", "HiveMetastore"),
                        jsonProperty("metastoreUris", "thrift://123:123"),
                        jsonProperty("version", "2.3.9"),
                        jsonProperty("loginMode", "Anonymous"),
                        jsonProperty("securityProtocol", "authTypeNone"),
                        jsonProperty("envType", "Prod"),
                        jsonProperty("properties", jsonObject(
                            jsonProperty("key1", "value1")
                        ))
                    )))
                .connectionPropertiesMode("UrlMode")
                .projectId(defaultkguw4R.id())
                .description(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
    resources:
      randint:
        type: random:integer
        properties:
          max: 999
          min: 1
      defaultkguw4R:
        type: alicloud:dataworks:Project
        properties:
          status: Available
          description: tf_desc
          projectName: ${name}${randint.id}
          paiTaskEnabled: 'false'
          displayName: tf_new_api_display
          devRoleDisabled: 'true'
          devEnvironmentEnabled: 'false'
          resourceGroupId: ${default.ids[0]}
      defaultDataSource:
        type: alicloud:dataworks:DataSource
        name: default
        properties:
          type: hive
          dataSourceName: ${name}
          connectionProperties:
            fn::toJSON:
              address:
                - host: 127.0.0.1
                  port: '1234'
              database: hive_database
              metaType: HiveMetastore
              metastoreUris: thrift://123:123
              version: 2.3.9
              loginMode: Anonymous
              securityProtocol: authTypeNone
              envType: Prod
              properties:
                key1: value1
          connectionPropertiesMode: UrlMode
          projectId: ${defaultkguw4R.id}
          description: ${name}
    variables:
      default:
        fn::invoke:
          function: alicloud:resourcemanager:getResourceGroups
          arguments: {}
    

    Create DataSource Resource

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

    Constructor syntax

    new DataSource(name: string, args: DataSourceArgs, opts?: CustomResourceOptions);
    @overload
    def DataSource(resource_name: str,
                   args: DataSourceArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def DataSource(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   connection_properties: Optional[str] = None,
                   connection_properties_mode: Optional[str] = None,
                   data_source_name: Optional[str] = None,
                   project_id: Optional[int] = None,
                   type: Optional[str] = None,
                   description: Optional[str] = None)
    func NewDataSource(ctx *Context, name string, args DataSourceArgs, opts ...ResourceOption) (*DataSource, error)
    public DataSource(string name, DataSourceArgs args, CustomResourceOptions? opts = null)
    public DataSource(String name, DataSourceArgs args)
    public DataSource(String name, DataSourceArgs args, CustomResourceOptions options)
    
    type: alicloud:dataworks:DataSource
    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 DataSourceArgs
    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 DataSourceArgs
    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 DataSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DataSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DataSourceArgs
    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 dataSourceResource = new AliCloud.DataWorks.DataSource("dataSourceResource", new()
    {
        ConnectionProperties = "string",
        ConnectionPropertiesMode = "string",
        DataSourceName = "string",
        ProjectId = 0,
        Type = "string",
        Description = "string",
    });
    
    example, err := dataworks.NewDataSource(ctx, "dataSourceResource", &dataworks.DataSourceArgs{
    	ConnectionProperties:     pulumi.String("string"),
    	ConnectionPropertiesMode: pulumi.String("string"),
    	DataSourceName:           pulumi.String("string"),
    	ProjectId:                pulumi.Int(0),
    	Type:                     pulumi.String("string"),
    	Description:              pulumi.String("string"),
    })
    
    var dataSourceResource = new DataSource("dataSourceResource", DataSourceArgs.builder()
        .connectionProperties("string")
        .connectionPropertiesMode("string")
        .dataSourceName("string")
        .projectId(0)
        .type("string")
        .description("string")
        .build());
    
    data_source_resource = alicloud.dataworks.DataSource("dataSourceResource",
        connection_properties="string",
        connection_properties_mode="string",
        data_source_name="string",
        project_id=0,
        type="string",
        description="string")
    
    const dataSourceResource = new alicloud.dataworks.DataSource("dataSourceResource", {
        connectionProperties: "string",
        connectionPropertiesMode: "string",
        dataSourceName: "string",
        projectId: 0,
        type: "string",
        description: "string",
    });
    
    type: alicloud:dataworks:DataSource
    properties:
        connectionProperties: string
        connectionPropertiesMode: string
        dataSourceName: string
        description: string
        projectId: 0
        type: string
    

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

    ConnectionProperties string
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    ConnectionPropertiesMode string
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    DataSourceName string
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    ProjectId int
    The ID of the project to which the data source belongs.
    Type string
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    Description string
    Description of the data source
    ConnectionProperties string
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    ConnectionPropertiesMode string
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    DataSourceName string
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    ProjectId int
    The ID of the project to which the data source belongs.
    Type string
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    Description string
    Description of the data source
    connectionProperties String
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    connectionPropertiesMode String
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    dataSourceName String
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    projectId Integer
    The ID of the project to which the data source belongs.
    type String
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    description String
    Description of the data source
    connectionProperties string
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    connectionPropertiesMode string
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    dataSourceName string
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    projectId number
    The ID of the project to which the data source belongs.
    type string
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    description string
    Description of the data source
    connection_properties str
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    connection_properties_mode str
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    data_source_name str
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    project_id int
    The ID of the project to which the data source belongs.
    type str
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    description str
    Description of the data source
    connectionProperties String
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    connectionPropertiesMode String
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    dataSourceName String
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    projectId Number
    The ID of the project to which the data source belongs.
    type String
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    description String
    Description of the data source

    Outputs

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

    CreateTime int
    The creation time of the resource
    CreateUser string
    Creator of the data source
    DataSourceId int
    The first ID of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifyTime int
    Modification time
    ModifyUser string
    Modifier of the data source
    QualifiedName string
    Business Unique Key of Data Source
    CreateTime int
    The creation time of the resource
    CreateUser string
    Creator of the data source
    DataSourceId int
    The first ID of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifyTime int
    Modification time
    ModifyUser string
    Modifier of the data source
    QualifiedName string
    Business Unique Key of Data Source
    createTime Integer
    The creation time of the resource
    createUser String
    Creator of the data source
    dataSourceId Integer
    The first ID of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    modifyTime Integer
    Modification time
    modifyUser String
    Modifier of the data source
    qualifiedName String
    Business Unique Key of Data Source
    createTime number
    The creation time of the resource
    createUser string
    Creator of the data source
    dataSourceId number
    The first ID of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    modifyTime number
    Modification time
    modifyUser string
    Modifier of the data source
    qualifiedName string
    Business Unique Key of Data Source
    create_time int
    The creation time of the resource
    create_user str
    Creator of the data source
    data_source_id int
    The first ID of the resource
    id str
    The provider-assigned unique ID for this managed resource.
    modify_time int
    Modification time
    modify_user str
    Modifier of the data source
    qualified_name str
    Business Unique Key of Data Source
    createTime Number
    The creation time of the resource
    createUser String
    Creator of the data source
    dataSourceId Number
    The first ID of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    modifyTime Number
    Modification time
    modifyUser String
    Modifier of the data source
    qualifiedName String
    Business Unique Key of Data Source

    Look up Existing DataSource Resource

    Get an existing DataSource 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?: DataSourceState, opts?: CustomResourceOptions): DataSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connection_properties: Optional[str] = None,
            connection_properties_mode: Optional[str] = None,
            create_time: Optional[int] = None,
            create_user: Optional[str] = None,
            data_source_id: Optional[int] = None,
            data_source_name: Optional[str] = None,
            description: Optional[str] = None,
            modify_time: Optional[int] = None,
            modify_user: Optional[str] = None,
            project_id: Optional[int] = None,
            qualified_name: Optional[str] = None,
            type: Optional[str] = None) -> DataSource
    func GetDataSource(ctx *Context, name string, id IDInput, state *DataSourceState, opts ...ResourceOption) (*DataSource, error)
    public static DataSource Get(string name, Input<string> id, DataSourceState? state, CustomResourceOptions? opts = null)
    public static DataSource get(String name, Output<String> id, DataSourceState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:dataworks:DataSource    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:
    ConnectionProperties string
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    ConnectionPropertiesMode string
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    CreateTime int
    The creation time of the resource
    CreateUser string
    Creator of the data source
    DataSourceId int
    The first ID of the resource
    DataSourceName string
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    Description string
    Description of the data source
    ModifyTime int
    Modification time
    ModifyUser string
    Modifier of the data source
    ProjectId int
    The ID of the project to which the data source belongs.
    QualifiedName string
    Business Unique Key of Data Source
    Type string
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    ConnectionProperties string
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    ConnectionPropertiesMode string
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    CreateTime int
    The creation time of the resource
    CreateUser string
    Creator of the data source
    DataSourceId int
    The first ID of the resource
    DataSourceName string
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    Description string
    Description of the data source
    ModifyTime int
    Modification time
    ModifyUser string
    Modifier of the data source
    ProjectId int
    The ID of the project to which the data source belongs.
    QualifiedName string
    Business Unique Key of Data Source
    Type string
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    connectionProperties String
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    connectionPropertiesMode String
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    createTime Integer
    The creation time of the resource
    createUser String
    Creator of the data source
    dataSourceId Integer
    The first ID of the resource
    dataSourceName String
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    description String
    Description of the data source
    modifyTime Integer
    Modification time
    modifyUser String
    Modifier of the data source
    projectId Integer
    The ID of the project to which the data source belongs.
    qualifiedName String
    Business Unique Key of Data Source
    type String
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    connectionProperties string
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    connectionPropertiesMode string
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    createTime number
    The creation time of the resource
    createUser string
    Creator of the data source
    dataSourceId number
    The first ID of the resource
    dataSourceName string
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    description string
    Description of the data source
    modifyTime number
    Modification time
    modifyUser string
    Modifier of the data source
    projectId number
    The ID of the project to which the data source belongs.
    qualifiedName string
    Business Unique Key of Data Source
    type string
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    connection_properties str
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    connection_properties_mode str
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    create_time int
    The creation time of the resource
    create_user str
    Creator of the data source
    data_source_id int
    The first ID of the resource
    data_source_name str
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    description str
    Description of the data source
    modify_time int
    Modification time
    modify_user str
    Modifier of the data source
    project_id int
    The ID of the project to which the data source belongs.
    qualified_name str
    Business Unique Key of Data Source
    type str
    The type of data source. For a list of data source types, see the values listed in the API documentation.
    connectionProperties String
    Data source connection configuration information, including the connection address, access identity, and environment information. The data source environment EnvType information is a member property of this object, including DEV (Development Environment) and PROD (production environment). The value of EnvType is not case-sensitive.
    connectionPropertiesMode String
    The configuration mode of the data source. Different types of data sources have different configuration modes. For example, MySQL data sources support UrlMode and InstanceMode.
    createTime Number
    The creation time of the resource
    createUser String
    Creator of the data source
    dataSourceId Number
    The first ID of the resource
    dataSourceName String
    The data source name. The name of a data source in a specific environment (development environment or production environment) is unique in a project.
    description String
    Description of the data source
    modifyTime Number
    Modification time
    modifyUser String
    Modifier of the data source
    projectId Number
    The ID of the project to which the data source belongs.
    qualifiedName String
    Business Unique Key of Data Source
    type String
    The type of data source. For a list of data source types, see the values listed in the API documentation.

    Import

    Data Works Data Source can be imported using the id, e.g.

    $ pulumi import alicloud:dataworks/dataSource:DataSource example <project_id>:<data_source_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.73.0 published on Wednesday, Jan 15, 2025 by Pulumi