@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for SQL API
23 lines • 1.11 kB
TypeScript
import { IndexingPolicy, PartitionKeyDefinition } from "../../documents";
import { ConflictResolutionPolicy } from "../Conflict/ConflictResolutionPolicy";
import { UniqueKeyPolicy } from "./UniqueKeyPolicy";
import { GeospatialType } from "../../documents/GeospatialType";
export interface ContainerDefinition {
/** The id of the container. */
id?: string;
/** The partition key for the container. */
partitionKey?: PartitionKeyDefinition;
/** The indexing policy associated with the container. */
indexingPolicy?: IndexingPolicy;
/** The default time to live in seconds for items in a container. */
defaultTtl?: number;
/** The conflict resolution policy used to resolve conflicts in a container. */
conflictResolutionPolicy?: ConflictResolutionPolicy;
/** Policy for additional keys that must be unique per partition key */
uniqueKeyPolicy?: UniqueKeyPolicy;
/** Geospatial configuration for a collection. Type is set to Geography by default */
geospatialConfig?: {
type: GeospatialType;
};
}
//# sourceMappingURL=ContainerDefinition.d.ts.map