getCapacityTask method
Gets details of the specified capacity task.
May throw AccessDeniedException.
May throw InternalServerException.
May throw NotFoundException.
May throw ValidationException.
Parameter capacityTaskId :
ID of the capacity task.
Parameter outpostIdentifier :
ID or ARN of the Outpost associated with the specified capacity task.
Implementation
Future<GetCapacityTaskOutput> getCapacityTask({
required String capacityTaskId,
required String outpostIdentifier,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/outposts/${Uri.encodeComponent(outpostIdentifier)}/capacity/${Uri.encodeComponent(capacityTaskId)}',
exceptionFnMap: _exceptionFns,
);
return GetCapacityTaskOutput.fromJson(response);
}