Skip to content

Commit 2534827

Browse files
authored
1 parent 44ee5f8 commit 2534827

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

articles/azure-functions/functions-bindings-cosmosdb-v2-input.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,20 @@ Both [in-process](functions-dotnet-class-library.md) and [isolated worker proces
15321532

15331533
_Applies only to the Python v2 programming model._
15341534

1535-
For Python v2 functions defined using a decorator, the following properties on the `cosmos_db_input`:
1535+
Python v2 functions are defined using the `cosmos_db_input` decorator, which supports these properties, depending on the extension version:
1536+
1537+
### [Extension 4.x+](#tab/extensionv4)
1538+
1539+
| Property | Description |
1540+
|-------------|-----------------------------|
1541+
|`arg_name` | The variable name used in function code that represents the list of documents with changes. |
1542+
|`database_name` | The name of the Azure Cosmos DB database with the collection being monitored. |
1543+
|`container_name` | The name of the Azure Cosmos DB collection being monitored. |
1544+
|`connection` | The connection string of the Azure Cosmos DB being monitored. |
1545+
|`partition_key` | The partition key of the Azure Cosmos DB being monitored. |
1546+
|`id` | The ID of the document to retrieve. |
1547+
1548+
### [Functions 2.x+](#tab/functionsv2)
15361549

15371550
| Property | Description |
15381551
|-------------|-----------------------------|
@@ -1543,6 +1556,8 @@ For Python v2 functions defined using a decorator, the following properties on t
15431556
|`partition_key` | The partition key of the Azure Cosmos DB being monitored. |
15441557
|`id` | The ID of the document to retrieve. |
15451558

1559+
---
1560+
15461561
For Python functions defined by using *function.json*, see the [Configuration](#configuration) section.
15471562
::: zone-end
15481563

0 commit comments

Comments
 (0)