describeOutboundCrossClusterSearchConnections method

Future<DescribeOutboundCrossClusterSearchConnectionsResponse> describeOutboundCrossClusterSearchConnections({
  1. List<Filter>? filters,
  2. int? maxResults,
  3. String? nextToken,
})

Lists all the outbound cross-cluster search connections for a source domain.

May throw InvalidPaginationTokenException. May throw DisabledOperationException.

Parameter filters : A list of filters used to match properties for outbound cross-cluster search connection. Available Filter names for this operation are:

  • cross-cluster-search-connection-id
  • destination-domain-info.domain-name
  • destination-domain-info.owner-id
  • destination-domain-info.region
  • source-domain-info.domain-name

Parameter maxResults : Set this value to limit the number of results returned. If not specified, defaults to 100.

Parameter nextToken : NextToken is sent in case the earlier API call results contain the NextToken. It is used for pagination.

Implementation

Future<DescribeOutboundCrossClusterSearchConnectionsResponse>
    describeOutboundCrossClusterSearchConnections({
  List<Filter>? filters,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    0,
    100,
  );
  final $payload = <String, dynamic>{
    if (filters != null) 'Filters': filters,
    if (maxResults != null) 'MaxResults': maxResults,
    if (nextToken != null) 'NextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/2015-01-01/es/ccs/outboundConnection/search',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeOutboundCrossClusterSearchConnectionsResponse.fromJson(
      response);
}