getDataAccessor method

Future<GetDataAccessorResponse> getDataAccessor({
  1. required String applicationId,
  2. required String dataAccessorId,
})

Retrieves information about a specified data accessor. This operation returns details about the data accessor, including its display name, unique identifier, Amazon Resource Name (ARN), the associated Amazon Q Business application and IAM Identity Center application, the IAM role for the ISV, the action configurations, and the timestamps for when the data accessor was created and last updated.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter applicationId : The unique identifier of the Amazon Q Business application.

Parameter dataAccessorId : The unique identifier of the data accessor to retrieve.

Implementation

Future<GetDataAccessorResponse> getDataAccessor({
  required String applicationId,
  required String dataAccessorId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/applications/${Uri.encodeComponent(applicationId)}/dataaccessors/${Uri.encodeComponent(dataAccessorId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetDataAccessorResponse.fromJson(response);
}