1. Packages
  2. Azure Native v1
  3. API Docs
  4. synapse
  5. SqlPoolWorkloadClassifier
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.synapse.SqlPoolWorkloadClassifier

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

    Workload classifier operations for a data warehouse API Version: 2021-03-01.

    Example Usage

    Create a workload classifier with all properties specified.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var sqlPoolWorkloadClassifier = new AzureNative.Synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", new()
        {
            Context = "test_context",
            EndTime = "14:00",
            Importance = "high",
            Label = "test_label",
            MemberName = "dbo",
            ResourceGroupName = "sqlcrudtest-6852",
            SqlPoolName = "sqlcrudtest-9187",
            StartTime = "12:00",
            WorkloadClassifierName = "wlm_workloadclassifier",
            WorkloadGroupName = "wlm_workloadgroup",
            WorkspaceName = "sqlcrudtest-2080",
        });
    
    });
    
    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.NewSqlPoolWorkloadClassifier(ctx, "sqlPoolWorkloadClassifier", &synapse.SqlPoolWorkloadClassifierArgs{
    			Context:                pulumi.String("test_context"),
    			EndTime:                pulumi.String("14:00"),
    			Importance:             pulumi.String("high"),
    			Label:                  pulumi.String("test_label"),
    			MemberName:             pulumi.String("dbo"),
    			ResourceGroupName:      pulumi.String("sqlcrudtest-6852"),
    			SqlPoolName:            pulumi.String("sqlcrudtest-9187"),
    			StartTime:              pulumi.String("12:00"),
    			WorkloadClassifierName: pulumi.String("wlm_workloadclassifier"),
    			WorkloadGroupName:      pulumi.String("wlm_workloadgroup"),
    			WorkspaceName:          pulumi.String("sqlcrudtest-2080"),
    		})
    		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.SqlPoolWorkloadClassifier;
    import com.pulumi.azurenative.synapse.SqlPoolWorkloadClassifierArgs;
    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 sqlPoolWorkloadClassifier = new SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", SqlPoolWorkloadClassifierArgs.builder()        
                .context("test_context")
                .endTime("14:00")
                .importance("high")
                .label("test_label")
                .memberName("dbo")
                .resourceGroupName("sqlcrudtest-6852")
                .sqlPoolName("sqlcrudtest-9187")
                .startTime("12:00")
                .workloadClassifierName("wlm_workloadclassifier")
                .workloadGroupName("wlm_workloadgroup")
                .workspaceName("sqlcrudtest-2080")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    sql_pool_workload_classifier = azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier",
        context="test_context",
        end_time="14:00",
        importance="high",
        label="test_label",
        member_name="dbo",
        resource_group_name="sqlcrudtest-6852",
        sql_pool_name="sqlcrudtest-9187",
        start_time="12:00",
        workload_classifier_name="wlm_workloadclassifier",
        workload_group_name="wlm_workloadgroup",
        workspace_name="sqlcrudtest-2080")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const sqlPoolWorkloadClassifier = new azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", {
        context: "test_context",
        endTime: "14:00",
        importance: "high",
        label: "test_label",
        memberName: "dbo",
        resourceGroupName: "sqlcrudtest-6852",
        sqlPoolName: "sqlcrudtest-9187",
        startTime: "12:00",
        workloadClassifierName: "wlm_workloadclassifier",
        workloadGroupName: "wlm_workloadgroup",
        workspaceName: "sqlcrudtest-2080",
    });
    
    resources:
      sqlPoolWorkloadClassifier:
        type: azure-native:synapse:SqlPoolWorkloadClassifier
        properties:
          context: test_context
          endTime: 14:00
          importance: high
          label: test_label
          memberName: dbo
          resourceGroupName: sqlcrudtest-6852
          sqlPoolName: sqlcrudtest-9187
          startTime: 12:00
          workloadClassifierName: wlm_workloadclassifier
          workloadGroupName: wlm_workloadgroup
          workspaceName: sqlcrudtest-2080
    

    Create a workload classifier with the required properties specified.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var sqlPoolWorkloadClassifier = new AzureNative.Synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", new()
        {
            MemberName = "dbo",
            ResourceGroupName = "sqlcrudtest-6852",
            SqlPoolName = "sqlcrudtest-9187",
            WorkloadClassifierName = "wlm_workloadclassifier",
            WorkloadGroupName = "wlm_workloadgroup",
            WorkspaceName = "sqlcrudtest-2080",
        });
    
    });
    
    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.NewSqlPoolWorkloadClassifier(ctx, "sqlPoolWorkloadClassifier", &synapse.SqlPoolWorkloadClassifierArgs{
    			MemberName:             pulumi.String("dbo"),
    			ResourceGroupName:      pulumi.String("sqlcrudtest-6852"),
    			SqlPoolName:            pulumi.String("sqlcrudtest-9187"),
    			WorkloadClassifierName: pulumi.String("wlm_workloadclassifier"),
    			WorkloadGroupName:      pulumi.String("wlm_workloadgroup"),
    			WorkspaceName:          pulumi.String("sqlcrudtest-2080"),
    		})
    		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.SqlPoolWorkloadClassifier;
    import com.pulumi.azurenative.synapse.SqlPoolWorkloadClassifierArgs;
    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 sqlPoolWorkloadClassifier = new SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", SqlPoolWorkloadClassifierArgs.builder()        
                .memberName("dbo")
                .resourceGroupName("sqlcrudtest-6852")
                .sqlPoolName("sqlcrudtest-9187")
                .workloadClassifierName("wlm_workloadclassifier")
                .workloadGroupName("wlm_workloadgroup")
                .workspaceName("sqlcrudtest-2080")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    sql_pool_workload_classifier = azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier",
        member_name="dbo",
        resource_group_name="sqlcrudtest-6852",
        sql_pool_name="sqlcrudtest-9187",
        workload_classifier_name="wlm_workloadclassifier",
        workload_group_name="wlm_workloadgroup",
        workspace_name="sqlcrudtest-2080")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const sqlPoolWorkloadClassifier = new azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifier", {
        memberName: "dbo",
        resourceGroupName: "sqlcrudtest-6852",
        sqlPoolName: "sqlcrudtest-9187",
        workloadClassifierName: "wlm_workloadclassifier",
        workloadGroupName: "wlm_workloadgroup",
        workspaceName: "sqlcrudtest-2080",
    });
    
    resources:
      sqlPoolWorkloadClassifier:
        type: azure-native:synapse:SqlPoolWorkloadClassifier
        properties:
          memberName: dbo
          resourceGroupName: sqlcrudtest-6852
          sqlPoolName: sqlcrudtest-9187
          workloadClassifierName: wlm_workloadclassifier
          workloadGroupName: wlm_workloadgroup
          workspaceName: sqlcrudtest-2080
    

    Create SqlPoolWorkloadClassifier Resource

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

    Constructor syntax

    new SqlPoolWorkloadClassifier(name: string, args: SqlPoolWorkloadClassifierArgs, opts?: CustomResourceOptions);
    @overload
    def SqlPoolWorkloadClassifier(resource_name: str,
                                  args: SqlPoolWorkloadClassifierArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def SqlPoolWorkloadClassifier(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  member_name: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  sql_pool_name: Optional[str] = None,
                                  workload_group_name: Optional[str] = None,
                                  workspace_name: Optional[str] = None,
                                  context: Optional[str] = None,
                                  end_time: Optional[str] = None,
                                  importance: Optional[str] = None,
                                  label: Optional[str] = None,
                                  start_time: Optional[str] = None,
                                  workload_classifier_name: Optional[str] = None)
    func NewSqlPoolWorkloadClassifier(ctx *Context, name string, args SqlPoolWorkloadClassifierArgs, opts ...ResourceOption) (*SqlPoolWorkloadClassifier, error)
    public SqlPoolWorkloadClassifier(string name, SqlPoolWorkloadClassifierArgs args, CustomResourceOptions? opts = null)
    public SqlPoolWorkloadClassifier(String name, SqlPoolWorkloadClassifierArgs args)
    public SqlPoolWorkloadClassifier(String name, SqlPoolWorkloadClassifierArgs args, CustomResourceOptions options)
    
    type: azure-native:synapse:SqlPoolWorkloadClassifier
    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 SqlPoolWorkloadClassifierArgs
    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 SqlPoolWorkloadClassifierArgs
    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 SqlPoolWorkloadClassifierArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SqlPoolWorkloadClassifierArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SqlPoolWorkloadClassifierArgs
    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 sqlPoolWorkloadClassifierResource = new AzureNative.Synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifierResource", new()
    {
        MemberName = "string",
        ResourceGroupName = "string",
        SqlPoolName = "string",
        WorkloadGroupName = "string",
        WorkspaceName = "string",
        Context = "string",
        EndTime = "string",
        Importance = "string",
        Label = "string",
        StartTime = "string",
        WorkloadClassifierName = "string",
    });
    
    example, err := synapse.NewSqlPoolWorkloadClassifier(ctx, "sqlPoolWorkloadClassifierResource", &synapse.SqlPoolWorkloadClassifierArgs{
    	MemberName:             "string",
    	ResourceGroupName:      "string",
    	SqlPoolName:            "string",
    	WorkloadGroupName:      "string",
    	WorkspaceName:          "string",
    	Context:                "string",
    	EndTime:                "string",
    	Importance:             "string",
    	Label:                  "string",
    	StartTime:              "string",
    	WorkloadClassifierName: "string",
    })
    
    var sqlPoolWorkloadClassifierResource = new SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifierResource", SqlPoolWorkloadClassifierArgs.builder()
        .memberName("string")
        .resourceGroupName("string")
        .sqlPoolName("string")
        .workloadGroupName("string")
        .workspaceName("string")
        .context("string")
        .endTime("string")
        .importance("string")
        .label("string")
        .startTime("string")
        .workloadClassifierName("string")
        .build());
    
    sql_pool_workload_classifier_resource = azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifierResource",
        member_name=string,
        resource_group_name=string,
        sql_pool_name=string,
        workload_group_name=string,
        workspace_name=string,
        context=string,
        end_time=string,
        importance=string,
        label=string,
        start_time=string,
        workload_classifier_name=string)
    
    const sqlPoolWorkloadClassifierResource = new azure_native.synapse.SqlPoolWorkloadClassifier("sqlPoolWorkloadClassifierResource", {
        memberName: "string",
        resourceGroupName: "string",
        sqlPoolName: "string",
        workloadGroupName: "string",
        workspaceName: "string",
        context: "string",
        endTime: "string",
        importance: "string",
        label: "string",
        startTime: "string",
        workloadClassifierName: "string",
    });
    
    type: azure-native:synapse:SqlPoolWorkloadClassifier
    properties:
        context: string
        endTime: string
        importance: string
        label: string
        memberName: string
        resourceGroupName: string
        sqlPoolName: string
        startTime: string
        workloadClassifierName: string
        workloadGroupName: string
        workspaceName: string
    

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

    MemberName string
    The workload classifier member name.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SqlPoolName string
    SQL pool name
    WorkloadGroupName string
    The name of the workload group.
    WorkspaceName string
    The name of the workspace
    Context string
    The workload classifier context.
    EndTime string
    The workload classifier end time for classification.
    Importance string
    The workload classifier importance.
    Label string
    The workload classifier label.
    StartTime string
    The workload classifier start time for classification.
    WorkloadClassifierName string
    The name of the workload classifier.
    MemberName string
    The workload classifier member name.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SqlPoolName string
    SQL pool name
    WorkloadGroupName string
    The name of the workload group.
    WorkspaceName string
    The name of the workspace
    Context string
    The workload classifier context.
    EndTime string
    The workload classifier end time for classification.
    Importance string
    The workload classifier importance.
    Label string
    The workload classifier label.
    StartTime string
    The workload classifier start time for classification.
    WorkloadClassifierName string
    The name of the workload classifier.
    memberName String
    The workload classifier member name.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sqlPoolName String
    SQL pool name
    workloadGroupName String
    The name of the workload group.
    workspaceName String
    The name of the workspace
    context String
    The workload classifier context.
    endTime String
    The workload classifier end time for classification.
    importance String
    The workload classifier importance.
    label String
    The workload classifier label.
    startTime String
    The workload classifier start time for classification.
    workloadClassifierName String
    The name of the workload classifier.
    memberName string
    The workload classifier member name.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    sqlPoolName string
    SQL pool name
    workloadGroupName string
    The name of the workload group.
    workspaceName string
    The name of the workspace
    context string
    The workload classifier context.
    endTime string
    The workload classifier end time for classification.
    importance string
    The workload classifier importance.
    label string
    The workload classifier label.
    startTime string
    The workload classifier start time for classification.
    workloadClassifierName string
    The name of the workload classifier.
    member_name str
    The workload classifier member name.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    sql_pool_name str
    SQL pool name
    workload_group_name str
    The name of the workload group.
    workspace_name str
    The name of the workspace
    context str
    The workload classifier context.
    end_time str
    The workload classifier end time for classification.
    importance str
    The workload classifier importance.
    label str
    The workload classifier label.
    start_time str
    The workload classifier start time for classification.
    workload_classifier_name str
    The name of the workload classifier.
    memberName String
    The workload classifier member name.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sqlPoolName String
    SQL pool name
    workloadGroupName String
    The name of the workload group.
    workspaceName String
    The name of the workspace
    context String
    The workload classifier context.
    endTime String
    The workload classifier end time for classification.
    importance String
    The workload classifier importance.
    label String
    The workload classifier label.
    startTime String
    The workload classifier start time for classification.
    workloadClassifierName String
    The name of the workload classifier.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Import

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

    $ pulumi import azure-native:synapse:SqlPoolWorkloadClassifier wlm_workloadclassifier /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/wlm_workloadgroup/workloadClassifiers/wlm_workloadclassifier 
    

    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