expireSession method
Immediately stops the specified streaming session.
Parameter sessionId :
The identifier of the streaming session.
Implementation
Future<void> expireSession({
required String sessionId,
}) async {
ArgumentError.checkNotNull(sessionId, 'sessionId');
_s.validateStringLength(
'sessionId',
sessionId,
1,
1152921504606846976,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'PhotonAdminProxyService.ExpireSession'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SessionId': sessionId,
},
);
}