Gremlin Resource Gremlin Graph Args
An Azure Cosmos DB Gremlin graph. API Version: 2021-03-15.
Example Usage
CosmosDBGremlinGraphCreateUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var gremlinResourceGremlinGraph = new AzureNative.DocumentDB.GremlinResourceGremlinGraph("gremlinResourceGremlinGraph", new()
{
AccountName = "ddb1",
DatabaseName = "databaseName",
GraphName = "graphName",
Location = "West US",
Options = null,
Resource = new AzureNative.DocumentDB.Inputs.GremlinGraphResourceArgs
{
ConflictResolutionPolicy = new AzureNative.DocumentDB.Inputs.ConflictResolutionPolicyArgs
{
ConflictResolutionPath = "/path",
Mode = "LastWriterWins",
},
DefaultTtl = 100,
Id = "graphName",
IndexingPolicy = new AzureNative.DocumentDB.Inputs.IndexingPolicyArgs
{
Automatic = true,
ExcludedPaths = new[] {},
IncludedPaths = new[]
{
new AzureNative.DocumentDB.Inputs.IncludedPathArgs
{
Indexes = new[]
{
new AzureNative.DocumentDB.Inputs.IndexesArgs
{
DataType = "String",
Kind = "Range",
Precision = -1,
},
new AzureNative.DocumentDB.Inputs.IndexesArgs
{
DataType = "Number",
Kind = "Range",
Precision = -1,
},
},
Path = "/*",
},
},
IndexingMode = "consistent",
},
PartitionKey = new AzureNative.DocumentDB.Inputs.ContainerPartitionKeyArgs
{
Kind = "Hash",
Paths = new[]
{
"/AccountNumber",
},
},
UniqueKeyPolicy = new AzureNative.DocumentDB.Inputs.UniqueKeyPolicyArgs
{
UniqueKeys = new[]
{
new AzureNative.DocumentDB.Inputs.UniqueKeyArgs
{
Paths = new[]
{
"/testPath",
},
},
},
},
},
ResourceGroupName = "rg1",
Tags = null,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.documentdb.GremlinResourceGremlinGraph;
import com.pulumi.azurenative.documentdb.GremlinResourceGremlinGraphArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var gremlinResourceGremlinGraph = new GremlinResourceGremlinGraph("gremlinResourceGremlinGraph", GremlinResourceGremlinGraphArgs.builder()
.accountName("ddb1")
.databaseName("databaseName")
.graphName("graphName")
.location("West US")
.options()
.resource(Map.ofEntries(
Map.entry("conflictResolutionPolicy", Map.ofEntries(
Map.entry("conflictResolutionPath", "/path"),
Map.entry("mode", "LastWriterWins")
)),
Map.entry("defaultTtl", 100),
Map.entry("id", "graphName"),
Map.entry("indexingPolicy", Map.ofEntries(
Map.entry("automatic", true),
Map.entry("excludedPaths", ),
Map.entry("includedPaths", Map.ofEntries(
Map.entry("indexes",
Map.ofEntries(
Map.entry("dataType", "String"),
Map.entry("kind", "Range"),
Map.entry("precision", "TODO: GenUnaryOpExpression")
),
Map.ofEntries(
Map.entry("dataType", "Number"),
Map.entry("kind", "Range"),
Map.entry("precision", "TODO: GenUnaryOpExpression")
)),
Map.entry("path", "/*")
)),
Map.entry("indexingMode", "consistent")
)),
Map.entry("partitionKey", Map.ofEntries(
Map.entry("kind", "Hash"),
Map.entry("paths", "/AccountNumber")
)),
Map.entry("uniqueKeyPolicy", Map.of("uniqueKeys", Map.of("paths", "/testPath")))
))
.resourceGroupName("rg1")
.tags()
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:documentdb:GremlinResourceGremlinGraph graphName /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName
Constructors
Properties
Cosmos DB database account name.
Cosmos DB database name.
A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
The standard JSON format of a Gremlin graph
The name of the resource group. The name is case insensitive.
Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". //