azure-native.synapse.SqlPoolWorkloadClassifier
Explore with Pulumi AI
Workload classifier operations for a data warehouse Azure REST API version: 2021-06-01. Prior API version in Azure Native 1.x: 2021-03-01.
Other available API versions: 2021-06-01-preview.
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/v2"
"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/v2"
"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: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
SqlPoolName: pulumi.String("string"),
WorkloadGroupName: pulumi.String("string"),
WorkspaceName: pulumi.String("string"),
Context: pulumi.String("string"),
EndTime: pulumi.String("string"),
Importance: pulumi.String("string"),
Label: pulumi.String("string"),
StartTime: pulumi.String("string"),
WorkloadClassifierName: pulumi.String("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:
- Member
Name string - The workload classifier member name.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sql
Pool stringName - SQL pool name
- Workload
Group stringName - The name of the workload group.
- Workspace
Name string - The name of the workspace.
- Context string
- The workload classifier context.
- End
Time string - The workload classifier end time for classification.
- Importance string
- The workload classifier importance.
- Label string
- The workload classifier label.
- Start
Time string - The workload classifier start time for classification.
- Workload
Classifier stringName - The name of the workload classifier.
- Member
Name string - The workload classifier member name.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sql
Pool stringName - SQL pool name
- Workload
Group stringName - The name of the workload group.
- Workspace
Name string - The name of the workspace.
- Context string
- The workload classifier context.
- End
Time string - The workload classifier end time for classification.
- Importance string
- The workload classifier importance.
- Label string
- The workload classifier label.
- Start
Time string - The workload classifier start time for classification.
- Workload
Classifier stringName - The name of the workload classifier.
- member
Name String - The workload classifier member name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sql
Pool StringName - SQL pool name
- workload
Group StringName - The name of the workload group.
- workspace
Name String - The name of the workspace.
- context String
- The workload classifier context.
- end
Time String - The workload classifier end time for classification.
- importance String
- The workload classifier importance.
- label String
- The workload classifier label.
- start
Time String - The workload classifier start time for classification.
- workload
Classifier StringName - The name of the workload classifier.
- member
Name string - The workload classifier member name.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- sql
Pool stringName - SQL pool name
- workload
Group stringName - The name of the workload group.
- workspace
Name string - The name of the workspace.
- context string
- The workload classifier context.
- end
Time string - The workload classifier end time for classification.
- importance string
- The workload classifier importance.
- label string
- The workload classifier label.
- start
Time string - The workload classifier start time for classification.
- workload
Classifier 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.
- member
Name String - The workload classifier member name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sql
Pool StringName - SQL pool name
- workload
Group StringName - The name of the workload group.
- workspace
Name String - The name of the workspace.
- context String
- The workload classifier context.
- end
Time String - The workload classifier end time for classification.
- importance String
- The workload classifier importance.
- label String
- The workload classifier label.
- start
Time String - The workload classifier start time for classification.
- workload
Classifier 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0