ReadWriteDatabaseArgs

data class ReadWriteDatabaseArgs(val callerRole: Output<String>? = null, val clusterName: Output<String>? = null, val databaseName: Output<String>? = null, val hotCachePeriod: Output<String>? = null, val keyVaultProperties: Output<KeyVaultPropertiesArgs>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val softDeletePeriod: Output<String>? = null) : ConvertibleToJava<ReadWriteDatabaseArgs>

Class representing a read write database. Uses Azure REST API version 2024-04-13. In version 2.x of the Azure Native provider, it used API version 2022-12-29.

Example Usage

Kusto ReadOnly database update

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var readWriteDatabase = new AzureNative.Kusto.ReadWriteDatabase("readWriteDatabase", new()
{
ClusterName = "kustoCluster",
DatabaseName = "kustoReadOnlyDatabase",
ResourceGroupName = "kustorptest",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewReadWriteDatabase(ctx, "readWriteDatabase", &kusto.ReadWriteDatabaseArgs{
ClusterName: pulumi.String("kustoCluster"),
DatabaseName: pulumi.String("kustoReadOnlyDatabase"),
ResourceGroupName: pulumi.String("kustorptest"),
})
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.kusto.ReadWriteDatabase;
import com.pulumi.azurenative.kusto.ReadWriteDatabaseArgs;
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 readWriteDatabase = new ReadWriteDatabase("readWriteDatabase", ReadWriteDatabaseArgs.builder()
.clusterName("kustoCluster")
.databaseName("kustoReadOnlyDatabase")
.resourceGroupName("kustorptest")
.build());
}
}

Kusto ReadWrite database create or update

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var readWriteDatabase = new AzureNative.Kusto.ReadWriteDatabase("readWriteDatabase", new()
{
CallerRole = "Admin",
ClusterName = "kustoCluster",
DatabaseName = "KustoDatabase8",
Kind = "ReadWrite",
Location = "westus",
ResourceGroupName = "kustorptest",
SoftDeletePeriod = "P1D",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewReadWriteDatabase(ctx, "readWriteDatabase", &kusto.ReadWriteDatabaseArgs{
CallerRole: pulumi.String("Admin"),
ClusterName: pulumi.String("kustoCluster"),
DatabaseName: pulumi.String("KustoDatabase8"),
Kind: pulumi.String("ReadWrite"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("kustorptest"),
SoftDeletePeriod: pulumi.String("P1D"),
})
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.kusto.ReadWriteDatabase;
import com.pulumi.azurenative.kusto.ReadWriteDatabaseArgs;
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 readWriteDatabase = new ReadWriteDatabase("readWriteDatabase", ReadWriteDatabaseArgs.builder()
.callerRole("Admin")
.clusterName("kustoCluster")
.databaseName("KustoDatabase8")
.kind("ReadWrite")
.location("westus")
.resourceGroupName("kustorptest")
.softDeletePeriod("P1D")
.build());
}
}

Import

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

$ pulumi import azure-native:kusto:ReadWriteDatabase kustoCluster/KustoDatabase8 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}

Constructors

Link copied to clipboard
constructor(callerRole: Output<String>? = null, clusterName: Output<String>? = null, databaseName: Output<String>? = null, hotCachePeriod: Output<String>? = null, keyVaultProperties: Output<KeyVaultPropertiesArgs>? = null, kind: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, softDeletePeriod: Output<String>? = null)

Properties

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

By default, any user who run operation on a database become an Admin on it. This property allows the caller to exclude the caller from Admins list.

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

The name of the Kusto cluster.

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

The name of the database in the Kusto cluster.

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

The time the data should be kept in cache for fast queries in TimeSpan.

Link copied to clipboard

KeyVault properties for the database encryption.

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

Kind of the database Expected value is 'ReadWrite'.

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

Resource location.

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 softDeletePeriod: Output<String>? = null

The time the data should be kept before it stops being accessible to queries in TimeSpan.

Functions

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