CosmosDBv4OutputOptions interface

屬性

connection

具有 Cosmos DB 連接字串的應用程式設定(或環境變數)

containerName

正在監視的集合名稱

containerThroughput

當 createIfNotExists 為 true 時,它會定義所建立集合的 輸送量

createIfNotExists

布爾值,指出集合不存在時是否建立。 默認值為 false,因為新集合是以保留輸送量建立,這會影響成本。 如需詳細資訊,請參閱 定價頁面

databaseName

受監視集合的 Azure Cosmos DB 資料庫名稱

partitionKey

createIfNotExists 為 true 時,它會定義所建立集合的分割區索引鍵路徑。 可能包含係結參數。

preferredLocations

定義 Azure Cosmos DB 服務中異地復寫資料庫帳戶的慣用位置(區域)。 值應該以逗號分隔。 例如,美國東部、美國中南部、北歐

屬性詳細資料

connection

具有 Cosmos DB 連接字串的應用程式設定(或環境變數)

connection: string

屬性值

string

containerName

正在監視的集合名稱

containerName: string

屬性值

string

containerThroughput

當 createIfNotExists 為 true 時,它會定義所建立集合的 輸送量

containerThroughput?: number

屬性值

number

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