次の方法で共有


CosmosDbPartitionedStorageOptions interface

Cosmos DB パーティション分割ストレージ のオプション。

プロパティ

authKey

Cosmos DB の認証キー。

compatibilityMode

初期バージョンの CosmosDb のキーの最大長は 255 でした。 cosmosDbKeyEscape.escapeKey では、これより長いキーが切り捨てられました。 これは cosmosDbPartitionedStorage の既定の動作のままですが、compatibilityMode を false に設定することでオーバーライドできます。 keySuffix が使用されている場合、compatibilityMode を true にすることはできません。

containerId

コンテナー識別子。

containerThroughput

コンテナーの作成時に設定されるスループット。 既定値は 400 です。

cosmosClientOptions

CosmosClient のオプション。

cosmosDbEndpoint

CosmosDB エンドポイント。

databaseId

Cosmos DB インスタンスのデータベース識別子。

keySuffix

すべてのキーに追加するサフィックス。 cosmosDbKeyEscape.escapeKey を参照してください。KeySuffix を使用するには、compatibilityMode を 'false' に設定する必要があります。 KeySuffix が使用されている場合、キーは切り捨てされませんが、キーの長さが CosmosDb で許可されているよりも長い場合は例外がスローされます。

keySuffix には、有効な CosmosDb キー文字のみを含める必要があります。 (例: '\'、'?'、'/'、'#'、'*')

プロパティの詳細

authKey

Cosmos DB の認証キー。

authKey?: string

プロパティ値

string

compatibilityMode

初期バージョンの CosmosDb のキーの最大長は 255 でした。 cosmosDbKeyEscape.escapeKey では、これより長いキーが切り捨てられました。 これは cosmosDbPartitionedStorage の既定の動作のままですが、compatibilityMode を false に設定することでオーバーライドできます。 keySuffix が使用されている場合、compatibilityMode を true にすることはできません。

compatibilityMode?: boolean

プロパティ値

boolean

containerId

コンテナー識別子。

containerId: string

プロパティ値

string

containerThroughput

コンテナーの作成時に設定されるスループット。 既定値は 400 です。

containerThroughput?: number

プロパティ値

number

cosmosClientOptions

CosmosClient のオプション。

cosmosClientOptions?: CosmosClientOptions

プロパティ値

CosmosClientOptions

cosmosDbEndpoint

CosmosDB エンドポイント。

cosmosDbEndpoint?: string

プロパティ値

string

databaseId

Cosmos DB インスタンスのデータベース識別子。

databaseId: string

プロパティ値

string

keySuffix

すべてのキーに追加するサフィックス。 cosmosDbKeyEscape.escapeKey を参照してください。KeySuffix を使用するには、compatibilityMode を 'false' に設定する必要があります。 KeySuffix が使用されている場合、キーは切り捨てされませんが、キーの長さが CosmosDb で許可されているよりも長い場合は例外がスローされます。

keySuffix には、有効な CosmosDb キー文字のみを含める必要があります。 (例: '\'、'?'、'/'、'#'、'*')

keySuffix?: string

プロパティ値

string