flexibleengine.ModelartsDataset
Explore with Pulumi AI
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:
- Data
Source ModelartsDataset Data Source - 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 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.
- 0: Image classification, supported formats:
- Description string
- Specifies the description of dataset. It contains a maximum of 256 characters and
cannot contain special characters
!<>=&"'
. - Import
Labeled boolEnabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - Label
Format ModelartsDataset Label Format - 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<Modelarts
Dataset Label> - Specifies labels information. Structure is documented below.
- Modelarts
Dataset stringId - 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<Modelarts
Dataset Schema> - Specifies the schema information of source data when
type
is400
. Structure is documented below. Changing this parameter will create a new resource. - Timeouts
Modelarts
Dataset Timeouts
- Data
Source ModelartsDataset Data Source Args - 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 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.
- 0: Image classification, supported formats:
- Description string
- Specifies the description of dataset. It contains a maximum of 256 characters and
cannot contain special characters
!<>=&"'
. - Import
Labeled boolEnabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - Label
Format ModelartsDataset Label Format Args - 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
[]Modelarts
Dataset Label Args - Specifies labels information. Structure is documented below.
- Modelarts
Dataset stringId - 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
[]Modelarts
Dataset Schema Args - Specifies the schema information of source data when
type
is400
. Structure is documented below. Changing this parameter will create a new resource. - Timeouts
Modelarts
Dataset Timeouts Args
- data
Source ModelartsDataset Data Source - 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 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.
- 0: Image classification, supported formats:
- description String
- Specifies the description of dataset. It contains a maximum of 256 characters and
cannot contain special characters
!<>=&"'
. - import
Labeled BooleanEnabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - label
Format ModelartsDataset Label Format - 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<Modelarts
Dataset Label> - Specifies labels information. Structure is documented below.
- modelarts
Dataset StringId - 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<Modelarts
Dataset Schema> - Specifies the schema information of source data when
type
is400
. Structure is documented below. Changing this parameter will create a new resource. - timeouts
Modelarts
Dataset Timeouts
- data
Source ModelartsDataset Data Source - 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 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.
- 0: Image classification, supported formats:
- description string
- Specifies the description of dataset. It contains a maximum of 256 characters and
cannot contain special characters
!<>=&"'
. - import
Labeled booleanEnabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - label
Format ModelartsDataset Label Format - 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
Modelarts
Dataset Label[] - Specifies labels information. Structure is documented below.
- modelarts
Dataset stringId - 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
Modelarts
Dataset Schema[] - Specifies the schema information of source data when
type
is400
. Structure is documented below. Changing this parameter will create a new resource. - timeouts
Modelarts
Dataset Timeouts
- data_
source ModelartsDataset Data Source Args - 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.
- 0: Image classification, supported formats:
- description str
- Specifies the description of dataset. It contains a maximum of 256 characters and
cannot contain special characters
!<>=&"'
. - import_
labeled_ boolenabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - label_
format ModelartsDataset Label Format Args - 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[Modelarts
Dataset Label Args] - Specifies labels information. Structure is documented below.
- modelarts_
dataset_ strid - 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[Modelarts
Dataset Schema Args] - Specifies the schema information of source data when
type
is400
. Structure is documented below. Changing this parameter will create a new resource. - timeouts
Modelarts
Dataset Timeouts Args
- data
Source 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.
- output
Path 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.
- 0: Image classification, supported formats:
- description String
- Specifies the description of dataset. It contains a maximum of 256 characters and
cannot contain special characters
!<>=&"'
. - import
Labeled BooleanEnabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - label
Format 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.
- modelarts
Dataset StringId - 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
is400
. 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:
- Created
At string - The dataset creation time.
- Data
Format 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.
- Created
At string - The dataset creation time.
- Data
Format 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.
- created
At String - The dataset creation time.
- data
Format 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.
- created
At string - The dataset creation time.
- data
Format 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.
- created
At String - The dataset creation time.
- data
Format 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.
- Created
At string - The dataset creation time.
- Data
Format string - dataset format. Valid values include:
Default
,CarbonData
: Carbon format(Supported only for table type datasets). - Data
Source ModelartsDataset Data Source - 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
!<>=&"'
. - Import
Labeled boolEnabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - Label
Format ModelartsDataset Label Format - 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<Modelarts
Dataset Label> - Specifies labels information. Structure is documented below.
- Modelarts
Dataset stringId - 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.
- Output
Path 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<Modelarts
Dataset Schema> - Specifies the schema information of source data when
type
is400
. 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
Modelarts
Dataset Timeouts - 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.
- 0: Image classification, supported formats:
- Created
At string - The dataset creation time.
- Data
Format string - dataset format. Valid values include:
Default
,CarbonData
: Carbon format(Supported only for table type datasets). - Data
Source ModelartsDataset Data Source Args - 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
!<>=&"'
. - Import
Labeled boolEnabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - Label
Format ModelartsDataset Label Format Args - 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
[]Modelarts
Dataset Label Args - Specifies labels information. Structure is documented below.
- Modelarts
Dataset stringId - 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.
- Output
Path 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
[]Modelarts
Dataset Schema Args - Specifies the schema information of source data when
type
is400
. 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
Modelarts
Dataset Timeouts Args - 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.
- 0: Image classification, supported formats:
- created
At String - The dataset creation time.
- data
Format String - dataset format. Valid values include:
Default
,CarbonData
: Carbon format(Supported only for table type datasets). - data
Source ModelartsDataset Data Source - 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
!<>=&"'
. - import
Labeled BooleanEnabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - label
Format ModelartsDataset Label Format - 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<Modelarts
Dataset Label> - Specifies labels information. Structure is documented below.
- modelarts
Dataset StringId - 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.
- output
Path 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<Modelarts
Dataset Schema> - Specifies the schema information of source data when
type
is400
. 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
Modelarts
Dataset Timeouts - 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.
- 0: Image classification, supported formats:
- created
At string - The dataset creation time.
- data
Format string - dataset format. Valid values include:
Default
,CarbonData
: Carbon format(Supported only for table type datasets). - data
Source ModelartsDataset Data Source - 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
!<>=&"'
. - import
Labeled booleanEnabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - label
Format ModelartsDataset Label Format - 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
Modelarts
Dataset Label[] - Specifies labels information. Structure is documented below.
- modelarts
Dataset stringId - 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.
- output
Path 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
Modelarts
Dataset Schema[] - Specifies the schema information of source data when
type
is400
. 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
Modelarts
Dataset Timeouts - 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.
- 0: Image classification, supported formats:
- 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 ModelartsDataset Data Source Args - 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_ boolenabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - label_
format ModelartsDataset Label Format Args - 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[Modelarts
Dataset Label Args] - Specifies labels information. Structure is documented below.
- modelarts_
dataset_ strid - 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[Modelarts
Dataset Schema Args] - Specifies the schema information of source data when
type
is400
. 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
Modelarts
Dataset Timeouts Args - 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.
- 0: Image classification, supported formats:
- created
At String - The dataset creation time.
- data
Format String - dataset format. Valid values include:
Default
,CarbonData
: Carbon format(Supported only for table type datasets). - data
Source 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
!<>=&"'
. - import
Labeled BooleanEnabled - Specifies whether to import labeled files.
Default value is
true
. Changing this parameter will create a new resource. - label
Format 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.
- modelarts
Dataset StringId - 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.
- output
Path 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
is400
. 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.
- 0: Image classification, supported formats:
Supporting Types
ModelartsDatasetDataSource, ModelartsDatasetDataSourceArgs
- Cluster
Id string - Specifies the cluster ID of DWS/MRS when
data_type
is1
or4
. Changing this parameter will create a new resource. - Data
Type 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.
- Database
Name string - Specifies the database name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - Password string
- Specifies the password of database when
data_type
is1
. Changing this parameter will create a new resource. - Path string
- Specifies the OBS path when
data_type
is0
or the hdsf path whendata_type
is4
. 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 string - Specifies the queue name of DLI when
data_type
is2
. Changing this parameter will create a new resource. - Table
Name string - Specifies the table name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - User
Name string - Specifies the user name of databse when
data_type
is1
. Changing this parameter will create a new resource. - With
Column boolHeader - Specifies whether the data contains table header when the type
of dataset is
400
(Table type). Default value istrue
. Changing this parameter will create a new resource.
- Cluster
Id string - Specifies the cluster ID of DWS/MRS when
data_type
is1
or4
. Changing this parameter will create a new resource. - Data
Type 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.
- Database
Name string - Specifies the database name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - Password string
- Specifies the password of database when
data_type
is1
. Changing this parameter will create a new resource. - Path string
- Specifies the OBS path when
data_type
is0
or the hdsf path whendata_type
is4
. 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 string - Specifies the queue name of DLI when
data_type
is2
. Changing this parameter will create a new resource. - Table
Name string - Specifies the table name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - User
Name string - Specifies the user name of databse when
data_type
is1
. Changing this parameter will create a new resource. - With
Column boolHeader - Specifies whether the data contains table header when the type
of dataset is
400
(Table type). Default value istrue
. Changing this parameter will create a new resource.
- cluster
Id String - Specifies the cluster ID of DWS/MRS when
data_type
is1
or4
. Changing this parameter will create a new resource. - data
Type 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.
- database
Name String - Specifies the database name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - password String
- Specifies the password of database when
data_type
is1
. Changing this parameter will create a new resource. - path String
- Specifies the OBS path when
data_type
is0
or the hdsf path whendata_type
is4
. 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 String - Specifies the queue name of DLI when
data_type
is2
. Changing this parameter will create a new resource. - table
Name String - Specifies the table name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - user
Name String - Specifies the user name of databse when
data_type
is1
. Changing this parameter will create a new resource. - with
Column BooleanHeader - Specifies whether the data contains table header when the type
of dataset is
400
(Table type). Default value istrue
. Changing this parameter will create a new resource.
- cluster
Id string - Specifies the cluster ID of DWS/MRS when
data_type
is1
or4
. Changing this parameter will create a new resource. - data
Type 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.
- database
Name string - Specifies the database name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - password string
- Specifies the password of database when
data_type
is1
. Changing this parameter will create a new resource. - path string
- Specifies the OBS path when
data_type
is0
or the hdsf path whendata_type
is4
. 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 string - Specifies the queue name of DLI when
data_type
is2
. Changing this parameter will create a new resource. - table
Name string - Specifies the table name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - user
Name string - Specifies the user name of databse when
data_type
is1
. Changing this parameter will create a new resource. - with
Column booleanHeader - Specifies whether the data contains table header when the type
of dataset is
400
(Table type). Default value istrue
. Changing this parameter will create a new resource.
- cluster_
id str - Specifies the cluster ID of DWS/MRS when
data_type
is1
or4
. 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
is1
or2
. Changing this parameter will create a new resource. - password str
- Specifies the password of database when
data_type
is1
. Changing this parameter will create a new resource. - path str
- Specifies the OBS path when
data_type
is0
or the hdsf path whendata_type
is4
. 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
is2
. Changing this parameter will create a new resource. - table_
name str - Specifies the table name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - user_
name str - Specifies the user name of databse when
data_type
is1
. Changing this parameter will create a new resource. - with_
column_ boolheader - Specifies whether the data contains table header when the type
of dataset is
400
(Table type). Default value istrue
. Changing this parameter will create a new resource.
- cluster
Id String - Specifies the cluster ID of DWS/MRS when
data_type
is1
or4
. Changing this parameter will create a new resource. - data
Type 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.
- database
Name String - Specifies the database name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - password String
- Specifies the password of database when
data_type
is1
. Changing this parameter will create a new resource. - path String
- Specifies the OBS path when
data_type
is0
or the hdsf path whendata_type
is4
. 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 String - Specifies the queue name of DLI when
data_type
is2
. Changing this parameter will create a new resource. - table
Name String - Specifies the table name of DWS/DLI when
data_type
is1
or2
. Changing this parameter will create a new resource. - user
Name String - Specifies the user name of databse when
data_type
is1
. Changing this parameter will create a new resource. - with
Column BooleanHeader - Specifies whether the data contains table header when the type
of dataset is
400
(Table type). Default value istrue
. Changing this parameter will create a new resource.
ModelartsDatasetLabel, ModelartsDatasetLabelArgs
- Name string
- Specifies the name of label.
- Property
Color string - Specifies color of label.
- Property
Shape string - Specifies shape of label. Valid values include:
bndbox
,polygon
,circle
,line
,dashed
,point
,polyline
. - Property
Shortcut string - Specifies shortcut of label.
- Name string
- Specifies the name of label.
- Property
Color string - Specifies color of label.
- Property
Shape string - Specifies shape of label. Valid values include:
bndbox
,polygon
,circle
,line
,dashed
,point
,polyline
. - Property
Shortcut string - Specifies shortcut of label.
- name String
- Specifies the name of label.
- property
Color String - Specifies color of label.
- property
Shape String - Specifies shape of label. Valid values include:
bndbox
,polygon
,circle
,line
,dashed
,point
,polyline
. - property
Shortcut String - Specifies shortcut of label.
- name string
- Specifies the name of label.
- property
Color string - Specifies color of label.
- property
Shape string - Specifies shape of label. Valid values include:
bndbox
,polygon
,circle
,line
,dashed
,point
,polyline
. - property
Shortcut 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.
- property
Color String - Specifies color of label.
- property
Shape String - Specifies shape of label. Valid values include:
bndbox
,polygon
,circle
,line
,dashed
,point
,polyline
. - property
Shortcut String - Specifies shortcut of label.
ModelartsDatasetLabelFormat, ModelartsDatasetLabelFormatArgs
- Label
Separator string - Specifies the separator between label and label. Changing this parameter will create a new resource.
- Text
Label stringSeparator - 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 isabc.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
andtext_label_separator
.
Default value is
1
.- 0: Label and text are separated, distinguished by the suffix
- Label
Separator string - Specifies the separator between label and label. Changing this parameter will create a new resource.
- Text
Label stringSeparator - 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 isabc.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
andtext_label_separator
.
Default value is
1
.- 0: Label and text are separated, distinguished by the suffix
- label
Separator String - Specifies the separator between label and label. Changing this parameter will create a new resource.
- text
Label StringSeparator - 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 isabc.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
andtext_label_separator
.
Default value is
1
.- 0: Label and text are separated, distinguished by the suffix
- label
Separator string - Specifies the separator between label and label. Changing this parameter will create a new resource.
- text
Label stringSeparator - 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 isabc.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
andtext_label_separator
.
Default value is
1
.- 0: Label and text are separated, distinguished by the suffix
- label_
separator str - Specifies the separator between label and label. Changing this parameter will create a new resource.
- text_
label_ strseparator - 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 isabc.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
andtext_label_separator
.
Default value is
1
.- 0: Label and text are separated, distinguished by the suffix
- label
Separator String - Specifies the separator between label and label. Changing this parameter will create a new resource.
- text
Label StringSeparator - 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 isabc.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
andtext_label_separator
.
Default value is
1
.- 0: Label and text are separated, distinguished by the suffix
ModelartsDatasetSchema, ModelartsDatasetSchemaArgs
ModelartsDatasetTimeouts, ModelartsDatasetTimeoutsArgs
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.