@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-02T14:17:16.186Z") @Stability(value=Stable) public class CfnDataset extends CfnResource implements IInspectable
Creates an empty dataset and adds it to the specified dataset group. Use CreateDatasetImportJob to import your training data to a dataset.
There are three types of datasets:
Each dataset type has an associated schema with required field types. Only the Interactions dataset is required in order to train a model (also referred to as creating a solution).
A dataset can be in one of the following states:
To get the status of the dataset, call DescribeDataset .
Related APIs - CreateDatasetGroup
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.personalize.*;
Object dataSource;
CfnDataset cfnDataset = CfnDataset.Builder.create(this, "MyCfnDataset")
.datasetGroupArn("datasetGroupArn")
.datasetType("datasetType")
.name("name")
.schemaArn("schemaArn")
// the properties below are optional
.datasetImportJob(DatasetImportJobProperty.builder()
.datasetArn("datasetArn")
.datasetImportJobArn("datasetImportJobArn")
.dataSource(dataSource)
.jobName("jobName")
.roleArn("roleArn")
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDataset.Builder
A fluent builder for
CfnDataset. |
static interface |
CfnDataset.DatasetImportJobProperty
Describes a job that imports training data from a data source (Amazon S3 bucket) to an Amazon Personalize dataset.
|
static interface |
CfnDataset.DataSourceProperty
Describes the data source that contains the data to upload to a dataset.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDataset(Construct scope,
String id,
CfnDatasetProps props)
Create a new `AWS::Personalize::Dataset`.
|
protected |
CfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDataset(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrDatasetArn()
The Amazon Resource Name (ARN) of the dataset.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDatasetGroupArn()
The Amazon Resource Name (ARN) of the dataset group.
|
Object |
getDatasetImportJob()
Describes a job that imports training data from a data source (Amazon S3 bucket) to an Amazon Personalize dataset.
|
String |
getDatasetType()
One of the following values:.
|
String |
getName()
The name of the dataset.
|
String |
getSchemaArn()
The ARN of the associated schema.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDatasetGroupArn(String value)
The Amazon Resource Name (ARN) of the dataset group.
|
void |
setDatasetImportJob(CfnDataset.DatasetImportJobProperty value)
Describes a job that imports training data from a data source (Amazon S3 bucket) to an Amazon Personalize dataset.
|
void |
setDatasetImportJob(IResolvable value)
Describes a job that imports training data from a data source (Amazon S3 bucket) to an Amazon Personalize dataset.
|
void |
setDatasetType(String value)
One of the following values:.
|
void |
setName(String value)
The name of the dataset.
|
void |
setSchemaArn(String value)
The ARN of the associated schema.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDataset(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDataset(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnDatasetProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrDatasetArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getDatasetGroupArn()
@Stability(value=Stable)
public void setDatasetGroupArn(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getDatasetType()
@Stability(value=Stable)
public void setDatasetType(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getSchemaArn()
@Stability(value=Stable)
public void setSchemaArn(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getDatasetImportJob()
@Stability(value=Stable)
public void setDatasetImportJob(@Nullable
CfnDataset.DatasetImportJobProperty value)
@Stability(value=Stable)
public void setDatasetImportJob(@Nullable
IResolvable value)
Copyright © 2023. All rights reserved.