getAssistantAssociation method

Future<GetAssistantAssociationResponse> getAssistantAssociation({
  1. required String assistantAssociationId,
  2. required String assistantId,
})

Retrieves information about an assistant association.

May throw AccessDeniedException. May throw ResourceNotFoundException. May throw UnauthorizedException. May throw ValidationException.

Parameter assistantAssociationId : The identifier of the assistant association. Can be either the ID or the ARN. URLs cannot contain the ARN.

Parameter assistantId : The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

Implementation

Future<GetAssistantAssociationResponse> getAssistantAssociation({
  required String assistantAssociationId,
  required String assistantId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/assistants/${Uri.encodeComponent(assistantId)}/associations/${Uri.encodeComponent(assistantAssociationId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetAssistantAssociationResponse.fromJson(response);
}