getWorkspaceInstance method
Retrieves detailed information about a specific WorkSpace Instance.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter workspaceInstanceId :
Unique identifier of the WorkSpace Instance to retrieve.
Implementation
Future<GetWorkspaceInstanceResponse> getWorkspaceInstance({
required String workspaceInstanceId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'EUCMIFrontendAPIService.GetWorkspaceInstance'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'WorkspaceInstanceId': workspaceInstanceId,
},
);
return GetWorkspaceInstanceResponse.fromJson(jsonResponse.body);
}