forked from Azure/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres-cosmos-gremlin-graph.bicep
51 lines (50 loc) · 1.37 KB
/
res-cosmos-gremlin-graph.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Cosmos DB Gremlin Graph
resource gremlinDb 'Microsoft.DocumentDB/databaseAccounts/gremlinDatabases@2021-06-15' = {
name: /*${1:'name'}*/'account-name/database-name'
properties: {
resource: {
id: /*${2:'id'}*/'id'
}
options: {
throughput: /*${3:'throughput'}*/'throughput'
}
}
}
resource /*${4:cosmosDbGremlinGraph}*/cosmosDbGremlinGraph 'Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs@2021-06-15' = {
parent: gremlinDb
name: /*${5:'name'}*/'name'
properties: {
resource: {
id: /*${6:'id'}*/'id'
partitionKey: {
paths: [
/*${7:'paths'}*/'paths'
]
kind: /*'${8|Hash,Range|}'*/'Hash'
}
indexingPolicy: {
indexingMode: /*'${9|consistent,lazy,none|}'*/'consistent'
includedPaths: [
{
path: /*${10:'path'}*/'path'
indexes: [
{
kind: /*'${11|Hash,Range,Spatial|}'*/'Hash'
dataType: /*'${12|String,Number,Point,Polygon,LineString,MultiPolygon|}'*/'String'
precision: /*${13:-1}*/-1
}
]
}
]
excludedPaths: [
{
path: /*${14:'path'}*/'path'
}
]
}
}
options: {
throughput: /*${15:'throughput'}*/'throughput'
}
}
}