describeInboundCrossClusterSearchConnections method

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

Lists all the inbound cross-cluster search connections for a destination domain.

May throw InvalidPaginationTokenException. May throw DisabledOperationException.

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

  • cross-cluster-search-connection-id
  • source-domain-info.domain-name
  • source-domain-info.owner-id
  • source-domain-info.region
  • destination-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<DescribeInboundCrossClusterSearchConnectionsResponse>
    describeInboundCrossClusterSearchConnections({
  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/inboundConnection/search',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeInboundCrossClusterSearchConnectionsResponse.fromJson(
      response);
}