KustoPoolAttachedDatabaseConfigurationArgs

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. 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}

Constructors

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

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

The default principals modification kind

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

The name of the Kusto pool.

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

The resource id of the kusto pool where the databases you would like to attach reside.

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

Table level sharing specifications

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

The name of the workspace.

Functions

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