Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.documentdb.kotlin
import com.pulumi.azurenative.documentdb.GraphResourceGraphArgs.builder
import com.pulumi.azurenative.documentdb.kotlin.inputs.CreateUpdateOptionsArgs
import com.pulumi.azurenative.documentdb.kotlin.inputs.CreateUpdateOptionsArgsBuilder
import com.pulumi.azurenative.documentdb.kotlin.inputs.GraphResourceArgs
import com.pulumi.azurenative.documentdb.kotlin.inputs.GraphResourceArgsBuilder
import com.pulumi.azurenative.documentdb.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.documentdb.kotlin.inputs.ManagedServiceIdentityArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* An Azure Cosmos DB Graph resource.
* Azure REST API version: 2023-03-15-preview. Prior API version in Azure Native 1.x: 2021-07-01-preview.
* Other available API versions: 2023-09-15-preview, 2023-11-15-preview, 2024-02-15-preview, 2024-05-15-preview.
* ## Example Usage
* ### CosmosDBGraphCreateUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var graphResourceGraph = new AzureNative.DocumentDB.GraphResourceGraph("graphResourceGraph", new()
* {
* AccountName = "ddb1",
* GraphName = "graphName",
* Location = "West US",
* Options = null,
* Resource = new AzureNative.DocumentDB.Inputs.GraphResourceArgs
* {
* Id = "graphName",
* },
* ResourceGroupName = "rg1",
* Tags = null,
* });
* });
* ```
* ```go
* package main
* import (
* documentdb "github.com/pulumi/pulumi-azure-native-sdk/documentdb/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := documentdb.NewGraphResourceGraph(ctx, "graphResourceGraph", &documentdb.GraphResourceGraphArgs{
* AccountName: pulumi.String("ddb1"),
* GraphName: pulumi.String("graphName"),
* Location: pulumi.String("West US"),
* Options: nil,
* Resource: &documentdb.GraphResourceArgs{
* Id: pulumi.String("graphName"),
* },
* ResourceGroupName: pulumi.String("rg1"),
* Tags: nil,
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.documentdb.GraphResourceGraph;
* import com.pulumi.azurenative.documentdb.GraphResourceGraphArgs;
* import com.pulumi.azurenative.documentdb.inputs.CreateUpdateOptionsArgs;
* import com.pulumi.azurenative.documentdb.inputs.GraphResourceArgs;
* 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 graphResourceGraph = new GraphResourceGraph("graphResourceGraph", GraphResourceGraphArgs.builder()
* .accountName("ddb1")
* .graphName("graphName")
* .location("West US")
* .options()
* .resource(GraphResourceArgs.builder()
* .id("graphName")
* .build())
* .resourceGroupName("rg1")
* .tags()
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:documentdb:GraphResourceGraph graphName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs/{graphName}
* ```
* @property accountName Cosmos DB database account name.
* @property graphName Cosmos DB graph resource name.
* @property identity Identity for the resource.
* @property location The location of the resource group to which the resource belongs.
* @property options A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.
* @property resource The standard JSON format of a Graph resource
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags 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".
*/
public data class GraphResourceGraphArgs(
public val accountName: Output? = null,
public val graphName: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val options: Output? = null,
public val resource: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output