Read Only Following Database Args
data class ReadOnlyFollowingDatabaseArgs(val clusterName: Output<String>? = null, val databaseName: Output<String>? = null, val hotCachePeriod: Output<String>? = null, val kind: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<ReadOnlyFollowingDatabaseArgs>
Class representing a read only following database. API Version: 2021-01-01.
Example Usage
Kusto ReadOnly database update
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var readOnlyFollowingDatabase = new AzureNative.Kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabase", new()
{
ClusterName = "kustoclusterrptest4",
DatabaseName = "KustoreadOnlyDatabase",
HotCachePeriod = "P1D",
Kind = "ReadOnlyFollowing",
Location = "westus",
ResourceGroupName = "kustorptest",
});
});
Content copied to clipboard
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewReadOnlyFollowingDatabase(ctx, "readOnlyFollowingDatabase", &kusto.ReadOnlyFollowingDatabaseArgs{
ClusterName: pulumi.String("kustoclusterrptest4"),
DatabaseName: pulumi.String("KustoreadOnlyDatabase"),
HotCachePeriod: pulumi.String("P1D"),
Kind: pulumi.String("ReadOnlyFollowing"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("kustorptest"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.kusto.ReadOnlyFollowingDatabase;
import com.pulumi.azurenative.kusto.ReadOnlyFollowingDatabaseArgs;
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 readOnlyFollowingDatabase = new ReadOnlyFollowingDatabase("readOnlyFollowingDatabase", ReadOnlyFollowingDatabaseArgs.builder()
.clusterName("kustoclusterrptest4")
.databaseName("KustoreadOnlyDatabase")
.hotCachePeriod("P1D")
.kind("ReadOnlyFollowing")
.location("westus")
.resourceGroupName("kustorptest")
.build());
}
}
Content copied to clipboard
Kusto ReadWrite database create or update
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var readOnlyFollowingDatabase = new AzureNative.Kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabase", new()
{
ClusterName = "kustoclusterrptest4",
DatabaseName = "KustoDatabase8",
Location = "westus",
ResourceGroupName = "kustorptest",
});
});
Content copied to clipboard
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewReadOnlyFollowingDatabase(ctx, "readOnlyFollowingDatabase", &kusto.ReadOnlyFollowingDatabaseArgs{
ClusterName: pulumi.String("kustoclusterrptest4"),
DatabaseName: pulumi.String("KustoDatabase8"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("kustorptest"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.kusto.ReadOnlyFollowingDatabase;
import com.pulumi.azurenative.kusto.ReadOnlyFollowingDatabaseArgs;
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 readOnlyFollowingDatabase = new ReadOnlyFollowingDatabase("readOnlyFollowingDatabase", ReadOnlyFollowingDatabaseArgs.builder()
.clusterName("kustoclusterrptest4")
.databaseName("KustoDatabase8")
.location("westus")
.resourceGroupName("kustorptest")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:kusto:ReadOnlyFollowingDatabase KustoClusterRPTest4/KustoDatabase8 /subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
The name of the Kusto cluster.
Link copied to clipboard
The name of the database in the Kusto cluster.
Link copied to clipboard
The time the data should be kept in cache for fast queries in TimeSpan.
Link copied to clipboard
The name of the resource group containing the Kusto cluster.