AWS Data Pipeline 不再提供給新客戶。的現有客戶 AWS Data Pipeline 可以繼續正常使用服務。進一步了解
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
RedshiftDatabase
定義 Amazon Redshift 資料庫。 RedshiftDatabase代表管道所使用的資料庫屬性。
範例
以下為此物件類型的範例。
{ "id" : "MyRedshiftDatabase", "type" : "RedshiftDatabase", "clusterId" : "myRedshiftClusterId", "username" : "user_name", "*password" : "my_password", "databaseName" : "database_name" }
根據預設,物件會使用 Postgres 驅動程式,而該驅動程式需要 clusterId 欄位。若要使用 Amazon Redshift 驅動程式,請在 connectionString 欄位中從 Amazon Redshift 主控台指定 Amazon Redshift 資料庫連線字串 (開頭為 "jdbc:redshift:")。
語法
| 必要欄位 | 描述 | 槽類型 |
|---|---|---|
| *password | 要提供的密碼。 | 字串 |
| 使用者名稱 | 連線至資料庫時要提供的使用者名稱。 | 字串 |
| 必要的群組 (下列其中之一為必要) | 描述 | 槽類型 |
|---|---|---|
| clusterId | 建立 Amazon Redshift 叢集時,使用者提供的識別符。例如,如果 Amazon Redshift 叢集的端點是 mydb.example.us-east-1.redshift.amazonaws.com,則正確的識別符是 mydb。在 Amazon Redshift 主控台中,您可以從叢集識別符或叢集名稱取得此值。 |
字串 |
| connectionString | 用於連線至與管道不同的 帳戶所擁有之 Amazon Redshift 執行個體的 JDBC 端點。您不能同時指定 connectionString 和 clusterId。 |
字串 |
| 選用欄位 | 描述 | 槽類型 |
|---|---|---|
| databaseName | 要連接的邏輯資料庫的名稱。 | 字串 |
| jdbcProperties | 要在此資料庫 JDBC 連線上設為屬性的 A=B 形式對。 | 字串 |
| parent | 目前物件的父系,其插槽已被繼承。 | 參考物件,例如 "parent":{"ref":"myBaseObjectId"} |
| region | 資料庫所在的區域代碼。例如 us-east-1。 | 列舉 |
| 執行時間欄位 | 描述 | 槽類型 |
|---|---|---|
| @version | 建立物件時使用的管道版本。 | 字串 |
| 系統欄位 | 描述 | 槽類型 |
|---|---|---|
| @error | 描述格式錯誤物件的錯誤。 | 字串 |
| @pipelineId | 此物件所屬管道的 ID。 | 字串 |
| @sphere | 物件範圍代表其在生命週期中的位置:Component 物件會引發執行 Attempt 物件的 Instance 物件。 | 字串 |