getCatalogItem method

Future<GetCatalogItemOutput> getCatalogItem({
  1. required String catalogItemId,
})

Gets information about the specified catalog item.

May throw AccessDeniedException. May throw InternalServerException. May throw NotFoundException. May throw ValidationException.

Parameter catalogItemId : The ID of the catalog item.

Implementation

Future<GetCatalogItemOutput> getCatalogItem({
  required String catalogItemId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/catalog/item/${Uri.encodeComponent(catalogItemId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetCatalogItemOutput.fromJson(response);
}