@Override
    public UpdateDataSourceResult updateDataSource(UpdateDataSourceRequest request) {
        request = beforeClientExecution(request);
        return executeUpdateDataSource(request);
    }
<p>
Updates a direct-query data source. For more information, see <a
href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/direct-query-s3-creating.html">Working
with Amazon OpenSearch Service data source integrations with Amazon S3</a>.
</p>

@param updateDataSourceRequest
       Container for the parameters to the <code>UpdateDataSource</code> operation.
@return Result of the UpdateDataSource operation returned by the service.
@throws BaseException
        An error occurred while processing the request.
@throws InternalException
        Request processing failed because of an unknown error, exception, or internal failure.
@throws ResourceNotFoundException
        An exception for accessing or deleting a resource that doesn't exist.
@throws ValidationException
        An exception for accessing or deleting a resource that doesn't exist.
@throws DisabledOperationException
        An error occured because the client wanted to access an unsupported operation.
@throws DependencyFailureException
        An exception for when a failure in one of the dependencies results in the service being unable to fetch
        details about the resource.
@sample AmazonOpenSearch.UpdateDataSource
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/AmazonOpenSearchClient.java