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

flexibleengine.ModelartsDataset

Explore with Pulumi AI

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

    Manages ModelArts dataset 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 outputObsPath = config.requireObject("outputObsPath");
    const inputObsPath = config.requireObject("inputObsPath");
    const test = new flexibleengine.ModelartsDataset("test", {
        type: 1,
        outputPath: outputObsPath,
        description: "Terraform Demo",
        dataSource: {
            path: inputObsPath,
        },
        labels: [{
            name: "foo",
        }],
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    name = config.require_object("name")
    output_obs_path = config.require_object("outputObsPath")
    input_obs_path = config.require_object("inputObsPath")
    test = flexibleengine.ModelartsDataset("test",
        type=1,
        output_path=output_obs_path,
        description="Terraform Demo",
        data_source={
            "path": input_obs_path,
        },
        labels=[{
            "name": "foo",
        }])
    
    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")
    		outputObsPath := cfg.RequireObject("outputObsPath")
    		inputObsPath := cfg.RequireObject("inputObsPath")
    		_, err := flexibleengine.NewModelartsDataset(ctx, "test", &flexibleengine.ModelartsDatasetArgs{
    			Type:        pulumi.Float64(1),
    			OutputPath:  pulumi.Any(outputObsPath),
    			Description: pulumi.String("Terraform Demo"),
    			DataSource: &flexibleengine.ModelartsDatasetDataSourceArgs{
    				Path: pulumi.Any(inputObsPath),
    			},
    			Labels: flexibleengine.ModelartsDatasetLabelArray{
    				&flexibleengine.ModelartsDatasetLabelArgs{
    					Name: pulumi.String("foo"),
    				},
    			},
    		})
    		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 outputObsPath = config.RequireObject<dynamic>("outputObsPath");
        var inputObsPath = config.RequireObject<dynamic>("inputObsPath");
        var test = new Flexibleengine.ModelartsDataset("test", new()
        {
            Type = 1,
            OutputPath = outputObsPath,
            Description = "Terraform Demo",
            DataSource = new Flexibleengine.Inputs.ModelartsDatasetDataSourceArgs
            {
                Path = inputObsPath,
            },
            Labels = new[]
            {
                new Flexibleengine.Inputs.ModelartsDatasetLabelArgs
                {
                    Name = "foo",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.ModelartsDataset;
    import com.pulumi.flexibleengine.ModelartsDatasetArgs;
    import com.pulumi.flexibleengine.inputs.ModelartsDatasetDataSourceArgs;
    import com.pulumi.flexibleengine.inputs.ModelartsDatasetLabelArgs;
    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 outputObsPath = config.get("outputObsPath");
            final var inputObsPath = config.get("inputObsPath");
            var test = new ModelartsDataset("test", ModelartsDatasetArgs.builder()
                .type(1)
                .outputPath(outputObsPath)
                .description("Terraform Demo")
                .dataSource(ModelartsDatasetDataSourceArgs.builder()
                    .path(inputObsPath)
                    .build())
                .labels(ModelartsDatasetLabelArgs.builder()
                    .name("foo")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: dynamic
      outputObsPath:
        type: dynamic
      inputObsPath:
        type: dynamic
    resources:
      test:
        type: flexibleengine:ModelartsDataset
        properties:
          type: 1
          outputPath: ${outputObsPath}
          description: Terraform Demo
          dataSource:
            path: ${inputObsPath}
          labels:
            - name: foo
    

    Create ModelartsDataset Resource

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

    Constructor syntax

    new ModelartsDataset(name: string, args: ModelartsDatasetArgs, opts?: CustomResourceOptions);
    @overload
    def ModelartsDataset(resource_name: str,
                         args: ModelartsDatasetArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ModelartsDataset(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         data_source: Optional[ModelartsDatasetDataSourceArgs] = None,
                         output_path: Optional[str] = None,
                         type: Optional[float] = None,
                         description: Optional[str] = None,
                         import_labeled_enabled: Optional[bool] = None,
                         label_format: Optional[ModelartsDatasetLabelFormatArgs] = None,
                         labels: Optional[Sequence[ModelartsDatasetLabelArgs]] = None,
                         modelarts_dataset_id: Optional[str] = None,
                         name: Optional[str] = None,
                         region: Optional[str] = None,
                         schemas: Optional[Sequence[ModelartsDatasetSchemaArgs]] = None,
                         timeouts: Optional[ModelartsDatasetTimeoutsArgs] = None)
    func NewModelartsDataset(ctx *Context, name string, args ModelartsDatasetArgs, opts ...ResourceOption) (*ModelartsDataset, error)
    public ModelartsDataset(string name, ModelartsDatasetArgs args, CustomResourceOptions? opts = null)
    public ModelartsDataset(String name, ModelartsDatasetArgs args)
    public ModelartsDataset(String name, ModelartsDatasetArgs args, CustomResourceOptions options)
    
    type: flexibleengine:ModelartsDataset
    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 ModelartsDatasetArgs
    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 ModelartsDatasetArgs
    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 ModelartsDatasetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ModelartsDatasetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ModelartsDatasetArgs
    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 modelartsDatasetResource = new Flexibleengine.ModelartsDataset("modelartsDatasetResource", new()
    {
        DataSource = new Flexibleengine.Inputs.ModelartsDatasetDataSourceArgs
        {
            ClusterId = "string",
            DataType = 0,
            DatabaseName = "string",
            Password = "string",
            Path = "string",
            QueueName = "string",
            TableName = "string",
            UserName = "string",
            WithColumnHeader = false,
        },
        OutputPath = "string",
        Type = 0,
        Description = "string",
        ImportLabeledEnabled = false,
        LabelFormat = new Flexibleengine.Inputs.ModelartsDatasetLabelFormatArgs
        {
            LabelSeparator = "string",
            TextLabelSeparator = "string",
            Type = "string",
        },
        Labels = new[]
        {
            new Flexibleengine.Inputs.ModelartsDatasetLabelArgs
            {
                Name = "string",
                PropertyColor = "string",
                PropertyShape = "string",
                PropertyShortcut = "string",
            },
        },
        ModelartsDatasetId = "string",
        Name = "string",
        Region = "string",
        Schemas = new[]
        {
            new Flexibleengine.Inputs.ModelartsDatasetSchemaArgs
            {
                Name = "string",
                Type = "string",
            },
        },
        Timeouts = new Flexibleengine.Inputs.ModelartsDatasetTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := flexibleengine.NewModelartsDataset(ctx, "modelartsDatasetResource", &flexibleengine.ModelartsDatasetArgs{
    	DataSource: &flexibleengine.ModelartsDatasetDataSourceArgs{
    		ClusterId:        pulumi.String("string"),
    		DataType:         pulumi.Float64(0),
    		DatabaseName:     pulumi.String("string"),
    		Password:         pulumi.String("string"),
    		Path:             pulumi.String("string"),
    		QueueName:        pulumi.String("string"),
    		TableName:        pulumi.String("string"),
    		UserName:         pulumi.String("string"),
    		WithColumnHeader: pulumi.Bool(false),
    	},
    	OutputPath:           pulumi.String("string"),
    	Type:                 pulumi.Float64(0),
    	Description:          pulumi.String("string"),
    	ImportLabeledEnabled: pulumi.Bool(false),
    	LabelFormat: &flexibleengine.ModelartsDatasetLabelFormatArgs{
    		LabelSeparator:     pulumi.String("string"),
    		TextLabelSeparator: pulumi.String("string"),
    		Type:               pulumi.String("string"),
    	},
    	Labels: flexibleengine.ModelartsDatasetLabelArray{
    		&flexibleengine.ModelartsDatasetLabelArgs{
    			Name:             pulumi.String("string"),
    			PropertyColor:    pulumi.String("string"),
    			PropertyShape:    pulumi.String("string"),
    			PropertyShortcut: pulumi.String("string"),
    		},
    	},
    	ModelartsDatasetId: pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	Region:             pulumi.String("string"),
    	Schemas: flexibleengine.ModelartsDatasetSchemaArray{
    		&flexibleengine.ModelartsDatasetSchemaArgs{
    			Name: pulumi.String("string"),
    			Type: pulumi.String("string"),
    		},
    	},
    	Timeouts: &flexibleengine.ModelartsDatasetTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    var modelartsDatasetResource = new ModelartsDataset("modelartsDatasetResource", ModelartsDatasetArgs.builder()
        .dataSource(ModelartsDatasetDataSourceArgs.builder()
            .clusterId("string")
            .dataType(0)
            .databaseName("string")
            .password("string")
            .path("string")
            .queueName("string")
            .tableName("string")
            .userName("string")
            .withColumnHeader(false)
            .build())
        .outputPath("string")
        .type(0)
        .description("string")
        .importLabeledEnabled(false)
        .labelFormat(ModelartsDatasetLabelFormatArgs.builder()
            .labelSeparator("string")
            .textLabelSeparator("string")
            .type("string")
            .build())
        .labels(ModelartsDatasetLabelArgs.builder()
            .name("string")
            .propertyColor("string")
            .propertyShape("string")
            .propertyShortcut("string")
            .build())
        .modelartsDatasetId("string")
        .name("string")
        .region("string")
        .schemas(ModelartsDatasetSchemaArgs.builder()
            .name("string")
            .type("string")
            .build())
        .timeouts(ModelartsDatasetTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    modelarts_dataset_resource = flexibleengine.ModelartsDataset("modelartsDatasetResource",
        data_source={
            "cluster_id": "string",
            "data_type": 0,
            "database_name": "string",
            "password": "string",
            "path": "string",
            "queue_name": "string",
            "table_name": "string",
            "user_name": "string",
            "with_column_header": False,
        },
        output_path="string",
        type=0,
        description="string",
        import_labeled_enabled=False,
        label_format={
            "label_separator": "string",
            "text_label_separator": "string",
            "type": "string",
        },
        labels=[{
            "name": "string",
            "property_color": "string",
            "property_shape": "string",
            "property_shortcut": "string",
        }],
        modelarts_dataset_id="string",
        name="string",
        region="string",
        schemas=[{
            "name": "string",
            "type": "string",
        }],
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const modelartsDatasetResource = new flexibleengine.ModelartsDataset("modelartsDatasetResource", {
        dataSource: {
            clusterId: "string",
            dataType: 0,
            databaseName: "string",
            password: "string",
            path: "string",
            queueName: "string",
            tableName: "string",
            userName: "string",
            withColumnHeader: false,
        },
        outputPath: "string",
        type: 0,
        description: "string",
        importLabeledEnabled: false,
        labelFormat: {
            labelSeparator: "string",
            textLabelSeparator: "string",
            type: "string",
        },
        labels: [{
            name: "string",
            propertyColor: "string",
            propertyShape: "string",
            propertyShortcut: "string",
        }],
        modelartsDatasetId: "string",
        name: "string",
        region: "string",
        schemas: [{
            name: "string",
            type: "string",
        }],
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: flexibleengine:ModelartsDataset
    properties:
        dataSource:
            clusterId: string
            dataType: 0
            databaseName: string
            password: string
            path: string
            queueName: string
            tableName: string
            userName: string
            withColumnHeader: false
        description: string
        importLabeledEnabled: false
        labelFormat:
            labelSeparator: string
            textLabelSeparator: string
            type: string
        labels:
            - name: string
              propertyColor: string
              propertyShape: string
              propertyShortcut: string
        modelartsDatasetId: string
        name: string
        outputPath: string
        region: string
        schemas:
            - name: string
              type: string
        timeouts:
            create: string
            delete: string
        type: 0
    

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

    DataSource ModelartsDatasetDataSource
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    OutputPath string
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    Type double

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    Description string
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    ImportLabeledEnabled bool
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    LabelFormat ModelartsDatasetLabelFormat
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    Labels List<ModelartsDatasetLabel>
    Specifies labels information. Structure is documented below.
    ModelartsDatasetId string
    The resource ID.
    Name string
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    Region string
    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.
    Schemas List<ModelartsDatasetSchema>
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    Timeouts ModelartsDatasetTimeouts
    DataSource ModelartsDatasetDataSourceArgs
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    OutputPath string
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    Type float64

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    Description string
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    ImportLabeledEnabled bool
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    LabelFormat ModelartsDatasetLabelFormatArgs
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    Labels []ModelartsDatasetLabelArgs
    Specifies labels information. Structure is documented below.
    ModelartsDatasetId string
    The resource ID.
    Name string
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    Region string
    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.
    Schemas []ModelartsDatasetSchemaArgs
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    Timeouts ModelartsDatasetTimeoutsArgs
    dataSource ModelartsDatasetDataSource
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    outputPath String
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    type Double

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    description String
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    importLabeledEnabled Boolean
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    labelFormat ModelartsDatasetLabelFormat
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    labels List<ModelartsDatasetLabel>
    Specifies labels information. Structure is documented below.
    modelartsDatasetId String
    The resource ID.
    name String
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    region String
    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.
    schemas List<ModelartsDatasetSchema>
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    timeouts ModelartsDatasetTimeouts
    dataSource ModelartsDatasetDataSource
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    outputPath string
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    type number

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    description string
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    importLabeledEnabled boolean
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    labelFormat ModelartsDatasetLabelFormat
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    labels ModelartsDatasetLabel[]
    Specifies labels information. Structure is documented below.
    modelartsDatasetId string
    The resource ID.
    name string
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    region string
    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.
    schemas ModelartsDatasetSchema[]
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    timeouts ModelartsDatasetTimeouts
    data_source ModelartsDatasetDataSourceArgs
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    output_path str
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    type float

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    description str
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    import_labeled_enabled bool
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    label_format ModelartsDatasetLabelFormatArgs
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    labels Sequence[ModelartsDatasetLabelArgs]
    Specifies labels information. Structure is documented below.
    modelarts_dataset_id str
    The resource ID.
    name str
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    region str
    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.
    schemas Sequence[ModelartsDatasetSchemaArgs]
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    timeouts ModelartsDatasetTimeoutsArgs
    dataSource Property Map
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    outputPath String
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    type Number

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    description String
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    importLabeledEnabled Boolean
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    labelFormat Property Map
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    labels List<Property Map>
    Specifies labels information. Structure is documented below.
    modelartsDatasetId String
    The resource ID.
    name String
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    region String
    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.
    schemas List<Property Map>
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    timeouts Property Map

    Outputs

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

    CreatedAt string
    The dataset creation time.
    DataFormat string
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    Id string
    The provider-assigned unique ID for this managed resource.
    Status double
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    CreatedAt string
    The dataset creation time.
    DataFormat string
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    Id string
    The provider-assigned unique ID for this managed resource.
    Status float64
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    createdAt String
    The dataset creation time.
    dataFormat String
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    id String
    The provider-assigned unique ID for this managed resource.
    status Double
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    createdAt string
    The dataset creation time.
    dataFormat string
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    id string
    The provider-assigned unique ID for this managed resource.
    status number
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    created_at str
    The dataset creation time.
    data_format str
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    id str
    The provider-assigned unique ID for this managed resource.
    status float
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    createdAt String
    The dataset creation time.
    dataFormat String
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    id String
    The provider-assigned unique ID for this managed resource.
    status Number
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.

    Look up Existing ModelartsDataset Resource

    Get an existing ModelartsDataset 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?: ModelartsDatasetState, opts?: CustomResourceOptions): ModelartsDataset
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            data_format: Optional[str] = None,
            data_source: Optional[ModelartsDatasetDataSourceArgs] = None,
            description: Optional[str] = None,
            import_labeled_enabled: Optional[bool] = None,
            label_format: Optional[ModelartsDatasetLabelFormatArgs] = None,
            labels: Optional[Sequence[ModelartsDatasetLabelArgs]] = None,
            modelarts_dataset_id: Optional[str] = None,
            name: Optional[str] = None,
            output_path: Optional[str] = None,
            region: Optional[str] = None,
            schemas: Optional[Sequence[ModelartsDatasetSchemaArgs]] = None,
            status: Optional[float] = None,
            timeouts: Optional[ModelartsDatasetTimeoutsArgs] = None,
            type: Optional[float] = None) -> ModelartsDataset
    func GetModelartsDataset(ctx *Context, name string, id IDInput, state *ModelartsDatasetState, opts ...ResourceOption) (*ModelartsDataset, error)
    public static ModelartsDataset Get(string name, Input<string> id, ModelartsDatasetState? state, CustomResourceOptions? opts = null)
    public static ModelartsDataset get(String name, Output<String> id, ModelartsDatasetState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:ModelartsDataset    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:
    CreatedAt string
    The dataset creation time.
    DataFormat string
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    DataSource ModelartsDatasetDataSource
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    Description string
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    ImportLabeledEnabled bool
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    LabelFormat ModelartsDatasetLabelFormat
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    Labels List<ModelartsDatasetLabel>
    Specifies labels information. Structure is documented below.
    ModelartsDatasetId string
    The resource ID.
    Name string
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    OutputPath string
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    Region string
    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.
    Schemas List<ModelartsDatasetSchema>
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    Status double
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    Timeouts ModelartsDatasetTimeouts
    Type double

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    CreatedAt string
    The dataset creation time.
    DataFormat string
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    DataSource ModelartsDatasetDataSourceArgs
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    Description string
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    ImportLabeledEnabled bool
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    LabelFormat ModelartsDatasetLabelFormatArgs
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    Labels []ModelartsDatasetLabelArgs
    Specifies labels information. Structure is documented below.
    ModelartsDatasetId string
    The resource ID.
    Name string
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    OutputPath string
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    Region string
    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.
    Schemas []ModelartsDatasetSchemaArgs
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    Status float64
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    Timeouts ModelartsDatasetTimeoutsArgs
    Type float64

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    createdAt String
    The dataset creation time.
    dataFormat String
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    dataSource ModelartsDatasetDataSource
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    description String
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    importLabeledEnabled Boolean
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    labelFormat ModelartsDatasetLabelFormat
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    labels List<ModelartsDatasetLabel>
    Specifies labels information. Structure is documented below.
    modelartsDatasetId String
    The resource ID.
    name String
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    outputPath String
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    region String
    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.
    schemas List<ModelartsDatasetSchema>
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    status Double
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    timeouts ModelartsDatasetTimeouts
    type Double

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    createdAt string
    The dataset creation time.
    dataFormat string
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    dataSource ModelartsDatasetDataSource
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    description string
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    importLabeledEnabled boolean
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    labelFormat ModelartsDatasetLabelFormat
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    labels ModelartsDatasetLabel[]
    Specifies labels information. Structure is documented below.
    modelartsDatasetId string
    The resource ID.
    name string
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    outputPath string
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    region string
    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.
    schemas ModelartsDatasetSchema[]
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    status number
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    timeouts ModelartsDatasetTimeouts
    type number

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    created_at str
    The dataset creation time.
    data_format str
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    data_source ModelartsDatasetDataSourceArgs
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    description str
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    import_labeled_enabled bool
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    label_format ModelartsDatasetLabelFormatArgs
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    labels Sequence[ModelartsDatasetLabelArgs]
    Specifies labels information. Structure is documented below.
    modelarts_dataset_id str
    The resource ID.
    name str
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    output_path str
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    region str
    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.
    schemas Sequence[ModelartsDatasetSchemaArgs]
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    status float
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    timeouts ModelartsDatasetTimeoutsArgs
    type float

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    createdAt String
    The dataset creation time.
    dataFormat String
    dataset format. Valid values include: Default, CarbonData: Carbon format(Supported only for table type datasets).
    dataSource Property Map
    Specifies the data sources which be used to imported the source data (such as pictures/files/audio, etc.) in this directory and subdirectories to the dataset. Structure is documented below. Changing this parameter will create a new resource.
    description String
    Specifies the description of dataset. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'.
    importLabeledEnabled Boolean
    Specifies whether to import labeled files. Default value is true. Changing this parameter will create a new resource.
    labelFormat Property Map
    Specifies the custom format information of labeled files when import labeled files for Text classification. Structure is documented below. Changing this parameter will create a new resource.
    labels List<Property Map>
    Specifies labels information. Structure is documented below.
    modelartsDatasetId String
    The resource ID.
    name String
    Specifies the name of the dataset. The name consists of 1 to 100 characters, starting with a letter. Only letters, chinese charactors, digits underscores (_) and hyphens (-) are allowed.
    outputPath String
    Specifies the OBS path for storing output files such as labeled files. The path cannot be the same as the import path or subdirectory of the import path. Changing this parameter will create a new resource.
    region String
    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.
    schemas List<Property Map>
    Specifies the schema information of source data when type is 400. Structure is documented below. Changing this parameter will create a new resource.
    status Number
    Dataset status. Valid values are as follows:

    • 0: Creating.
    • 1: Completed.
    • 2: Deleting.
    • 3: Deleted.
    • 4: Exception.
    • 5: Syncing.
    • 6: Releasing.
    • 7: Version switching.
    • 8: Importing.
    timeouts Property Map
    type Number

    Specifies the type of dataset. The options are as follows:

    • 0: Image classification, supported formats: .jpg, .png, .jpeg, .bmp.
    • 1: Object detection, supported formats: .jpg, .png, .jpeg, .bmp.
    • 3: Image segmentation, supported formats: .jpg, .png, .jpeg, .bmp.
    • 100: Text classification, supported formats: .txt, .csv.
    • 200: Sound classification, Supported formats: .wav.
    • 400: Table type, supported formats: Carbon type.
    • 600: Video, supported formats: .mp4.
    • 900: Free format.

    Changing this parameter will create a new resource.

    Supporting Types

    ModelartsDatasetDataSource, ModelartsDatasetDataSourceArgs

    ClusterId string
    Specifies the cluster ID of DWS/MRS when data_type is 1 or 4. Changing this parameter will create a new resource.
    DataType double

    Specifies the type of data source. The options are as follows:

    • 0: OBS.
    • 1: GaussDB(DWS).
    • 2: DLI.
    • 4: MRS.

    Changing this parameter will create a new resource.

    DatabaseName string
    Specifies the database name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    Password string
    Specifies the password of database when data_type is 1. Changing this parameter will create a new resource.
    Path string
    Specifies the OBS path when data_type is 0 or the hdsf path when data_type is 4. All the file in this directory and subdirectories will be which be imported to the dataset. Changing this parameter will create a new resource.
    QueueName string
    Specifies the queue name of DLI when data_type is 2. Changing this parameter will create a new resource.
    TableName string
    Specifies the table name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    UserName string
    Specifies the user name of databse when data_type is 1. Changing this parameter will create a new resource.
    WithColumnHeader bool
    Specifies whether the data contains table header when the type of dataset is 400(Table type). Default value is true. Changing this parameter will create a new resource.
    ClusterId string
    Specifies the cluster ID of DWS/MRS when data_type is 1 or 4. Changing this parameter will create a new resource.
    DataType float64

    Specifies the type of data source. The options are as follows:

    • 0: OBS.
    • 1: GaussDB(DWS).
    • 2: DLI.
    • 4: MRS.

    Changing this parameter will create a new resource.

    DatabaseName string
    Specifies the database name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    Password string
    Specifies the password of database when data_type is 1. Changing this parameter will create a new resource.
    Path string
    Specifies the OBS path when data_type is 0 or the hdsf path when data_type is 4. All the file in this directory and subdirectories will be which be imported to the dataset. Changing this parameter will create a new resource.
    QueueName string
    Specifies the queue name of DLI when data_type is 2. Changing this parameter will create a new resource.
    TableName string
    Specifies the table name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    UserName string
    Specifies the user name of databse when data_type is 1. Changing this parameter will create a new resource.
    WithColumnHeader bool
    Specifies whether the data contains table header when the type of dataset is 400(Table type). Default value is true. Changing this parameter will create a new resource.
    clusterId String
    Specifies the cluster ID of DWS/MRS when data_type is 1 or 4. Changing this parameter will create a new resource.
    dataType Double

    Specifies the type of data source. The options are as follows:

    • 0: OBS.
    • 1: GaussDB(DWS).
    • 2: DLI.
    • 4: MRS.

    Changing this parameter will create a new resource.

    databaseName String
    Specifies the database name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    password String
    Specifies the password of database when data_type is 1. Changing this parameter will create a new resource.
    path String
    Specifies the OBS path when data_type is 0 or the hdsf path when data_type is 4. All the file in this directory and subdirectories will be which be imported to the dataset. Changing this parameter will create a new resource.
    queueName String
    Specifies the queue name of DLI when data_type is 2. Changing this parameter will create a new resource.
    tableName String
    Specifies the table name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    userName String
    Specifies the user name of databse when data_type is 1. Changing this parameter will create a new resource.
    withColumnHeader Boolean
    Specifies whether the data contains table header when the type of dataset is 400(Table type). Default value is true. Changing this parameter will create a new resource.
    clusterId string
    Specifies the cluster ID of DWS/MRS when data_type is 1 or 4. Changing this parameter will create a new resource.
    dataType number

    Specifies the type of data source. The options are as follows:

    • 0: OBS.
    • 1: GaussDB(DWS).
    • 2: DLI.
    • 4: MRS.

    Changing this parameter will create a new resource.

    databaseName string
    Specifies the database name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    password string
    Specifies the password of database when data_type is 1. Changing this parameter will create a new resource.
    path string
    Specifies the OBS path when data_type is 0 or the hdsf path when data_type is 4. All the file in this directory and subdirectories will be which be imported to the dataset. Changing this parameter will create a new resource.
    queueName string
    Specifies the queue name of DLI when data_type is 2. Changing this parameter will create a new resource.
    tableName string
    Specifies the table name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    userName string
    Specifies the user name of databse when data_type is 1. Changing this parameter will create a new resource.
    withColumnHeader boolean
    Specifies whether the data contains table header when the type of dataset is 400(Table type). Default value is true. Changing this parameter will create a new resource.
    cluster_id str
    Specifies the cluster ID of DWS/MRS when data_type is 1 or 4. Changing this parameter will create a new resource.
    data_type float

    Specifies the type of data source. The options are as follows:

    • 0: OBS.
    • 1: GaussDB(DWS).
    • 2: DLI.
    • 4: MRS.

    Changing this parameter will create a new resource.

    database_name str
    Specifies the database name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    password str
    Specifies the password of database when data_type is 1. Changing this parameter will create a new resource.
    path str
    Specifies the OBS path when data_type is 0 or the hdsf path when data_type is 4. All the file in this directory and subdirectories will be which be imported to the dataset. Changing this parameter will create a new resource.
    queue_name str
    Specifies the queue name of DLI when data_type is 2. Changing this parameter will create a new resource.
    table_name str
    Specifies the table name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    user_name str
    Specifies the user name of databse when data_type is 1. Changing this parameter will create a new resource.
    with_column_header bool
    Specifies whether the data contains table header when the type of dataset is 400(Table type). Default value is true. Changing this parameter will create a new resource.
    clusterId String
    Specifies the cluster ID of DWS/MRS when data_type is 1 or 4. Changing this parameter will create a new resource.
    dataType Number

    Specifies the type of data source. The options are as follows:

    • 0: OBS.
    • 1: GaussDB(DWS).
    • 2: DLI.
    • 4: MRS.

    Changing this parameter will create a new resource.

    databaseName String
    Specifies the database name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    password String
    Specifies the password of database when data_type is 1. Changing this parameter will create a new resource.
    path String
    Specifies the OBS path when data_type is 0 or the hdsf path when data_type is 4. All the file in this directory and subdirectories will be which be imported to the dataset. Changing this parameter will create a new resource.
    queueName String
    Specifies the queue name of DLI when data_type is 2. Changing this parameter will create a new resource.
    tableName String
    Specifies the table name of DWS/DLI when data_type is 1 or 2. Changing this parameter will create a new resource.
    userName String
    Specifies the user name of databse when data_type is 1. Changing this parameter will create a new resource.
    withColumnHeader Boolean
    Specifies whether the data contains table header when the type of dataset is 400(Table type). Default value is true. Changing this parameter will create a new resource.

    ModelartsDatasetLabel, ModelartsDatasetLabelArgs

    Name string
    Specifies the name of label.
    PropertyColor string
    Specifies color of label.
    PropertyShape string
    Specifies shape of label. Valid values include: bndbox, polygon, circle, line, dashed, point, polyline.
    PropertyShortcut string
    Specifies shortcut of label.
    Name string
    Specifies the name of label.
    PropertyColor string
    Specifies color of label.
    PropertyShape string
    Specifies shape of label. Valid values include: bndbox, polygon, circle, line, dashed, point, polyline.
    PropertyShortcut string
    Specifies shortcut of label.
    name String
    Specifies the name of label.
    propertyColor String
    Specifies color of label.
    propertyShape String
    Specifies shape of label. Valid values include: bndbox, polygon, circle, line, dashed, point, polyline.
    propertyShortcut String
    Specifies shortcut of label.
    name string
    Specifies the name of label.
    propertyColor string
    Specifies color of label.
    propertyShape string
    Specifies shape of label. Valid values include: bndbox, polygon, circle, line, dashed, point, polyline.
    propertyShortcut string
    Specifies shortcut of label.
    name str
    Specifies the name of label.
    property_color str
    Specifies color of label.
    property_shape str
    Specifies shape of label. Valid values include: bndbox, polygon, circle, line, dashed, point, polyline.
    property_shortcut str
    Specifies shortcut of label.
    name String
    Specifies the name of label.
    propertyColor String
    Specifies color of label.
    propertyShape String
    Specifies shape of label. Valid values include: bndbox, polygon, circle, line, dashed, point, polyline.
    propertyShortcut String
    Specifies shortcut of label.

    ModelartsDatasetLabelFormat, ModelartsDatasetLabelFormatArgs

    LabelSeparator string
    Specifies the separator between label and label. Changing this parameter will create a new resource.
    TextLabelSeparator string
    Specifies the separator between text and label. Changing this parameter will create a new resource.
    Type string

    Specifies Label type for text classification. The optional values are as follows:

    • 0: Label and text are separated, distinguished by the suffix _result. For example: the text file is abc.txt, and the label file is "abc_result.txt.
    • 1: Default, labels and text are in one file, separated by a delimiter. The separator between text and labels, the separator between label and label can be specified by label_separato and text_label_separator.

    Default value is 1.

    LabelSeparator string
    Specifies the separator between label and label. Changing this parameter will create a new resource.
    TextLabelSeparator string
    Specifies the separator between text and label. Changing this parameter will create a new resource.
    Type string

    Specifies Label type for text classification. The optional values are as follows:

    • 0: Label and text are separated, distinguished by the suffix _result. For example: the text file is abc.txt, and the label file is "abc_result.txt.
    • 1: Default, labels and text are in one file, separated by a delimiter. The separator between text and labels, the separator between label and label can be specified by label_separato and text_label_separator.

    Default value is 1.

    labelSeparator String
    Specifies the separator between label and label. Changing this parameter will create a new resource.
    textLabelSeparator String
    Specifies the separator between text and label. Changing this parameter will create a new resource.
    type String

    Specifies Label type for text classification. The optional values are as follows:

    • 0: Label and text are separated, distinguished by the suffix _result. For example: the text file is abc.txt, and the label file is "abc_result.txt.
    • 1: Default, labels and text are in one file, separated by a delimiter. The separator between text and labels, the separator between label and label can be specified by label_separato and text_label_separator.

    Default value is 1.

    labelSeparator string
    Specifies the separator between label and label. Changing this parameter will create a new resource.
    textLabelSeparator string
    Specifies the separator between text and label. Changing this parameter will create a new resource.
    type string

    Specifies Label type for text classification. The optional values are as follows:

    • 0: Label and text are separated, distinguished by the suffix _result. For example: the text file is abc.txt, and the label file is "abc_result.txt.
    • 1: Default, labels and text are in one file, separated by a delimiter. The separator between text and labels, the separator between label and label can be specified by label_separato and text_label_separator.

    Default value is 1.

    label_separator str
    Specifies the separator between label and label. Changing this parameter will create a new resource.
    text_label_separator str
    Specifies the separator between text and label. Changing this parameter will create a new resource.
    type str

    Specifies Label type for text classification. The optional values are as follows:

    • 0: Label and text are separated, distinguished by the suffix _result. For example: the text file is abc.txt, and the label file is "abc_result.txt.
    • 1: Default, labels and text are in one file, separated by a delimiter. The separator between text and labels, the separator between label and label can be specified by label_separato and text_label_separator.

    Default value is 1.

    labelSeparator String
    Specifies the separator between label and label. Changing this parameter will create a new resource.
    textLabelSeparator String
    Specifies the separator between text and label. Changing this parameter will create a new resource.
    type String

    Specifies Label type for text classification. The optional values are as follows:

    • 0: Label and text are separated, distinguished by the suffix _result. For example: the text file is abc.txt, and the label file is "abc_result.txt.
    • 1: Default, labels and text are in one file, separated by a delimiter. The separator between text and labels, the separator between label and label can be specified by label_separato and text_label_separator.

    Default value is 1.

    ModelartsDatasetSchema, ModelartsDatasetSchemaArgs

    Name string
    Specifies the field name. Changing this parameter will create a new resource.
    Type string
    Specifies the field type. Valid values include: String, Short, Int, Long, Double, Float, Byte, Date, Timestamp, Bool. Changing this parameter will create a new resource.
    Name string
    Specifies the field name. Changing this parameter will create a new resource.
    Type string
    Specifies the field type. Valid values include: String, Short, Int, Long, Double, Float, Byte, Date, Timestamp, Bool. Changing this parameter will create a new resource.
    name String
    Specifies the field name. Changing this parameter will create a new resource.
    type String
    Specifies the field type. Valid values include: String, Short, Int, Long, Double, Float, Byte, Date, Timestamp, Bool. Changing this parameter will create a new resource.
    name string
    Specifies the field name. Changing this parameter will create a new resource.
    type string
    Specifies the field type. Valid values include: String, Short, Int, Long, Double, Float, Byte, Date, Timestamp, Bool. Changing this parameter will create a new resource.
    name str
    Specifies the field name. Changing this parameter will create a new resource.
    type str
    Specifies the field type. Valid values include: String, Short, Int, Long, Double, Float, Byte, Date, Timestamp, Bool. Changing this parameter will create a new resource.
    name String
    Specifies the field name. Changing this parameter will create a new resource.
    type String
    Specifies the field type. Valid values include: String, Short, Int, Long, Double, Float, Byte, Date, Timestamp, Bool. Changing this parameter will create a new resource.

    ModelartsDatasetTimeouts, ModelartsDatasetTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    The datasets can be imported by id.

    $ pulumi import flexibleengine:index/modelartsDataset:ModelartsDataset test yiROKoTTjtwjvP71yLG
    

    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: data_source.0.path,

    data_source.0.queue_name, data_source.0.database_name, data_source.0.table_name, data_source.0.cluster_id,

    data_source.0.user_name and data_source.0.password. It is generally recommended running pulumi preview after

    importing a dataset. You can then decide if changes should be applied to the dataset, or the resource definition

    should be updated to align with the dataset. Also you can ignore changes as below.

    hcl

    resource “flexibleengine_modelarts_dataset” “test” {

    ...
    

    lifecycle {

    ignore_changes = [
    
      data_source.0.path, data_source.0.queue_name, data_source.0.database_name, data_source.0.table_name,
    
      data_source.0.cluster_id, data_source.0.user_name, data_source.0.password,
    
    ]
    

    }

    }

    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