Struct aws_sdk_sagemaker::client::fluent_builders::ListTrainingJobs
source · [−]pub struct ListTrainingJobs<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to ListTrainingJobs
.
Lists training jobs.
When StatusEquals
and MaxResults
are set at the same time, the MaxResults
number of training jobs are first retrieved ignoring the StatusEquals
parameter and then they are filtered by the StatusEquals
parameter, which is returned as a response.
For example, if ListTrainingJobs
is invoked with the following parameters:
{ ... MaxResults: 100, StatusEquals: InProgress ... }
First, 100 trainings jobs with any status, including those other than InProgress
, are selected (sorted according to the creation time, from the most current to the oldest). Next, those with a status of InProgress
are returned.
You can quickly test the API using the following Amazon Web Services CLI code.
aws sagemaker list-training-jobs --max-results 100 --status-equals InProgress
Implementations
impl<C, M, R> ListTrainingJobs<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ListTrainingJobs<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ListTrainingJobsOutput, SdkError<ListTrainingJobsError>> where
R::Policy: SmithyRetryPolicy<ListTrainingJobsInputOperationOutputAlias, ListTrainingJobsOutput, ListTrainingJobsError, ListTrainingJobsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ListTrainingJobsOutput, SdkError<ListTrainingJobsError>> where
R::Policy: SmithyRetryPolicy<ListTrainingJobsInputOperationOutputAlias, ListTrainingJobsOutput, ListTrainingJobsError, ListTrainingJobsInputOperationRetryAlias>,
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.
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
If the result of the previous ListTrainingJobs
request was truncated, the response includes a NextToken
. To retrieve the next set of training jobs, use the token in the next request.
If the result of the previous ListTrainingJobs
request was truncated, the response includes a NextToken
. To retrieve the next set of training jobs, use the token in the next request.
The maximum number of training jobs to return in the response.
The maximum number of training jobs to return in the response.
A filter that returns only training jobs created after the specified time (timestamp).
A filter that returns only training jobs created after the specified time (timestamp).
A filter that returns only training jobs created before the specified time (timestamp).
A filter that returns only training jobs created before the specified time (timestamp).
A filter that returns only training jobs modified after the specified time (timestamp).
A filter that returns only training jobs modified after the specified time (timestamp).
A filter that returns only training jobs modified before the specified time (timestamp).
A filter that returns only training jobs modified before the specified time (timestamp).
A string in the training job name. This filter returns only training jobs whose name contains the specified string.
A string in the training job name. This filter returns only training jobs whose name contains the specified string.
A filter that retrieves only training jobs with a specific status.
A filter that retrieves only training jobs with a specific status.
The field to sort results by. The default is CreationTime
.
The field to sort results by. The default is CreationTime
.
The sort order for results. The default is Ascending
.
The sort order for results. The default is Ascending
.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for ListTrainingJobs<C, M, R>
impl<C, M, R> Send for ListTrainingJobs<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ListTrainingJobs<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ListTrainingJobs<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for ListTrainingJobs<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