Kusto Pool Attached Database Configuration Args
data class KustoPoolAttachedDatabaseConfigurationArgs(val attachedDatabaseConfigurationName: Output<String>? = null, val databaseName: Output<String>? = null, val defaultPrincipalsModificationKind: Output<Either<String, DefaultPrincipalsModificationKind>>? = null, val kustoPoolName: Output<String>? = null, val kustoPoolResourceId: Output<String>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tableLevelSharingProperties: Output<TableLevelSharingPropertiesArgs>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<KustoPoolAttachedDatabaseConfigurationArgs>
Class representing an attached database configuration. API Version: 2021-06-01-preview.
Example Usage
KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var kustoPoolAttachedDatabaseConfiguration = new AzureNative.Synapse.KustoPoolAttachedDatabaseConfiguration("kustoPoolAttachedDatabaseConfiguration", new()
{
AttachedDatabaseConfigurationName = "attachedDatabaseConfigurations1",
DatabaseName = "kustodatabase",
DefaultPrincipalsModificationKind = "Union",
KustoPoolName = "kustoclusterrptest4",
KustoPoolResourceId = "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4",
Location = "westus",
ResourceGroupName = "kustorptest",
TableLevelSharingProperties = new AzureNative.Synapse.Inputs.TableLevelSharingPropertiesArgs
{
ExternalTablesToExclude = new[]
{
"ExternalTable2",
},
ExternalTablesToInclude = new[]
{
"ExternalTable1",
},
MaterializedViewsToExclude = new[]
{
"MaterializedViewTable2",
},
MaterializedViewsToInclude = new[]
{
"MaterializedViewTable1",
},
TablesToExclude = new[]
{
"Table2",
},
TablesToInclude = new[]
{
"Table1",
},
},
WorkspaceName = "kustorptest",
});
});
Content copied to clipboard
package main
import (
synapse "github.com/pulumi/pulumi-azure-native-sdk/synapse"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := synapse.NewKustoPoolAttachedDatabaseConfiguration(ctx, "kustoPoolAttachedDatabaseConfiguration", &synapse.KustoPoolAttachedDatabaseConfigurationArgs{
AttachedDatabaseConfigurationName: pulumi.String("attachedDatabaseConfigurations1"),
DatabaseName: pulumi.String("kustodatabase"),
DefaultPrincipalsModificationKind: pulumi.String("Union"),
KustoPoolName: pulumi.String("kustoclusterrptest4"),
KustoPoolResourceId: pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("kustorptest"),
TableLevelSharingProperties: &synapse.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"),
},
},
WorkspaceName: 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.synapse.KustoPoolAttachedDatabaseConfiguration;
import com.pulumi.azurenative.synapse.KustoPoolAttachedDatabaseConfigurationArgs;
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 kustoPoolAttachedDatabaseConfiguration = new KustoPoolAttachedDatabaseConfiguration("kustoPoolAttachedDatabaseConfiguration", KustoPoolAttachedDatabaseConfigurationArgs.builder()
.attachedDatabaseConfigurationName("attachedDatabaseConfigurations1")
.databaseName("kustodatabase")
.defaultPrincipalsModificationKind("Union")
.kustoPoolName("kustoclusterrptest4")
.kustoPoolResourceId("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4")
.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")
))
.workspaceName("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:synapse:KustoPoolAttachedDatabaseConfiguration KustoClusterRPTest4/attachedDatabaseConfigurations1 /subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4/attachedDatabaseConfigurations/attachedDatabaseConfigurations1
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(attachedDatabaseConfigurationName: Output<String>? = null, databaseName: Output<String>? = null, defaultPrincipalsModificationKind: Output<Either<String, DefaultPrincipalsModificationKind>>? = null, kustoPoolName: Output<String>? = null, kustoPoolResourceId: Output<String>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tableLevelSharingProperties: Output<TableLevelSharingPropertiesArgs>? = null, workspaceName: Output<String>? = null)
Properties
Link copied to clipboard
The name of the attached database configuration.
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 Kusto pool.
Link copied to clipboard
The resource id of the kusto pool where the databases you would like to attach reside.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Table level sharing specifications
Link copied to clipboard
The name of the workspace.