SqlPoolSensitivityLabel

class SqlPoolSensitivityLabel : KotlinCustomResource

A sensitivity label. API Version: 2021-03-01.

Example Usage

Updates the sensitivity label of a given column with all parameters

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sqlPoolSensitivityLabel = new AzureNative.Synapse.SqlPoolSensitivityLabel("sqlPoolSensitivityLabel", new()
{
ColumnName = "myColumn",
InformationType = "PhoneNumber",
InformationTypeId = "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
LabelId = "bf91e08c-f4f0-478a-b016-25164b2a65ff",
LabelName = "PII",
ResourceGroupName = "myRG",
SchemaName = "dbo",
SensitivityLabelSource = "current",
SqlPoolName = "myDatabase",
TableName = "myTable",
WorkspaceName = "myServer",
});
});
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.NewSqlPoolSensitivityLabel(ctx, "sqlPoolSensitivityLabel", &synapse.SqlPoolSensitivityLabelArgs{
ColumnName: pulumi.String("myColumn"),
InformationType: pulumi.String("PhoneNumber"),
InformationTypeId: pulumi.String("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"),
LabelId: pulumi.String("bf91e08c-f4f0-478a-b016-25164b2a65ff"),
LabelName: pulumi.String("PII"),
ResourceGroupName: pulumi.String("myRG"),
SchemaName: pulumi.String("dbo"),
SensitivityLabelSource: pulumi.String("current"),
SqlPoolName: pulumi.String("myDatabase"),
TableName: pulumi.String("myTable"),
WorkspaceName: pulumi.String("myServer"),
})
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.SqlPoolSensitivityLabel;
import com.pulumi.azurenative.synapse.SqlPoolSensitivityLabelArgs;
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 sqlPoolSensitivityLabel = new SqlPoolSensitivityLabel("sqlPoolSensitivityLabel", SqlPoolSensitivityLabelArgs.builder()
.columnName("myColumn")
.informationType("PhoneNumber")
.informationTypeId("d22fa6e9-5ee4-3bde-4c2b-a409604c4646")
.labelId("bf91e08c-f4f0-478a-b016-25164b2a65ff")
.labelName("PII")
.resourceGroupName("myRG")
.schemaName("dbo")
.sensitivityLabelSource("current")
.sqlPoolName("myDatabase")
.tableName("myTable")
.workspaceName("myServer")
.build());
}
}

Import

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

$ pulumi import azure-native:synapse:SqlPoolSensitivityLabel current /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/myServer/sqlPools/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current

Properties

Link copied to clipboard
val columnName: Output<String>

The column name.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val informationType: Output<String>?

The information type.

Link copied to clipboard

The information type ID.

Link copied to clipboard
val isDisabled: Output<Boolean>

Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.

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

The label ID.

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

The label name.

Link copied to clipboard
val managedBy: Output<String>

managed by

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rank: Output<String>?
Link copied to clipboard
val schemaName: Output<String>

The schema name.

Link copied to clipboard
val tableName: Output<String>

The table name.

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>