

 Amazon Redshift は、パッチ 198 以降、新しい Python UDF の作成をサポートしなくなります。既存の 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/)を参照してください。

# AWS SDK を使用した Amazon Redshift のコード例
<a name="service_code_examples"></a>

次のコード例は、AWS Software Development Kit (SDK) で Amazon Redshift を使用する方法を示しています。

*基本* は、重要なオペレーションをサービス内で実行する方法を示すコード例です。

*アクション*はより大きなプログラムからのコードの抜粋であり、コンテキスト内で実行する必要があります。アクションは個々のサービス機能を呼び出す方法を示していますが、コンテキスト内のアクションは、関連するシナリオで確認できます。

*シナリオ*は、1 つのサービス内から、または他の 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 データ追跡用のウェブアプリケーションの作成](example_cross_RedshiftDataTracker_section.md)
  + [Redshift Serverless の使用開始](example_redshift_GettingStarted_038_section.md)
  + [Amazon Redshift でプロビジョニングされたクラスターの使用開始](example_redshift_GettingStarted_039_section.md)