Azure Classic
GremlinGraph
Manages a Gremlin Graph within a Cosmos DB Account.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleAccount = Output.Create(Azure.CosmosDB.GetAccount.InvokeAsync(new Azure.CosmosDB.GetAccountArgs
{
Name = "tfex-cosmosdb-account",
ResourceGroupName = "tfex-cosmosdb-account-rg",
}));
var exampleGremlinDatabase = new Azure.CosmosDB.GremlinDatabase("exampleGremlinDatabase", new Azure.CosmosDB.GremlinDatabaseArgs
{
ResourceGroupName = exampleAccount.Apply(exampleAccount => exampleAccount.ResourceGroupName),
AccountName = exampleAccount.Apply(exampleAccount => exampleAccount.Name),
});
var exampleGremlinGraph = new Azure.CosmosDB.GremlinGraph("exampleGremlinGraph", new Azure.CosmosDB.GremlinGraphArgs
{
ResourceGroupName = azurerm_cosmosdb_account.Example.Resource_group_name,
AccountName = azurerm_cosmosdb_account.Example.Name,
DatabaseName = exampleGremlinDatabase.Name,
PartitionKeyPath = "/Example",
Throughput = 400,
IndexPolicy = new Azure.CosmosDB.Inputs.GremlinGraphIndexPolicyArgs
{
Automatic = true,
IndexingMode = "Consistent",
IncludedPaths =
{
"/*",
},
ExcludedPaths =
{
"/\"_etag\"/?",
},
},
ConflictResolutionPolicy = new Azure.CosmosDB.Inputs.GremlinGraphConflictResolutionPolicyArgs
{
Mode = "LastWriterWins",
ConflictResolutionPath = "/_ts",
},
UniqueKeys =
{
new Azure.CosmosDB.Inputs.GremlinGraphUniqueKeyArgs
{
Paths =
{
"/definition/id1",
"/definition/id2",
},
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cosmosdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleAccount, err := cosmosdb.LookupAccount(ctx, &cosmosdb.LookupAccountArgs{
Name: "tfex-cosmosdb-account",
ResourceGroupName: "tfex-cosmosdb-account-rg",
}, nil)
if err != nil {
return err
}
exampleGremlinDatabase, err := cosmosdb.NewGremlinDatabase(ctx, "exampleGremlinDatabase", &cosmosdb.GremlinDatabaseArgs{
ResourceGroupName: pulumi.String(exampleAccount.ResourceGroupName),
AccountName: pulumi.String(exampleAccount.Name),
})
if err != nil {
return err
}
_, err = cosmosdb.NewGremlinGraph(ctx, "exampleGremlinGraph", &cosmosdb.GremlinGraphArgs{
ResourceGroupName: pulumi.Any(azurerm_cosmosdb_account.Example.Resource_group_name),
AccountName: pulumi.Any(azurerm_cosmosdb_account.Example.Name),
DatabaseName: exampleGremlinDatabase.Name,
PartitionKeyPath: pulumi.String("/Example"),
Throughput: pulumi.Int(400),
IndexPolicy: &cosmosdb.GremlinGraphIndexPolicyArgs{
Automatic: pulumi.Bool(true),
IndexingMode: pulumi.String("Consistent"),
IncludedPaths: pulumi.StringArray{
pulumi.String("/*"),
},
ExcludedPaths: pulumi.StringArray{
pulumi.String("/\"_etag\"/?"),
},
},
ConflictResolutionPolicy: &cosmosdb.GremlinGraphConflictResolutionPolicyArgs{
Mode: pulumi.String("LastWriterWins"),
ConflictResolutionPath: pulumi.String("/_ts"),
},
UniqueKeys: cosmosdb.GremlinGraphUniqueKeyArray{
&cosmosdb.GremlinGraphUniqueKeyArgs{
Paths: pulumi.StringArray{
pulumi.String("/definition/id1"),
pulumi.String("/definition/id2"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var exampleAccount = Output.of(CosmosdbFunctions.getAccount(GetAccountArgs.builder()
.name("tfex-cosmosdb-account")
.resourceGroupName("tfex-cosmosdb-account-rg")
.build()));
var exampleGremlinDatabase = new GremlinDatabase("exampleGremlinDatabase", GremlinDatabaseArgs.builder()
.resourceGroupName(exampleAccount.apply(getAccountResult -> getAccountResult.resourceGroupName()))
.accountName(exampleAccount.apply(getAccountResult -> getAccountResult.name()))
.build());
var exampleGremlinGraph = new GremlinGraph("exampleGremlinGraph", GremlinGraphArgs.builder()
.resourceGroupName(azurerm_cosmosdb_account.example().resource_group_name())
.accountName(azurerm_cosmosdb_account.example().name())
.databaseName(exampleGremlinDatabase.name())
.partitionKeyPath("/Example")
.throughput(400)
.indexPolicy(GremlinGraphIndexPolicyArgs.builder()
.automatic(true)
.indexingMode("Consistent")
.includedPaths("/*")
.excludedPaths("/\"_etag\"/?")
.build())
.conflictResolutionPolicy(GremlinGraphConflictResolutionPolicyArgs.builder()
.mode("LastWriterWins")
.conflictResolutionPath("/_ts")
.build())
.uniqueKeys(GremlinGraphUniqueKeyArgs.builder()
.paths(
"/definition/id1",
"/definition/id2")
.build())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_account = azure.cosmosdb.get_account(name="tfex-cosmosdb-account",
resource_group_name="tfex-cosmosdb-account-rg")
example_gremlin_database = azure.cosmosdb.GremlinDatabase("exampleGremlinDatabase",
resource_group_name=example_account.resource_group_name,
account_name=example_account.name)
example_gremlin_graph = azure.cosmosdb.GremlinGraph("exampleGremlinGraph",
resource_group_name=azurerm_cosmosdb_account["example"]["resource_group_name"],
account_name=azurerm_cosmosdb_account["example"]["name"],
database_name=example_gremlin_database.name,
partition_key_path="/Example",
throughput=400,
index_policy=azure.cosmosdb.GremlinGraphIndexPolicyArgs(
automatic=True,
indexing_mode="Consistent",
included_paths=["/*"],
excluded_paths=["/\"_etag\"/?"],
),
conflict_resolution_policy=azure.cosmosdb.GremlinGraphConflictResolutionPolicyArgs(
mode="LastWriterWins",
conflict_resolution_path="/_ts",
),
unique_keys=[azure.cosmosdb.GremlinGraphUniqueKeyArgs(
paths=[
"/definition/id1",
"/definition/id2",
],
)])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleAccount = azure.cosmosdb.getAccount({
name: "tfex-cosmosdb-account",
resourceGroupName: "tfex-cosmosdb-account-rg",
});
const exampleGremlinDatabase = new azure.cosmosdb.GremlinDatabase("exampleGremlinDatabase", {
resourceGroupName: exampleAccount.then(exampleAccount => exampleAccount.resourceGroupName),
accountName: exampleAccount.then(exampleAccount => exampleAccount.name),
});
const exampleGremlinGraph = new azure.cosmosdb.GremlinGraph("exampleGremlinGraph", {
resourceGroupName: azurerm_cosmosdb_account.example.resource_group_name,
accountName: azurerm_cosmosdb_account.example.name,
databaseName: exampleGremlinDatabase.name,
partitionKeyPath: "/Example",
throughput: 400,
indexPolicy: {
automatic: true,
indexingMode: "Consistent",
includedPaths: ["/*"],
excludedPaths: ["/\"_etag\"/?"],
},
conflictResolutionPolicy: {
mode: "LastWriterWins",
conflictResolutionPath: "/_ts",
},
uniqueKeys: [{
paths: [
"/definition/id1",
"/definition/id2",
],
}],
});
resources:
exampleGremlinDatabase:
type: azure:cosmosdb:GremlinDatabase
properties:
resourceGroupName: ${exampleAccount.resourceGroupName}
accountName: ${exampleAccount.name}
exampleGremlinGraph:
type: azure:cosmosdb:GremlinGraph
properties:
resourceGroupName: ${azurerm_cosmosdb_account.example.resource_group_name}
accountName: ${azurerm_cosmosdb_account.example.name}
databaseName: ${exampleGremlinDatabase.name}
partitionKeyPath: /Example
throughput: 400
indexPolicy:
automatic: true
indexingMode: Consistent
includedPaths:
- /*
excludedPaths:
- /"_etag"/?
conflictResolutionPolicy:
mode: LastWriterWins
conflictResolutionPath: /_ts
uniqueKeys:
- paths:
- /definition/id1
- /definition/id2
variables:
exampleAccount:
Fn::Invoke:
Function: azure:cosmosdb:getAccount
Arguments:
name: tfex-cosmosdb-account
resourceGroupName: tfex-cosmosdb-account-rg
Create a GremlinGraph Resource
new GremlinGraph(name: string, args: GremlinGraphArgs, opts?: CustomResourceOptions);
@overload
def GremlinGraph(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
autoscale_settings: Optional[GremlinGraphAutoscaleSettingsArgs] = None,
conflict_resolution_policy: Optional[GremlinGraphConflictResolutionPolicyArgs] = None,
database_name: Optional[str] = None,
default_ttl: Optional[int] = None,
index_policy: Optional[GremlinGraphIndexPolicyArgs] = None,
name: Optional[str] = None,
partition_key_path: Optional[str] = None,
partition_key_version: Optional[int] = None,
resource_group_name: Optional[str] = None,
throughput: Optional[int] = None,
unique_keys: Optional[Sequence[GremlinGraphUniqueKeyArgs]] = None)
@overload
def GremlinGraph(resource_name: str,
args: GremlinGraphArgs,
opts: Optional[ResourceOptions] = None)
func NewGremlinGraph(ctx *Context, name string, args GremlinGraphArgs, opts ...ResourceOption) (*GremlinGraph, error)
public GremlinGraph(string name, GremlinGraphArgs args, CustomResourceOptions? opts = null)
public GremlinGraph(String name, GremlinGraphArgs args)
public GremlinGraph(String name, GremlinGraphArgs args, CustomResourceOptions options)
type: azure:cosmosdb:GremlinGraph
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GremlinGraphArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GremlinGraphArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GremlinGraphArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GremlinGraphArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GremlinGraphArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
GremlinGraph Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GremlinGraph resource accepts the following input properties:
- Account
Name string The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- Database
Name string The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- Partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- Autoscale
Settings GremlinGraph Autoscale Settings Args - Conflict
Resolution GremlinPolicy Graph Conflict Resolution Policy Args A
conflict_resolution_policy
blocks as defined below.- Default
Ttl int The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- Index
Policy GremlinGraph Index Policy Args The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- Name string
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- Partition
Key intVersion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- Throughput int
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- Unique
Keys List<GremlinGraph Unique Key Args> One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
- Account
Name string The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- Database
Name string The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- Partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- Autoscale
Settings GremlinGraph Autoscale Settings Args - Conflict
Resolution GremlinPolicy Graph Conflict Resolution Policy Args A
conflict_resolution_policy
blocks as defined below.- Default
Ttl int The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- Index
Policy GremlinGraph Index Policy Args The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- Name string
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- Partition
Key intVersion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- Throughput int
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- Unique
Keys []GremlinGraph Unique Key Args One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
- account
Name String The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- database
Name String The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- partition
Key StringPath Define a partition key. Changing this forces a new resource to be created.
- resource
Group StringName The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- autoscale
Settings GremlinGraph Autoscale Settings Args - conflict
Resolution GremlinPolicy Graph Conflict Resolution Policy Args A
conflict_resolution_policy
blocks as defined below.- default
Ttl Integer The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- index
Policy GremlinGraph Index Policy Args The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- name String
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- partition
Key IntegerVersion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- throughput Integer
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- unique
Keys List<GremlinGraph Unique Key Args> One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
- account
Name string The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- database
Name string The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- autoscale
Settings GremlinGraph Autoscale Settings Args - conflict
Resolution GremlinPolicy Graph Conflict Resolution Policy Args A
conflict_resolution_policy
blocks as defined below.- default
Ttl number The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- index
Policy GremlinGraph Index Policy Args The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- name string
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- partition
Key numberVersion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- throughput number
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- unique
Keys GremlinGraph Unique Key Args[] One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
- account_
name str The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- database_
name str The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- partition_
key_ strpath Define a partition key. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- autoscale_
settings GremlinGraph Autoscale Settings Args - conflict_
resolution_ Gremlinpolicy Graph Conflict Resolution Policy Args A
conflict_resolution_policy
blocks as defined below.- default_
ttl int The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- index_
policy GremlinGraph Index Policy Args The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- name str
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- partition_
key_ intversion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- throughput int
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- unique_
keys Sequence[GremlinGraph Unique Key Args] One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
- account
Name String The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- database
Name String The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- partition
Key StringPath Define a partition key. Changing this forces a new resource to be created.
- resource
Group StringName The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- autoscale
Settings Property Map - conflict
Resolution Property MapPolicy A
conflict_resolution_policy
blocks as defined below.- default
Ttl Number The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- index
Policy Property Map The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- name String
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- partition
Key NumberVersion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- throughput Number
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- unique
Keys List<Property Map> One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the GremlinGraph resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up an Existing GremlinGraph Resource
Get an existing GremlinGraph resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GremlinGraphState, opts?: CustomResourceOptions): GremlinGraph
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
autoscale_settings: Optional[GremlinGraphAutoscaleSettingsArgs] = None,
conflict_resolution_policy: Optional[GremlinGraphConflictResolutionPolicyArgs] = None,
database_name: Optional[str] = None,
default_ttl: Optional[int] = None,
index_policy: Optional[GremlinGraphIndexPolicyArgs] = None,
name: Optional[str] = None,
partition_key_path: Optional[str] = None,
partition_key_version: Optional[int] = None,
resource_group_name: Optional[str] = None,
throughput: Optional[int] = None,
unique_keys: Optional[Sequence[GremlinGraphUniqueKeyArgs]] = None) -> GremlinGraph
func GetGremlinGraph(ctx *Context, name string, id IDInput, state *GremlinGraphState, opts ...ResourceOption) (*GremlinGraph, error)
public static GremlinGraph Get(string name, Input<string> id, GremlinGraphState? state, CustomResourceOptions? opts = null)
public static GremlinGraph get(String name, Output<String> id, GremlinGraphState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Name string The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- Autoscale
Settings GremlinGraph Autoscale Settings Args - Conflict
Resolution GremlinPolicy Graph Conflict Resolution Policy Args A
conflict_resolution_policy
blocks as defined below.- Database
Name string The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- Default
Ttl int The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- Index
Policy GremlinGraph Index Policy Args The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- Name string
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- Partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- Partition
Key intVersion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- Resource
Group stringName The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- Throughput int
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- Unique
Keys List<GremlinGraph Unique Key Args> One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
- Account
Name string The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- Autoscale
Settings GremlinGraph Autoscale Settings Args - Conflict
Resolution GremlinPolicy Graph Conflict Resolution Policy Args A
conflict_resolution_policy
blocks as defined below.- Database
Name string The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- Default
Ttl int The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- Index
Policy GremlinGraph Index Policy Args The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- Name string
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- Partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- Partition
Key intVersion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- Resource
Group stringName The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- Throughput int
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- Unique
Keys []GremlinGraph Unique Key Args One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
- account
Name String The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- autoscale
Settings GremlinGraph Autoscale Settings Args - conflict
Resolution GremlinPolicy Graph Conflict Resolution Policy Args A
conflict_resolution_policy
blocks as defined below.- database
Name String The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- default
Ttl Integer The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- index
Policy GremlinGraph Index Policy Args The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- name String
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- partition
Key StringPath Define a partition key. Changing this forces a new resource to be created.
- partition
Key IntegerVersion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- resource
Group StringName The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- throughput Integer
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- unique
Keys List<GremlinGraph Unique Key Args> One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
- account
Name string The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- autoscale
Settings GremlinGraph Autoscale Settings Args - conflict
Resolution GremlinPolicy Graph Conflict Resolution Policy Args A
conflict_resolution_policy
blocks as defined below.- database
Name string The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- default
Ttl number The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- index
Policy GremlinGraph Index Policy Args The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- name string
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- partition
Key stringPath Define a partition key. Changing this forces a new resource to be created.
- partition
Key numberVersion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- resource
Group stringName The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- throughput number
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- unique
Keys GremlinGraph Unique Key Args[] One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
- account_
name str The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- autoscale_
settings GremlinGraph Autoscale Settings Args - conflict_
resolution_ Gremlinpolicy Graph Conflict Resolution Policy Args A
conflict_resolution_policy
blocks as defined below.- database_
name str The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- default_
ttl int The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- index_
policy GremlinGraph Index Policy Args The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- name str
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- partition_
key_ strpath Define a partition key. Changing this forces a new resource to be created.
- partition_
key_ intversion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- resource_
group_ strname The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- throughput int
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- unique_
keys Sequence[GremlinGraph Unique Key Args] One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
- account
Name String The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- autoscale
Settings Property Map - conflict
Resolution Property MapPolicy A
conflict_resolution_policy
blocks as defined below.- database
Name String The name of the Cosmos DB Graph Database in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- default
Ttl Number The default time to live (TTL) of the Gremlin graph. If the value is missing or set to "-1", items don’t expire.
- index
Policy Property Map The configuration of the indexing policy. One or more
index_policy
blocks as defined below.- name String
Specifies the name of the Cosmos DB Gremlin Graph. Changing this forces a new resource to be created.
- partition
Key StringPath Define a partition key. Changing this forces a new resource to be created.
- partition
Key NumberVersion Define a partition key version. Changing this forces a new resource to be created. Possible values are
1
and2
. This should be set to2
in order to use large partition keys.- resource
Group StringName The name of the resource group in which the Cosmos DB Gremlin Graph is created. Changing this forces a new resource to be created.
- throughput Number
The throughput of the Gremlin graph (RU/s). Must be set in increments of
100
. The minimum value is400
. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply.- unique
Keys List<Property Map> One or more
unique_key
blocks as defined below. Changing this forces a new resource to be created.
Supporting Types
GremlinGraphAutoscaleSettings
- Max
Throughput int The maximum throughput of the Gremlin graph (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
- Max
Throughput int The maximum throughput of the Gremlin graph (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
- max
Throughput Integer The maximum throughput of the Gremlin graph (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
- max
Throughput number The maximum throughput of the Gremlin graph (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
- max_
throughput int The maximum throughput of the Gremlin graph (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
- max
Throughput Number The maximum throughput of the Gremlin graph (RU/s). Must be between
1,000
and1,000,000
. Must be set in increments of1,000
. Conflicts withthroughput
.
GremlinGraphConflictResolutionPolicy
- Mode string
Indicates the conflict resolution mode. Possible values include:
LastWriterWins
,Custom
.- Conflict
Resolution stringPath The conflict resolution path in the case of LastWriterWins mode.
- Conflict
Resolution stringProcedure The procedure to resolve conflicts in the case of custom mode.
- Mode string
Indicates the conflict resolution mode. Possible values include:
LastWriterWins
,Custom
.- Conflict
Resolution stringPath The conflict resolution path in the case of LastWriterWins mode.
- Conflict
Resolution stringProcedure The procedure to resolve conflicts in the case of custom mode.
- mode String
Indicates the conflict resolution mode. Possible values include:
LastWriterWins
,Custom
.- conflict
Resolution StringPath The conflict resolution path in the case of LastWriterWins mode.
- conflict
Resolution StringProcedure The procedure to resolve conflicts in the case of custom mode.
- mode string
Indicates the conflict resolution mode. Possible values include:
LastWriterWins
,Custom
.- conflict
Resolution stringPath The conflict resolution path in the case of LastWriterWins mode.
- conflict
Resolution stringProcedure The procedure to resolve conflicts in the case of custom mode.
- mode str
Indicates the conflict resolution mode. Possible values include:
LastWriterWins
,Custom
.- conflict_
resolution_ strpath The conflict resolution path in the case of LastWriterWins mode.
- conflict_
resolution_ strprocedure The procedure to resolve conflicts in the case of custom mode.
- mode String
Indicates the conflict resolution mode. Possible values include:
LastWriterWins
,Custom
.- conflict
Resolution StringPath The conflict resolution path in the case of LastWriterWins mode.
- conflict
Resolution StringProcedure The procedure to resolve conflicts in the case of custom mode.
GremlinGraphIndexPolicy
- Indexing
Mode string Indicates the indexing mode. Possible values include:
Consistent
,Lazy
,None
.- Automatic bool
Indicates if the indexing policy is automatic. Defaults to
true
.- Composite
Indices List<GremlinGraph Index Policy Composite Index> One or more
composite_index
blocks as defined below.- Excluded
Paths List<string> List of paths to exclude from indexing. Required if
indexing_mode
isConsistent
orLazy
.- Included
Paths List<string> List of paths to include in the indexing. Required if
indexing_mode
isConsistent
orLazy
.- Spatial
Indices List<GremlinGraph Index Policy Spatial Index> One or more
spatial_index
blocks as defined below.
- Indexing
Mode string Indicates the indexing mode. Possible values include:
Consistent
,Lazy
,None
.- Automatic bool
Indicates if the indexing policy is automatic. Defaults to
true
.- Composite
Indices []GremlinGraph Index Policy Composite Index One or more
composite_index
blocks as defined below.- Excluded
Paths []string List of paths to exclude from indexing. Required if
indexing_mode
isConsistent
orLazy
.- Included
Paths []string List of paths to include in the indexing. Required if
indexing_mode
isConsistent
orLazy
.- Spatial
Indices []GremlinGraph Index Policy Spatial Index One or more
spatial_index
blocks as defined below.
- indexing
Mode String Indicates the indexing mode. Possible values include:
Consistent
,Lazy
,None
.- automatic Boolean
Indicates if the indexing policy is automatic. Defaults to
true
.- composite
Indices List<GremlinGraph Index Policy Composite Index> One or more
composite_index
blocks as defined below.- excluded
Paths List<String> List of paths to exclude from indexing. Required if
indexing_mode
isConsistent
orLazy
.- included
Paths List<String> List of paths to include in the indexing. Required if
indexing_mode
isConsistent
orLazy
.- spatial
Indices List<GremlinGraph Index Policy Spatial Index> One or more
spatial_index
blocks as defined below.
- indexing
Mode string Indicates the indexing mode. Possible values include:
Consistent
,Lazy
,None
.- automatic boolean
Indicates if the indexing policy is automatic. Defaults to
true
.- composite
Indices GremlinGraph Index Policy Composite Index[] One or more
composite_index
blocks as defined below.- excluded
Paths string[] List of paths to exclude from indexing. Required if
indexing_mode
isConsistent
orLazy
.- included
Paths string[] List of paths to include in the indexing. Required if
indexing_mode
isConsistent
orLazy
.- spatial
Indices GremlinGraph Index Policy Spatial Index[] One or more
spatial_index
blocks as defined below.
- indexing_
mode str Indicates the indexing mode. Possible values include:
Consistent
,Lazy
,None
.- automatic bool
Indicates if the indexing policy is automatic. Defaults to
true
.- composite_
indices Sequence[GremlinGraph Index Policy Composite Index] One or more
composite_index
blocks as defined below.- excluded_
paths Sequence[str] List of paths to exclude from indexing. Required if
indexing_mode
isConsistent
orLazy
.- included_
paths Sequence[str] List of paths to include in the indexing. Required if
indexing_mode
isConsistent
orLazy
.- spatial_
indices Sequence[GremlinGraph Index Policy Spatial Index] One or more
spatial_index
blocks as defined below.
- indexing
Mode String Indicates the indexing mode. Possible values include:
Consistent
,Lazy
,None
.- automatic Boolean
Indicates if the indexing policy is automatic. Defaults to
true
.- composite
Indices List<Property Map> One or more
composite_index
blocks as defined below.- excluded
Paths List<String> List of paths to exclude from indexing. Required if
indexing_mode
isConsistent
orLazy
.- included
Paths List<String> List of paths to include in the indexing. Required if
indexing_mode
isConsistent
orLazy
.- spatial
Indices List<Property Map> One or more
spatial_index
blocks as defined below.
GremlinGraphIndexPolicyCompositeIndex
- Indices
List<Gremlin
Graph Index Policy Composite Index Index> One or more
index
blocks as defined below.
- Indices
[]Gremlin
Graph Index Policy Composite Index Index One or more
index
blocks as defined below.
- indices
List<Gremlin
Graph Index Policy Composite Index Index> One or more
index
blocks as defined below.
- indices
Gremlin
Graph Index Policy Composite Index Index[] One or more
index
blocks as defined below.
- indices
Sequence[Gremlin
Graph Index Policy Composite Index Index] One or more
index
blocks as defined below.
- indices List<Property Map>
One or more
index
blocks as defined below.
GremlinGraphIndexPolicyCompositeIndexIndex
GremlinGraphIndexPolicySpatialIndex
GremlinGraphUniqueKey
- Paths List<string>
A list of paths to use for this unique key.
- Paths []string
A list of paths to use for this unique key.
- paths List<String>
A list of paths to use for this unique key.
- paths string[]
A list of paths to use for this unique key.
- paths Sequence[str]
A list of paths to use for this unique key.
- paths List<String>
A list of paths to use for this unique key.
Import
Cosmos Gremlin Graphs can be imported using the resource id
, e.g.
$ pulumi import azure:cosmosdb/gremlinGraph:GremlinGraph example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/gremlinDatabases/db1/graphs/graphs1
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.