This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 2589ce09a75d CAMEL-27615: camel-aws2-redshift - next page token, 
listStatements filters, more headers, optional label and operation (#31001)
2589ce09a75d is described below

commit 2589ce09a75d17523f2e37f379c1455cbd820999
Author: allthingssecurity <[email protected]>
AuthorDate: Fri Nov 27 22:17:32 2026 +0530

    CAMEL-27615: camel-aws2-redshift - next page token, listStatements filters, 
more headers, optional label and operation (#31001)
    
    1. Without pojoRequest, listDatabases, listSchemas, listStatements,
       listTables, describeTable and getStatementResult never set nextToken, so
       a route could only read the first page. The new
       CamelAwsRedshiftDataNextToken header is passed to these requests; the
       response (the body) holds the nextToken for the next call.
    
    2. listStatements ignored the CamelAwsRedshiftDataClusterIdentifier,
       CamelAwsRedshiftDataWorkGroupName and CamelAwsRedshiftDataDatabase
       headers, which ListStatementsRequest accepts as filters. They are now
       passed, as the other operations do.
    
    3. New headers for request fields that only pojoRequest could set:
       CamelAwsRedshiftDataWaitTimeSeconds (executeStatement,
       batchExecuteStatement, getStatementResult),
       CamelAwsRedshiftDataExecutionMode (batchExecuteStatement),
       CamelAwsRedshiftDataResultFormat, CamelAwsRedshiftDataSessionId and
       CamelAwsRedshiftDataSessionKeepAliveSeconds (executeStatement,
       batchExecuteStatement). batchExecuteStatement now also passes the
       CamelAwsRedshiftDataSqlParameterList header as its parameters. The
       description of the ResultFormat header says that getStatementResult
       reads JSON results only, as a CSV result needs GetStatementResultV2,
       which the component does not offer.
    
    4. The javaType of CamelAwsRedshiftDataSqlParameterList was
       List<SqlParameterList>, a type that does not exist. It is now
       List<software.amazon.awssdk.services.redshiftdata.model.SqlParameter>.
    
    5. The label path parameter is not used but was required. It stays in the
       syntax for URI compatibility and is no longer required.
    
    6. operation was required although the CamelAwsRedshiftDataOperation header
       replaces it. It is no longer required, and an exchange with neither the
       header nor the option fails with an IllegalArgumentException that says 
so,
       instead of a NullPointerException in the switch.
    
    Regenerated aws2-redshift-data.json (component and catalog copy), the
    endpoint URI factory and the endpoint DSL. Upgrade guide entry for 4.24
    for points 1, 2, 3 and 6.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 .../catalog/components/aws2-redshift-data.json     |  34 ++--
 .../data/RedshiftData2EndpointUriFactory.java      |   2 +-
 .../aws2/redshift/data/aws2-redshift-data.json     |  34 ++--
 .../redshift/data/RedshiftData2Configuration.java  |   4 +-
 .../aws2/redshift/data/RedshiftData2Constants.java |  82 +++++---
 .../aws2/redshift/data/RedshiftData2Producer.java  |  95 ++++++++++
 .../data/RedshiftData2ProducerHeadersTest.java     | 208 +++++++++++++++++++++
 .../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc    |  16 ++
 .../Aws2RedshiftDataComponentBuilderFactory.java   |   3 +-
 .../builder/endpoint/StaticEndpointBuilders.java   |   4 +-
 .../dsl/RedshiftData2EndpointBuilderFactory.java   | 162 ++++++++++++----
 11 files changed, 554 insertions(+), 90 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-redshift-data.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-redshift-data.json
index 9f358be6a635..bb5f9e617c38 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-redshift-data.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/aws2-redshift-data.json
@@ -26,7 +26,7 @@
   "componentProperties": {
     "configuration": { "index": 0, "kind": "property", "displayName": 
"Configuration", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
configuration that the component copies to each endpoint that it creates, so 
that the endpoints share its values." },
     "lazyStartProducer": { "index": 1, "kind": "property", "displayName": 
"Lazy Start Producer", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether the producer should be started lazy (on the first message). By 
starting lazy you can use this to allow CamelContext and routes to startup in 
situations where a producer may otherwise fail [...]
-    "operation": { "index": 2, "kind": "property", "displayName": "Operation", 
"group": "producer", "label": "", "required": true, "type": "enum", "javaType": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations", 
"enum": [ "listDatabases", "listSchemas", "listStatements", "listTables", 
"describeTable", "executeStatement", "batchExecuteStatement", 
"cancelStatement", "describeStatement", "getStatementResult" ], "deprecated": 
false, "autowired": false, "secret": false, "c [...]
+    "operation": { "index": 2, "kind": "property", "displayName": "Operation", 
"group": "producer", "label": "", "required": false, "type": "enum", 
"javaType": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations", 
"enum": [ "listDatabases", "listSchemas", "listStatements", "listTables", 
"describeTable", "executeStatement", "batchExecuteStatement", 
"cancelStatement", "describeStatement", "getStatementResult" ], "deprecated": 
false, "autowired": false, "secret": false, " [...]
     "overrideEndpoint": { "index": 3, "kind": "property", "displayName": 
"Override Endpoint", "group": "producer", "label": "", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "Whether the client sends 
its requests to the URI of uriEndpointOverri [...]
     "pojoRequest": { "index": 4, "kind": "property", "displayName": "Pojo 
Request", "group": "producer", "label": "", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "Whether the message body 
is the request of the AWS SDK for the operation, such  [...]
     "profileCredentialsName": { "index": 5, "kind": "property", "displayName": 
"Profile Credentials Name", "group": "producer", "label": "", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "The name of the profile 
that the client loads when useProfileCredential [...]
@@ -49,38 +49,44 @@
   },
   "headers": {
     "CamelAwsRedshiftDataOperation": { "index": 0, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The operation to perform. It replaces the operation option.", 
"constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#OPERATION"
 },
-    "CamelAwsRedshiftDataClusterIdentifier": { "index": 1, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The identifier of the provisioned cluster to connect to. Amazon 
Redshift requires it for a cluster with AWS Secrets Manager or temporary 
credentials. Not used by listStatements, cancelStatement, describeStatement and 
getStatementResult.", "constan [...]
+    "CamelAwsRedshiftDataClusterIdentifier": { "index": 1, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The identifier of the provisioned cluster to connect to. Amazon 
Redshift requires it for a cluster with AWS Secrets Manager or temporary 
credentials. For listStatements it is a filter: only the statements that ran on 
this cluster are returned. Not [...]
     "CamelAwsRedshiftDataSecretArn": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name or ARN of the secret in AWS Secrets Manager that holds 
the user name and password of the database. Amazon Redshift requires it when it 
authenticates with AWS Secrets Manager. Not used by listStatements, 
cancelStatement, describeStatement and getS [...]
-    "CamelAwsRedshiftDataDatabase": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the database. For listSchemas, listTables and 
describeTable it is the database that holds the schemas or tables, and also the 
database to connect to when CamelAwsRedshiftDataConnectedDatabase is not set. 
Not used by listStatements, cancelStatem [...]
-    "CamelAwsRedshiftDataWorkGroupName": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name or ARN of the Amazon Redshift Serverless workgroup to 
connect to. Amazon Redshift requires it for a workgroup with AWS Secrets 
Manager or temporary credentials. Not used by listStatements, cancelStatement, 
describeStatement and getStatementRe [...]
-    "CamelAwsRedshiftDataDatabasesMaxResults": { "index": 5, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of databases that listDatabases 
returns. The producer returns only the first page of the response.", 
"constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#LIST_DATABASES_MAX_RESULTS"
 },
+    "CamelAwsRedshiftDataDatabase": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the database. For listSchemas, listTables and 
describeTable it is the database that holds the schemas or tables, and also the 
database to connect to when CamelAwsRedshiftDataConnectedDatabase is not set. 
For listStatements, together with CamelA [...]
+    "CamelAwsRedshiftDataWorkGroupName": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name or ARN of the Amazon Redshift Serverless workgroup to 
connect to. Amazon Redshift requires it for a workgroup with AWS Secrets 
Manager or temporary credentials. For listStatements it is a filter: only the 
statements that ran in this workgroup [...]
+    "CamelAwsRedshiftDataDatabasesMaxResults": { "index": 5, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of databases that listDatabases 
returns in one page. The response holds the nextToken of the next page, for 
CamelAwsRedshiftDataNextToken.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constant [...]
     "CamelAwsRedshiftDataDbUser": { "index": 6, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The database user name. Amazon Redshift requires it to connect 
to a cluster as a database user with temporary credentials. Not used by 
listStatements, cancelStatement, describeStatement and getStatementResult.", 
"constantName": "org.apache.camel.component.aw [...]
     "CamelAwsRedshiftDataConnectedDatabase": { "index": 7, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The database to connect to with the credentials, when it is not 
the database in CamelAwsRedshiftDataDatabase. Used by listSchemas, listTables 
and describeTable.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constant [...]
     "CamelAwsRedshiftDataSchemaPattern": { "index": 8, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "A pattern of schema names for listSchemas and listTables, in 
which % matches any number of characters and _ matches one character. If not 
set, all schemas match.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#S [...]
-    "CamelAwsRedshiftDataSchemasMaxResults": { "index": 9, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of schemas that listSchemas returns. 
The producer returns only the first page of the response.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#LIST_SCHEMAS_MAX_RESULTS"
 },
-    "CamelAwsRedshiftDataStatementsMaxResults": { "index": 10, "kind": 
"header", "displayName": "", "group": "producer", "label": "", "required": 
false, "javaType": "Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The maximum number of SQL statements that 
listStatements returns, at most 100. The producer returns only the first page 
of the response.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#LIST_STATEMENTS_M
 [...]
+    "CamelAwsRedshiftDataSchemasMaxResults": { "index": 9, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of schemas that listSchemas returns 
in one page. The response holds the nextToken of the next page, for 
CamelAwsRedshiftDataNextToken.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#LIST [...]
+    "CamelAwsRedshiftDataStatementsMaxResults": { "index": 10, "kind": 
"header", "displayName": "", "group": "producer", "label": "", "required": 
false, "javaType": "Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The maximum number of SQL statements that 
listStatements returns in one page, at most 100. The response holds the 
nextToken of the next page, for CamelAwsRedshiftDataNextToken.", 
"constantName": "org.apache.camel.component.aws2.redshift.data. [...]
     "CamelAwsRedshiftDataStatementName": { "index": 11, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the SQL statement. executeStatement and 
batchExecuteStatement give the statement this name, and listStatements returns 
the statements whose name starts with this value, which is case-sensitive.", 
"constantName": "org.apache.camel.componen [...]
     "CamelAwsRedshiftDataStatus": { "index": 12, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The status of the statements that listStatements returns: 
SUBMITTED, PICKED, STARTED, FINISHED, ABORTED, FAILED or ALL. If not set, 
Amazon Redshift returns only the finished statements.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.Redshi [...]
     "CamelAwsRedshiftDataRoleLevel": { "index": 13, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret": 
false, "description": "Whether listStatements returns all statements that the 
IAM role of the caller ran (true), or only those of the current IAM session 
(false). If not set, Amazon Redshift uses true.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftD [...]
-    "CamelAwsRedshiftDataTablesMaxResults": { "index": 14, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of tables that listTables returns, at 
most 1000. The producer returns only the first page of the response.", 
"constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#LIST_TABLES_MAX_RESULTS"
 },
+    "CamelAwsRedshiftDataTablesMaxResults": { "index": 14, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of tables that listTables returns in 
one page, at most 1000. The response holds the nextToken of the next page, for 
CamelAwsRedshiftDataNextToken.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Co [...]
     "CamelAwsRedshiftDataTablePattern": { "index": 15, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "A pattern of table names for listTables, in which % matches any 
number of characters and _ matches one character. If not set, all tables 
match.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#TABLE_PATTERN"
 },
     "CamelAwsRedshiftDataTable": { "index": 16, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the table that describeTable describes. If not set, 
describeTable describes all tables of the matching schemas.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#TABLE" },
     "CamelAwsRedshiftDataSchema": { "index": 17, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The schema of the table that describeTable describes. If not 
set, the tables of all schemas match.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#SCHEMA" },
-    "CamelAwsRedshiftDataDescribeTableMaxResults": { "index": 18, "kind": 
"header", "displayName": "", "group": "producer", "label": "", "required": 
false, "javaType": "Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The maximum number of columns that 
describeTable returns, at most 1000. The producer returns only the first page 
of the response.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#DESCRIBE_TABLE_MAX_RE
 [...]
+    "CamelAwsRedshiftDataDescribeTableMaxResults": { "index": 18, "kind": 
"header", "displayName": "", "group": "producer", "label": "", "required": 
false, "javaType": "Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The maximum number of columns that 
describeTable returns in one page, at most 1000. The response holds the 
nextToken of the next page, for CamelAwsRedshiftDataNextToken.", 
"constantName": "org.apache.camel.component.aws2.redshift.data.Reds [...]
     "CamelAwsRedshiftDataStatementId": { "index": 19, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The ID of the SQL statement for cancelStatement, 
describeStatement and getStatementResult, as the response of executeStatement 
or batchExecuteStatement returns it. For the result of one statement of a 
batch, add its number as a suffix, for example :2 f [...]
     "CamelAwsRedshiftDataWithEvent": { "index": 20, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret": 
false, "description": "Whether Amazon Redshift sends an event to the Amazon 
EventBridge event bus after the SQL statements run. Used by executeStatement 
and batchExecuteStatement.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#WITH_EVENT"
 },
     "CamelAwsRedshiftDataClientToken": { "index": 21, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "A unique, case-sensitive identifier of at most 64 characters, 
which makes a retried request idempotent. Used by executeStatement and 
batchExecuteStatement.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#CLIENT_T 
[...]
-    "CamelAwsRedshiftDataSqlStatement": { "index": 22, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The SQL statement that executeStatement runs, which must be a 
single statement. The producer does not wait for the statement to finish: 
describeStatement and getStatementResult take the ID that the response 
returns.", "constantName": "org.apache.camel [...]
-    "CamelAwsRedshiftDataSqlParameterList": { "index": 23, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "List<SqlParameterList>", "deprecated": false, "autowired": false, 
"secret": false, "description": "The parameters of the SQL statement of 
executeStatement, as a java.util.List of 
software.amazon.awssdk.services.redshiftdata.model.SqlParameter, each with a 
name and a value. The statement refers to a parameter as :name.", "constan [...]
-    "CamelAwsRedshiftDataSqlStatementList": { "index": 24, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "List", "deprecated": false, "autowired": false, "secret": false, 
"description": "The SQL statements that batchExecuteStatement runs, as a 
java.util.List of String with at most 40 statements. They run one after the 
other in a single transaction, which is rolled back if one of them fails.", 
"constantName": "org.apache.camel.compon [...]
+    "CamelAwsRedshiftDataSqlStatement": { "index": 22, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The SQL statement that executeStatement runs, which must be a 
single statement. Unless CamelAwsRedshiftDataWaitTimeSeconds is set, the 
producer does not wait for the statement to finish: describeStatement and 
getStatementResult take the ID that the re [...]
+    "CamelAwsRedshiftDataSqlParameterList": { "index": 23, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": 
"List<software.amazon.awssdk.services.redshiftdata.model.SqlParameter>", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
parameters of the SQL statements of executeStatement and batchExecuteStatement, 
as a java.util.List of 
software.amazon.awssdk.services.redshiftdata.model.SqlParameter, each with a  
[...]
+    "CamelAwsRedshiftDataSqlStatementList": { "index": 24, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "List", "deprecated": false, "autowired": false, "secret": false, 
"description": "The SQL statements that batchExecuteStatement runs, as a 
java.util.List of String with at most 40 statements. They run one after the 
other in a single transaction, which is rolled back if one of them fails, 
unless CamelAwsRedshiftDataExecutionMode i [...]
+    "CamelAwsRedshiftDataNextToken": { "index": 25, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The token of the page of results to return, from the nextToken 
of the response of the previous call. Used by listDatabases, listSchemas, 
listStatements, listTables, describeTable and getStatementResult.", 
"constantName": "org.apache.camel.component.aws2. [...]
+    "CamelAwsRedshiftDataWaitTimeSeconds": { "index": 26, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The number of seconds that executeStatement, 
batchExecuteStatement and getStatementResult wait for the statement to finish 
before they return.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#WAIT_TIME_SECONDS"
 },
+    "CamelAwsRedshiftDataExecutionMode": { "index": 27, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "How batchExecuteStatement runs the statements: in one 
transaction (TRANSACTION) or each statement committed on its own 
(AUTO_COMMIT).", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#EXECUTION_MODE"
 },
+    "CamelAwsRedshiftDataResultFormat": { "index": 28, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The format of the result of executeStatement and 
batchExecuteStatement: JSON (the default) or CSV. The getStatementResult 
operation reads JSON results only: a CSV result can only be read with 
GetStatementResultV2 of the AWS API, which this component d [...]
+    "CamelAwsRedshiftDataSessionId": { "index": 29, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The ID of the session that executeStatement and 
batchExecuteStatement run in, as a previous response with 
CamelAwsRedshiftDataSessionKeepAliveSeconds returns it.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#SESS [...]
+    "CamelAwsRedshiftDataSessionKeepAliveSeconds": { "index": 30, "kind": 
"header", "displayName": "", "group": "producer", "label": "", "required": 
false, "javaType": "Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The number of seconds that the session of 
executeStatement and batchExecuteStatement stays open after the statement ends, 
so that a later statement can run in it.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftDat [...]
   },
   "bodyTypes": {
     "producerIn": { "carriers": [ "any" ], "byOption": [ { "option": 
"pojoRequest", "value": "true", "carriers": [ "pojo" ] } ], "description": "Not 
used: the operations take their input from headers, such as the SQL of 
executeStatement in CamelAwsRedshiftDataSqlStatement; SQL in the body is not 
run. With pojoRequest=true the request of the AWS SDK for the operation, such 
as an ExecuteStatementRequest: another body fails" },
     "producerOut": { "carriers": [ "pojo" ], "description": "The response of 
the AWS SDK for the operation, such as the ExecuteStatementResponse of 
executeStatement, which does not wait for the statement, or the 
GetStatementResultResponse of getStatementResult with one page of records" }
   },
   "properties": {
-    "label": { "index": 0, "kind": "path", "displayName": "Label", "group": 
"producer", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "A logical name of the 
endpoint, which you choose freely. The producer does not use it." },
-    "operation": { "index": 1, "kind": "parameter", "displayName": 
"Operation", "group": "producer", "label": "", "required": true, "type": 
"enum", "javaType": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations", 
"enum": [ "listDatabases", "listSchemas", "listStatements", "listTables", 
"describeTable", "executeStatement", "batchExecuteStatement", 
"cancelStatement", "describeStatement", "getStatementResult" ], "deprecated": 
false, "autowired": false, "secret": false, " [...]
+    "label": { "index": 0, "kind": "path", "displayName": "Label", "group": 
"producer", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "A logical name of the 
endpoint, which you choose freely. The producer does not use it." },
+    "operation": { "index": 1, "kind": "parameter", "displayName": 
"Operation", "group": "producer", "label": "", "required": false, "type": 
"enum", "javaType": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations", 
"enum": [ "listDatabases", "listSchemas", "listStatements", "listTables", 
"describeTable", "executeStatement", "batchExecuteStatement", 
"cancelStatement", "describeStatement", "getStatementResult" ], "deprecated": 
false, "autowired": false, "secret": false,  [...]
     "overrideEndpoint": { "index": 2, "kind": "parameter", "displayName": 
"Override Endpoint", "group": "producer", "label": "", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "Whether the client sends 
its requests to the URI of uriEndpointOverr [...]
     "pojoRequest": { "index": 3, "kind": "parameter", "displayName": "Pojo 
Request", "group": "producer", "label": "", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "Whether the message body 
is the request of the AWS SDK for the operation, such [...]
     "profileCredentialsName": { "index": 4, "kind": "parameter", 
"displayName": "Profile Credentials Name", "group": "producer", "label": "", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "The name of the profile 
that the client loads when useProfileCredentia [...]
diff --git 
a/components/camel-aws/camel-aws2-redshift/src/generated/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2EndpointUriFactory.java
 
b/components/camel-aws/camel-aws2-redshift/src/generated/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2EndpointUriFactory.java
index ad68692a5372..0c649067e066 100644
--- 
a/components/camel-aws/camel-aws2-redshift/src/generated/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2EndpointUriFactory.java
+++ 
b/components/camel-aws/camel-aws2-redshift/src/generated/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2EndpointUriFactory.java
@@ -66,7 +66,7 @@ public class RedshiftData2EndpointUriFactory extends 
org.apache.camel.support.co
 
         Map<String, Object> copy = copyParameters(properties);
 
-        uri = buildPathParameter(syntax, uri, "label", null, true, copy);
+        uri = buildPathParameter(syntax, uri, "label", null, false, copy);
         uri = buildQueryParameters(uri, copy, encode);
         return uri;
     }
diff --git 
a/components/camel-aws/camel-aws2-redshift/src/generated/resources/META-INF/org/apache/camel/component/aws2/redshift/data/aws2-redshift-data.json
 
b/components/camel-aws/camel-aws2-redshift/src/generated/resources/META-INF/org/apache/camel/component/aws2/redshift/data/aws2-redshift-data.json
index 9f358be6a635..bb5f9e617c38 100644
--- 
a/components/camel-aws/camel-aws2-redshift/src/generated/resources/META-INF/org/apache/camel/component/aws2/redshift/data/aws2-redshift-data.json
+++ 
b/components/camel-aws/camel-aws2-redshift/src/generated/resources/META-INF/org/apache/camel/component/aws2/redshift/data/aws2-redshift-data.json
@@ -26,7 +26,7 @@
   "componentProperties": {
     "configuration": { "index": 0, "kind": "property", "displayName": 
"Configuration", "group": "producer", "label": "", "required": false, "type": 
"object", "javaType": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
configuration that the component copies to each endpoint that it creates, so 
that the endpoints share its values." },
     "lazyStartProducer": { "index": 1, "kind": "property", "displayName": 
"Lazy Start Producer", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether the producer should be started lazy (on the first message). By 
starting lazy you can use this to allow CamelContext and routes to startup in 
situations where a producer may otherwise fail [...]
-    "operation": { "index": 2, "kind": "property", "displayName": "Operation", 
"group": "producer", "label": "", "required": true, "type": "enum", "javaType": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations", 
"enum": [ "listDatabases", "listSchemas", "listStatements", "listTables", 
"describeTable", "executeStatement", "batchExecuteStatement", 
"cancelStatement", "describeStatement", "getStatementResult" ], "deprecated": 
false, "autowired": false, "secret": false, "c [...]
+    "operation": { "index": 2, "kind": "property", "displayName": "Operation", 
"group": "producer", "label": "", "required": false, "type": "enum", 
"javaType": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations", 
"enum": [ "listDatabases", "listSchemas", "listStatements", "listTables", 
"describeTable", "executeStatement", "batchExecuteStatement", 
"cancelStatement", "describeStatement", "getStatementResult" ], "deprecated": 
false, "autowired": false, "secret": false, " [...]
     "overrideEndpoint": { "index": 3, "kind": "property", "displayName": 
"Override Endpoint", "group": "producer", "label": "", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "Whether the client sends 
its requests to the URI of uriEndpointOverri [...]
     "pojoRequest": { "index": 4, "kind": "property", "displayName": "Pojo 
Request", "group": "producer", "label": "", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "Whether the message body 
is the request of the AWS SDK for the operation, such  [...]
     "profileCredentialsName": { "index": 5, "kind": "property", "displayName": 
"Profile Credentials Name", "group": "producer", "label": "", "required": 
false, "type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "The name of the profile 
that the client loads when useProfileCredential [...]
@@ -49,38 +49,44 @@
   },
   "headers": {
     "CamelAwsRedshiftDataOperation": { "index": 0, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The operation to perform. It replaces the operation option.", 
"constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#OPERATION"
 },
-    "CamelAwsRedshiftDataClusterIdentifier": { "index": 1, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The identifier of the provisioned cluster to connect to. Amazon 
Redshift requires it for a cluster with AWS Secrets Manager or temporary 
credentials. Not used by listStatements, cancelStatement, describeStatement and 
getStatementResult.", "constan [...]
+    "CamelAwsRedshiftDataClusterIdentifier": { "index": 1, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The identifier of the provisioned cluster to connect to. Amazon 
Redshift requires it for a cluster with AWS Secrets Manager or temporary 
credentials. For listStatements it is a filter: only the statements that ran on 
this cluster are returned. Not [...]
     "CamelAwsRedshiftDataSecretArn": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name or ARN of the secret in AWS Secrets Manager that holds 
the user name and password of the database. Amazon Redshift requires it when it 
authenticates with AWS Secrets Manager. Not used by listStatements, 
cancelStatement, describeStatement and getS [...]
-    "CamelAwsRedshiftDataDatabase": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the database. For listSchemas, listTables and 
describeTable it is the database that holds the schemas or tables, and also the 
database to connect to when CamelAwsRedshiftDataConnectedDatabase is not set. 
Not used by listStatements, cancelStatem [...]
-    "CamelAwsRedshiftDataWorkGroupName": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name or ARN of the Amazon Redshift Serverless workgroup to 
connect to. Amazon Redshift requires it for a workgroup with AWS Secrets 
Manager or temporary credentials. Not used by listStatements, cancelStatement, 
describeStatement and getStatementRe [...]
-    "CamelAwsRedshiftDataDatabasesMaxResults": { "index": 5, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of databases that listDatabases 
returns. The producer returns only the first page of the response.", 
"constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#LIST_DATABASES_MAX_RESULTS"
 },
+    "CamelAwsRedshiftDataDatabase": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the database. For listSchemas, listTables and 
describeTable it is the database that holds the schemas or tables, and also the 
database to connect to when CamelAwsRedshiftDataConnectedDatabase is not set. 
For listStatements, together with CamelA [...]
+    "CamelAwsRedshiftDataWorkGroupName": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name or ARN of the Amazon Redshift Serverless workgroup to 
connect to. Amazon Redshift requires it for a workgroup with AWS Secrets 
Manager or temporary credentials. For listStatements it is a filter: only the 
statements that ran in this workgroup [...]
+    "CamelAwsRedshiftDataDatabasesMaxResults": { "index": 5, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of databases that listDatabases 
returns in one page. The response holds the nextToken of the next page, for 
CamelAwsRedshiftDataNextToken.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constant [...]
     "CamelAwsRedshiftDataDbUser": { "index": 6, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The database user name. Amazon Redshift requires it to connect 
to a cluster as a database user with temporary credentials. Not used by 
listStatements, cancelStatement, describeStatement and getStatementResult.", 
"constantName": "org.apache.camel.component.aw [...]
     "CamelAwsRedshiftDataConnectedDatabase": { "index": 7, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The database to connect to with the credentials, when it is not 
the database in CamelAwsRedshiftDataDatabase. Used by listSchemas, listTables 
and describeTable.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constant [...]
     "CamelAwsRedshiftDataSchemaPattern": { "index": 8, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "A pattern of schema names for listSchemas and listTables, in 
which % matches any number of characters and _ matches one character. If not 
set, all schemas match.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#S [...]
-    "CamelAwsRedshiftDataSchemasMaxResults": { "index": 9, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of schemas that listSchemas returns. 
The producer returns only the first page of the response.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#LIST_SCHEMAS_MAX_RESULTS"
 },
-    "CamelAwsRedshiftDataStatementsMaxResults": { "index": 10, "kind": 
"header", "displayName": "", "group": "producer", "label": "", "required": 
false, "javaType": "Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The maximum number of SQL statements that 
listStatements returns, at most 100. The producer returns only the first page 
of the response.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#LIST_STATEMENTS_M
 [...]
+    "CamelAwsRedshiftDataSchemasMaxResults": { "index": 9, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of schemas that listSchemas returns 
in one page. The response holds the nextToken of the next page, for 
CamelAwsRedshiftDataNextToken.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#LIST [...]
+    "CamelAwsRedshiftDataStatementsMaxResults": { "index": 10, "kind": 
"header", "displayName": "", "group": "producer", "label": "", "required": 
false, "javaType": "Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The maximum number of SQL statements that 
listStatements returns in one page, at most 100. The response holds the 
nextToken of the next page, for CamelAwsRedshiftDataNextToken.", 
"constantName": "org.apache.camel.component.aws2.redshift.data. [...]
     "CamelAwsRedshiftDataStatementName": { "index": 11, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the SQL statement. executeStatement and 
batchExecuteStatement give the statement this name, and listStatements returns 
the statements whose name starts with this value, which is case-sensitive.", 
"constantName": "org.apache.camel.componen [...]
     "CamelAwsRedshiftDataStatus": { "index": 12, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The status of the statements that listStatements returns: 
SUBMITTED, PICKED, STARTED, FINISHED, ABORTED, FAILED or ALL. If not set, 
Amazon Redshift returns only the finished statements.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.Redshi [...]
     "CamelAwsRedshiftDataRoleLevel": { "index": 13, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret": 
false, "description": "Whether listStatements returns all statements that the 
IAM role of the caller ran (true), or only those of the current IAM session 
(false). If not set, Amazon Redshift uses true.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftD [...]
-    "CamelAwsRedshiftDataTablesMaxResults": { "index": 14, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of tables that listTables returns, at 
most 1000. The producer returns only the first page of the response.", 
"constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#LIST_TABLES_MAX_RESULTS"
 },
+    "CamelAwsRedshiftDataTablesMaxResults": { "index": 14, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The maximum number of tables that listTables returns in 
one page, at most 1000. The response holds the nextToken of the next page, for 
CamelAwsRedshiftDataNextToken.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Co [...]
     "CamelAwsRedshiftDataTablePattern": { "index": 15, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "A pattern of table names for listTables, in which % matches any 
number of characters and _ matches one character. If not set, all tables 
match.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#TABLE_PATTERN"
 },
     "CamelAwsRedshiftDataTable": { "index": 16, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The name of the table that describeTable describes. If not set, 
describeTable describes all tables of the matching schemas.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#TABLE" },
     "CamelAwsRedshiftDataSchema": { "index": 17, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The schema of the table that describeTable describes. If not 
set, the tables of all schemas match.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#SCHEMA" },
-    "CamelAwsRedshiftDataDescribeTableMaxResults": { "index": 18, "kind": 
"header", "displayName": "", "group": "producer", "label": "", "required": 
false, "javaType": "Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The maximum number of columns that 
describeTable returns, at most 1000. The producer returns only the first page 
of the response.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#DESCRIBE_TABLE_MAX_RE
 [...]
+    "CamelAwsRedshiftDataDescribeTableMaxResults": { "index": 18, "kind": 
"header", "displayName": "", "group": "producer", "label": "", "required": 
false, "javaType": "Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The maximum number of columns that 
describeTable returns in one page, at most 1000. The response holds the 
nextToken of the next page, for CamelAwsRedshiftDataNextToken.", 
"constantName": "org.apache.camel.component.aws2.redshift.data.Reds [...]
     "CamelAwsRedshiftDataStatementId": { "index": 19, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The ID of the SQL statement for cancelStatement, 
describeStatement and getStatementResult, as the response of executeStatement 
or batchExecuteStatement returns it. For the result of one statement of a 
batch, add its number as a suffix, for example :2 f [...]
     "CamelAwsRedshiftDataWithEvent": { "index": 20, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Boolean", "deprecated": false, "autowired": false, "secret": 
false, "description": "Whether Amazon Redshift sends an event to the Amazon 
EventBridge event bus after the SQL statements run. Used by executeStatement 
and batchExecuteStatement.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#WITH_EVENT"
 },
     "CamelAwsRedshiftDataClientToken": { "index": 21, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "A unique, case-sensitive identifier of at most 64 characters, 
which makes a retried request idempotent. Used by executeStatement and 
batchExecuteStatement.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#CLIENT_T 
[...]
-    "CamelAwsRedshiftDataSqlStatement": { "index": 22, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The SQL statement that executeStatement runs, which must be a 
single statement. The producer does not wait for the statement to finish: 
describeStatement and getStatementResult take the ID that the response 
returns.", "constantName": "org.apache.camel [...]
-    "CamelAwsRedshiftDataSqlParameterList": { "index": 23, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "List<SqlParameterList>", "deprecated": false, "autowired": false, 
"secret": false, "description": "The parameters of the SQL statement of 
executeStatement, as a java.util.List of 
software.amazon.awssdk.services.redshiftdata.model.SqlParameter, each with a 
name and a value. The statement refers to a parameter as :name.", "constan [...]
-    "CamelAwsRedshiftDataSqlStatementList": { "index": 24, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "List", "deprecated": false, "autowired": false, "secret": false, 
"description": "The SQL statements that batchExecuteStatement runs, as a 
java.util.List of String with at most 40 statements. They run one after the 
other in a single transaction, which is rolled back if one of them fails.", 
"constantName": "org.apache.camel.compon [...]
+    "CamelAwsRedshiftDataSqlStatement": { "index": 22, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The SQL statement that executeStatement runs, which must be a 
single statement. Unless CamelAwsRedshiftDataWaitTimeSeconds is set, the 
producer does not wait for the statement to finish: describeStatement and 
getStatementResult take the ID that the re [...]
+    "CamelAwsRedshiftDataSqlParameterList": { "index": 23, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": 
"List<software.amazon.awssdk.services.redshiftdata.model.SqlParameter>", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
parameters of the SQL statements of executeStatement and batchExecuteStatement, 
as a java.util.List of 
software.amazon.awssdk.services.redshiftdata.model.SqlParameter, each with a  
[...]
+    "CamelAwsRedshiftDataSqlStatementList": { "index": 24, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "List", "deprecated": false, "autowired": false, "secret": false, 
"description": "The SQL statements that batchExecuteStatement runs, as a 
java.util.List of String with at most 40 statements. They run one after the 
other in a single transaction, which is rolled back if one of them fails, 
unless CamelAwsRedshiftDataExecutionMode i [...]
+    "CamelAwsRedshiftDataNextToken": { "index": 25, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The token of the page of results to return, from the nextToken 
of the response of the previous call. Used by listDatabases, listSchemas, 
listStatements, listTables, describeTable and getStatementResult.", 
"constantName": "org.apache.camel.component.aws2. [...]
+    "CamelAwsRedshiftDataWaitTimeSeconds": { "index": 26, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "Integer", "deprecated": false, "autowired": false, "secret": 
false, "description": "The number of seconds that executeStatement, 
batchExecuteStatement and getStatementResult wait for the statement to finish 
before they return.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#WAIT_TIME_SECONDS"
 },
+    "CamelAwsRedshiftDataExecutionMode": { "index": 27, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "How batchExecuteStatement runs the statements: in one 
transaction (TRANSACTION) or each statement committed on its own 
(AUTO_COMMIT).", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#EXECUTION_MODE"
 },
+    "CamelAwsRedshiftDataResultFormat": { "index": 28, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The format of the result of executeStatement and 
batchExecuteStatement: JSON (the default) or CSV. The getStatementResult 
operation reads JSON results only: a CSV result can only be read with 
GetStatementResultV2 of the AWS API, which this component d [...]
+    "CamelAwsRedshiftDataSessionId": { "index": 29, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The ID of the session that executeStatement and 
batchExecuteStatement run in, as a previous response with 
CamelAwsRedshiftDataSessionKeepAliveSeconds returns it.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Constants#SESS [...]
+    "CamelAwsRedshiftDataSessionKeepAliveSeconds": { "index": 30, "kind": 
"header", "displayName": "", "group": "producer", "label": "", "required": 
false, "javaType": "Integer", "deprecated": false, "autowired": false, 
"secret": false, "description": "The number of seconds that the session of 
executeStatement and batchExecuteStatement stays open after the statement ends, 
so that a later statement can run in it.", "constantName": 
"org.apache.camel.component.aws2.redshift.data.RedshiftDat [...]
   },
   "bodyTypes": {
     "producerIn": { "carriers": [ "any" ], "byOption": [ { "option": 
"pojoRequest", "value": "true", "carriers": [ "pojo" ] } ], "description": "Not 
used: the operations take their input from headers, such as the SQL of 
executeStatement in CamelAwsRedshiftDataSqlStatement; SQL in the body is not 
run. With pojoRequest=true the request of the AWS SDK for the operation, such 
as an ExecuteStatementRequest: another body fails" },
     "producerOut": { "carriers": [ "pojo" ], "description": "The response of 
the AWS SDK for the operation, such as the ExecuteStatementResponse of 
executeStatement, which does not wait for the statement, or the 
GetStatementResultResponse of getStatementResult with one page of records" }
   },
   "properties": {
-    "label": { "index": 0, "kind": "path", "displayName": "Label", "group": 
"producer", "label": "", "required": true, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "A logical name of the 
endpoint, which you choose freely. The producer does not use it." },
-    "operation": { "index": 1, "kind": "parameter", "displayName": 
"Operation", "group": "producer", "label": "", "required": true, "type": 
"enum", "javaType": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations", 
"enum": [ "listDatabases", "listSchemas", "listStatements", "listTables", 
"describeTable", "executeStatement", "batchExecuteStatement", 
"cancelStatement", "describeStatement", "getStatementResult" ], "deprecated": 
false, "autowired": false, "secret": false, " [...]
+    "label": { "index": 0, "kind": "path", "displayName": "Label", "group": 
"producer", "label": "", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "A logical name of the 
endpoint, which you choose freely. The producer does not use it." },
+    "operation": { "index": 1, "kind": "parameter", "displayName": 
"Operation", "group": "producer", "label": "", "required": false, "type": 
"enum", "javaType": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations", 
"enum": [ "listDatabases", "listSchemas", "listStatements", "listTables", 
"describeTable", "executeStatement", "batchExecuteStatement", 
"cancelStatement", "describeStatement", "getStatementResult" ], "deprecated": 
false, "autowired": false, "secret": false,  [...]
     "overrideEndpoint": { "index": 2, "kind": "parameter", "displayName": 
"Override Endpoint", "group": "producer", "label": "", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "Whether the client sends 
its requests to the URI of uriEndpointOverr [...]
     "pojoRequest": { "index": 3, "kind": "parameter", "displayName": "Pojo 
Request", "group": "producer", "label": "", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "Whether the message body 
is the request of the AWS SDK for the operation, such [...]
     "profileCredentialsName": { "index": 4, "kind": "parameter", 
"displayName": "Profile Credentials Name", "group": "producer", "label": "", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "configurationClass": 
"org.apache.camel.component.aws2.redshift.data.RedshiftData2Configuration", 
"configurationField": "configuration", "description": "The name of the profile 
that the client loads when useProfileCredentia [...]
diff --git 
a/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Configuration.java
 
b/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Configuration.java
index befbd494798f..f0b10759558c 100644
--- 
a/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Configuration.java
+++ 
b/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Configuration.java
@@ -29,11 +29,9 @@ import 
software.amazon.awssdk.services.redshiftdata.RedshiftDataClient;
 public class RedshiftData2Configuration implements Cloneable, 
AwsCommonConfiguration {
 
     @UriPath(description = "A logical name of the endpoint, which you choose 
freely. The producer does not use it.")
-    @Metadata(required = true)
     private String label;
     @UriParam(description = "The operation that the producer performs. The 
CamelAwsRedshiftDataOperation header replaces this"
-                            + " option.")
-    @Metadata(required = true)
+                            + " option. If neither is set, the exchange 
fails.")
     private RedshiftData2Operations operation;
     @UriParam(label = "security", security = "secret",
               description = "The access key ID of the AWS credentials. The 
client uses it with secretKey as static credentials,"
diff --git 
a/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Constants.java
 
b/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Constants.java
index ebea5460040e..764ba486e72b 100644
--- 
a/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Constants.java
+++ 
b/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Constants.java
@@ -25,8 +25,9 @@ public interface RedshiftData2Constants {
     String OPERATION = "CamelAwsRedshiftDataOperation";
 
     @Metadata(description = "The identifier of the provisioned cluster to 
connect to. Amazon Redshift requires it for a cluster"
-                            + " with AWS Secrets Manager or temporary 
credentials. Not used by listStatements, cancelStatement,"
-                            + " describeStatement and getStatementResult.",
+                            + " with AWS Secrets Manager or temporary 
credentials. For listStatements it is a filter: only the"
+                            + " statements that ran on this cluster are 
returned. Not used by cancelStatement, describeStatement"
+                            + " and getStatementResult.",
               javaType = "String")
     String CLUSTER_IDENTIFIER = "CamelAwsRedshiftDataClusterIdentifier";
 
@@ -38,19 +39,22 @@ public interface RedshiftData2Constants {
 
     @Metadata(description = "The name of the database. For listSchemas, 
listTables and describeTable it is the database that"
                             + " holds the schemas or tables, and also the 
database to connect to when"
-                            + " CamelAwsRedshiftDataConnectedDatabase is not 
set. Not used by listStatements, cancelStatement,"
+                            + " CamelAwsRedshiftDataConnectedDatabase is not 
set. For listStatements, together with"
+                            + " CamelAwsRedshiftDataClusterIdentifier or 
CamelAwsRedshiftDataWorkGroupName, it is a filter: only"
+                            + " the statements that ran in this database are 
returned. Not used by cancelStatement,"
                             + " describeStatement and getStatementResult.",
               javaType = "String")
     String DATABASE = "CamelAwsRedshiftDataDatabase";
 
     @Metadata(description = "The name or ARN of the Amazon Redshift Serverless 
workgroup to connect to. Amazon Redshift requires"
-                            + " it for a workgroup with AWS Secrets Manager or 
temporary credentials. Not used by listStatements,"
-                            + " cancelStatement, describeStatement and 
getStatementResult.",
+                            + " it for a workgroup with AWS Secrets Manager or 
temporary credentials. For listStatements it is a"
+                            + " filter: only the statements that ran in this 
workgroup are returned. Not used by cancelStatement,"
+                            + " describeStatement and getStatementResult.",
               javaType = "String")
     String WORKGROUP_NAME = "CamelAwsRedshiftDataWorkGroupName";
 
-    @Metadata(description = "The maximum number of databases that 
listDatabases returns. The producer returns only the first page"
-                            + " of the response.",
+    @Metadata(description = "The maximum number of databases that 
listDatabases returns in one page. The response holds the"
+                            + " nextToken of the next page, for 
CamelAwsRedshiftDataNextToken.",
               javaType = "Integer")
     String LIST_DATABASES_MAX_RESULTS = 
"CamelAwsRedshiftDataDatabasesMaxResults";
 
@@ -70,13 +74,13 @@ public interface RedshiftData2Constants {
               javaType = "String")
     String SCHEMA_PATTERN = "CamelAwsRedshiftDataSchemaPattern";
 
-    @Metadata(description = "The maximum number of schemas that listSchemas 
returns. The producer returns only the first page of"
-                            + " the response.",
+    @Metadata(description = "The maximum number of schemas that listSchemas 
returns in one page. The response holds the nextToken"
+                            + " of the next page, for 
CamelAwsRedshiftDataNextToken.",
               javaType = "Integer")
     String LIST_SCHEMAS_MAX_RESULTS = "CamelAwsRedshiftDataSchemasMaxResults";
 
-    @Metadata(description = "The maximum number of SQL statements that 
listStatements returns, at most 100. The producer returns"
-                            + " only the first page of the response.",
+    @Metadata(description = "The maximum number of SQL statements that 
listStatements returns in one page, at most 100. The"
+                            + " response holds the nextToken of the next page, 
for CamelAwsRedshiftDataNextToken.",
               javaType = "Integer")
     String LIST_STATEMENTS_MAX_RESULTS = 
"CamelAwsRedshiftDataStatementsMaxResults";
 
@@ -96,8 +100,8 @@ public interface RedshiftData2Constants {
               javaType = "Boolean")
     String ROLE_LEVEL = "CamelAwsRedshiftDataRoleLevel";
 
-    @Metadata(description = "The maximum number of tables that listTables 
returns, at most 1000. The producer returns only the"
-                            + " first page of the response.",
+    @Metadata(description = "The maximum number of tables that listTables 
returns in one page, at most 1000. The response holds"
+                            + " the nextToken of the next page, for 
CamelAwsRedshiftDataNextToken.",
               javaType = "Integer")
     String LIST_TABLES_MAX_RESULTS = "CamelAwsRedshiftDataTablesMaxResults";
 
@@ -115,8 +119,8 @@ public interface RedshiftData2Constants {
               javaType = "String")
     String SCHEMA = "CamelAwsRedshiftDataSchema";
 
-    @Metadata(description = "The maximum number of columns that describeTable 
returns, at most 1000. The producer returns only"
-                            + " the first page of the response.",
+    @Metadata(description = "The maximum number of columns that describeTable 
returns in one page, at most 1000. The response"
+                            + " holds the nextToken of the next page, for 
CamelAwsRedshiftDataNextToken.",
               javaType = "Integer")
     String DESCRIBE_TABLE_MAX_RESULTS = 
"CamelAwsRedshiftDataDescribeTableMaxResults";
 
@@ -136,22 +140,54 @@ public interface RedshiftData2Constants {
               javaType = "String")
     String CLIENT_TOKEN = "CamelAwsRedshiftDataClientToken";
 
-    @Metadata(description = "The SQL statement that executeStatement runs, 
which must be a single statement. The producer does"
-                            + " not wait for the statement to finish: 
describeStatement and getStatementResult take the ID that the"
-                            + " response returns.",
+    @Metadata(description = "The SQL statement that executeStatement runs, 
which must be a single statement. Unless"
+                            + " CamelAwsRedshiftDataWaitTimeSeconds is set, 
the producer does not wait for the statement to"
+                            + " finish: describeStatement and 
getStatementResult take the ID that the response returns.",
               javaType = "String")
     String SQL_STATEMENT = "CamelAwsRedshiftDataSqlStatement";
 
-    @Metadata(description = "The parameters of the SQL statement of 
executeStatement, as a java.util.List of"
-                            + " 
software.amazon.awssdk.services.redshiftdata.model.SqlParameter, each with a 
name and a value. The"
-                            + " statement refers to a parameter as :name.",
-              javaType = "List<SqlParameterList>")
+    @Metadata(description = "The parameters of the SQL statements of 
executeStatement and batchExecuteStatement, as a"
+                            + " java.util.List of 
software.amazon.awssdk.services.redshiftdata.model.SqlParameter, each with a"
+                            + " name and a value. A statement refers to a 
parameter as :name.",
+              javaType = 
"List<software.amazon.awssdk.services.redshiftdata.model.SqlParameter>")
     String SQL_PARAMETER_LIST = "CamelAwsRedshiftDataSqlParameterList";
 
     @Metadata(description = "The SQL statements that batchExecuteStatement 
runs, as a java.util.List of String with at most 40"
                             + " statements. They run one after the other in a 
single transaction, which is rolled back if one of"
-                            + " them fails.",
+                            + " them fails, unless 
CamelAwsRedshiftDataExecutionMode is AUTO_COMMIT.",
               javaType = "List")
     String SQL_STATEMENT_LIST = "CamelAwsRedshiftDataSqlStatementList";
 
+    @Metadata(description = "The token of the page of results to return, from 
the nextToken of the response of the previous"
+                            + " call. Used by listDatabases, listSchemas, 
listStatements, listTables, describeTable and"
+                            + " getStatementResult.",
+              javaType = "String")
+    String NEXT_TOKEN = "CamelAwsRedshiftDataNextToken";
+
+    @Metadata(description = "The number of seconds that executeStatement, 
batchExecuteStatement and getStatementResult wait for"
+                            + " the statement to finish before they return.",
+              javaType = "Integer")
+    String WAIT_TIME_SECONDS = "CamelAwsRedshiftDataWaitTimeSeconds";
+
+    @Metadata(description = "How batchExecuteStatement runs the statements: in 
one transaction (TRANSACTION) or each statement"
+                            + " committed on its own (AUTO_COMMIT).",
+              javaType = "String")
+    String EXECUTION_MODE = "CamelAwsRedshiftDataExecutionMode";
+
+    @Metadata(description = "The format of the result of executeStatement and 
batchExecuteStatement: JSON (the default) or"
+                            + " CSV. The getStatementResult operation reads 
JSON results only: a CSV result can only be"
+                            + " read with GetStatementResultV2 of the AWS API, 
which this component does not offer.",
+              javaType = "String")
+    String RESULT_FORMAT = "CamelAwsRedshiftDataResultFormat";
+
+    @Metadata(description = "The ID of the session that executeStatement and 
batchExecuteStatement run in, as a previous"
+                            + " response with 
CamelAwsRedshiftDataSessionKeepAliveSeconds returns it.",
+              javaType = "String")
+    String SESSION_ID = "CamelAwsRedshiftDataSessionId";
+
+    @Metadata(description = "The number of seconds that the session of 
executeStatement and batchExecuteStatement stays open"
+                            + " after the statement ends, so that a later 
statement can run in it.",
+              javaType = "Integer")
+    String SESSION_KEEP_ALIVE_SECONDS = 
"CamelAwsRedshiftDataSessionKeepAliveSeconds";
+
 }
diff --git 
a/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Producer.java
 
b/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Producer.java
index b51af9131dd8..3f13161bf9be 100644
--- 
a/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Producer.java
+++ 
b/components/camel-aws/camel-aws2-redshift/src/main/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2Producer.java
@@ -69,6 +69,10 @@ public class RedshiftData2Producer extends DefaultProducer {
         if (ObjectHelper.isEmpty(operation)) {
             operation = getConfiguration().getOperation();
         }
+        if (operation == null) {
+            throw new IllegalArgumentException(
+                    "No operation: set the " + 
RedshiftData2Constants.OPERATION + " header or the operation option");
+        }
         return operation;
     }
 
@@ -135,6 +139,11 @@ public class RedshiftData2Producer extends DefaultProducer 
{
                 builder.workgroupName(workgroupName);
             }
 
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN)))
 {
+                String nextToken = 
exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN, String.class);
+                builder.nextToken(nextToken);
+            }
+
             ListDatabasesResponse result;
             try {
                 result = redshiftDataClient.listDatabases(builder.build());
@@ -199,6 +208,11 @@ public class RedshiftData2Producer extends DefaultProducer 
{
                 builder.schemaPattern(schemaPattern);
             }
 
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN)))
 {
+                String nextToken = 
exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN, String.class);
+                builder.nextToken(nextToken);
+            }
+
             ListSchemasResponse result;
             try {
                 result = redshiftDataClient.listSchemas(builder.build());
@@ -248,6 +262,23 @@ public class RedshiftData2Producer extends DefaultProducer 
{
                 builder.maxResults(maxResults);
             }
 
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN)))
 {
+                String nextToken = 
exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN, String.class);
+                builder.nextToken(nextToken);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.CLUSTER_IDENTIFIER)))
 {
+                String clusterIdentifier = 
exchange.getIn().getHeader(RedshiftData2Constants.CLUSTER_IDENTIFIER, 
String.class);
+                builder.clusterIdentifier(clusterIdentifier);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.WORKGROUP_NAME)))
 {
+                String workgroupName = 
exchange.getIn().getHeader(RedshiftData2Constants.WORKGROUP_NAME, String.class);
+                builder.workgroupName(workgroupName);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.DATABASE)))
 {
+                String database = 
exchange.getIn().getHeader(RedshiftData2Constants.DATABASE, String.class);
+                builder.database(database);
+            }
+
             ListStatementsResponse result;
             try {
                 result = redshiftDataClient.listStatements(builder.build());
@@ -316,6 +347,11 @@ public class RedshiftData2Producer extends DefaultProducer 
{
                 builder.tablePattern(tablePattern);
             }
 
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN)))
 {
+                String nextToken = 
exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN, String.class);
+                builder.nextToken(nextToken);
+            }
+
             ListTablesResponse result;
             try {
                 result = redshiftDataClient.listTables(builder.build());
@@ -385,6 +421,11 @@ public class RedshiftData2Producer extends DefaultProducer 
{
                 builder.schema(schema);
             }
 
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN)))
 {
+                String nextToken = 
exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN, String.class);
+                builder.nextToken(nextToken);
+            }
+
             DescribeTableResponse result;
             try {
                 result = redshiftDataClient.describeTable(builder.build());
@@ -458,6 +499,24 @@ public class RedshiftData2Producer extends DefaultProducer 
{
                 builder.parameters(sqlParameterList);
             }
 
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.WAIT_TIME_SECONDS)))
 {
+                Integer waitTimeSeconds = 
exchange.getIn().getHeader(RedshiftData2Constants.WAIT_TIME_SECONDS, 
Integer.class);
+                builder.waitTimeSeconds(waitTimeSeconds);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.RESULT_FORMAT)))
 {
+                String resultFormat = 
exchange.getIn().getHeader(RedshiftData2Constants.RESULT_FORMAT, String.class);
+                builder.resultFormat(resultFormat);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.SESSION_ID)))
 {
+                String sessionId = 
exchange.getIn().getHeader(RedshiftData2Constants.SESSION_ID, String.class);
+                builder.sessionId(sessionId);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.SESSION_KEEP_ALIVE_SECONDS)))
 {
+                Integer sessionKeepAliveSeconds
+                        = 
exchange.getIn().getHeader(RedshiftData2Constants.SESSION_KEEP_ALIVE_SECONDS, 
Integer.class);
+                builder.sessionKeepAliveSeconds(sessionKeepAliveSeconds);
+            }
+
             ExecuteStatementResponse result;
             try {
                 result = redshiftDataClient.executeStatement(builder.build());
@@ -527,6 +586,33 @@ public class RedshiftData2Producer extends DefaultProducer 
{
                 builder.sqls(sqlStatements);
             }
 
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.SQL_PARAMETER_LIST)))
 {
+                List<SqlParameter> sqlParameterList
+                        = 
exchange.getIn().getHeader(RedshiftData2Constants.SQL_PARAMETER_LIST, 
List.class);
+                builder.parameters(sqlParameterList);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.WAIT_TIME_SECONDS)))
 {
+                Integer waitTimeSeconds = 
exchange.getIn().getHeader(RedshiftData2Constants.WAIT_TIME_SECONDS, 
Integer.class);
+                builder.waitTimeSeconds(waitTimeSeconds);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.EXECUTION_MODE)))
 {
+                String executionMode = 
exchange.getIn().getHeader(RedshiftData2Constants.EXECUTION_MODE, String.class);
+                builder.executionMode(executionMode);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.RESULT_FORMAT)))
 {
+                String resultFormat = 
exchange.getIn().getHeader(RedshiftData2Constants.RESULT_FORMAT, String.class);
+                builder.resultFormat(resultFormat);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.SESSION_ID)))
 {
+                String sessionId = 
exchange.getIn().getHeader(RedshiftData2Constants.SESSION_ID, String.class);
+                builder.sessionId(sessionId);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.SESSION_KEEP_ALIVE_SECONDS)))
 {
+                Integer sessionKeepAliveSeconds
+                        = 
exchange.getIn().getHeader(RedshiftData2Constants.SESSION_KEEP_ALIVE_SECONDS, 
Integer.class);
+                builder.sessionKeepAliveSeconds(sessionKeepAliveSeconds);
+            }
+
             BatchExecuteStatementResponse result;
             try {
                 result = 
redshiftDataClient.batchExecuteStatement(builder.build());
@@ -635,6 +721,15 @@ public class RedshiftData2Producer extends DefaultProducer 
{
                 builder.id(id);
             }
 
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN)))
 {
+                String nextToken = 
exchange.getIn().getHeader(RedshiftData2Constants.NEXT_TOKEN, String.class);
+                builder.nextToken(nextToken);
+            }
+            if 
(ObjectHelper.isNotEmpty(exchange.getIn().getHeader(RedshiftData2Constants.WAIT_TIME_SECONDS)))
 {
+                Integer waitTimeSeconds = 
exchange.getIn().getHeader(RedshiftData2Constants.WAIT_TIME_SECONDS, 
Integer.class);
+                builder.waitTimeSeconds(waitTimeSeconds);
+            }
+
             GetStatementResultResponse result;
             try {
                 result = 
redshiftDataClient.getStatementResult(builder.build());
diff --git 
a/components/camel-aws/camel-aws2-redshift/src/test/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2ProducerHeadersTest.java
 
b/components/camel-aws/camel-aws2-redshift/src/test/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2ProducerHeadersTest.java
new file mode 100644
index 000000000000..2fb9856b32af
--- /dev/null
+++ 
b/components/camel-aws/camel-aws2-redshift/src/test/java/org/apache/camel/component/aws2/redshift/data/RedshiftData2ProducerHeadersTest.java
@@ -0,0 +1,208 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.aws2.redshift.data;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.atomic.AtomicReference;
+
+import org.apache.camel.BindToRegistry;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.test.junit6.CamelTestSupport;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
+import software.amazon.awssdk.core.SdkRequest;
+import 
software.amazon.awssdk.services.redshiftdata.model.BatchExecuteStatementRequest;
+import 
software.amazon.awssdk.services.redshiftdata.model.BatchExecuteStatementResponse;
+import software.amazon.awssdk.services.redshiftdata.model.DescribeTableRequest;
+import 
software.amazon.awssdk.services.redshiftdata.model.DescribeTableResponse;
+import 
software.amazon.awssdk.services.redshiftdata.model.ExecuteStatementRequest;
+import 
software.amazon.awssdk.services.redshiftdata.model.ExecuteStatementResponse;
+import software.amazon.awssdk.services.redshiftdata.model.ExecutionMode;
+import 
software.amazon.awssdk.services.redshiftdata.model.GetStatementResultRequest;
+import 
software.amazon.awssdk.services.redshiftdata.model.GetStatementResultResponse;
+import software.amazon.awssdk.services.redshiftdata.model.ListDatabasesRequest;
+import 
software.amazon.awssdk.services.redshiftdata.model.ListDatabasesResponse;
+import software.amazon.awssdk.services.redshiftdata.model.ListSchemasRequest;
+import software.amazon.awssdk.services.redshiftdata.model.ListSchemasResponse;
+import 
software.amazon.awssdk.services.redshiftdata.model.ListStatementsRequest;
+import 
software.amazon.awssdk.services.redshiftdata.model.ListStatementsResponse;
+import software.amazon.awssdk.services.redshiftdata.model.ListTablesRequest;
+import software.amazon.awssdk.services.redshiftdata.model.ListTablesResponse;
+import software.amazon.awssdk.services.redshiftdata.model.ResultFormatString;
+import software.amazon.awssdk.services.redshiftdata.model.SqlParameter;
+
+import static org.assertj.core.api.Assertions.assertThatThrownBy;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+/**
+ * The request fields that the producer takes from headers: the token of the 
next page, the filters of listStatements,
+ * and the wait, session, format, execution mode and parameters of the 
statement operations.
+ */
+public class RedshiftData2ProducerHeadersTest extends CamelTestSupport {
+
+    private final AtomicReference<SdkRequest> lastRequest = new 
AtomicReference<>();
+
+    @BindToRegistry("capturingClient")
+    AmazonRedshiftDataClientMock client = new AmazonRedshiftDataClientMock() {
+        @Override
+        public ListDatabasesResponse listDatabases(ListDatabasesRequest 
request) {
+            lastRequest.set(request);
+            return super.listDatabases(request);
+        }
+
+        @Override
+        public ListSchemasResponse listSchemas(ListSchemasRequest request) {
+            lastRequest.set(request);
+            return super.listSchemas(request);
+        }
+
+        @Override
+        public ListStatementsResponse listStatements(ListStatementsRequest 
request) {
+            lastRequest.set(request);
+            return super.listStatements(request);
+        }
+
+        @Override
+        public ListTablesResponse listTables(ListTablesRequest request) {
+            lastRequest.set(request);
+            return super.listTables(request);
+        }
+
+        @Override
+        public DescribeTableResponse describeTable(DescribeTableRequest 
request) {
+            lastRequest.set(request);
+            return super.describeTable(request);
+        }
+
+        @Override
+        public GetStatementResultResponse 
getStatementResult(GetStatementResultRequest request) {
+            lastRequest.set(request);
+            return super.getStatementResult(request);
+        }
+
+        @Override
+        public ExecuteStatementResponse 
executeStatement(ExecuteStatementRequest request) {
+            lastRequest.set(request);
+            return super.executeStatement(request);
+        }
+
+        @Override
+        public BatchExecuteStatementResponse 
batchExecuteStatement(BatchExecuteStatementRequest request) {
+            lastRequest.set(request);
+            return super.batchExecuteStatement(request);
+        }
+    };
+
+    private SdkRequest send(String operation, Map<String, Object> headers) {
+        lastRequest.set(null);
+        template.requestBodyAndHeaders("direct:start", null, 
withOperation(operation, headers));
+        return lastRequest.get();
+    }
+
+    private static Map<String, Object> withOperation(String operation, 
Map<String, Object> headers) {
+        HashMap<String, Object> all = new HashMap<>(headers);
+        all.put(RedshiftData2Constants.OPERATION, operation);
+        return all;
+    }
+
+    @ParameterizedTest
+    @ValueSource(strings = {
+            "listDatabases", "listSchemas", "listStatements", "listTables", 
"describeTable", "getStatementResult" })
+    public void nextTokenHeaderAsksForTheNextPage(String operation) {
+        SdkRequest request = send(operation, 
Map.of(RedshiftData2Constants.NEXT_TOKEN, "page-2"));
+
+        assertEquals("page-2", request.getValueForField("NextToken", 
String.class).orElse(null), operation);
+    }
+
+    @Test
+    public void listStatementsIsFilteredByClusterWorkgroupAndDatabase() {
+        ListStatementsRequest request = (ListStatementsRequest) 
send("listStatements", Map.of(
+                RedshiftData2Constants.CLUSTER_IDENTIFIER, "cluster-1",
+                RedshiftData2Constants.WORKGROUP_NAME, "workgroup-1",
+                RedshiftData2Constants.DATABASE, "dev"));
+
+        assertEquals("cluster-1", request.clusterIdentifier());
+        assertEquals("workgroup-1", request.workgroupName());
+        assertEquals("dev", request.database());
+    }
+
+    @Test
+    public void getStatementResultWaits() {
+        GetStatementResultRequest request = (GetStatementResultRequest) 
send("getStatementResult", Map.of(
+                RedshiftData2Constants.STATEMENT_ID, "statement1",
+                RedshiftData2Constants.WAIT_TIME_SECONDS, 5));
+
+        assertEquals(5, request.waitTimeSeconds());
+    }
+
+    @Test
+    public void executeStatementTakesTheWaitSessionAndFormatHeaders() {
+        ExecuteStatementRequest request = (ExecuteStatementRequest) 
send("executeStatement", Map.of(
+                RedshiftData2Constants.SQL_STATEMENT, "select 1",
+                RedshiftData2Constants.WAIT_TIME_SECONDS, 10,
+                RedshiftData2Constants.RESULT_FORMAT, "CSV",
+                RedshiftData2Constants.SESSION_ID, "session-1",
+                RedshiftData2Constants.SESSION_KEEP_ALIVE_SECONDS, 60));
+
+        assertEquals(10, request.waitTimeSeconds());
+        assertEquals(ResultFormatString.CSV, request.resultFormat());
+        assertEquals("session-1", request.sessionId());
+        assertEquals(60, request.sessionKeepAliveSeconds());
+    }
+
+    @Test
+    public void batchExecuteStatementTakesTheParametersAndTheExecutionMode() {
+        List<SqlParameter> parameters = 
List.of(SqlParameter.builder().name("id").value("1").build());
+        BatchExecuteStatementRequest request = (BatchExecuteStatementRequest) 
send("batchExecuteStatement", Map.of(
+                RedshiftData2Constants.SQL_STATEMENT_LIST, List.of("insert 
into t values (:id)"),
+                RedshiftData2Constants.SQL_PARAMETER_LIST, parameters,
+                RedshiftData2Constants.EXECUTION_MODE, "AUTO_COMMIT",
+                RedshiftData2Constants.WAIT_TIME_SECONDS, 3,
+                RedshiftData2Constants.RESULT_FORMAT, "JSON",
+                RedshiftData2Constants.SESSION_KEEP_ALIVE_SECONDS, 30));
+
+        assertEquals(parameters, request.parameters());
+        assertEquals(ExecutionMode.AUTO_COMMIT, request.executionMode());
+        assertEquals(3, request.waitTimeSeconds());
+        assertEquals(ResultFormatString.JSON, request.resultFormat());
+        assertEquals(30, request.sessionKeepAliveSeconds());
+    }
+
+    @Test
+    public void noOperationFailsWithAClearMessage() {
+        assertThatThrownBy(() -> template.requestBody("direct:noOperation", 
"select 1"))
+                .hasRootCauseInstanceOf(IllegalArgumentException.class)
+                .hasRootCauseMessage(
+                        "No operation: set the " + 
RedshiftData2Constants.OPERATION + " header or the operation option");
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() {
+        return new RouteBuilder() {
+            @Override
+            public void configure() {
+                from("direct:start")
+                        
.to("aws2-redshift-data://test?awsRedshiftDataClient=#capturingClient&operation=listDatabases");
+                from("direct:noOperation")
+                        
.to("aws2-redshift-data://test?awsRedshiftDataClient=#capturingClient");
+            }
+        };
+    }
+}
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index 9431807b6778..2127f756c034 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -10590,6 +10590,22 @@ is known, and `strictHostKeyChecking` decides whether 
to connect.
 The `aws-cloudtrail:application-cloudevents` data type now sets the content 
type `application/json`, as the body is
 the JSON of the event. It was `text/plain`.
 
+=== camel-aws2-redshift - listStatements filters, batch parameters and new 
headers
+
+In header mode, `listStatements` now passes the 
`CamelAwsRedshiftDataClusterIdentifier`,
+`CamelAwsRedshiftDataWorkGroupName` and `CamelAwsRedshiftDataDatabase` headers 
to the request as filters, as the other
+operations do, and `batchExecuteStatement` now passes the 
`CamelAwsRedshiftDataSqlParameterList` header as the
+parameters of its statements. Before, these operations ignored those headers. 
Remove the headers before such a step
+if a route sets them for another step.
+
+The new `CamelAwsRedshiftDataNextToken` header asks the list operations, 
`describeTable` and `getStatementResult` for
+the next page (the `nextToken` of the previous response). New headers set the 
`WaitTimeSeconds`, `ResultFormat`,
+`SessionId` and `SessionKeepAliveSeconds` of `executeStatement` and 
`batchExecuteStatement`, the `ExecutionMode` of
+`batchExecuteStatement` and the `WaitTimeSeconds` of `getStatementResult`.
+
+An exchange without the `CamelAwsRedshiftDataOperation` header and without the 
`operation` option now fails with an
+`IllegalArgumentException` that says so, instead of a `NullPointerException`.
+
 === camel-python - a script gives the Java value of its result
 
 The `python` language (Jython) now gives the Java value of what a script 
returns, instead of its Python text from
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2RedshiftDataComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2RedshiftDataComponentBuilderFactory.java
index af109d8a5f34..eb62f719d9c0 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2RedshiftDataComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Aws2RedshiftDataComponentBuilderFactory.java
@@ -96,7 +96,8 @@ public interface Aws2RedshiftDataComponentBuilderFactory {
     
         /**
          * The operation that the producer performs. The
-         * CamelAwsRedshiftDataOperation header replaces this option.
+         * CamelAwsRedshiftDataOperation header replaces this option. If 
neither
+         * is set, the exchange fails.
          * 
          * The option is a:
          * 
&lt;code&gt;org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations&lt;/code&gt;
 type.
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 89973562d490..44d18a45ca48 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -2141,7 +2141,7 @@ public class StaticEndpointBuilders {
      * 
      * Syntax: <code>aws2-redshift-data:label</code>
      * 
-     * Path parameter: label (required)
+     * Path parameter: label
      * A logical name of the endpoint, which you choose freely. The producer
      * does not use it.
      * 
@@ -2162,7 +2162,7 @@ public class StaticEndpointBuilders {
      * 
      * Syntax: <code>aws2-redshift-data:label</code>
      * 
-     * Path parameter: label (required)
+     * Path parameter: label
      * A logical name of the endpoint, which you choose freely. The producer
      * does not use it.
      * 
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RedshiftData2EndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RedshiftData2EndpointBuilderFactory.java
index ec3b938f6392..406e57cb157e 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RedshiftData2EndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/RedshiftData2EndpointBuilderFactory.java
@@ -47,12 +47,12 @@ public interface RedshiftData2EndpointBuilderFactory {
 
         /**
          * The operation that the producer performs. The
-         * CamelAwsRedshiftDataOperation header replaces this option.
+         * CamelAwsRedshiftDataOperation header replaces this option. If 
neither
+         * is set, the exchange fails.
          * 
          * The option is a:
          * 
<code>org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations</code>
 type.
          * 
-         * Required: true
          * Group: producer
          * 
          * @param operation the value to set
@@ -64,12 +64,12 @@ public interface RedshiftData2EndpointBuilderFactory {
         }
         /**
          * The operation that the producer performs. The
-         * CamelAwsRedshiftDataOperation header replaces this option.
+         * CamelAwsRedshiftDataOperation header replaces this option. If 
neither
+         * is set, the exchange fails.
          * 
          * The option will be converted to a
          * 
<code>org.apache.camel.component.aws2.redshift.data.RedshiftData2Operations</code>
 type.
          * 
-         * Required: true
          * Group: producer
          * 
          * @param operation the value to set
@@ -597,7 +597,7 @@ public interface RedshiftData2EndpointBuilderFactory {
          * 
          * Syntax: <code>aws2-redshift-data:label</code>
          * 
-         * Path parameter: label (required)
+         * Path parameter: label
          * A logical name of the endpoint, which you choose freely. The 
producer
          * does not use it.
          * 
@@ -618,7 +618,7 @@ public interface RedshiftData2EndpointBuilderFactory {
          * 
          * Syntax: <code>aws2-redshift-data:label</code>
          * 
-         * Path parameter: label (required)
+         * Path parameter: label
          * A logical name of the endpoint, which you choose freely. The 
producer
          * does not use it.
          * 
@@ -657,8 +657,9 @@ public interface RedshiftData2EndpointBuilderFactory {
         /**
          * The identifier of the provisioned cluster to connect to. Amazon
          * Redshift requires it for a cluster with AWS Secrets Manager or
-         * temporary credentials. Not used by listStatements, cancelStatement,
-         * describeStatement and getStatementResult.
+         * temporary credentials. For listStatements it is a filter: only the
+         * statements that ran on this cluster are returned. Not used by
+         * cancelStatement, describeStatement and getStatementResult.
          * 
          * The option is a: {@code String} type.
          * 
@@ -690,9 +691,11 @@ public interface RedshiftData2EndpointBuilderFactory {
          * The name of the database. For listSchemas, listTables and
          * describeTable it is the database that holds the schemas or tables,
          * and also the database to connect to when
-         * CamelAwsRedshiftDataConnectedDatabase is not set. Not used by
-         * listStatements, cancelStatement, describeStatement and
-         * getStatementResult.
+         * CamelAwsRedshiftDataConnectedDatabase is not set. For 
listStatements,
+         * together with CamelAwsRedshiftDataClusterIdentifier or
+         * CamelAwsRedshiftDataWorkGroupName, it is a filter: only the
+         * statements that ran in this database are returned. Not used by
+         * cancelStatement, describeStatement and getStatementResult.
          * 
          * The option is a: {@code String} type.
          * 
@@ -706,8 +709,10 @@ public interface RedshiftData2EndpointBuilderFactory {
         /**
          * The name or ARN of the Amazon Redshift Serverless workgroup to
          * connect to. Amazon Redshift requires it for a workgroup with AWS
-         * Secrets Manager or temporary credentials. Not used by 
listStatements,
-         * cancelStatement, describeStatement and getStatementResult.
+         * Secrets Manager or temporary credentials. For listStatements it is a
+         * filter: only the statements that ran in this workgroup are returned.
+         * Not used by cancelStatement, describeStatement and
+         * getStatementResult.
          * 
          * The option is a: {@code String} type.
          * 
@@ -719,8 +724,9 @@ public interface RedshiftData2EndpointBuilderFactory {
             return "CamelAwsRedshiftDataWorkGroupName";
         }
         /**
-         * The maximum number of databases that listDatabases returns. The
-         * producer returns only the first page of the response.
+         * The maximum number of databases that listDatabases returns in one
+         * page. The response holds the nextToken of the next page, for
+         * CamelAwsRedshiftDataNextToken.
          * 
          * The option is a: {@code Integer} type.
          * 
@@ -777,8 +783,9 @@ public interface RedshiftData2EndpointBuilderFactory {
             return "CamelAwsRedshiftDataSchemaPattern";
         }
         /**
-         * The maximum number of schemas that listSchemas returns. The producer
-         * returns only the first page of the response.
+         * The maximum number of schemas that listSchemas returns in one page.
+         * The response holds the nextToken of the next page, for
+         * CamelAwsRedshiftDataNextToken.
          * 
          * The option is a: {@code Integer} type.
          * 
@@ -791,8 +798,9 @@ public interface RedshiftData2EndpointBuilderFactory {
             return "CamelAwsRedshiftDataSchemasMaxResults";
         }
         /**
-         * The maximum number of SQL statements that listStatements returns, at
-         * most 100. The producer returns only the first page of the response.
+         * The maximum number of SQL statements that listStatements returns in
+         * one page, at most 100. The response holds the nextToken of the next
+         * page, for CamelAwsRedshiftDataNextToken.
          * 
          * The option is a: {@code Integer} type.
          * 
@@ -848,8 +856,9 @@ public interface RedshiftData2EndpointBuilderFactory {
             return "CamelAwsRedshiftDataRoleLevel";
         }
         /**
-         * The maximum number of tables that listTables returns, at most 1000.
-         * The producer returns only the first page of the response.
+         * The maximum number of tables that listTables returns in one page, at
+         * most 1000. The response holds the nextToken of the next page, for
+         * CamelAwsRedshiftDataNextToken.
          * 
          * The option is a: {@code Integer} type.
          * 
@@ -902,8 +911,9 @@ public interface RedshiftData2EndpointBuilderFactory {
             return "CamelAwsRedshiftDataSchema";
         }
         /**
-         * The maximum number of columns that describeTable returns, at most
-         * 1000. The producer returns only the first page of the response.
+         * The maximum number of columns that describeTable returns in one 
page,
+         * at most 1000. The response holds the nextToken of the next page, for
+         * CamelAwsRedshiftDataNextToken.
          * 
          * The option is a: {@code Integer} type.
          * 
@@ -960,9 +970,9 @@ public interface RedshiftData2EndpointBuilderFactory {
         }
         /**
          * The SQL statement that executeStatement runs, which must be a single
-         * statement. The producer does not wait for the statement to finish:
-         * describeStatement and getStatementResult take the ID that the
-         * response returns.
+         * statement. Unless CamelAwsRedshiftDataWaitTimeSeconds is set, the
+         * producer does not wait for the statement to finish: 
describeStatement
+         * and getStatementResult take the ID that the response returns.
          * 
          * The option is a: {@code String} type.
          * 
@@ -974,13 +984,13 @@ public interface RedshiftData2EndpointBuilderFactory {
             return "CamelAwsRedshiftDataSqlStatement";
         }
         /**
-         * The parameters of the SQL statement of executeStatement, as a
-         * java.util.List of
+         * The parameters of the SQL statements of executeStatement and
+         * batchExecuteStatement, as a java.util.List of
          * software.amazon.awssdk.services.redshiftdata.model.SqlParameter, 
each
-         * with a name and a value. The statement refers to a parameter as
-         * :name.
+         * with a name and a value. A statement refers to a parameter as :name.
          * 
-         * The option is a: {@code List<SqlParameterList>} type.
+         * The option is a: {@code
+         * 
List<software.amazon.awssdk.services.redshiftdata.model.SqlParameter>} type.
          * 
          * Group: producer
          * 
@@ -994,7 +1004,8 @@ public interface RedshiftData2EndpointBuilderFactory {
          * The SQL statements that batchExecuteStatement runs, as a
          * java.util.List of String with at most 40 statements. They run one
          * after the other in a single transaction, which is rolled back if one
-         * of them fails.
+         * of them fails, unless CamelAwsRedshiftDataExecutionMode is
+         * AUTO_COMMIT.
          * 
          * The option is a: {@code List} type.
          * 
@@ -1006,6 +1017,93 @@ public interface RedshiftData2EndpointBuilderFactory {
         public String awsRedshiftDataSqlStatementList() {
             return "CamelAwsRedshiftDataSqlStatementList";
         }
+        /**
+         * The token of the page of results to return, from the nextToken of 
the
+         * response of the previous call. Used by listDatabases, listSchemas,
+         * listStatements, listTables, describeTable and getStatementResult.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code AwsRedshiftDataNextToken}.
+         */
+        public String awsRedshiftDataNextToken() {
+            return "CamelAwsRedshiftDataNextToken";
+        }
+        /**
+         * The number of seconds that executeStatement, batchExecuteStatement
+         * and getStatementResult wait for the statement to finish before they
+         * return.
+         * 
+         * The option is a: {@code Integer} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code
+         * AwsRedshiftDataWaitTimeSeconds}.
+         */
+        public String awsRedshiftDataWaitTimeSeconds() {
+            return "CamelAwsRedshiftDataWaitTimeSeconds";
+        }
+        /**
+         * How batchExecuteStatement runs the statements: in one transaction
+         * (TRANSACTION) or each statement committed on its own (AUTO_COMMIT).
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code AwsRedshiftDataExecutionMode}.
+         */
+        public String awsRedshiftDataExecutionMode() {
+            return "CamelAwsRedshiftDataExecutionMode";
+        }
+        /**
+         * The format of the result of executeStatement and
+         * batchExecuteStatement: JSON (the default) or CSV. The
+         * getStatementResult operation reads JSON results only: a CSV result
+         * can only be read with GetStatementResultV2 of the AWS API, which 
this
+         * component does not offer.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code AwsRedshiftDataResultFormat}.
+         */
+        public String awsRedshiftDataResultFormat() {
+            return "CamelAwsRedshiftDataResultFormat";
+        }
+        /**
+         * The ID of the session that executeStatement and 
batchExecuteStatement
+         * run in, as a previous response with
+         * CamelAwsRedshiftDataSessionKeepAliveSeconds returns it.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code AwsRedshiftDataSessionId}.
+         */
+        public String awsRedshiftDataSessionId() {
+            return "CamelAwsRedshiftDataSessionId";
+        }
+        /**
+         * The number of seconds that the session of executeStatement and
+         * batchExecuteStatement stays open after the statement ends, so that a
+         * later statement can run in it.
+         * 
+         * The option is a: {@code Integer} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code
+         * AwsRedshiftDataSessionKeepAliveSeconds}.
+         */
+        public String awsRedshiftDataSessionKeepAliveSeconds() {
+            return "CamelAwsRedshiftDataSessionKeepAliveSeconds";
+        }
     }
     static RedshiftData2EndpointBuilder endpointBuilder(String componentName, 
String path) {
         class RedshiftData2EndpointBuilderImpl extends AbstractEndpointBuilder 
implements RedshiftData2EndpointBuilder, AdvancedRedshiftData2EndpointBuilder {

Reply via email to