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

   # 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, 19 option texts and 18 header 
texts of aws-security-hub. The 19 options are the 17 shared AWS options of 
`SecurityHubConfiguration`, the `label` path option and the component 
`configuration`. The old texts were short or vague ("Logical name", "Amazon AWS 
Access Key", "If we want to use a POJO request as body or not"). The new texts 
say how the credentials options take precedence over each other, when the proxy 
and endpoint override options apply, and which operation reads or sets each 
header, with the value ranges and limits of Security Hub. The old 
`trustAllCertificates` text said it applies only to an overridden endpoint. It 
applies to any endpoint.
   
   Sources: the Camel code (`SecurityHubProducer`, `AwsClientBuilderUtil` of 
camel-aws-common) and the Security Hub API of AWS SDK for Java 2.57.11.
   
   ### Found, not changed
   
   - `operation` is marked `required = true` but has the default 
`batchImportFindings`.
   - `CamelAwsSecurityHubMaxResults` has the label `getFindings`, but 
`getFindingHistory` and `listEnabledProductsForImport` read it too.
   - The 13 headers that `batchImportFindings`, `getFindings` and 
`batchUpdateFindings` read (`CamelAwsSecurityHubFindings`, 
`CamelAwsSecurityHubFilters`, `CamelAwsSecurityHubNote`, ...) and 
`CamelAwsSecurityHubOperation` have no label. The other headers name their 
operation in the label.
   - The Javadoc of `SecurityHubOperations.getFindingAggregator` says "Get 
aggregated findings count". The operation returns the configuration of a 
finding aggregator (the aggregation region and the linked regions).
   - `describeHub` reads no header, so the ARN of a hub can only be given with 
`pojoRequest=true`.
   
   ## 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 (55 texts: the component, 18 component options, 18 
endpoint options, 18 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