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",
});
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")
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
})
}
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",
});
});
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());
}
}
configuration:
datasetId:
type: dynamic
resources:
v001:
type: flexibleengine:ModelartsDatasetVersion
properties:
datasetId: ${datasetId}
description: Created by demo
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 string
- The unique name of the resource.
- args ModelartsDatasetVersionArgs
- 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 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 string
- The unique name of the resource.
- args ModelartsDatasetVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ModelartsDatasetVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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: &flexibleengine.ModelartsDatasetVersionTimeoutsArgs{
Create: pulumi.String("string"),
},
})
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());
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",
})
const modelartsDatasetVersionResource = new flexibleengine.ModelartsDatasetVersion("modelartsDatasetVersionResource", {
datasetId: "string",
description: "string",
hardExample: false,
modelartsDatasetVersionId: "string",
name: "string",
region: "string",
splitRatio: "string",
timeouts: {
create: "string",
},
});
type: flexibleengine:ModelartsDatasetVersion
properties:
datasetId: string
description: string
hardExample: false
modelartsDatasetVersionId: string
name: string
region: string
splitRatio: string
timeouts:
create: string
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:
- Dataset
Id 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. - 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 stringVersion Id - 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.
- Split
Ratio 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
Modelarts
Dataset Version Timeouts
- Dataset
Id 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. - 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 stringVersion Id - 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.
- Split
Ratio 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
Modelarts
Dataset Version Timeouts Args
- dataset
Id 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. - hard
Example 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. - modelarts
Dataset StringVersion Id - 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.
- split
Ratio 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
Modelarts
Dataset Version Timeouts
- dataset
Id 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. - hard
Example 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. - modelarts
Dataset stringVersion Id - 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.
- split
Ratio 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
Modelarts
Dataset Version Timeouts
- 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. - 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_ strversion_ id - 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
Modelarts
Dataset Version Timeouts Args
- dataset
Id 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. - hard
Example 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. - modelarts
Dataset StringVersion Id - 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.
- split
Ratio 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:
- Created
At 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.
- Is
Current bool - Whether this version is current version.
- Labeling
Type 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.
- Storage
Path string - The path to save the manifest file of the version.
- Updated
At string - The last update time, in UTC format.
- Verification bool
- Whether the data has been verified by the verification algorithm before publishing.
- Version
Id string - The version ID.
- Created
At 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.
- Is
Current bool - Whether this version is current version.
- Labeling
Type 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.
- Storage
Path string - The path to save the manifest file of the version.
- Updated
At string - The last update time, in UTC format.
- Verification bool
- Whether the data has been verified by the verification algorithm before publishing.
- Version
Id string - The version ID.
- created
At 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.
- is
Current Boolean - Whether this version is current version.
- labeling
Type 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.
- storage
Path String - The path to save the manifest file of the version.
- updated
At String - The last update time, in UTC format.
- verification Boolean
- Whether the data has been verified by the verification algorithm before publishing.
- version
Id String - The version ID.
- created
At 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.
- is
Current boolean - Whether this version is current version.
- labeling
Type 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.
- storage
Path string - The path to save the manifest file of the version.
- updated
At string - The last update time, in UTC format.
- verification boolean
- Whether the data has been verified by the verification algorithm before publishing.
- version
Id 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.
- created
At 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.
- is
Current Boolean - Whether this version is current version.
- labeling
Type 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.
- storage
Path String - The path to save the manifest file of the version.
- updated
At String - The last update time, in UTC format.
- verification Boolean
- Whether the data has been verified by the verification algorithm before publishing.
- version
Id 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
- 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 creation time, in UTC format.
- Dataset
Id 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.
- 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 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.
- Modelarts
Dataset stringVersion Id - 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.
- Split
Ratio 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.
- Storage
Path string - The path to save the manifest file of the version.
- Timeouts
Modelarts
Dataset Version Timeouts - Updated
At string - The last update time, in UTC format.
- Verification bool
- Whether the data has been verified by the verification algorithm before publishing.
- Version
Id string - The version ID.
- Created
At string - The creation time, in UTC format.
- Dataset
Id 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.
- 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 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.
- Modelarts
Dataset stringVersion Id - 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.
- Split
Ratio 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.
- Storage
Path string - The path to save the manifest file of the version.
- Timeouts
Modelarts
Dataset Version Timeouts Args - Updated
At string - The last update time, in UTC format.
- Verification bool
- Whether the data has been verified by the verification algorithm before publishing.
- Version
Id string - The version ID.
- created
At String - The creation time, in UTC format.
- dataset
Id 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.
- hard
Example 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. - is
Current Boolean - Whether this version is current version.
- labeling
Type 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.
- modelarts
Dataset StringVersion Id - 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.
- split
Ratio 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.
- storage
Path String - The path to save the manifest file of the version.
- timeouts
Modelarts
Dataset Version Timeouts - updated
At String - The last update time, in UTC format.
- verification Boolean
- Whether the data has been verified by the verification algorithm before publishing.
- version
Id String - The version ID.
- created
At string - The creation time, in UTC format.
- dataset
Id 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.
- hard
Example 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. - is
Current boolean - Whether this version is current version.
- labeling
Type 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.
- modelarts
Dataset stringVersion Id - 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.
- split
Ratio 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.
- storage
Path string - The path to save the manifest file of the version.
- timeouts
Modelarts
Dataset Version Timeouts - updated
At string - The last update time, in UTC format.
- verification boolean
- Whether the data has been verified by the verification algorithm before publishing.
- version
Id 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_ strversion_ id - 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
Modelarts
Dataset Version Timeouts Args - 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.
- created
At String - The creation time, in UTC format.
- dataset
Id 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.
- hard
Example 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. - is
Current Boolean - Whether this version is current version.
- labeling
Type 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.
- modelarts
Dataset StringVersion Id - 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.
- split
Ratio 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.
- storage
Path String - The path to save the manifest file of the version.
- timeouts Property Map
- updated
At String - The last update time, in UTC format.
- verification Boolean
- Whether the data has been verified by the verification algorithm before publishing.
- version
Id 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
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.