Amazon Redshift will no longer support the creation of new Python UDFs starting November 1, 2025.
If you would like to use Python UDFs, create the UDFs prior to that date.
Existing Python UDFs will continue to function as normal. For more information, see the
blog post
Calling the Data API
You can call the Data API or the Amazon CLI to run SQL statements on your cluster or
serverless workgroup. The primary operations to run SQL statements are ExecuteStatement
and BatchExecuteStatement
in the Amazon Redshift Data API
Reference. The Data API supports the programming languages that are
supported by the Amazon SDK. For more information on these, see Tools to Build on Amazon
To see code examples of calling the Data API, see Getting Started with Redshift Data API
You can call the Data API using the Amazon CLI.
The following examples use the Amazon CLI to call the Data API.
To run the examples, edit the parameter values to match your environment.
In many of the examples a cluster-identifier
is provided to run against a cluster.
When you run against a serverless workgroup, you provide a workgroup-name
instead.
These examples demonstrate a few of the Data API operations. For more information, see
the Amazon CLI Command Reference.
Commands in the following examples have been split and formatted for readability. Not all parameters and responses are shown in all examples. For the API definition of the complete request syntax, request parameters, response syntax, and response elements, see the Amazon Redshift Data API Reference.