

 从补丁 198 开始，Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 6 月 30 日。有关更多信息，请参阅[博客文章](https://www.amazonaws.cn/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

# 使用 Amazon SDK 的 Amazon Redshift 代码示例
<a name="service_code_examples"></a>

以下代码示例演示了如何将 Amazon Redshift 与 Amazon 软件开发工具包（SDK）结合使用。

*基本功能*是向您展示如何在服务中执行基本操作的代码示例。

*操作*是大型程序的代码摘录，必须在上下文中运行。您可以通过操作了解如何调用单个服务函数，还可以通过函数相关场景的上下文查看操作。

*场景*是向您展示如何通过在一个服务中调用多个函数或与其他 Amazon Web Services 服务 服务结合来完成特定任务的代码示例。

有关 Amazon SDK 开发人员指南和代码示例的完整列表，请参阅[将此服务与 Amazon 开发工具包结合使用](sdk-general-information-section.md)。本主题还包括有关入门的信息以及有关先前的 SDK 版本的详细信息。

**Contents**
+ [基本功能](service_code_examples_basics.md)
  + [开始使用 Amazon Redshift](example_redshift_Hello_section.md)
  + [了解基本功能](example_redshift_Scenario_section.md)
  + [操作](service_code_examples_actions.md)
    + [`CreateCluster`](example_redshift_CreateCluster_section.md)
    + [`DeleteCluster`](example_redshift_DeleteCluster_section.md)
    + [`DescribeClusters`](example_redshift_DescribeClusters_section.md)
    + [`DescribeStatement`](example_redshift_DescribeStatement_section.md)
    + [`ExecuteStatement`](example_redshift_ExecuteStatement_section.md)
    + [`GetStatementResult`](example_redshift_GetStatementResult_section.md)
    + [`ListDatabases`](example_redshift_ListDatabases_section.md)
    + [`ModifyCluster`](example_redshift_ModifyCluster_section.md)
+ [场景](service_code_examples_scenarios.md)
  + [创建 Web 应用程序来跟踪 Amazon Redshift 数据](example_cross_RedshiftDataTracker_section.md)