deleteAgentAlias method
Deletes an alias of an agent.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter agentAliasId :
The unique identifier of the alias to delete.
Parameter agentId :
The unique identifier of the agent that the alias belongs to.
Implementation
Future<DeleteAgentAliasResponse> deleteAgentAlias({
required String agentAliasId,
required String agentId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/agents/${Uri.encodeComponent(agentId)}/agentaliases/${Uri.encodeComponent(agentAliasId)}/',
exceptionFnMap: _exceptionFns,
);
return DeleteAgentAliasResponse.fromJson(response);
}