CmdID / aws / aws redshift-data
aws redshift-data execute-statement
Runs an SQL statement, which can be data manipulation language (DML) or data definition language (DDL). AWS CLI reference
14 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.--parametersThe parameters for the SQL statement.--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.--sqlThe SQL statement text to run.--statement-nameThe name of the SQL statement.--wait-time-secondsThe number of seconds to wait for the SQL statement 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 statement runs.--workgroup-nameThe serverless workgroup name or Amazon Resource Name (ARN).