deleteAddon method

Future<DeleteAddonResponse> deleteAddon({
  1. required String addonName,
  2. required String clusterName,
})

Delete an Amazon EKS add-on.

When you remove the add-on, it will also be deleted from the cluster. You can always manually start an add-on on the cluster using the Kubernetes API.

May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ClientException. May throw ServerException.

Parameter addonName : The name of the add-on. The name must match one of the names returned by ListAddons .

Parameter clusterName : The name of the cluster to delete the add-on from.

Implementation

Future<DeleteAddonResponse> deleteAddon({
  required String addonName,
  required String clusterName,
}) async {
  ArgumentError.checkNotNull(addonName, 'addonName');
  ArgumentError.checkNotNull(clusterName, 'clusterName');
  _s.validateStringLength(
    'clusterName',
    clusterName,
    1,
    100,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/clusters/${Uri.encodeComponent(clusterName)}/addons/${Uri.encodeComponent(addonName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteAddonResponse.fromJson(response);
}