azure-native.synapse.SqlPoolWorkloadClassifier
Explore with Pulumi AI
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 * 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",
});
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")
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 * 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",
});
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")
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SqlPoolWorkloadClassifier resource accepts the following input properties:
- MemberName string
- The workload classifier member name.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SqlPool stringName 
- SQL pool name
- WorkloadGroup stringName 
- 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.
- WorkloadClassifier stringName 
- The name of the workload classifier.
- MemberName string
- The workload classifier member name.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SqlPool stringName 
- SQL pool name
- WorkloadGroup stringName 
- 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.
- WorkloadClassifier stringName 
- The name of the workload classifier.
- memberName String
- The workload classifier member name.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- sqlPool StringName 
- SQL pool name
- workloadGroup StringName 
- 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.
- workloadClassifier StringName 
- The name of the workload classifier.
- memberName string
- The workload classifier member name.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- sqlPool stringName 
- SQL pool name
- workloadGroup stringName 
- 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.
- workloadClassifier stringName 
- The name of the workload classifier.
- member_name str
- The workload classifier member name.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- sql_pool_ strname 
- SQL pool name
- workload_group_ strname 
- 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_ strname 
- The name of the workload classifier.
- memberName String
- The workload classifier member name.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- sqlPool StringName 
- SQL pool name
- workloadGroup StringName 
- 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.
- workloadClassifier StringName 
- 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:
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