Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This operation lists all of the services that are associated with a
Cloud Map namespace. This list might include services in different
clusters. In contrast, ListServices
can only list services in one
cluster at a time. If you need to filter the list of services in a
single cluster by various parameters, use ListServices
. For more
information, see
Service Connect
in the Amazon Elastic Container Service Developer Guide.
This operation returns paginated results.
Synopsis
- data ListServicesByNamespace = ListServicesByNamespace' {}
- newListServicesByNamespace :: Text -> ListServicesByNamespace
- listServicesByNamespace_maxResults :: Lens' ListServicesByNamespace (Maybe Int)
- listServicesByNamespace_nextToken :: Lens' ListServicesByNamespace (Maybe Text)
- listServicesByNamespace_namespace :: Lens' ListServicesByNamespace Text
- data ListServicesByNamespaceResponse = ListServicesByNamespaceResponse' {
- nextToken :: Maybe Text
- serviceArns :: Maybe [Text]
- httpStatus :: Int
- newListServicesByNamespaceResponse :: Int -> ListServicesByNamespaceResponse
- listServicesByNamespaceResponse_nextToken :: Lens' ListServicesByNamespaceResponse (Maybe Text)
- listServicesByNamespaceResponse_serviceArns :: Lens' ListServicesByNamespaceResponse (Maybe [Text])
- listServicesByNamespaceResponse_httpStatus :: Lens' ListServicesByNamespaceResponse Int
Creating a Request
data ListServicesByNamespace Source #
See: newListServicesByNamespace
smart constructor.
ListServicesByNamespace' | |
|
Instances
newListServicesByNamespace Source #
Create a value of ListServicesByNamespace
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:maxResults:ListServicesByNamespace'
, listServicesByNamespace_maxResults
- The maximum number of service results that ListServicesByNamespace
returns in paginated output. When this parameter is used,
ListServicesByNamespace
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
ListServicesByNamespace
request with the returned nextToken
value.
This value can be between 1 and 100. If this parameter isn't used, then
ListServicesByNamespace
returns up to 10 results and a nextToken
value if applicable.
ListServicesByNamespace
, listServicesByNamespace_nextToken
- The nextToken
value that's returned from a ListServicesByNamespace
request. It indicates that more results are available to fulfill the
request and further calls are needed. If maxResults
is returned, it is
possible the number of results is less than maxResults
.
ListServicesByNamespace
, listServicesByNamespace_namespace
- 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.
Request Lenses
listServicesByNamespace_maxResults :: Lens' ListServicesByNamespace (Maybe Int) Source #
The maximum number of service results that ListServicesByNamespace
returns in paginated output. When this parameter is used,
ListServicesByNamespace
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
ListServicesByNamespace
request with the returned nextToken
value.
This value can be between 1 and 100. If this parameter isn't used, then
ListServicesByNamespace
returns up to 10 results and a nextToken
value if applicable.
listServicesByNamespace_nextToken :: Lens' ListServicesByNamespace (Maybe Text) Source #
The nextToken
value that's returned from a ListServicesByNamespace
request. It indicates that more results are available to fulfill the
request and further calls are needed. If maxResults
is returned, it is
possible the number of results is less than maxResults
.
listServicesByNamespace_namespace :: Lens' ListServicesByNamespace Text Source #
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.
Destructuring the Response
data ListServicesByNamespaceResponse Source #
See: newListServicesByNamespaceResponse
smart constructor.
ListServicesByNamespaceResponse' | |
|
Instances
newListServicesByNamespaceResponse Source #
Create a value of ListServicesByNamespaceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListServicesByNamespace
, listServicesByNamespaceResponse_nextToken
- The nextToken
value to include in a future ListServicesByNamespace
request. When the results of a ListServicesByNamespace
request exceed
maxResults
, this value can be used to retrieve the next page of
results. When there are no more results to return, this value is null
.
$sel:serviceArns:ListServicesByNamespaceResponse'
, listServicesByNamespaceResponse_serviceArns
- The list of full ARN entries for each service that's associated with
the specified namespace.
$sel:httpStatus:ListServicesByNamespaceResponse'
, listServicesByNamespaceResponse_httpStatus
- The response's http status code.
Response Lenses
listServicesByNamespaceResponse_nextToken :: Lens' ListServicesByNamespaceResponse (Maybe Text) Source #
The nextToken
value to include in a future ListServicesByNamespace
request. When the results of a ListServicesByNamespace
request exceed
maxResults
, this value can be used to retrieve the next page of
results. When there are no more results to return, this value is null
.
listServicesByNamespaceResponse_serviceArns :: Lens' ListServicesByNamespaceResponse (Maybe [Text]) Source #
The list of full ARN entries for each service that's associated with the specified namespace.
listServicesByNamespaceResponse_httpStatus :: Lens' ListServicesByNamespaceResponse Int Source #
The response's http status code.