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

flexibleengine.ModelartsDatasetVersion

Explore with Pulumi AI

Manages ModelArts dataset version resource within FlexibleEngine.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const config = new pulumi.Config();
const datasetId = config.requireObject("datasetId");
const v001 = new flexibleengine.ModelartsDatasetVersion("v001", {
    datasetId: datasetId,
    description: "Created by demo",
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

config = pulumi.Config()
dataset_id = config.require_object("datasetId")
v001 = flexibleengine.ModelartsDatasetVersion("v001",
    dataset_id=dataset_id,
    description="Created by demo")
Copy
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, "")
		datasetId := cfg.RequireObject("datasetId")
		_, err := flexibleengine.NewModelartsDatasetVersion(ctx, "v001", &flexibleengine.ModelartsDatasetVersionArgs{
			DatasetId:   pulumi.Any(datasetId),
			Description: pulumi.String("Created by demo"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var datasetId = config.RequireObject<dynamic>("datasetId");
    var v001 = new Flexibleengine.ModelartsDatasetVersion("v001", new()
    {
        DatasetId = datasetId,
        Description = "Created by demo",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ModelartsDatasetVersion;
import com.pulumi.flexibleengine.ModelartsDatasetVersionArgs;
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 datasetId = config.get("datasetId");
        var v001 = new ModelartsDatasetVersion("v001", ModelartsDatasetVersionArgs.builder()
            .datasetId(datasetId)
            .description("Created by demo")
            .build());

    }
}
Copy
configuration:
  datasetId:
    type: dynamic
resources:
  v001:
    type: flexibleengine:ModelartsDatasetVersion
    properties:
      datasetId: ${datasetId}
      description: Created by demo
Copy

Create ModelartsDatasetVersion Resource

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

Constructor syntax

new ModelartsDatasetVersion(name: string, args: ModelartsDatasetVersionArgs, opts?: CustomResourceOptions);
@overload
def ModelartsDatasetVersion(resource_name: str,
                            args: ModelartsDatasetVersionArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def ModelartsDatasetVersion(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            dataset_id: Optional[str] = None,
                            description: Optional[str] = None,
                            hard_example: Optional[bool] = None,
                            modelarts_dataset_version_id: Optional[str] = None,
                            name: Optional[str] = None,
                            region: Optional[str] = None,
                            split_ratio: Optional[str] = None,
                            timeouts: Optional[ModelartsDatasetVersionTimeoutsArgs] = None)
func NewModelartsDatasetVersion(ctx *Context, name string, args ModelartsDatasetVersionArgs, opts ...ResourceOption) (*ModelartsDatasetVersion, error)
public ModelartsDatasetVersion(string name, ModelartsDatasetVersionArgs args, CustomResourceOptions? opts = null)
public ModelartsDatasetVersion(String name, ModelartsDatasetVersionArgs args)
public ModelartsDatasetVersion(String name, ModelartsDatasetVersionArgs args, CustomResourceOptions options)
type: flexibleengine:ModelartsDatasetVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ModelartsDatasetVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ModelartsDatasetVersionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ModelartsDatasetVersionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ModelartsDatasetVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ModelartsDatasetVersionArgs
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 modelartsDatasetVersionResource = new Flexibleengine.ModelartsDatasetVersion("modelartsDatasetVersionResource", new()
{
    DatasetId = "string",
    Description = "string",
    HardExample = false,
    ModelartsDatasetVersionId = "string",
    Name = "string",
    Region = "string",
    SplitRatio = "string",
    Timeouts = new Flexibleengine.Inputs.ModelartsDatasetVersionTimeoutsArgs
    {
        Create = "string",
    },
});
Copy
example, err := flexibleengine.NewModelartsDatasetVersion(ctx, "modelartsDatasetVersionResource", &flexibleengine.ModelartsDatasetVersionArgs{
DatasetId: pulumi.String("string"),
Description: pulumi.String("string"),
HardExample: pulumi.Bool(false),
ModelartsDatasetVersionId: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
SplitRatio: pulumi.String("string"),
Timeouts: &.ModelartsDatasetVersionTimeoutsArgs{
Create: pulumi.String("string"),
},
})
Copy
var modelartsDatasetVersionResource = new ModelartsDatasetVersion("modelartsDatasetVersionResource", ModelartsDatasetVersionArgs.builder()
    .datasetId("string")
    .description("string")
    .hardExample(false)
    .modelartsDatasetVersionId("string")
    .name("string")
    .region("string")
    .splitRatio("string")
    .timeouts(ModelartsDatasetVersionTimeoutsArgs.builder()
        .create("string")
        .build())
    .build());
Copy
modelarts_dataset_version_resource = flexibleengine.ModelartsDatasetVersion("modelartsDatasetVersionResource",
    dataset_id="string",
    description="string",
    hard_example=False,
    modelarts_dataset_version_id="string",
    name="string",
    region="string",
    split_ratio="string",
    timeouts={
        "create": "string",
    })
Copy
const modelartsDatasetVersionResource = new flexibleengine.ModelartsDatasetVersion("modelartsDatasetVersionResource", {
    datasetId: "string",
    description: "string",
    hardExample: false,
    modelartsDatasetVersionId: "string",
    name: "string",
    region: "string",
    splitRatio: "string",
    timeouts: {
        create: "string",
    },
});
Copy
type: flexibleengine:ModelartsDatasetVersion
properties:
    datasetId: string
    description: string
    hardExample: false
    modelartsDatasetVersionId: string
    name: string
    region: string
    splitRatio: string
    timeouts:
        create: string
Copy

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

DatasetId This property is required. string
Specifies the ID of dataset. Changing this parameter will create a new resource.
Description string
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
HardExample bool
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
ModelartsDatasetVersionId string
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
Name string
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
SplitRatio string

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

Timeouts ModelartsDatasetVersionTimeouts
DatasetId This property is required. string
Specifies the ID of dataset. Changing this parameter will create a new resource.
Description string
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
HardExample bool
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
ModelartsDatasetVersionId string
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
Name string
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
SplitRatio string

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

Timeouts ModelartsDatasetVersionTimeoutsArgs
datasetId This property is required. String
Specifies the ID of dataset. Changing this parameter will create a new resource.
description String
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
hardExample Boolean
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
modelartsDatasetVersionId String
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
name String
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
splitRatio String

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

timeouts ModelartsDatasetVersionTimeouts
datasetId This property is required. string
Specifies the ID of dataset. Changing this parameter will create a new resource.
description string
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
hardExample boolean
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
modelartsDatasetVersionId string
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
name string
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
splitRatio string

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

timeouts ModelartsDatasetVersionTimeouts
dataset_id This property is required. str
Specifies the ID of dataset. Changing this parameter will create a new resource.
description str
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
hard_example bool
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
modelarts_dataset_version_id str
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
name str
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
split_ratio str

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

timeouts ModelartsDatasetVersionTimeoutsArgs
datasetId This property is required. String
Specifies the ID of dataset. Changing this parameter will create a new resource.
description String
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
hardExample Boolean
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
modelartsDatasetVersionId String
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
name String
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
splitRatio String

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

timeouts Property Map

Outputs

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

CreatedAt string
The creation time, in UTC format.
Files double
The total number of samples.
Id string
The provider-assigned unique ID for this managed resource.
IsCurrent bool
Whether this version is current version.
LabelingType string
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
Status double
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
StoragePath string
The path to save the manifest file of the version.
UpdatedAt string
The last update time, in UTC format.
Verification bool
Whether the data has been verified by the verification algorithm before publishing.
VersionId string
The version ID.
CreatedAt string
The creation time, in UTC format.
Files float64
The total number of samples.
Id string
The provider-assigned unique ID for this managed resource.
IsCurrent bool
Whether this version is current version.
LabelingType string
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
Status float64
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
StoragePath string
The path to save the manifest file of the version.
UpdatedAt string
The last update time, in UTC format.
Verification bool
Whether the data has been verified by the verification algorithm before publishing.
VersionId string
The version ID.
createdAt String
The creation time, in UTC format.
files Double
The total number of samples.
id String
The provider-assigned unique ID for this managed resource.
isCurrent Boolean
Whether this version is current version.
labelingType String
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
status Double
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
storagePath String
The path to save the manifest file of the version.
updatedAt String
The last update time, in UTC format.
verification Boolean
Whether the data has been verified by the verification algorithm before publishing.
versionId String
The version ID.
createdAt string
The creation time, in UTC format.
files number
The total number of samples.
id string
The provider-assigned unique ID for this managed resource.
isCurrent boolean
Whether this version is current version.
labelingType string
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
status number
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
storagePath string
The path to save the manifest file of the version.
updatedAt string
The last update time, in UTC format.
verification boolean
Whether the data has been verified by the verification algorithm before publishing.
versionId string
The version ID.
created_at str
The creation time, in UTC format.
files float
The total number of samples.
id str
The provider-assigned unique ID for this managed resource.
is_current bool
Whether this version is current version.
labeling_type str
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
status float
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
storage_path str
The path to save the manifest file of the version.
updated_at str
The last update time, in UTC format.
verification bool
Whether the data has been verified by the verification algorithm before publishing.
version_id str
The version ID.
createdAt String
The creation time, in UTC format.
files Number
The total number of samples.
id String
The provider-assigned unique ID for this managed resource.
isCurrent Boolean
Whether this version is current version.
labelingType String
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
status Number
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
storagePath String
The path to save the manifest file of the version.
updatedAt String
The last update time, in UTC format.
verification Boolean
Whether the data has been verified by the verification algorithm before publishing.
versionId String
The version ID.

Look up Existing ModelartsDatasetVersion Resource

Get an existing ModelartsDatasetVersion 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?: ModelartsDatasetVersionState, opts?: CustomResourceOptions): ModelartsDatasetVersion
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        dataset_id: Optional[str] = None,
        description: Optional[str] = None,
        files: Optional[float] = None,
        hard_example: Optional[bool] = None,
        is_current: Optional[bool] = None,
        labeling_type: Optional[str] = None,
        modelarts_dataset_version_id: Optional[str] = None,
        name: Optional[str] = None,
        region: Optional[str] = None,
        split_ratio: Optional[str] = None,
        status: Optional[float] = None,
        storage_path: Optional[str] = None,
        timeouts: Optional[ModelartsDatasetVersionTimeoutsArgs] = None,
        updated_at: Optional[str] = None,
        verification: Optional[bool] = None,
        version_id: Optional[str] = None) -> ModelartsDatasetVersion
func GetModelartsDatasetVersion(ctx *Context, name string, id IDInput, state *ModelartsDatasetVersionState, opts ...ResourceOption) (*ModelartsDatasetVersion, error)
public static ModelartsDatasetVersion Get(string name, Input<string> id, ModelartsDatasetVersionState? state, CustomResourceOptions? opts = null)
public static ModelartsDatasetVersion get(String name, Output<String> id, ModelartsDatasetVersionState state, CustomResourceOptions options)
resources:  _:    type: flexibleengine:ModelartsDatasetVersion    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 creation time, in UTC format.
DatasetId string
Specifies the ID of dataset. Changing this parameter will create a new resource.
Description string
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
Files double
The total number of samples.
HardExample bool
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
IsCurrent bool
Whether this version is current version.
LabelingType string
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
ModelartsDatasetVersionId string
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
Name string
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
SplitRatio string

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

Status double
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
StoragePath string
The path to save the manifest file of the version.
Timeouts ModelartsDatasetVersionTimeouts
UpdatedAt string
The last update time, in UTC format.
Verification bool
Whether the data has been verified by the verification algorithm before publishing.
VersionId string
The version ID.
CreatedAt string
The creation time, in UTC format.
DatasetId string
Specifies the ID of dataset. Changing this parameter will create a new resource.
Description string
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
Files float64
The total number of samples.
HardExample bool
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
IsCurrent bool
Whether this version is current version.
LabelingType string
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
ModelartsDatasetVersionId string
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
Name string
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
SplitRatio string

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

Status float64
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
StoragePath string
The path to save the manifest file of the version.
Timeouts ModelartsDatasetVersionTimeoutsArgs
UpdatedAt string
The last update time, in UTC format.
Verification bool
Whether the data has been verified by the verification algorithm before publishing.
VersionId string
The version ID.
createdAt String
The creation time, in UTC format.
datasetId String
Specifies the ID of dataset. Changing this parameter will create a new resource.
description String
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
files Double
The total number of samples.
hardExample Boolean
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
isCurrent Boolean
Whether this version is current version.
labelingType String
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
modelartsDatasetVersionId String
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
name String
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
splitRatio String

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

status Double
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
storagePath String
The path to save the manifest file of the version.
timeouts ModelartsDatasetVersionTimeouts
updatedAt String
The last update time, in UTC format.
verification Boolean
Whether the data has been verified by the verification algorithm before publishing.
versionId String
The version ID.
createdAt string
The creation time, in UTC format.
datasetId string
Specifies the ID of dataset. Changing this parameter will create a new resource.
description string
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
files number
The total number of samples.
hardExample boolean
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
isCurrent boolean
Whether this version is current version.
labelingType string
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
modelartsDatasetVersionId string
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
name string
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
splitRatio string

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

status number
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
storagePath string
The path to save the manifest file of the version.
timeouts ModelartsDatasetVersionTimeouts
updatedAt string
The last update time, in UTC format.
verification boolean
Whether the data has been verified by the verification algorithm before publishing.
versionId string
The version ID.
created_at str
The creation time, in UTC format.
dataset_id str
Specifies the ID of dataset. Changing this parameter will create a new resource.
description str
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
files float
The total number of samples.
hard_example bool
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
is_current bool
Whether this version is current version.
labeling_type str
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
modelarts_dataset_version_id str
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
name str
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
split_ratio str

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

status float
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
storage_path str
The path to save the manifest file of the version.
timeouts ModelartsDatasetVersionTimeoutsArgs
updated_at str
The last update time, in UTC format.
verification bool
Whether the data has been verified by the verification algorithm before publishing.
version_id str
The version ID.
createdAt String
The creation time, in UTC format.
datasetId String
Specifies the ID of dataset. Changing this parameter will create a new resource.
description String
Specifies the description of dataset version. It contains a maximum of 256 characters and cannot contain special characters !<>=&"'. Changing this parameter will create a new resource.
files Number
The total number of samples.
hardExample Boolean
Specifies whether to enable ModelArts to write the hard example attributes (difficult, hard-coefficient, and hard-reasons) into the XML and manifest labeling files. ModelArts will use these attributes to optimize hard example filtering. Default value is false. Changing this parameter will create a new resource.
isCurrent Boolean
Whether this version is current version.
labelingType String
The label type of the dataset version. Valid values are as follows:

  • multi: Indicates that there are multi-label samples.
  • single: Indicates that all samples are single-label.
  • unlabeled: Indicates that all samples are unlabeled.
modelartsDatasetVersionId String
The resource ID in format of dataset_id/version_id. It is composed of dataset ID and version ID, separated by a slash.
name String
Specifies the name of the dataset version. The name consists of 1 to 32 characters. Only letters, Chinese characters, digits underscores (_) and hyphens (-) are allowed. 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.
splitRatio String

Specifies the ratio of splitting which randomly divides a labeled sample into a training set and a validation set. Changing this parameter will create a new resource.

Before you enable splitting, ensure each label has at least five labeled samples. Ensure there are at least two multi-label samples, if any.

status Number
The status of the dataset version. Valid values are as follows:

  • 0: Creating.
  • 1: Normal.
  • 2: Deleting.
  • 3: Deleted.
  • 4: Exception.
storagePath String
The path to save the manifest file of the version.
timeouts Property Map
updatedAt String
The last update time, in UTC format.
verification Boolean
Whether the data has been verified by the verification algorithm before publishing.
versionId String
The version ID.

Supporting Types

ModelartsDatasetVersionTimeouts
, ModelartsDatasetVersionTimeoutsArgs

Create string
Create string
create String
create string
create str
create String

Import

The dataset versions can be imported by dataset ID and version ID, separated by a slash, e.g.

$ pulumi import flexibleengine:index/modelartsDatasetVersion:ModelartsDatasetVersion test yiROKoTTjtwjvP71yLG/wieeeoTrtrtjvn67yLm
Copy

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: hard_example. 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_version” “test” {

...

lifecycle {

ignore_changes = [

  hard_example,

]

}

}

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.