GremlinGraph
Manages a Gremlin Graph within a Cosmos DB Account.
Create a GremlinGraph Resource
new GremlinGraph(name: string, args: GremlinGraphArgs, opts?: CustomResourceOptions);def GremlinGraph(resource_name, opts=None, account_name=None, conflict_resolution_policies=None, database_name=None, index_policies=None, name=None, partition_key_path=None, resource_group_name=None, throughput=None, unique_keys=None, __props__=None);func NewGremlinGraph(ctx *Context, name string, args GremlinGraphArgs, opts ...ResourceOption) (*GremlinGraph, error)public GremlinGraph(string name, GremlinGraphArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
GremlinGraph Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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.
- Conflict
Resolution List<GremlinPolicies Graph Conflict Resolution Policy Args> The conflict resolution policy for the graph. One or more
conflict_resolution_policyblocks as defined below. 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.
- Index
Policies List<GremlinGraph Index Policy Args> The configuration of the indexing policy. One or more
index_policyblocks as defined below. 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.
- 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.
- Throughput int
The throughput of the Gremlin database (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 resource destroy-apply.- Unique
Keys List<GremlinGraph Unique Key Args> One or more
unique_keyblocks 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.
- Conflict
Resolution []GremlinPolicies Graph Conflict Resolution Policy The conflict resolution policy for the graph. One or more
conflict_resolution_policyblocks as defined below. 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.
- Index
Policies []GremlinGraph Index Policy The configuration of the indexing policy. One or more
index_policyblocks as defined below. 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.
- 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.
- Throughput int
The throughput of the Gremlin database (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 resource destroy-apply.- Unique
Keys []GremlinGraph Unique Key One or more
unique_keyblocks 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.
- conflict
Resolution GremlinPolicies Graph Conflict Resolution Policy[] The conflict resolution policy for the graph. One or more
conflict_resolution_policyblocks as defined below. 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.
- index
Policies GremlinGraph Index Policy[] The configuration of the indexing policy. One or more
index_policyblocks as defined below. 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.
- 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.
- throughput number
The throughput of the Gremlin database (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 resource destroy-apply.- unique
Keys GremlinGraph Unique Key[] One or more
unique_keyblocks 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.
- conflict_
resolution_ List[Gremlinpolicies Graph Conflict Resolution Policy] The conflict resolution policy for the graph. One or more
conflict_resolution_policyblocks as defined below. 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.
- index_
policies List[GremlinGraph Index Policy] The configuration of the indexing policy. One or more
index_policyblocks as defined below. 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.
- 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.
- throughput float
The throughput of the Gremlin database (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 resource destroy-apply.- unique_
keys List[GremlinGraph Unique Key] One or more
unique_keyblocks 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:
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): GremlinGraphstatic get(resource_name, id, opts=None, account_name=None, conflict_resolution_policies=None, database_name=None, index_policies=None, name=None, partition_key_path=None, resource_group_name=None, throughput=None, unique_keys=None, __props__=None);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)- 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.
The following state arguments are supported:
- Account
Name string The name of the CosmosDB Account to create the Gremlin Graph within. Changing this forces a new resource to be created.
- Conflict
Resolution List<GremlinPolicies Graph Conflict Resolution Policy Args> The conflict resolution policy for the graph. One or more
conflict_resolution_policyblocks as defined below. 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.
- Index
Policies List<GremlinGraph Index Policy Args> The configuration of the indexing policy. One or more
index_policyblocks as defined below. Changing this forces a new resource to be created.- 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.
- 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 database (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 resource destroy-apply.- Unique
Keys List<GremlinGraph Unique Key Args> One or more
unique_keyblocks 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.
- Conflict
Resolution []GremlinPolicies Graph Conflict Resolution Policy The conflict resolution policy for the graph. One or more
conflict_resolution_policyblocks as defined below. 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.
- Index
Policies []GremlinGraph Index Policy The configuration of the indexing policy. One or more
index_policyblocks as defined below. Changing this forces a new resource to be created.- 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.
- 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 database (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 resource destroy-apply.- Unique
Keys []GremlinGraph Unique Key One or more
unique_keyblocks 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.
- conflict
Resolution GremlinPolicies Graph Conflict Resolution Policy[] The conflict resolution policy for the graph. One or more
conflict_resolution_policyblocks as defined below. 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.
- index
Policies GremlinGraph Index Policy[] The configuration of the indexing policy. One or more
index_policyblocks as defined below. Changing this forces a new resource to be created.- 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.
- 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 database (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 resource destroy-apply.- unique
Keys GremlinGraph Unique Key[] One or more
unique_keyblocks 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.
- conflict_
resolution_ List[Gremlinpolicies Graph Conflict Resolution Policy] The conflict resolution policy for the graph. One or more
conflict_resolution_policyblocks as defined below. 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.
- index_
policies List[GremlinGraph Index Policy] The configuration of the indexing policy. One or more
index_policyblocks as defined below. Changing this forces a new resource to be created.- 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.
- 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 float
The throughput of the Gremlin database (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 resource destroy-apply.- unique_
keys List[GremlinGraph Unique Key] One or more
unique_keyblocks as defined below. Changing this forces a new resource to be created.
Supporting Types
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 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.
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.- Excluded
Paths List<string> List of paths to exclude from indexing. Required if
indexing_modeisConsistentorLazy.- Included
Paths List<string> List of paths to include in the indexing. Required if
indexing_modeisConsistentorLazy.
- 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.- Excluded
Paths []string List of paths to exclude from indexing. Required if
indexing_modeisConsistentorLazy.- Included
Paths []string List of paths to include in the indexing. Required if
indexing_modeisConsistentorLazy.
- 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.- excluded
Paths string[] List of paths to exclude from indexing. Required if
indexing_modeisConsistentorLazy.- included
Paths string[] List of paths to include in the indexing. Required if
indexing_modeisConsistentorLazy.
- 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.- excluded
Paths List[str] List of paths to exclude from indexing. Required if
indexing_modeisConsistentorLazy.- included
Paths List[str] List of paths to include in the indexing. Required if
indexing_modeisConsistentorLazy.
GremlinGraphUniqueKey
- Paths List<string>
A list of paths to use for this unique key.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.