amazonka-ecs-1.4.3: 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.ListServices

Contents

Description

Lists the services that are running in a specified cluster.

This operation returns paginated results.

Synopsis

Creating a Request

listServices :: ListServices Source #

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

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

data ListServices Source #

See: listServices smart constructor.

Instances

Eq ListServices Source # 
Data ListServices Source # 

Methods

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

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

toConstr :: ListServices -> Constr #

dataTypeOf :: ListServices -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListServices Source # 
Show ListServices Source # 
Generic ListServices Source # 

Associated Types

type Rep ListServices :: * -> * #

Hashable ListServices Source # 
ToJSON ListServices Source # 
NFData ListServices Source # 

Methods

rnf :: ListServices -> () #

AWSPager ListServices Source # 
AWSRequest ListServices Source # 
ToQuery ListServices Source # 
ToPath ListServices Source # 
ToHeaders ListServices Source # 
type Rep ListServices Source # 
type Rep ListServices = D1 (MetaData "ListServices" "Network.AWS.ECS.ListServices" "amazonka-ecs-1.4.3-EI6LaLn2ihbBOjQBfPY85t" False) (C1 (MetaCons "ListServices'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lsCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lsMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))))))
type Rs ListServices Source # 

Request Lenses

lsCluster :: Lens' ListServices (Maybe Text) Source #

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

lsNextToken :: Lens' ListServices (Maybe Text) Source #

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

lsMaxResults :: Lens' ListServices (Maybe Int) Source #

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

Destructuring the Response

listServicesResponse Source #

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

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

data ListServicesResponse Source #

See: listServicesResponse smart constructor.

Instances

Eq ListServicesResponse Source # 
Data ListServicesResponse Source # 

Methods

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

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

toConstr :: ListServicesResponse -> Constr #

dataTypeOf :: ListServicesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListServicesResponse Source # 
Show ListServicesResponse Source # 
Generic ListServicesResponse Source # 
NFData ListServicesResponse Source # 

Methods

rnf :: ListServicesResponse -> () #

type Rep ListServicesResponse Source # 
type Rep ListServicesResponse = D1 (MetaData "ListServicesResponse" "Network.AWS.ECS.ListServices" "amazonka-ecs-1.4.3-EI6LaLn2ihbBOjQBfPY85t" False) (C1 (MetaCons "ListServicesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lsrsServiceARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_lsrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lsrsServiceARNs :: Lens' ListServicesResponse [Text] Source #

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

lsrsNextToken :: Lens' ListServicesResponse (Maybe Text) Source #

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