MongoDBCollectionResource Class

Cosmos DB MongoDB collection resource object.

All required parameters must be populated in order to send to Azure.

Inheritance
MongoDBCollectionResource

Constructor

MongoDBCollectionResource(*, id: str, shard_key: Optional[Dict[str, str]] = None, indexes: Optional[List[_models.MongoIndex]] = None, analytical_storage_ttl: Optional[int] = None, **kwargs)

Variables

id
str

Required. Name of the Cosmos DB MongoDB collection.

shard_key
dict[str, str]

A key-value pair of shard keys to be applied for the request.

indexes
list[MongoIndex]

List of index keys.

analytical_storage_ttl
int

Analytical TTL.