describeAddon method

Future<DescribeAddonResponse> describeAddon({
  1. required String addonName,
  2. required String clusterName,
})

Describes an Amazon EKS add-on.

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.

Implementation

Future<DescribeAddonResponse> describeAddon({
  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: 'GET',
    requestUri:
        '/clusters/${Uri.encodeComponent(clusterName)}/addons/${Uri.encodeComponent(addonName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeAddonResponse.fromJson(response);
}