getAction method

Future<GetActionOutput> getAction({
  1. required String action,
})

Retrieves the description of a specific support action.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter action : The name of the support action to retrieve.

Implementation

Future<GetActionOutput> getAction({
  required String action,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/actions/${Uri.encodeComponent(action)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetActionOutput.fromJson(response);
}