Azure Native

v1.80.0 published on Tuesday, Oct 4, 2022 by Pulumi

AttachedDatabaseConfiguration

Class representing an attached database configuration. API Version: 2021-01-01.

Example Usage

AttachedDatabaseConfigurationsCreateOrUpdate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var attachedDatabaseConfiguration = new AzureNative.Kusto.AttachedDatabaseConfiguration("attachedDatabaseConfiguration", new()
    {
        AttachedDatabaseConfigurationName = "attachedDatabaseConfigurations1",
        ClusterName = "kustoclusterrptest4",
        ClusterResourceId = "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader",
        DatabaseName = "kustodatabase",
        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/go/azure/kusto"
	"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("attachedDatabaseConfigurations1"),
			ClusterName:                       pulumi.String("kustoclusterrptest4"),
			ClusterResourceId:                 pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader"),
			DatabaseName:                      pulumi.String("kustodatabase"),
			DefaultPrincipalsModificationKind: pulumi.String("Union"),
			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 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("attachedDatabaseConfigurations1")
            .clusterName("kustoclusterrptest4")
            .clusterResourceId("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader")
            .databaseName("kustodatabase")
            .defaultPrincipalsModificationKind("Union")
            .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")
            ))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

attached_database_configuration = azure_native.kusto.AttachedDatabaseConfiguration("attachedDatabaseConfiguration",
    attached_database_configuration_name="attachedDatabaseConfigurations1",
    cluster_name="kustoclusterrptest4",
    cluster_resource_id="/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader",
    database_name="kustodatabase",
    default_principals_modification_kind="Union",
    location="westus",
    resource_group_name="kustorptest",
    table_level_sharing_properties=azure_native.kusto.TableLevelSharingPropertiesArgs(
        external_tables_to_exclude=["ExternalTable2"],
        external_tables_to_include=["ExternalTable1"],
        materialized_views_to_exclude=["MaterializedViewTable2"],
        materialized_views_to_include=["MaterializedViewTable1"],
        tables_to_exclude=["Table2"],
        tables_to_include=["Table1"],
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const attachedDatabaseConfiguration = new azure_native.kusto.AttachedDatabaseConfiguration("attachedDatabaseConfiguration", {
    attachedDatabaseConfigurationName: "attachedDatabaseConfigurations1",
    clusterName: "kustoclusterrptest4",
    clusterResourceId: "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader",
    databaseName: "kustodatabase",
    defaultPrincipalsModificationKind: "Union",
    location: "westus",
    resourceGroupName: "kustorptest",
    tableLevelSharingProperties: {
        externalTablesToExclude: ["ExternalTable2"],
        externalTablesToInclude: ["ExternalTable1"],
        materializedViewsToExclude: ["MaterializedViewTable2"],
        materializedViewsToInclude: ["MaterializedViewTable1"],
        tablesToExclude: ["Table2"],
        tablesToInclude: ["Table1"],
    },
});
resources:
  attachedDatabaseConfiguration:
    type: azure-native:kusto:AttachedDatabaseConfiguration
    properties:
      attachedDatabaseConfigurationName: attachedDatabaseConfigurations1
      clusterName: kustoclusterrptest4
      clusterResourceId: /subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader
      databaseName: kustodatabase
      defaultPrincipalsModificationKind: Union
      location: westus
      resourceGroupName: kustorptest
      tableLevelSharingProperties:
        externalTablesToExclude:
          - ExternalTable2
        externalTablesToInclude:
          - ExternalTable1
        materializedViewsToExclude:
          - MaterializedViewTable2
        materializedViewsToInclude:
          - MaterializedViewTable1
        tablesToExclude:
          - Table2
        tablesToInclude:
          - Table1

Create a AttachedDatabaseConfiguration Resource

new AttachedDatabaseConfiguration(name: string, args: AttachedDatabaseConfigurationArgs, opts?: CustomResourceOptions);
@overload
def AttachedDatabaseConfiguration(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  attached_database_configuration_name: Optional[str] = None,
                                  cluster_name: Optional[str] = None,
                                  cluster_resource_id: Optional[str] = None,
                                  database_name: Optional[str] = None,
                                  default_principals_modification_kind: Optional[Union[str, DefaultPrincipalsModificationKind]] = None,
                                  location: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  table_level_sharing_properties: Optional[TableLevelSharingPropertiesArgs] = None)
@overload
def AttachedDatabaseConfiguration(resource_name: str,
                                  args: AttachedDatabaseConfigurationArgs,
                                  opts: Optional[ResourceOptions] = None)
func NewAttachedDatabaseConfiguration(ctx *Context, name string, args AttachedDatabaseConfigurationArgs, opts ...ResourceOption) (*AttachedDatabaseConfiguration, error)
public AttachedDatabaseConfiguration(string name, AttachedDatabaseConfigurationArgs args, CustomResourceOptions? opts = null)
public AttachedDatabaseConfiguration(String name, AttachedDatabaseConfigurationArgs args)
public AttachedDatabaseConfiguration(String name, AttachedDatabaseConfigurationArgs args, CustomResourceOptions options)
type: azure-native:kusto:AttachedDatabaseConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AttachedDatabaseConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AttachedDatabaseConfigurationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AttachedDatabaseConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AttachedDatabaseConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AttachedDatabaseConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AttachedDatabaseConfiguration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AttachedDatabaseConfiguration resource accepts the following input properties:

ClusterName string

The name of the Kusto cluster.

ClusterResourceId string

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

DatabaseName string

The name of the database which you would like to attach, use * if you want to follow all current and future databases.

DefaultPrincipalsModificationKind string | Pulumi.AzureNative.Kusto.DefaultPrincipalsModificationKind

The default principals modification kind

ResourceGroupName string

The name of the resource group containing the Kusto cluster.

AttachedDatabaseConfigurationName string

The name of the attached database configuration.

Location string

Resource location.

TableLevelSharingProperties Pulumi.AzureNative.Kusto.Inputs.TableLevelSharingPropertiesArgs

Table level sharing specifications

ClusterName string

The name of the Kusto cluster.

ClusterResourceId string

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

DatabaseName string

The name of the database which you would like to attach, use * if you want to follow all current and future databases.

DefaultPrincipalsModificationKind string | DefaultPrincipalsModificationKind

The default principals modification kind

ResourceGroupName string

The name of the resource group containing the Kusto cluster.

AttachedDatabaseConfigurationName string

The name of the attached database configuration.

Location string

Resource location.

TableLevelSharingProperties TableLevelSharingPropertiesArgs

Table level sharing specifications

clusterName String

The name of the Kusto cluster.

clusterResourceId String

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

databaseName String

The name of the database which you would like to attach, use * if you want to follow all current and future databases.

defaultPrincipalsModificationKind String | DefaultPrincipalsModificationKind

The default principals modification kind

resourceGroupName String

The name of the resource group containing the Kusto cluster.

attachedDatabaseConfigurationName String

The name of the attached database configuration.

location String

Resource location.

tableLevelSharingProperties TableLevelSharingPropertiesArgs

Table level sharing specifications

clusterName string

The name of the Kusto cluster.

clusterResourceId string

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

databaseName string

The name of the database which you would like to attach, use * if you want to follow all current and future databases.

defaultPrincipalsModificationKind string | DefaultPrincipalsModificationKind

The default principals modification kind

resourceGroupName string

The name of the resource group containing the Kusto cluster.

attachedDatabaseConfigurationName string

The name of the attached database configuration.

location string

Resource location.

tableLevelSharingProperties TableLevelSharingPropertiesArgs

Table level sharing specifications

cluster_name str

The name of the Kusto cluster.

cluster_resource_id str

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

database_name str

The name of the database which you would like to attach, use * if you want to follow all current and future databases.

default_principals_modification_kind str | DefaultPrincipalsModificationKind

The default principals modification kind

resource_group_name str

The name of the resource group containing the Kusto cluster.

attached_database_configuration_name str

The name of the attached database configuration.

location str

Resource location.

table_level_sharing_properties TableLevelSharingPropertiesArgs

Table level sharing specifications

clusterName String

The name of the Kusto cluster.

clusterResourceId String

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

databaseName String

The name of the database which you would like to attach, use * if you want to follow all current and future databases.

defaultPrincipalsModificationKind String | "Union" | "Replace" | "None"

The default principals modification kind

resourceGroupName String

The name of the resource group containing the Kusto cluster.

attachedDatabaseConfigurationName String

The name of the attached database configuration.

location String

Resource location.

tableLevelSharingProperties Property Map

Table level sharing specifications

Outputs

All input properties are implicitly available as output properties. Additionally, the AttachedDatabaseConfiguration resource produces the following output properties:

AttachedDatabaseNames List<string>

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

The provisioned state of the resource.

Type string

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

AttachedDatabaseNames []string

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

The provisioned state of the resource.

Type string

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

attachedDatabaseNames List<String>

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

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

The provisioned state of the resource.

type String

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

attachedDatabaseNames string[]

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

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

provisioningState string

The provisioned state of the resource.

type string

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

attached_database_names Sequence[str]

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

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

provisioning_state str

The provisioned state of the resource.

type str

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

attachedDatabaseNames List<String>

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

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

The provisioned state of the resource.

type String

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

Supporting Types

DefaultPrincipalsModificationKind

Union
Union
Replace
Replace
None
None
DefaultPrincipalsModificationKindUnion
Union
DefaultPrincipalsModificationKindReplace
Replace
DefaultPrincipalsModificationKindNone
None
Union
Union
Replace
Replace
None
None
Union
Union
Replace
Replace
None
None
UNION
Union
REPLACE
Replace
NONE
None
"Union"
Union
"Replace"
Replace
"None"
None

TableLevelSharingProperties

ExternalTablesToExclude List<string>

List of external tables exclude from the follower database

ExternalTablesToInclude List<string>

List of external tables to include in the follower database

MaterializedViewsToExclude List<string>

List of materialized views exclude from the follower database

MaterializedViewsToInclude List<string>

List of materialized views to include in the follower database

TablesToExclude List<string>

List of tables to exclude from the follower database

TablesToInclude List<string>

List of tables to include in the follower database

ExternalTablesToExclude []string

List of external tables exclude from the follower database

ExternalTablesToInclude []string

List of external tables to include in the follower database

MaterializedViewsToExclude []string

List of materialized views exclude from the follower database

MaterializedViewsToInclude []string

List of materialized views to include in the follower database

TablesToExclude []string

List of tables to exclude from the follower database

TablesToInclude []string

List of tables to include in the follower database

externalTablesToExclude List<String>

List of external tables exclude from the follower database

externalTablesToInclude List<String>

List of external tables to include in the follower database

materializedViewsToExclude List<String>

List of materialized views exclude from the follower database

materializedViewsToInclude List<String>

List of materialized views to include in the follower database

tablesToExclude List<String>

List of tables to exclude from the follower database

tablesToInclude List<String>

List of tables to include in the follower database

externalTablesToExclude string[]

List of external tables exclude from the follower database

externalTablesToInclude string[]

List of external tables to include in the follower database

materializedViewsToExclude string[]

List of materialized views exclude from the follower database

materializedViewsToInclude string[]

List of materialized views to include in the follower database

tablesToExclude string[]

List of tables to exclude from the follower database

tablesToInclude string[]

List of tables to include in the follower database

external_tables_to_exclude Sequence[str]

List of external tables exclude from the follower database

external_tables_to_include Sequence[str]

List of external tables to include in the follower database

materialized_views_to_exclude Sequence[str]

List of materialized views exclude from the follower database

materialized_views_to_include Sequence[str]

List of materialized views to include in the follower database

tables_to_exclude Sequence[str]

List of tables to exclude from the follower database

tables_to_include Sequence[str]

List of tables to include in the follower database

externalTablesToExclude List<String>

List of external tables exclude from the follower database

externalTablesToInclude List<String>

List of external tables to include in the follower database

materializedViewsToExclude List<String>

List of materialized views exclude from the follower database

materializedViewsToInclude List<String>

List of materialized views to include in the follower database

tablesToExclude List<String>

List of tables to exclude from the follower database

tablesToInclude List<String>

List of tables to include in the follower database

TableLevelSharingPropertiesResponse

ExternalTablesToExclude List<string>

List of external tables exclude from the follower database

ExternalTablesToInclude List<string>

List of external tables to include in the follower database

MaterializedViewsToExclude List<string>

List of materialized views exclude from the follower database

MaterializedViewsToInclude List<string>

List of materialized views to include in the follower database

TablesToExclude List<string>

List of tables to exclude from the follower database

TablesToInclude List<string>

List of tables to include in the follower database

ExternalTablesToExclude []string

List of external tables exclude from the follower database

ExternalTablesToInclude []string

List of external tables to include in the follower database

MaterializedViewsToExclude []string

List of materialized views exclude from the follower database

MaterializedViewsToInclude []string

List of materialized views to include in the follower database

TablesToExclude []string

List of tables to exclude from the follower database

TablesToInclude []string

List of tables to include in the follower database

externalTablesToExclude List<String>

List of external tables exclude from the follower database

externalTablesToInclude List<String>

List of external tables to include in the follower database

materializedViewsToExclude List<String>

List of materialized views exclude from the follower database

materializedViewsToInclude List<String>

List of materialized views to include in the follower database

tablesToExclude List<String>

List of tables to exclude from the follower database

tablesToInclude List<String>

List of tables to include in the follower database

externalTablesToExclude string[]

List of external tables exclude from the follower database

externalTablesToInclude string[]

List of external tables to include in the follower database

materializedViewsToExclude string[]

List of materialized views exclude from the follower database

materializedViewsToInclude string[]

List of materialized views to include in the follower database

tablesToExclude string[]

List of tables to exclude from the follower database

tablesToInclude string[]

List of tables to include in the follower database

external_tables_to_exclude Sequence[str]

List of external tables exclude from the follower database

external_tables_to_include Sequence[str]

List of external tables to include in the follower database

materialized_views_to_exclude Sequence[str]

List of materialized views exclude from the follower database

materialized_views_to_include Sequence[str]

List of materialized views to include in the follower database

tables_to_exclude Sequence[str]

List of tables to exclude from the follower database

tables_to_include Sequence[str]

List of tables to include in the follower database

externalTablesToExclude List<String>

List of external tables exclude from the follower database

externalTablesToInclude List<String>

List of external tables to include in the follower database

materializedViewsToExclude List<String>

List of materialized views exclude from the follower database

materializedViewsToInclude List<String>

List of materialized views to include in the follower database

tablesToExclude List<String>

List of tables to exclude from the follower database

tablesToInclude List<String>

List of tables to include in the follower database

Import

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

$ pulumi import azure-native:kusto:AttachedDatabaseConfiguration KustoClusterRPTest4/attachedDatabaseConfigurations1 /subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/attachedDatabaseConfigurations/attachedDatabaseConfigurations1 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0