import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Gremlin Database within a Cosmos DB Account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.cosmosdb.getAccount({ * name: "tfex-cosmosdb-account", * resourceGroupName: "tfex-cosmosdb-account-rg", * }); * const exampleGremlinDatabase = new azure.cosmosdb.GremlinDatabase("example", { * name: "tfex-cosmos-gremlin-db", * resourceGroupName: example.then(example => example.resourceGroupName), * accountName: example.then(example => example.name), * throughput: 400, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DocumentDB` - 2024-08-15 * * ## Import * * CosmosDB Gremlin Databases can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:cosmosdb/gremlinDatabase:GremlinDatabase db1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/account1/gremlinDatabases/db1 * ``` */ export declare class GremlinDatabase extends pulumi.CustomResource { /** * Get an existing GremlinDatabase resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: GremlinDatabaseState, opts?: pulumi.CustomResourceOptions): GremlinDatabase; /** * Returns true if the given object is an instance of GremlinDatabase. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is GremlinDatabase; /** * The name of the CosmosDB Account to create the Gremlin Database within. Changing this forces a new resource to be created. */ readonly accountName: pulumi.Output; /** * An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply. * * > **Note:** Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed. */ readonly autoscaleSettings: pulumi.Output; /** * Specifies the name of the Cosmos DB Gremlin Database. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The name of the resource group in which the Cosmos DB Gremlin Database is created. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * The throughput of the Gremlin database (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply. * * > **Note:** throughput has a maximum value of `1000000` unless a higher limit is requested via Azure Support */ readonly throughput: pulumi.Output; /** * Create a GremlinDatabase resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: GremlinDatabaseArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GremlinDatabase resources. */ export interface GremlinDatabaseState { /** * The name of the CosmosDB Account to create the Gremlin Database within. Changing this forces a new resource to be created. */ accountName?: pulumi.Input; /** * An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply. * * > **Note:** Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed. */ autoscaleSettings?: pulumi.Input; /** * Specifies the name of the Cosmos DB Gremlin Database. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which the Cosmos DB Gremlin Database is created. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * The throughput of the Gremlin database (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply. * * > **Note:** throughput has a maximum value of `1000000` unless a higher limit is requested via Azure Support */ throughput?: pulumi.Input; } /** * The set of arguments for constructing a GremlinDatabase resource. */ export interface GremlinDatabaseArgs { /** * The name of the CosmosDB Account to create the Gremlin Database within. Changing this forces a new resource to be created. */ accountName: pulumi.Input; /** * An `autoscaleSettings` block as defined below. This must be set upon database creation otherwise it cannot be updated without a manual destroy-apply. * * > **Note:** Switching between autoscale and manual throughput is not supported via this provider and must be completed via the Azure Portal and refreshed. */ autoscaleSettings?: pulumi.Input; /** * Specifies the name of the Cosmos DB Gremlin Database. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the resource group in which the Cosmos DB Gremlin Database is created. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * The throughput of the Gremlin database (RU/s). Must be set in increments of `100`. The minimum value is `400`. This must be set upon database creation otherwise it cannot be updated without a manual resource destroy-apply. * * > **Note:** throughput has a maximum value of `1000000` unless a higher limit is requested via Azure Support */ throughput?: pulumi.Input; }