describeInboundConnections method
Lists all the inbound cross-cluster connections for a remote domain.
May throw InvalidPaginationTokenException. May throw DisabledOperationException.
Parameter filters
:
A list of filters used to match properties for inbound cross-cluster
connections. Available Filter
values are:
- connection-id
- local-domain-info.domain-name
- local-domain-info.owner-id
- local-domain-info.region
- remote-domain-info.domain-name
Parameter maxResults
:
Set this value to limit the number of results returned. If not specified,
defaults to 100.
Parameter nextToken
:
If more results are available and NextToken is present, make the next
request to the same API with the received NextToken to paginate the
remaining results.
Implementation
Future<DescribeInboundConnectionsResponse> describeInboundConnections({
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: '/2021-01-01/opensearch/cc/inboundConnection/search',
exceptionFnMap: _exceptionFns,
);
return DescribeInboundConnectionsResponse.fromJson(response);
}