deleteAlias method
Deletes an alias. This operation removes all record of the alias. Game clients attempting to access a server process using the deleted alias receive an error. To delete an alias, specify the alias ID to be deleted.
May throw UnauthorizedException. May throw NotFoundException. May throw InvalidRequestException. May throw TaggingFailedException. May throw InternalServiceException.
Parameter aliasId
:
A unique identifier of the alias that you want to delete. You can use
either the alias ID or ARN value.
Implementation
Future<void> deleteAlias({
required String aliasId,
}) async {
ArgumentError.checkNotNull(aliasId, 'aliasId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'GameLift.DeleteAlias'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AliasId': aliasId,
},
);
}