Class CfnTrainingDatasetProps
Properties for defining a CfnTrainingDataset.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CleanRoomsML
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTrainingDatasetProps : ICfnTrainingDatasetProps
Syntax (vb)
Public Class CfnTrainingDatasetProps Implements ICfnTrainingDatasetProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CleanRoomsML;
var cfnTrainingDatasetProps = new CfnTrainingDatasetProps {
Name = "name",
RoleArn = "roleArn",
TrainingData = new [] { new DatasetProperty {
InputConfig = new DatasetInputConfigProperty {
DataSource = new DataSourceProperty {
GlueDataSource = new GlueDataSourceProperty {
DatabaseName = "databaseName",
TableName = "tableName",
// the properties below are optional
CatalogId = "catalogId"
}
},
Schema = new [] { new ColumnSchemaProperty {
ColumnName = "columnName",
ColumnTypes = new [] { "columnTypes" }
} }
},
Type = "type"
} },
// the properties below are optional
Description = "description",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
| CfnTrainingDatasetProps() | Properties for defining a |
Properties
| Description | The description of the training dataset. |
| Name | The name of the training dataset. |
| RoleArn | The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to in the |
| Tags | The optional metadata that you apply to the resource to help you categorize and organize them. |
| TrainingData | An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema. |
Constructors
CfnTrainingDatasetProps()
Properties for defining a CfnTrainingDataset.
public CfnTrainingDatasetProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CleanRoomsML;
var cfnTrainingDatasetProps = new CfnTrainingDatasetProps {
Name = "name",
RoleArn = "roleArn",
TrainingData = new [] { new DatasetProperty {
InputConfig = new DatasetInputConfigProperty {
DataSource = new DataSourceProperty {
GlueDataSource = new GlueDataSourceProperty {
DatabaseName = "databaseName",
TableName = "tableName",
// the properties below are optional
CatalogId = "catalogId"
}
},
Schema = new [] { new ColumnSchemaProperty {
ColumnName = "columnName",
ColumnTypes = new [] { "columnTypes" }
} }
},
Type = "type"
} },
// the properties below are optional
Description = "description",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
Description
The description of the training dataset.
public string? Description { get; set; }
Property Value
Remarks
Name
The name of the training dataset.
public string Name { get; set; }
Property Value
Remarks
RoleArn
The ARN of the IAM role that Clean Rooms ML can assume to read the data referred to in the dataSource field of each dataset.
public string RoleArn { get; set; }
Property Value
Remarks
Passing a role across accounts is not allowed. If you pass a role that isn't in your account, you get an AccessDeniedException error.
Tags
The optional metadata that you apply to the resource to help you categorize and organize them.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
: .
- Tag keys and values are case sensitive.
- Do not use
aws:,AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value hasawsas its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix ofawsdo not count against your tags per resource limit.
TrainingData
An array of information that lists the Dataset objects, which specifies the dataset type and details on its location and schema.
public object TrainingData { get; set; }
Property Value
Remarks
You must provide a role that has read access to these tables.
Type union: either IResolvable or (either IResolvable or CfnTrainingDataset.IDatasetProperty)[]