createPresignedNotebookUrl method
Future<CreatePresignedNotebookUrlResponse>
createPresignedNotebookUrl({
- required String sessionId,
Gets an authentication token and the URL at which the notebook can be
accessed. During programmatic access,
CreatePresignedNotebookUrl must be called every 10 minutes to
refresh the authentication token. For information about granting
programmatic access, see Grant
programmatic access.
May throw InternalServerException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
Parameter sessionId :
The session ID.
Implementation
Future<CreatePresignedNotebookUrlResponse> createPresignedNotebookUrl({
required String sessionId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.CreatePresignedNotebookUrl'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SessionId': sessionId,
},
);
return CreatePresignedNotebookUrlResponse.fromJson(jsonResponse.body);
}