Struct aws_sdk_ecs::client::fluent_builders::ListTaskDefinitions
source · [−]pub struct ListTaskDefinitions<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to ListTaskDefinitions
.
Returns a list of task definitions that are registered to your account. You can filter the results by family name with the familyPrefix
parameter or by status with the status
parameter.
Implementations
impl<C, M, R> ListTaskDefinitions<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ListTaskDefinitions<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ListTaskDefinitionsOutput, SdkError<ListTaskDefinitionsError>> where
R::Policy: SmithyRetryPolicy<ListTaskDefinitionsInputOperationOutputAlias, ListTaskDefinitionsOutput, ListTaskDefinitionsError, ListTaskDefinitionsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ListTaskDefinitionsOutput, SdkError<ListTaskDefinitionsError>> where
R::Policy: SmithyRetryPolicy<ListTaskDefinitionsInputOperationOutputAlias, ListTaskDefinitionsOutput, ListTaskDefinitionsError, ListTaskDefinitionsInputOperationRetryAlias>,
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
.
The full family name to filter the ListTaskDefinitions
results with. Specifying a familyPrefix
limits the listed task definitions to task definition revisions that belong to that family.
The full family name to filter the ListTaskDefinitions
results with. Specifying a familyPrefix
limits the listed task definitions to task definition revisions that belong to that family.
The task definition status to filter the ListTaskDefinitions
results with. By default, only ACTIVE
task definitions are listed. By setting this parameter to INACTIVE
, you can view task definitions that are INACTIVE
as long as an active task or service still references them. If you paginate the resulting output, be sure to keep the status
value constant in each subsequent request.
The task definition status to filter the ListTaskDefinitions
results with. By default, only ACTIVE
task definitions are listed. By setting this parameter to INACTIVE
, you can view task definitions that are INACTIVE
as long as an active task or service still references them. If you paginate the resulting output, be sure to keep the status
value constant in each subsequent request.
The order to sort the results in. Valid values are ASC
and DESC
. By default, (ASC
) task definitions are listed lexicographically by family name and in ascending numerical order by revision so that the newest task definitions in a family are listed last. Setting this parameter to DESC
reverses the sort order on family name and revision. This is so that the newest task definitions in a family are listed first.
The order to sort the results in. Valid values are ASC
and DESC
. By default, (ASC
) task definitions are listed lexicographically by family name and in ascending numerical order by revision so that the newest task definitions in a family are listed last. Setting this parameter to DESC
reverses the sort order on family name and revision. This is so that the newest task definitions in a family are listed first.
The nextToken
value returned from a ListTaskDefinitions
request indicating that more results are available to fulfill the request and further calls will be needed. If maxResults
was provided, it is possible the number of results to be fewer than maxResults
.
This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
The nextToken
value returned from a ListTaskDefinitions
request indicating that more results are available to fulfill the request and further calls will be needed. If maxResults
was provided, it is possible the number of results to be fewer than maxResults
.
This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
The maximum number of task definition results that ListTaskDefinitions
returned in paginated output. When this parameter is used, ListTaskDefinitions
only returns maxResults
results in a single page along with a nextToken
response element. The remaining results of the initial request can be seen by sending another ListTaskDefinitions
request with the returned nextToken
value. This value can be between 1 and 100. If this parameter isn't used, then ListTaskDefinitions
returns up to 100 results and a nextToken
value if applicable.
The maximum number of task definition results that ListTaskDefinitions
returned in paginated output. When this parameter is used, ListTaskDefinitions
only returns maxResults
results in a single page along with a nextToken
response element. The remaining results of the initial request can be seen by sending another ListTaskDefinitions
request with the returned nextToken
value. This value can be between 1 and 100. If this parameter isn't used, then ListTaskDefinitions
returns up to 100 results and a nextToken
value if applicable.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for ListTaskDefinitions<C, M, R>
impl<C, M, R> Send for ListTaskDefinitions<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ListTaskDefinitions<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ListTaskDefinitions<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for ListTaskDefinitions<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