getPosition method
Future<GetPositionResponse>
getPosition({
- required String resourceIdentifier,
- required PositionResourceType resourceType,
Get the position information for a given resource.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter resourceIdentifier :
Resource identifier used to retrieve the position information.
Parameter resourceType :
Resource type of the resource for which position information is retrieved.
Implementation
Future<GetPositionResponse> getPosition({
required String resourceIdentifier,
required PositionResourceType resourceType,
}) async {
final $query = <String, List<String>>{
'resourceType': [resourceType.value],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/positions/${Uri.encodeComponent(resourceIdentifier)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetPositionResponse.fromJson(response);
}