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

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

Network.AWS.ECS.ListContainerInstances

Contents

Description

Returns a list of container instances in a specified cluster. You can filter the results of a ListContainerInstances operation with cluster query language statements inside the filter parameter. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide .

This operation returns paginated results.

Synopsis

Creating a Request

listContainerInstances :: ListContainerInstances Source #

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

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

  • lciStatus - Filters the container instances by status. For example, if you specify the DRAINING status, the results include only container instances that have been set to DRAINING using UpdateContainerInstancesState . If you do not specify this parameter, the default is to include container instances set to ACTIVE and DRAINING .
  • lciCluster - The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to list. If you do not specify a cluster, the default cluster is assumed.
  • lciNextToken - The nextToken value returned from a previous paginated ListContainerInstances 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.
  • lciFilter - You can filter the results of a ListContainerInstances operation with cluster query language statements. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide .
  • lciMaxResults - The maximum number of container instance results returned by ListContainerInstances in paginated output. When this parameter is used, ListContainerInstances 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 ListContainerInstances request with the returned nextToken value. This value can be between 1 and 100. If this parameter is not used, then ListContainerInstances returns up to 100 results and a nextToken value if applicable.

data ListContainerInstances Source #

See: listContainerInstances smart constructor.

Instances

Eq ListContainerInstances Source # 
Data ListContainerInstances Source # 

Methods

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

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

toConstr :: ListContainerInstances -> Constr #

dataTypeOf :: ListContainerInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListContainerInstances Source # 
Show ListContainerInstances Source # 
Generic ListContainerInstances Source # 
Hashable ListContainerInstances Source # 
ToJSON ListContainerInstances Source # 
NFData ListContainerInstances Source # 

Methods

rnf :: ListContainerInstances -> () #

AWSPager ListContainerInstances Source # 
AWSRequest ListContainerInstances Source # 
ToQuery ListContainerInstances Source # 
ToPath ListContainerInstances Source # 
ToHeaders ListContainerInstances Source # 
type Rep ListContainerInstances Source # 
type Rep ListContainerInstances = D1 (MetaData "ListContainerInstances" "Network.AWS.ECS.ListContainerInstances" "amazonka-ecs-1.5.0-EwatFke974vDkurbaNzIje" False) (C1 (MetaCons "ListContainerInstances'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lciStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ContainerInstanceStatus))) (S1 (MetaSel (Just Symbol "_lciCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_lciNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lciFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lciMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))))
type Rs ListContainerInstances Source # 

Request Lenses

lciStatus :: Lens' ListContainerInstances (Maybe ContainerInstanceStatus) Source #

Filters the container instances by status. For example, if you specify the DRAINING status, the results include only container instances that have been set to DRAINING using UpdateContainerInstancesState . If you do not specify this parameter, the default is to include container instances set to ACTIVE and DRAINING .

lciCluster :: Lens' ListContainerInstances (Maybe Text) Source #

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

lciNextToken :: Lens' ListContainerInstances (Maybe Text) Source #

The nextToken value returned from a previous paginated ListContainerInstances 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.

lciFilter :: Lens' ListContainerInstances (Maybe Text) Source #

You can filter the results of a ListContainerInstances operation with cluster query language statements. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide .

lciMaxResults :: Lens' ListContainerInstances (Maybe Int) Source #

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

Destructuring the Response

listContainerInstancesResponse Source #

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

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

  • lcirsContainerInstanceARNs - The list of container instances with full Amazon Resource Name (ARN) entries for each container instance associated with the specified cluster.
  • lcirsNextToken - The nextToken value to include in a future ListContainerInstances request. When the results of a ListContainerInstances 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.
  • lcirsResponseStatus - -- | The response status code.

data ListContainerInstancesResponse Source #

See: listContainerInstancesResponse smart constructor.

Instances

Eq ListContainerInstancesResponse Source # 
Data ListContainerInstancesResponse Source # 

Methods

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

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

toConstr :: ListContainerInstancesResponse -> Constr #

dataTypeOf :: ListContainerInstancesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListContainerInstancesResponse Source # 
Show ListContainerInstancesResponse Source # 
Generic ListContainerInstancesResponse Source # 
NFData ListContainerInstancesResponse Source # 
type Rep ListContainerInstancesResponse Source # 
type Rep ListContainerInstancesResponse = D1 (MetaData "ListContainerInstancesResponse" "Network.AWS.ECS.ListContainerInstances" "amazonka-ecs-1.5.0-EwatFke974vDkurbaNzIje" False) (C1 (MetaCons "ListContainerInstancesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lcirsContainerInstanceARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_lcirsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lcirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lcirsContainerInstanceARNs :: Lens' ListContainerInstancesResponse [Text] Source #

The list of container instances with full Amazon Resource Name (ARN) entries for each container instance associated with the specified cluster.

lcirsNextToken :: Lens' ListContainerInstancesResponse (Maybe Text) Source #

The nextToken value to include in a future ListContainerInstances request. When the results of a ListContainerInstances 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.