updateDataAccessor method

Future<void> updateDataAccessor({
  1. required List<ActionConfiguration> actionConfigurations,
  2. required String applicationId,
  3. required String dataAccessorId,
  4. DataAccessorAuthenticationDetail? authenticationDetail,
  5. String? displayName,
})

Updates an existing data accessor. This operation allows modifying the action configurations (the allowed actions and associated filters) and the display name of the data accessor. It does not allow changing the IAM role associated with the data accessor or other core properties of the data accessor.

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

Parameter actionConfigurations : The updated list of action configurations specifying the allowed actions and any associated filters.

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

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

Parameter authenticationDetail : The updated authentication configuration details for the data accessor. This specifies how the ISV will authenticate when accessing data through this data accessor.

Parameter displayName : The updated friendly name for the data accessor.

Implementation

Future<void> updateDataAccessor({
  required List<ActionConfiguration> actionConfigurations,
  required String applicationId,
  required String dataAccessorId,
  DataAccessorAuthenticationDetail? authenticationDetail,
  String? displayName,
}) async {
  final $payload = <String, dynamic>{
    'actionConfigurations': actionConfigurations,
    if (authenticationDetail != null)
      'authenticationDetail': authenticationDetail,
    if (displayName != null) 'displayName': displayName,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/applications/${Uri.encodeComponent(applicationId)}/dataaccessors/${Uri.encodeComponent(dataAccessorId)}',
    exceptionFnMap: _exceptionFns,
  );
}