

 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/)を参照してください。

# カスタムドメインの関連付けを説明する
<a name="connecting-connection-CNAME-describe-api"></a>

このセクションのコマンドを使用して、特定のプロビジョニング済みクラスターまたは Amazon Redshift Serverless ワークグループに関連付けられているカスタムドメイン名のリストを取得します。

次のアクセス許可が必要です。
+ プロビジョニング済みクラスター: `redshift:DescribeCustomDomainAssociations`
+ Amazon Redshift Serverless ワークグループ: `redshiftServerless:ListCnameAssociations`

ベストプラクティスとして、アクセス許可ポリシーを IAM ロールにアタッチし、それを必要に応じてユーザーやグループに割り当てることをお勧めします。詳細については、「[Amazon Redshift での Identity and Access Management](https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-authentication-access-control.html)」を参照してください。

以下は、特定の Amazon Redshift クラスターのカスタムドメイン名を一覧表示するサンプルコマンドを示しています。

```
aws redshift describe-custom-domain-associations ––custom-domain-name {{customdomainname}}
```

カスタムドメイン名が有効になっている場合にこのコマンドを実行すると、クラスターに関連付けられているカスタムドメイン名を確認できます。カスタムドメインの関連付けを記述するための CLI コマンドの詳細については、「[describe-custom-domain-associations](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/redshift/describe-custom-domain-associations.html)」を参照してください。

同様に、以下は、特定の Amazon Redshift Serverless ワークグループのカスタムドメイン名を一覧表示するサンプルコマンドを示しています。この操作には、複数の実行方法があります。カスタムドメイン名だけを指定できます。

```
aws redshift-serverless list-custom-domain-associations ––custom-domain-name {{customdomainname}}
```

証明書 ARN のみを指定して関連付けを取得することもできます。

```
aws redshift-serverless list-custom-domain-associations ––custom-domain-certificate-arn {{certificatearn}}
```

カスタムドメイン名が有効になっている場合にこれらのコマンドを実行して、ワークグループに関連付けられているカスタムドメイン名を確認できます。コマンドを実行してカスタムドメインの関連付けのプロパティを取得することもできます。そのためには、カスタムドメイン名とワークグループ名をパラメータとして指定する必要があります。証明書 ARN、ワークグループ名、カスタムドメインの証明書の有効期限が返されます。

```
aws redshift-serverless get-custom-domain-association ––workgroup-name {{workgroupname}} ––custom-domain-name {{customdomainname}}
```

Amazon Redshift Serverless で利用可能な CLI リファレンスコマンドの詳細については、「[redshift-serverless](https://docs.aws.amazon.com/cli/latest/reference/redshift-serverless/)」を参照してください。