Struct aws_sdk_personalize::client::fluent_builders::CreateDataset
source · pub struct CreateDataset { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDataset
.
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:
-
Interactions
-
Items
-
Users
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:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
To get the status of the dataset, call DescribeDataset.
Related APIs
Implementations§
source§impl CreateDataset
impl CreateDataset
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateDataset, AwsResponseRetryClassifier>, SdkError<CreateDatasetError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateDataset, AwsResponseRetryClassifier>, SdkError<CreateDatasetError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateDatasetOutput, SdkError<CreateDatasetError>>
pub async fn send(
self
) -> Result<CreateDatasetOutput, SdkError<CreateDatasetError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn schema_arn(self, input: impl Into<String>) -> Self
pub fn schema_arn(self, input: impl Into<String>) -> Self
The ARN of the schema to associate with the dataset. The schema defines the dataset fields.
sourcepub fn set_schema_arn(self, input: Option<String>) -> Self
pub fn set_schema_arn(self, input: Option<String>) -> Self
The ARN of the schema to associate with the dataset. The schema defines the dataset fields.
sourcepub fn dataset_group_arn(self, input: impl Into<String>) -> Self
pub fn dataset_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the dataset group to add the dataset to.
sourcepub fn set_dataset_group_arn(self, input: Option<String>) -> Self
pub fn set_dataset_group_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the dataset group to add the dataset to.
sourcepub fn dataset_type(self, input: impl Into<String>) -> Self
pub fn dataset_type(self, input: impl Into<String>) -> Self
The type of dataset.
One of the following (case insensitive) values:
-
Interactions
-
Items
-
Users
sourcepub fn set_dataset_type(self, input: Option<String>) -> Self
pub fn set_dataset_type(self, input: Option<String>) -> Self
The type of dataset.
One of the following (case insensitive) values:
-
Interactions
-
Items
-
Users
A list of tags to apply to the dataset.
Trait Implementations§
source§impl Clone for CreateDataset
impl Clone for CreateDataset
source§fn clone(&self) -> CreateDataset
fn clone(&self) -> CreateDataset
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more