createGUISessionAccessDetails method
Future<CreateGUISessionAccessDetailsResult>
createGUISessionAccessDetails({
- required String resourceName,
Creates two URLs that are used to access a virtual computer’s graphical user interface (GUI) session. The primary URL initiates a web-based Amazon DCV session to the virtual computer's application. The secondary URL initiates a web-based Amazon DCV session to the virtual computer's operating session.
Use StartGUISession to open the session.
May throw AccessDeniedException.
May throw InvalidInputException.
May throw NotFoundException.
May throw RegionSetupInProgressException.
May throw ServiceException.
May throw UnauthenticatedException.
Parameter resourceName :
The resource name.
Implementation
Future<CreateGUISessionAccessDetailsResult> createGUISessionAccessDetails({
required String resourceName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Lightsail_20161128.CreateGUISessionAccessDetails'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'resourceName': resourceName,
},
);
return CreateGUISessionAccessDetailsResult.fromJson(jsonResponse.body);
}