KustoPoolAttachedDatabaseConfiguration

class KustoPoolAttachedDatabaseConfiguration : KotlinCustomResource

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",
});
});
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
})
}
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());
}
}

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

Properties

Link copied to clipboard

The list of databases from the clusterResourceId which are currently attached to the kusto pool.

Link copied to clipboard
val databaseName: Output<String>

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 id: Output<String>
Link copied to clipboard

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

Link copied to clipboard
val location: Output<String>?

Resource location.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The provisioned state of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard

Table level sharing specifications

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>