CmdID / aws / aws redshift-data
aws redshift-data batch-execute-statement
Runs one or more SQL statements, which can be data manipulation language (DML) or data definition language (DDL). AWS CLI reference
15 options Its page in the AWS CLI reference
Options
--client-tokenA unique, case-sensitive identifier that you provide to ensure the idempotency of the request.--cluster-identifierThe cluster identifier.--databaseThe name of the database.--db-userThe database user name.--execution-modeDetermines how the SQL statements in the batch are run.--parametersThe parameters for the SQL statements.--result-formatThe data format of the result of the SQL statement.--secret-arnThe name or ARN of the secret that enables access to the database.--session-idThe session identifier of the query.--session-keep-alive-secondsThe number of seconds to keep the session alive after the query finishes.--sqlsOne or more SQL statements to run.--statement-nameThe name of the SQL statements.--wait-time-secondsThe number of seconds to wait for all SQL statements in the batch to complete execution before returning the response.--with-eventA value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statements run.--workgroup-nameThe serverless workgroup name or Amazon Resource Name (ARN).