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

Copyright(c) 2013-2018 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.ListServices

Contents

Description

Lists the services that are running in a specified cluster.

This operation returns paginated results.

Synopsis

Creating a Request

listServices :: ListServices #

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:

  • lsCluster - 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 - 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.
  • lsLaunchType - The launch type for services you want to list.
  • lsMaxResults - The maximum number of service 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.

data ListServices #

See: listServices smart constructor.

Instances
Eq ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

Data ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

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 # 
Instance details

Defined in Network.AWS.ECS.ListServices

Show ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

Generic ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

Associated Types

type Rep ListServices :: Type -> Type #

Hashable ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

ToJSON ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

AWSPager ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

AWSRequest ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

Associated Types

type Rs ListServices :: Type #

ToHeaders ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

ToPath ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

ToQuery ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

NFData ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

Methods

rnf :: ListServices -> () #

type Rep ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

type Rep ListServices = D1 (MetaData "ListServices" "Network.AWS.ECS.ListServices" "amazonka-ecs-1.6.1-L1UdJla9EUcK0wHkUmqs0y" False) (C1 (MetaCons "ListServices'" PrefixI True) ((S1 (MetaSel (Just "_lsCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_lsLaunchType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe LaunchType)) :*: S1 (MetaSel (Just "_lsMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))
type Rs ListServices # 
Instance details

Defined in Network.AWS.ECS.ListServices

Request Lenses

lsCluster :: Lens' ListServices (Maybe Text) #

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) #

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.

lsLaunchType :: Lens' ListServices (Maybe LaunchType) #

The launch type for services you want to list.

lsMaxResults :: Lens' ListServices (Maybe Int) #

The maximum number of service 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 #

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:

  • lsrsServiceARNs - The list of full ARN entries for each service associated with the specified cluster.
  • lsrsNextToken - 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.
  • lsrsResponseStatus - -- | The response status code.

data ListServicesResponse #

See: listServicesResponse smart constructor.

Instances
Eq ListServicesResponse # 
Instance details

Defined in Network.AWS.ECS.ListServices

Data ListServicesResponse # 
Instance details

Defined in Network.AWS.ECS.ListServices

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 # 
Instance details

Defined in Network.AWS.ECS.ListServices

Show ListServicesResponse # 
Instance details

Defined in Network.AWS.ECS.ListServices

Generic ListServicesResponse # 
Instance details

Defined in Network.AWS.ECS.ListServices

Associated Types

type Rep ListServicesResponse :: Type -> Type #

NFData ListServicesResponse # 
Instance details

Defined in Network.AWS.ECS.ListServices

Methods

rnf :: ListServicesResponse -> () #

type Rep ListServicesResponse # 
Instance details

Defined in Network.AWS.ECS.ListServices

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

Response Lenses

lsrsServiceARNs :: Lens' ListServicesResponse [Text] #

The list of full ARN entries for each service associated with the specified cluster.

lsrsNextToken :: Lens' ListServicesResponse (Maybe Text) #

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.

lsrsResponseStatus :: Lens' ListServicesResponse Int #

  • - | The response status code.