CosmosDBv3OutputOptions interface
屬性
| collection |
正在監視的集合名稱 |
| collection |
當 createIfNotExists 為 true 時,它會定義所建立集合的 輸送量 |
| connection |
具有 Cosmos DB 連接字串的應用程式設定(或環境變數) |
| create |
布爾值,指出集合不存在時是否建立。 默認值為 false,因為新集合是以保留輸送量建立,這會影響成本。 如需詳細資訊,請參閱 定價頁面。 |
| database |
受監視集合的 Azure Cosmos DB 資料庫名稱 |
| partition |
當 |
| preferred |
定義 Azure Cosmos DB 服務中異地復寫資料庫帳戶的慣用位置(區域)。 值應該以逗號分隔。 例如,美國東部、美國中南部、北歐 |
| use |
當設定為 true 以及 preferredLocations 時,支援 Azure Cosmos DB 服務中的多重區域寫入。 |
屬性詳細資料
collectionName
正在監視的集合名稱
collectionName: string
屬性值
string
collectionThroughput
connectionStringSetting
具有 Cosmos DB 連接字串的應用程式設定(或環境變數)
connectionStringSetting: string
屬性值
string
createIfNotExists
布爾值,指出集合不存在時是否建立。 默認值為 false,因為新集合是以保留輸送量建立,這會影響成本。 如需詳細資訊,請參閱 定價頁面。
createIfNotExists?: boolean
屬性值
boolean
databaseName
受監視集合的 Azure Cosmos DB 資料庫名稱
databaseName: string
屬性值
string
partitionKey
當 createIfNotExists 為 true 時,它會定義所建立集合的分割區索引鍵路徑。 可能包含係結參數。
partitionKey?: string
屬性值
string
preferredLocations
定義 Azure Cosmos DB 服務中異地復寫資料庫帳戶的慣用位置(區域)。 值應該以逗號分隔。 例如,美國東部、美國中南部、北歐
preferredLocations?: string
屬性值
string
useMultipleWriteLocations
當設定為 true 以及 preferredLocations 時,支援 Azure Cosmos DB 服務中的多重區域寫入。
useMultipleWriteLocations?: boolean
屬性值
boolean