1. Packages
  2. Azure Native v1
  3. API Docs
  4. sql
  5. SensitivityLabel
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.sql.SensitivityLabel

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    A sensitivity label. API Version: 2020-11-01-preview.

    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 sensitivityLabel = new AzureNative.Sql.SensitivityLabel("sensitivityLabel", new()
        {
            ColumnName = "myColumn",
            DatabaseName = "myDatabase",
            InformationType = "PhoneNumber",
            InformationTypeId = "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
            LabelId = "bf91e08c-f4f0-478a-b016-25164b2a65ff",
            LabelName = "PII",
            Rank = AzureNative.Sql.SensitivityLabelRank.Low,
            ResourceGroupName = "myRG",
            SchemaName = "dbo",
            SensitivityLabelSource = "current",
            ServerName = "myServer",
            TableName = "myTable",
        });
    
    });
    
    package main
    
    import (
    	sql "github.com/pulumi/pulumi-azure-native-sdk/sql"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sql.NewSensitivityLabel(ctx, "sensitivityLabel", &sql.SensitivityLabelArgs{
    			ColumnName:             pulumi.String("myColumn"),
    			DatabaseName:           pulumi.String("myDatabase"),
    			InformationType:        pulumi.String("PhoneNumber"),
    			InformationTypeId:      pulumi.String("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"),
    			LabelId:                pulumi.String("bf91e08c-f4f0-478a-b016-25164b2a65ff"),
    			LabelName:              pulumi.String("PII"),
    			Rank:                   sql.SensitivityLabelRankLow,
    			ResourceGroupName:      pulumi.String("myRG"),
    			SchemaName:             pulumi.String("dbo"),
    			SensitivityLabelSource: pulumi.String("current"),
    			ServerName:             pulumi.String("myServer"),
    			TableName:              pulumi.String("myTable"),
    		})
    		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.sql.SensitivityLabel;
    import com.pulumi.azurenative.sql.SensitivityLabelArgs;
    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 sensitivityLabel = new SensitivityLabel("sensitivityLabel", SensitivityLabelArgs.builder()        
                .columnName("myColumn")
                .databaseName("myDatabase")
                .informationType("PhoneNumber")
                .informationTypeId("d22fa6e9-5ee4-3bde-4c2b-a409604c4646")
                .labelId("bf91e08c-f4f0-478a-b016-25164b2a65ff")
                .labelName("PII")
                .rank("Low")
                .resourceGroupName("myRG")
                .schemaName("dbo")
                .sensitivityLabelSource("current")
                .serverName("myServer")
                .tableName("myTable")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    sensitivity_label = azure_native.sql.SensitivityLabel("sensitivityLabel",
        column_name="myColumn",
        database_name="myDatabase",
        information_type="PhoneNumber",
        information_type_id="d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
        label_id="bf91e08c-f4f0-478a-b016-25164b2a65ff",
        label_name="PII",
        rank=azure_native.sql.SensitivityLabelRank.LOW,
        resource_group_name="myRG",
        schema_name="dbo",
        sensitivity_label_source="current",
        server_name="myServer",
        table_name="myTable")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const sensitivityLabel = new azure_native.sql.SensitivityLabel("sensitivityLabel", {
        columnName: "myColumn",
        databaseName: "myDatabase",
        informationType: "PhoneNumber",
        informationTypeId: "d22fa6e9-5ee4-3bde-4c2b-a409604c4646",
        labelId: "bf91e08c-f4f0-478a-b016-25164b2a65ff",
        labelName: "PII",
        rank: azure_native.sql.SensitivityLabelRank.Low,
        resourceGroupName: "myRG",
        schemaName: "dbo",
        sensitivityLabelSource: "current",
        serverName: "myServer",
        tableName: "myTable",
    });
    
    resources:
      sensitivityLabel:
        type: azure-native:sql:SensitivityLabel
        properties:
          columnName: myColumn
          databaseName: myDatabase
          informationType: PhoneNumber
          informationTypeId: d22fa6e9-5ee4-3bde-4c2b-a409604c4646
          labelId: bf91e08c-f4f0-478a-b016-25164b2a65ff
          labelName: PII
          rank: Low
          resourceGroupName: myRG
          schemaName: dbo
          sensitivityLabelSource: current
          serverName: myServer
          tableName: myTable
    

    Create SensitivityLabel Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SensitivityLabel(name: string, args: SensitivityLabelArgs, opts?: CustomResourceOptions);
    @overload
    def SensitivityLabel(resource_name: str,
                         args: SensitivityLabelArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def SensitivityLabel(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         column_name: Optional[str] = None,
                         database_name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         schema_name: Optional[str] = None,
                         server_name: Optional[str] = None,
                         table_name: Optional[str] = None,
                         information_type: Optional[str] = None,
                         information_type_id: Optional[str] = None,
                         label_id: Optional[str] = None,
                         label_name: Optional[str] = None,
                         rank: Optional[SensitivityLabelRank] = None,
                         sensitivity_label_source: Optional[str] = None)
    func NewSensitivityLabel(ctx *Context, name string, args SensitivityLabelArgs, opts ...ResourceOption) (*SensitivityLabel, error)
    public SensitivityLabel(string name, SensitivityLabelArgs args, CustomResourceOptions? opts = null)
    public SensitivityLabel(String name, SensitivityLabelArgs args)
    public SensitivityLabel(String name, SensitivityLabelArgs args, CustomResourceOptions options)
    
    type: azure-native:sql:SensitivityLabel
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SensitivityLabelArgs
    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 SensitivityLabelArgs
    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 SensitivityLabelArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SensitivityLabelArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SensitivityLabelArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var sensitivityLabelResource = new AzureNative.Sql.SensitivityLabel("sensitivityLabelResource", new()
    {
        ColumnName = "string",
        DatabaseName = "string",
        ResourceGroupName = "string",
        SchemaName = "string",
        ServerName = "string",
        TableName = "string",
        InformationType = "string",
        InformationTypeId = "string",
        LabelId = "string",
        LabelName = "string",
        Rank = "None",
        SensitivityLabelSource = "string",
    });
    
    example, err := sql.NewSensitivityLabel(ctx, "sensitivityLabelResource", &sql.SensitivityLabelArgs{
    	ColumnName:             "string",
    	DatabaseName:           "string",
    	ResourceGroupName:      "string",
    	SchemaName:             "string",
    	ServerName:             "string",
    	TableName:              "string",
    	InformationType:        "string",
    	InformationTypeId:      "string",
    	LabelId:                "string",
    	LabelName:              "string",
    	Rank:                   "None",
    	SensitivityLabelSource: "string",
    })
    
    var sensitivityLabelResource = new SensitivityLabel("sensitivityLabelResource", SensitivityLabelArgs.builder()
        .columnName("string")
        .databaseName("string")
        .resourceGroupName("string")
        .schemaName("string")
        .serverName("string")
        .tableName("string")
        .informationType("string")
        .informationTypeId("string")
        .labelId("string")
        .labelName("string")
        .rank("None")
        .sensitivityLabelSource("string")
        .build());
    
    sensitivity_label_resource = azure_native.sql.SensitivityLabel("sensitivityLabelResource",
        column_name=string,
        database_name=string,
        resource_group_name=string,
        schema_name=string,
        server_name=string,
        table_name=string,
        information_type=string,
        information_type_id=string,
        label_id=string,
        label_name=string,
        rank=None,
        sensitivity_label_source=string)
    
    const sensitivityLabelResource = new azure_native.sql.SensitivityLabel("sensitivityLabelResource", {
        columnName: "string",
        databaseName: "string",
        resourceGroupName: "string",
        schemaName: "string",
        serverName: "string",
        tableName: "string",
        informationType: "string",
        informationTypeId: "string",
        labelId: "string",
        labelName: "string",
        rank: "None",
        sensitivityLabelSource: "string",
    });
    
    type: azure-native:sql:SensitivityLabel
    properties:
        columnName: string
        databaseName: string
        informationType: string
        informationTypeId: string
        labelId: string
        labelName: string
        rank: None
        resourceGroupName: string
        schemaName: string
        sensitivityLabelSource: string
        serverName: string
        tableName: string
    

    SensitivityLabel 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 SensitivityLabel resource accepts the following input properties:

    ColumnName string
    The name of the column.
    DatabaseName string
    The name of the database.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    SchemaName string
    The name of the schema.
    ServerName string
    The name of the server.
    TableName string
    The name of the table.
    InformationType string
    The information type.
    InformationTypeId string
    The information type ID.
    LabelId string
    The label ID.
    LabelName string
    The label name.
    Rank Pulumi.AzureNative.Sql.SensitivityLabelRank
    SensitivityLabelSource string
    The source of the sensitivity label.
    ColumnName string
    The name of the column.
    DatabaseName string
    The name of the database.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    SchemaName string
    The name of the schema.
    ServerName string
    The name of the server.
    TableName string
    The name of the table.
    InformationType string
    The information type.
    InformationTypeId string
    The information type ID.
    LabelId string
    The label ID.
    LabelName string
    The label name.
    Rank SensitivityLabelRank
    SensitivityLabelSource string
    The source of the sensitivity label.
    columnName String
    The name of the column.
    databaseName String
    The name of the database.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    schemaName String
    The name of the schema.
    serverName String
    The name of the server.
    tableName String
    The name of the table.
    informationType String
    The information type.
    informationTypeId String
    The information type ID.
    labelId String
    The label ID.
    labelName String
    The label name.
    rank SensitivityLabelRank
    sensitivityLabelSource String
    The source of the sensitivity label.
    columnName string
    The name of the column.
    databaseName string
    The name of the database.
    resourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    schemaName string
    The name of the schema.
    serverName string
    The name of the server.
    tableName string
    The name of the table.
    informationType string
    The information type.
    informationTypeId string
    The information type ID.
    labelId string
    The label ID.
    labelName string
    The label name.
    rank SensitivityLabelRank
    sensitivityLabelSource string
    The source of the sensitivity label.
    column_name str
    The name of the column.
    database_name str
    The name of the database.
    resource_group_name str
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    schema_name str
    The name of the schema.
    server_name str
    The name of the server.
    table_name str
    The name of the table.
    information_type str
    The information type.
    information_type_id str
    The information type ID.
    label_id str
    The label ID.
    label_name str
    The label name.
    rank SensitivityLabelRank
    sensitivity_label_source str
    The source of the sensitivity label.
    columnName String
    The name of the column.
    databaseName String
    The name of the database.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    schemaName String
    The name of the schema.
    serverName String
    The name of the server.
    tableName String
    The name of the table.
    informationType String
    The information type.
    informationTypeId String
    The information type ID.
    labelId String
    The label ID.
    labelName String
    The label name.
    rank "None" | "Low" | "Medium" | "High" | "Critical"
    sensitivityLabelSource String
    The source of the sensitivity label.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    IsDisabled bool
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    ManagedBy string
    Resource that manages the sensitivity label.
    Name string
    Resource name.
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDisabled bool
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    ManagedBy string
    Resource that manages the sensitivity label.
    Name string
    Resource name.
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    isDisabled Boolean
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    managedBy String
    Resource that manages the sensitivity label.
    name String
    Resource name.
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    isDisabled boolean
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    managedBy string
    Resource that manages the sensitivity label.
    name string
    Resource name.
    type string
    Resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    is_disabled bool
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    managed_by str
    Resource that manages the sensitivity label.
    name str
    Resource name.
    type str
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    isDisabled Boolean
    Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or not.
    managedBy String
    Resource that manages the sensitivity label.
    name String
    Resource name.
    type String
    Resource type.

    Supporting Types

    SensitivityLabelRank, SensitivityLabelRankArgs

    None
    None
    Low
    Low
    Medium
    Medium
    High
    High
    Critical
    Critical
    SensitivityLabelRankNone
    None
    SensitivityLabelRankLow
    Low
    SensitivityLabelRankMedium
    Medium
    SensitivityLabelRankHigh
    High
    SensitivityLabelRankCritical
    Critical
    None
    None
    Low
    Low
    Medium
    Medium
    High
    High
    Critical
    Critical
    None
    None
    Low
    Low
    Medium
    Medium
    High
    High
    Critical
    Critical
    NONE
    None
    LOW
    Low
    MEDIUM
    Medium
    HIGH
    High
    CRITICAL
    Critical
    "None"
    None
    "Low"
    Low
    "Medium"
    Medium
    "High"
    High
    "Critical"
    Critical

    Import

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

    $ pulumi import azure-native:sql:SensitivityLabel current /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/myServer/databases/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi