AttachedDatabaseConfigurationArgs

data class AttachedDatabaseConfigurationArgs(val attachedDatabaseConfigurationName: Output<String>? = null, val clusterName: Output<String>? = null, val clusterResourceId: Output<String>? = null, val databaseName: Output<String>? = null, val databaseNameOverride: Output<String>? = null, val databaseNamePrefix: 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. Uses Azure REST API version 2024-04-13. In version 2.x of the Azure Native provider, it used API version 2022-12-29. Other available API versions: 2019-09-07, 2019-11-09, 2020-02-15, 2020-06-14, 2020-09-18, 2021-01-01, 2021-08-27, 2022-02-01, 2022-07-07, 2022-11-11, 2022-12-29, 2023-05-02, 2023-08-15. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native kusto [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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 = "attachedDatabaseConfigurationsTest",
ClusterName = "kustoCluster2",
ClusterResourceId = "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2",
DatabaseName = "kustodatabase",
DatabaseNameOverride = "overridekustodatabase",
DefaultPrincipalsModificationKind = AzureNative.Kusto.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",
},
},
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"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("attachedDatabaseConfigurationsTest"),
ClusterName: pulumi.String("kustoCluster2"),
ClusterResourceId: pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2"),
DatabaseName: pulumi.String("kustodatabase"),
DatabaseNameOverride: pulumi.String("overridekustodatabase"),
DefaultPrincipalsModificationKind: pulumi.String(kusto.DefaultPrincipalsModificationKindUnion),
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
})
}
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 com.pulumi.azurenative.kusto.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 attachedDatabaseConfiguration = new AttachedDatabaseConfiguration("attachedDatabaseConfiguration", AttachedDatabaseConfigurationArgs.builder()
.attachedDatabaseConfigurationName("attachedDatabaseConfigurationsTest")
.clusterName("kustoCluster2")
.clusterResourceId("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2")
.databaseName("kustodatabase")
.databaseNameOverride("overridekustodatabase")
.defaultPrincipalsModificationKind("Union")
.location("westus")
.resourceGroupName("kustorptest")
.tableLevelSharingProperties(TableLevelSharingPropertiesArgs.builder()
.externalTablesToExclude("ExternalTable2")
.externalTablesToInclude("ExternalTable1")
.materializedViewsToExclude("MaterializedViewTable2")
.materializedViewsToInclude("MaterializedViewTable1")
.tablesToExclude("Table2")
.tablesToInclude("Table1")
.build())
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:kusto:AttachedDatabaseConfiguration kustoCluster2/attachedDatabaseConfigurationsTest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}

Constructors

Link copied to clipboard
constructor(attachedDatabaseConfigurationName: Output<String>? = null, clusterName: Output<String>? = null, clusterResourceId: Output<String>? = null, databaseName: Output<String>? = null, databaseNameOverride: Output<String>? = null, databaseNamePrefix: 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
val clusterName: Output<String>? = null

The name of the Kusto cluster.

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

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

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

Overrides the original database name. Relevant only when attaching to a specific database.

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

Adds a prefix to the attached databases name. When following an entire cluster, that prefix would be added to all of the databases original names from leader cluster.

Link copied to clipboard

The default principals modification kind

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

Functions

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