deletePackage method
Deletes an Amazon OpenSearch Service package. For more information, see Custom packages for Amazon OpenSearch Service.
May throw AccessDeniedException.
May throw BaseException.
May throw ConflictException.
May throw InternalException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter packageID :
The internal ID of the package you want to delete. Use
DescribePackages to find this value.
Implementation
Future<DeletePackageResponse> deletePackage({
required String packageID,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/2021-01-01/packages/${Uri.encodeComponent(packageID)}',
exceptionFnMap: _exceptionFns,
);
return DeletePackageResponse.fromJson(response);
}