amazonka-ecs-1.4.4: Amazon EC2 Container Service SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.ECS.ListTasks

Contents

Description

Returns a list of tasks for a specified cluster. You can filter the results by family name, by a particular container instance, or by the desired status of the task with the family, containerInstance, and desiredStatus parameters.

Recently-stopped tasks might appear in the returned results. Currently, stopped tasks appear in the returned results for at least one hour.

This operation returns paginated results.

Synopsis

Creating a Request

listTasks :: ListTasks Source #

Creates a value of ListTasks with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ListTasks Source #

See: listTasks smart constructor.

Instances

Eq ListTasks Source # 
Data ListTasks Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListTasks -> c ListTasks #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListTasks #

toConstr :: ListTasks -> Constr #

dataTypeOf :: ListTasks -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListTasks) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListTasks) #

gmapT :: (forall b. Data b => b -> b) -> ListTasks -> ListTasks #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListTasks -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListTasks -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListTasks -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListTasks -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListTasks -> m ListTasks #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTasks -> m ListTasks #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTasks -> m ListTasks #

Read ListTasks Source # 
Show ListTasks Source # 
Generic ListTasks Source # 

Associated Types

type Rep ListTasks :: * -> * #

Hashable ListTasks Source # 
NFData ListTasks Source # 

Methods

rnf :: ListTasks -> () #

AWSPager ListTasks Source # 
AWSRequest ListTasks Source # 
ToPath ListTasks Source # 
ToHeaders ListTasks Source # 

Methods

toHeaders :: ListTasks -> [Header] #

ToQuery ListTasks Source # 
ToJSON ListTasks Source # 

Methods

toJSON :: ListTasks -> Value #

toEncoding :: ListTasks -> Encoding #

type Rep ListTasks Source # 
type Rs ListTasks Source # 

Request Lenses

ltDesiredStatus :: Lens' ListTasks (Maybe DesiredStatus) Source #

The task desired status with which to filter the ListTasks results. Specifying a desiredStatus of STOPPED limits the results to tasks that ECS has set the desired status to STOPPED, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter is RUNNING, which shows tasks that ECS has set the desired status to RUNNING.

Although you can filter results based on a desired status of PENDING, this will not return any results because ECS never sets the desired status of a task to that value (only a task's lastStatus may have a value of PENDING).

ltCluster :: Lens' ListTasks (Maybe Text) Source #

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the tasks to list. If you do not specify a cluster, the default cluster is assumed..

ltFamily :: Lens' ListTasks (Maybe Text) Source #

The name of the family with which to filter the ListTasks results. Specifying a family limits the results to tasks that belong to that family.

ltNextToken :: Lens' ListTasks (Maybe Text) Source #

The nextToken value returned from a previous paginated ListTasks request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.

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.

ltStartedBy :: Lens' ListTasks (Maybe Text) Source #

The startedBy value with which to filter the task results. Specifying a startedBy value limits the results to tasks that were started with that value.

ltServiceName :: Lens' ListTasks (Maybe Text) Source #

The name of the service with which to filter the ListTasks results. Specifying a serviceName limits the results to tasks that belong to that service.

ltContainerInstance :: Lens' ListTasks (Maybe Text) Source #

The container instance ID or full Amazon Resource Name (ARN) of the container instance with which to filter the ListTasks results. Specifying a containerInstance limits the results to tasks that belong to that container instance.

ltMaxResults :: Lens' ListTasks (Maybe Int) Source #

The maximum number of task results returned by ListTasks in paginated output. When this parameter is used, ListTasks 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 ListTasks request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListTasks returns up to 100 results and a nextToken value if applicable.

Destructuring the Response

listTasksResponse Source #

Creates a value of ListTasksResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ListTasksResponse Source #

See: listTasksResponse smart constructor.

Instances

Eq ListTasksResponse Source # 
Data ListTasksResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListTasksResponse -> c ListTasksResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListTasksResponse #

toConstr :: ListTasksResponse -> Constr #

dataTypeOf :: ListTasksResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListTasksResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListTasksResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListTasksResponse -> ListTasksResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListTasksResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListTasksResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListTasksResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListTasksResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListTasksResponse -> m ListTasksResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTasksResponse -> m ListTasksResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTasksResponse -> m ListTasksResponse #

Read ListTasksResponse Source # 
Show ListTasksResponse Source # 
Generic ListTasksResponse Source # 
NFData ListTasksResponse Source # 

Methods

rnf :: ListTasksResponse -> () #

type Rep ListTasksResponse Source # 
type Rep ListTasksResponse = D1 (MetaData "ListTasksResponse" "Network.AWS.ECS.ListTasks" "amazonka-ecs-1.4.4-AOgjorMzZtJAck2Ytj5moD" False) (C1 (MetaCons "ListTasksResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ltrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ltrsTaskARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_ltrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

ltrsNextToken :: Lens' ListTasksResponse (Maybe Text) Source #

The nextToken value to include in a future ListTasks request. When the results of a ListTasks request exceed maxResults, this value can be used to retrieve the next page of results. This value is null when there are no more results to return.

ltrsTaskARNs :: Lens' ListTasksResponse [Text] Source #

The list of task Amazon Resource Name (ARN) entries for the ListTasks request.