listVpcEndpointsForDomain method
Retrieves all Amazon OpenSearch Service-managed VPC endpoints associated with a particular domain.
May throw BaseException.
May throw DisabledOperationException.
May throw InternalException.
May throw ResourceNotFoundException.
Parameter domainName :
Name of the ElasticSearch domain whose VPC endpoints are to be listed.
Parameter nextToken :
Provides an identifier to allow retrieval of paginated results.
Implementation
Future<ListVpcEndpointsForDomainResponse> listVpcEndpointsForDomain({
required String domainName,
String? nextToken,
}) async {
final $query = <String, List<String>>{
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2015-01-01/es/domain/${Uri.encodeComponent(domainName)}/vpcEndpoints',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListVpcEndpointsForDomainResponse.fromJson(response);
}