terminateStreamSession method
Permanently terminates an active stream session. When called, the stream
session status changes to TERMINATING. You can terminate a
stream session in any status except ACTIVATING. If the stream
session is in ACTIVATING status, an exception is thrown.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter identifier :
Amazon
Resource Name (ARN) or ID that uniquely identifies the stream group
resource. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:streamgroup/sg-1AB2C3De4.
Example ID: sg-1AB2C3De4.
The stream group that runs this stream session.
Parameter streamSessionIdentifier :
Amazon
Resource Name (ARN) or ID that uniquely identifies the stream session
resource. Example ARN:
arn:aws:gameliftstreams:us-west-2:111122223333:streamsession/sg-1AB2C3De4/ABC123def4567.
Example ID: ABC123def4567.
Implementation
Future<void> terminateStreamSession({
required String identifier,
required String streamSessionIdentifier,
}) async {
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/streamgroups/${Uri.encodeComponent(identifier)}/streamsessions/${Uri.encodeComponent(streamSessionIdentifier)}',
exceptionFnMap: _exceptionFns,
);
}