deleteNodegroup method
Deletes an Amazon EKS node group for a cluster.
May throw ResourceInUseException. May throw ResourceNotFoundException. May throw InvalidParameterException. May throw ClientException. May throw ServerException. May throw ServiceUnavailableException.
Parameter clusterName
:
The name of the Amazon EKS cluster that is associated with your node
group.
Parameter nodegroupName
:
The name of the node group to delete.
Implementation
Future<DeleteNodegroupResponse> deleteNodegroup({
required String clusterName,
required String nodegroupName,
}) async {
ArgumentError.checkNotNull(clusterName, 'clusterName');
ArgumentError.checkNotNull(nodegroupName, 'nodegroupName');
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/clusters/${Uri.encodeComponent(clusterName)}/node-groups/${Uri.encodeComponent(nodegroupName)}',
exceptionFnMap: _exceptionFns,
);
return DeleteNodegroupResponse.fromJson(response);
}