Kusto Pool Attached Database Configuration
Class representing an attached database configuration. Uses Azure REST API version 2021-06-01-preview. In version 1.x of the Azure Native provider, it used 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 = AzureNative.Synapse.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",
});
});
package main
import (
synapse "github.com/pulumi/pulumi-azure-native-sdk/synapse/v2"
"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(synapse.DefaultPrincipalsModificationKindUnion),
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
})
}
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 com.pulumi.azurenative.synapse.inputs.TableLevelSharingPropertiesArgs;
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(TableLevelSharingPropertiesArgs.builder()
.externalTablesToExclude("ExternalTable2")
.externalTablesToInclude("ExternalTable1")
.materializedViewsToExclude("MaterializedViewTable2")
.materializedViewsToInclude("MaterializedViewTable1")
.tablesToExclude("Table2")
.tablesToInclude("Table1")
.build())
.workspaceName("kustorptest")
.build());
}
}
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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}
Properties
The list of databases from the clusterResourceId which are currently attached to the kusto pool.
The name of the database which you would like to attach, use * if you want to follow all current and future databases.
The default principals modification kind
The resource id of the kusto pool where the databases you would like to attach reside.
The provisioned state of the resource.
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Table level sharing specifications