Attached Database Configuration Args
data class AttachedDatabaseConfigurationArgs(val attachedDatabaseConfigurationName: Output<String>? = null, val clusterName: Output<String>? = null, val clusterResourceId: Output<String>? = null, val databaseName: Output<String>? = null, val defaultPrincipalsModificationKind: Output<Either<String, DefaultPrincipalsModificationKind>>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tableLevelSharingProperties: Output<TableLevelSharingPropertiesArgs>? = null) : ConvertibleToJava<AttachedDatabaseConfigurationArgs>
Class representing an attached database configuration. API Version: 2021-01-01.
Example Usage
AttachedDatabaseConfigurationsCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var attachedDatabaseConfiguration = new AzureNative.Kusto.AttachedDatabaseConfiguration("attachedDatabaseConfiguration", new()
{
AttachedDatabaseConfigurationName = "attachedDatabaseConfigurations1",
ClusterName = "kustoclusterrptest4",
ClusterResourceId = "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader",
DatabaseName = "kustodatabase",
DefaultPrincipalsModificationKind = "Union",
Location = "westus",
ResourceGroupName = "kustorptest",
TableLevelSharingProperties = new AzureNative.Kusto.Inputs.TableLevelSharingPropertiesArgs
{
ExternalTablesToExclude = new[]
{
"ExternalTable2",
},
ExternalTablesToInclude = new[]
{
"ExternalTable1",
},
MaterializedViewsToExclude = new[]
{
"MaterializedViewTable2",
},
MaterializedViewsToInclude = new[]
{
"MaterializedViewTable1",
},
TablesToExclude = new[]
{
"Table2",
},
TablesToInclude = new[]
{
"Table1",
},
},
});
});
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.NewAttachedDatabaseConfiguration(ctx, "attachedDatabaseConfiguration", &kusto.AttachedDatabaseConfigurationArgs{
AttachedDatabaseConfigurationName: pulumi.String("attachedDatabaseConfigurations1"),
ClusterName: pulumi.String("kustoclusterrptest4"),
ClusterResourceId: pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader"),
DatabaseName: pulumi.String("kustodatabase"),
DefaultPrincipalsModificationKind: pulumi.String("Union"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("kustorptest"),
TableLevelSharingProperties: &kusto.TableLevelSharingPropertiesArgs{
ExternalTablesToExclude: pulumi.StringArray{
pulumi.String("ExternalTable2"),
},
ExternalTablesToInclude: pulumi.StringArray{
pulumi.String("ExternalTable1"),
},
MaterializedViewsToExclude: pulumi.StringArray{
pulumi.String("MaterializedViewTable2"),
},
MaterializedViewsToInclude: pulumi.StringArray{
pulumi.String("MaterializedViewTable1"),
},
TablesToExclude: pulumi.StringArray{
pulumi.String("Table2"),
},
TablesToInclude: pulumi.StringArray{
pulumi.String("Table1"),
},
},
})
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.AttachedDatabaseConfiguration;
import com.pulumi.azurenative.kusto.AttachedDatabaseConfigurationArgs;
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 attachedDatabaseConfiguration = new AttachedDatabaseConfiguration("attachedDatabaseConfiguration", AttachedDatabaseConfigurationArgs.builder()
.attachedDatabaseConfigurationName("attachedDatabaseConfigurations1")
.clusterName("kustoclusterrptest4")
.clusterResourceId("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader")
.databaseName("kustodatabase")
.defaultPrincipalsModificationKind("Union")
.location("westus")
.resourceGroupName("kustorptest")
.tableLevelSharingProperties(Map.ofEntries(
Map.entry("externalTablesToExclude", "ExternalTable2"),
Map.entry("externalTablesToInclude", "ExternalTable1"),
Map.entry("materializedViewsToExclude", "MaterializedViewTable2"),
Map.entry("materializedViewsToInclude", "MaterializedViewTable1"),
Map.entry("tablesToExclude", "Table2"),
Map.entry("tablesToInclude", "Table1")
))
.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:AttachedDatabaseConfiguration KustoClusterRPTest4/attachedDatabaseConfigurations1 /subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/attachedDatabaseConfigurations/attachedDatabaseConfigurations1
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(attachedDatabaseConfigurationName: Output<String>? = null, clusterName: Output<String>? = null, clusterResourceId: Output<String>? = null, databaseName: Output<String>? = null, defaultPrincipalsModificationKind: Output<Either<String, DefaultPrincipalsModificationKind>>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tableLevelSharingProperties: Output<TableLevelSharingPropertiesArgs>? = null)
Properties
Link copied to clipboard
The name of the attached database configuration.
Link copied to clipboard
The name of the Kusto cluster.
Link copied to clipboard
The resource id of the cluster where the databases you would like to attach reside.
Link copied to clipboard
The name of the database which you would like to attach, use * if you want to follow all current and future databases.
Link copied to clipboard
val defaultPrincipalsModificationKind: Output<Either<String, DefaultPrincipalsModificationKind>>? = null
The default principals modification kind
Link copied to clipboard
The name of the resource group containing the Kusto cluster.
Link copied to clipboard
Table level sharing specifications