CassandraResourceCassandraViewArgs

data class CassandraResourceCassandraViewArgs(val accountName: Output<String>? = null, val identity: Output<ManagedServiceIdentityArgs>? = null, val keyspaceName: Output<String>? = null, val location: Output<String>? = null, val options: Output<CreateUpdateOptionsArgs>? = null, val resource: Output<CassandraViewResourceArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val viewName: Output<String>? = null) : ConvertibleToJava<CassandraResourceCassandraViewArgs>

An Azure Cosmos DB Cassandra view. Uses Azure REST API version 2023-03-15-preview. In version 1.x of the Azure Native provider, it used API version 2021-07-01-preview. Other available API versions: 2023-09-15-preview, 2023-11-15-preview, 2024-02-15-preview, 2024-05-15-preview, 2024-09-01-preview, 2024-12-01-preview.

Example Usage

CosmosDBCassandraViewCreateUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cassandraResourceCassandraView = new AzureNative.DocumentDB.CassandraResourceCassandraView("cassandraResourceCassandraView", new()
{
AccountName = "ddb1",
KeyspaceName = "keyspacename",
Options = null,
Resource = new AzureNative.DocumentDB.Inputs.CassandraViewResourceArgs
{
Id = "viewname",
ViewDefinition = "SELECT columna, columnb, columnc FROM keyspacename.srctablename WHERE columna IS NOT NULL AND columnc IS NOT NULL PRIMARY (columnc, columna)",
},
ResourceGroupName = "rg1",
Tags = null,
ViewName = "viewname",
});
});
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.NewCassandraResourceCassandraView(ctx, "cassandraResourceCassandraView", &documentdb.CassandraResourceCassandraViewArgs{
AccountName: pulumi.String("ddb1"),
KeyspaceName: pulumi.String("keyspacename"),
Options: &documentdb.CreateUpdateOptionsArgs{},
Resource: &documentdb.CassandraViewResourceArgs{
Id: pulumi.String("viewname"),
ViewDefinition: pulumi.String("SELECT columna, columnb, columnc FROM keyspacename.srctablename WHERE columna IS NOT NULL AND columnc IS NOT NULL PRIMARY (columnc, columna)"),
},
ResourceGroupName: pulumi.String("rg1"),
Tags: pulumi.StringMap{},
ViewName: pulumi.String("viewname"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.documentdb.CassandraResourceCassandraView;
import com.pulumi.azurenative.documentdb.CassandraResourceCassandraViewArgs;
import com.pulumi.azurenative.documentdb.inputs.CreateUpdateOptionsArgs;
import com.pulumi.azurenative.documentdb.inputs.CassandraViewResourceArgs;
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 cassandraResourceCassandraView = new CassandraResourceCassandraView("cassandraResourceCassandraView", CassandraResourceCassandraViewArgs.builder()
.accountName("ddb1")
.keyspaceName("keyspacename")
.options()
.resource(CassandraViewResourceArgs.builder()
.id("viewname")
.viewDefinition("SELECT columna, columnb, columnc FROM keyspacename.srctablename WHERE columna IS NOT NULL AND columnc IS NOT NULL PRIMARY (columnc, columna)")
.build())
.resourceGroupName("rg1")
.tags()
.viewName("viewname")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:documentdb:CassandraResourceCassandraView viewname /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, identity: Output<ManagedServiceIdentityArgs>? = null, keyspaceName: Output<String>? = null, location: Output<String>? = null, options: Output<CreateUpdateOptionsArgs>? = null, resource: Output<CassandraViewResourceArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, viewName: Output<String>? = null)

Properties

Link copied to clipboard
val accountName: Output<String>? = null

Cosmos DB database account name.

Link copied to clipboard

Identity for the resource.

Link copied to clipboard
val keyspaceName: Output<String>? = null

Cosmos DB keyspace name.

Link copied to clipboard
val location: Output<String>? = null

The location of the resource group to which the resource belongs.

Link copied to clipboard
val options: Output<CreateUpdateOptionsArgs>? = null

A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Link copied to clipboard
val resource: Output<CassandraViewResourceArgs>? = null

The standard JSON format of a Cassandra view

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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".

Link copied to clipboard
val viewName: Output<String>? = null

Cosmos DB view name.

Functions

Link copied to clipboard
open override fun toJava(): CassandraResourceCassandraViewArgs