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 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:

  • 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 Source #

See: listServices smart constructor.

Instances
Eq ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Data ListServices Source # 
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 Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Show ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Generic ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Associated Types

type Rep ListServices :: Type -> Type #

Hashable ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

ToJSON ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

AWSPager ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

AWSRequest ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Associated Types

type Rs ListServices :: Type #

ToHeaders ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

ToPath ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

ToQuery ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

NFData ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Methods

rnf :: ListServices -> () #

type Rep ListServices Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

type Rep ListServices = D1 (MetaData "ListServices" "Network.AWS.ECS.ListServices" "amazonka-ecs-1.6.1-7o1YH8hMK1ABbFowaTE1Sy" 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 Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

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.

lsLaunchType :: Lens' ListServices (Maybe LaunchType) Source #

The launch type for services you want to list.

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

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 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:

  • 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 Source #

See: listServicesResponse smart constructor.

Instances
Eq ListServicesResponse Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Data ListServicesResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Show ListServicesResponse Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Generic ListServicesResponse Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Associated Types

type Rep ListServicesResponse :: Type -> Type #

NFData ListServicesResponse Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

Methods

rnf :: ListServicesResponse -> () #

type Rep ListServicesResponse Source # 
Instance details

Defined in Network.AWS.ECS.ListServices

type Rep ListServicesResponse = D1 (MetaData "ListServicesResponse" "Network.AWS.ECS.ListServices" "amazonka-ecs-1.6.1-7o1YH8hMK1ABbFowaTE1Sy" 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] Source #

The list of full 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.

lsrsResponseStatus :: Lens' ListServicesResponse Int Source #

  • - | The response status code.