ECS / Paginator / ListServicesByNamespace

ListServicesByNamespace#

class ECS.Paginator.ListServicesByNamespace#
paginator = client.get_paginator('list_services_by_namespace')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from ECS.Client.list_services_by_namespace().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    namespace='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • namespace (string) –

    [REQUIRED]

    The namespace name or full Amazon Resource Name (ARN) of the Cloud Map namespace to list the services in.

    Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'serviceArns': [
        'string',
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • serviceArns (list) –

      The list of full ARN entries for each service that’s associated with the specified namespace.

      • (string) –

    • NextToken (string) –

      A token to resume pagination.