Struct aws_sdk_personalize::client::fluent_builders::CreateDatasetImportJob [−][src]
pub struct CreateDatasetImportJob<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateDatasetImportJob
.
Creates a job that imports training data from your data source (an Amazon S3 bucket) to an Amazon Personalize dataset. To allow Amazon Personalize to import the training data, you must specify an IAM service role that has permission to read from the data source, as Amazon Personalize makes a copy of your data and processes it internally. For information on granting access to your Amazon S3 bucket, see Giving Amazon Personalize Access to Amazon S3 Resources.
The dataset import job replaces any existing data in the dataset that you imported in bulk.
Status
A dataset import job can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
To get the status of the import job, call DescribeDatasetImportJob,
providing the Amazon Resource Name (ARN) of the dataset import job. The dataset import is
complete when the status shows as ACTIVE. If the status shows as CREATE FAILED, the response
includes a failureReason
key, which describes why the job failed.
Importing takes time. You must wait until the status shows as ACTIVE before training a model using the dataset.
Related APIs
Implementations
impl<C, M, R> CreateDatasetImportJob<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateDatasetImportJob<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateDatasetImportJobOutput, SdkError<CreateDatasetImportJobError>> where
R::Policy: SmithyRetryPolicy<CreateDatasetImportJobInputOperationOutputAlias, CreateDatasetImportJobOutput, CreateDatasetImportJobError, CreateDatasetImportJobInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateDatasetImportJobOutput, SdkError<CreateDatasetImportJobError>> where
R::Policy: SmithyRetryPolicy<CreateDatasetImportJobInputOperationOutputAlias, CreateDatasetImportJobOutput, CreateDatasetImportJobError, CreateDatasetImportJobInputOperationRetryAlias>,
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.
The name for the dataset import job.
The ARN of the dataset that receives the imported data.
The ARN of the dataset that receives the imported data.
The Amazon S3 bucket that contains the training data to import.
The Amazon S3 bucket that contains the training data to import.
The ARN of the IAM role that has permissions to read from the Amazon S3 data source.
The ARN of the IAM role that has permissions to read from the Amazon S3 data source.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateDatasetImportJob<C, M, R>
impl<C, M, R> Send for CreateDatasetImportJob<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateDatasetImportJob<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateDatasetImportJob<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateDatasetImportJob<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more