batchGetVpcEndpoint method
Returns attributes for one or more VPC endpoints associated with the current account. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
May throw InternalServerException.
May throw ValidationException.
Parameter ids :
A list of VPC endpoint identifiers.
Implementation
Future<BatchGetVpcEndpointResponse> batchGetVpcEndpoint({
required List<String> ids,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'OpenSearchServerless.BatchGetVpcEndpoint'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ids': ids,
},
);
return BatchGetVpcEndpointResponse.fromJson(jsonResponse.body);
}