disassociateService method
Deletes a specific service association from an AgentSpace. This operation is idempotent and returns a 204 No Content response on success.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter agentSpaceId :
The unique identifier of the AgentSpace
Parameter associationId :
The unique identifier of the given association.
Implementation
Future<void> disassociateService({
required String agentSpaceId,
required String associationId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v1/agentspaces/${Uri.encodeComponent(agentSpaceId)}/associations/${Uri.encodeComponent(associationId)}',
hostPrefix: 'cp.',
exceptionFnMap: _exceptionFns,
);
}