

 Amazon Redshift 將不再支援從修補程式 198 開始建立新的 Python UDFs。現有 Python UDF 將繼續正常運作至 2026 年 6 月 30 日。如需詳細資訊，請參閱[部落格文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon Redshift AWS SDKs的程式碼範例
<a name="service_code_examples"></a>

下列程式碼範例示範如何搭配 AWS 軟體開發套件 (SDK) 使用 Amazon Redshift。

*基本概念*是程式碼範例，這些範例說明如何在服務內執行基本操作。

*Actions* 是大型程式的程式碼摘錄，必須在內容中執行。雖然動作會告訴您如何呼叫個別服務函數，但您可以在其相關情境中查看內容中的動作。

*案例*是向您展示如何呼叫服務中的多個函數或與其他 AWS 服務組合來完成特定任務的程式碼範例。

如需 AWS SDK 開發人員指南和程式碼範例的完整清單，請參閱 [搭配 AWS SDK 使用此服務](sdk-general-information-section.md)。此主題也包含有關入門的資訊和舊版 SDK 的詳細資訊。

**Contents**
+ [基本概念](service_code_examples_basics.md)
  + [Hello 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)
  + [建立用於追蹤 Amazon Redshift 資料的 Web 應用程式](example_cross_RedshiftDataTracker_section.md)
  + [開始使用 Redshift Serverless](example_redshift_GettingStarted_038_section.md)
  + [Amazon Redshift 佈建叢集入門](example_redshift_GettingStarted_039_section.md)