davsclaus opened a new pull request, #30952:
URL: https://github.com/apache/camel/pull/30952

   # Description
   
   Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). 
The umbrella ticket stays open.
   
   ## Summary
   
   This PR rewrites the component description of `aws2-redshift-data`, 19 
option texts (the `label` path parameter, the
   component `configuration` and the 17 options of 
`RedshiftData2Configuration`) and all 25 header texts. Most old texts
   were short copies of the AWS API reference that did not say which operation 
reads a header, or they were vague
   ("Logical name", "If we want to use a POJO request as body or not", "ID of 
the statement"). The new texts name the
   operations that read each header, the limits of the Redshift Data API, and 
the order in which the credentials options
   win. The old `trustAllCertificates` text limited the option to an overridden 
endpoint, but the client applies it to
   every connection.
   
   Sources: the Camel code (`RedshiftData2Producer`, `RedshiftData2Endpoint`, 
`RedshiftData2Component`, and
   `AwsClientBuilderUtil` of camel-aws-common), and the Amazon Redshift Data 
API reference for AWS SDK for Java 2.57.11.
   
   ### Found, not changed
   
   - The `CamelAwsRedshiftDataSqlParameterList` header has `javaType = 
"List<SqlParameterList>"`, but the producer reads a
     `List` of `SqlParameter`; there is no `SqlParameterList` type.
   - Without `pojoRequest`, the producer sends no `NextToken`, so 
`listDatabases`, `listSchemas`, `listTables`,
     `listStatements`, `describeTable` and `getStatementResult` return only the 
first page. The texts of the max results
     headers say so.
   - `listStatements` ignores the `CamelAwsRedshiftDataClusterIdentifier`, 
`CamelAwsRedshiftDataDatabase` and
     `CamelAwsRedshiftDataWorkGroupName` headers, although the API accepts them 
as filters.
   - Some request fields have no header, so they need `pojoRequest`: 
`ResultFormat`, `SessionId`, `SessionKeepAliveSeconds`
     and `WaitTimeSeconds` of `executeStatement` and `batchExecuteStatement`, 
`Parameters` and `ExecutionMode` of
     `batchExecuteStatement`, and `WaitTimeSeconds` of `getStatementResult`.
   - `operation` is marked as required, although the 
`CamelAwsRedshiftDataOperation` header replaces it.
   - The `label` path parameter is required but not used by the code.
   
   ## Tests
   
   - There is no new test, as only description text changes.
   - A script compared the component JSON with the parent commit: only 
`description` fields changed (62 texts: the
     component description, 18 component options, 18 endpoint options and 25 
headers).
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I ran the formatter and built the module, then regenerated the catalog 
copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all 
generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to