deleteAgentAlias method

Future<DeleteAgentAliasResponse> deleteAgentAlias({
  1. required String agentAliasId,
  2. required String agentId,
})

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);
}