deleteVpcEndpoint method
Deletes an OpenSearch Serverless-managed interface endpoint. For more information, see Access Amazon OpenSearch Serverless using an interface endpoint.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter id :
The VPC endpoint identifier.
Parameter clientToken :
Unique, case-sensitive identifier to ensure idempotency of the request.
Implementation
Future<DeleteVpcEndpointResponse> deleteVpcEndpoint({
required String id,
String? clientToken,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'OpenSearchServerless.DeleteVpcEndpoint'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'id': id,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
},
);
return DeleteVpcEndpointResponse.fromJson(jsonResponse.body);
}