Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.synapse;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.synapse.SqlPoolWorkloadGroupArgs;
import com.pulumi.azure.synapse.inputs.SqlPoolWorkloadGroupState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages a Synapse SQL Pool Workload Group.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Synapse SQL Pool Workload Groups can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:synapse/sqlPoolWorkloadGroup:SqlPoolWorkloadGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Synapse/workspaces/workspace1/sqlPools/sqlPool1/workloadGroups/workloadGroup1
* ```
*
*/
@ResourceType(type="azure:synapse/sqlPoolWorkloadGroup:SqlPoolWorkloadGroup")
public class SqlPoolWorkloadGroup extends com.pulumi.resources.CustomResource {
/**
* The workload group importance level. Defaults to `normal`.
*
*/
@Export(name="importance", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> importance;
/**
* @return The workload group importance level. Defaults to `normal`.
*
*/
public Output> importance() {
return Codegen.optional(this.importance);
}
/**
* The workload group cap percentage resource.
*
*/
@Export(name="maxResourcePercent", refs={Integer.class}, tree="[0]")
private Output maxResourcePercent;
/**
* @return The workload group cap percentage resource.
*
*/
public Output maxResourcePercent() {
return this.maxResourcePercent;
}
/**
* The workload group request maximum grant percentage. Defaults to `3`.
*
*/
@Export(name="maxResourcePercentPerRequest", refs={Double.class}, tree="[0]")
private Output* @Nullable */ Double> maxResourcePercentPerRequest;
/**
* @return The workload group request maximum grant percentage. Defaults to `3`.
*
*/
public Output> maxResourcePercentPerRequest() {
return Codegen.optional(this.maxResourcePercentPerRequest);
}
/**
* The workload group minimum percentage resource.
*
*/
@Export(name="minResourcePercent", refs={Integer.class}, tree="[0]")
private Output minResourcePercent;
/**
* @return The workload group minimum percentage resource.
*
*/
public Output minResourcePercent() {
return this.minResourcePercent;
}
/**
* The workload group request minimum grant percentage.
*
*/
@Export(name="minResourcePercentPerRequest", refs={Double.class}, tree="[0]")
private Output* @Nullable */ Double> minResourcePercentPerRequest;
/**
* @return The workload group request minimum grant percentage.
*
*/
public Output> minResourcePercentPerRequest() {
return Codegen.optional(this.minResourcePercentPerRequest);
}
/**
* The name which should be used for this Synapse SQL Pool Workload Group. Changing this forces a new Synapse SQL Pool Workload Group to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name which should be used for this Synapse SQL Pool Workload Group. Changing this forces a new Synapse SQL Pool Workload Group to be created.
*
*/
public Output name() {
return this.name;
}
/**
* The workload group query execution timeout.
*
*/
@Export(name="queryExecutionTimeoutInSeconds", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> queryExecutionTimeoutInSeconds;
/**
* @return The workload group query execution timeout.
*
*/
public Output> queryExecutionTimeoutInSeconds() {
return Codegen.optional(this.queryExecutionTimeoutInSeconds);
}
/**
* The ID of the Synapse SQL Pool. Changing this forces a new Synapse SQL Pool Workload Group to be created.
*
*/
@Export(name="sqlPoolId", refs={String.class}, tree="[0]")
private Output sqlPoolId;
/**
* @return The ID of the Synapse SQL Pool. Changing this forces a new Synapse SQL Pool Workload Group to be created.
*
*/
public Output sqlPoolId() {
return this.sqlPoolId;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public SqlPoolWorkloadGroup(java.lang.String name) {
this(name, SqlPoolWorkloadGroupArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public SqlPoolWorkloadGroup(java.lang.String name, SqlPoolWorkloadGroupArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public SqlPoolWorkloadGroup(java.lang.String name, SqlPoolWorkloadGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:synapse/sqlPoolWorkloadGroup:SqlPoolWorkloadGroup", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private SqlPoolWorkloadGroup(java.lang.String name, Output id, @Nullable SqlPoolWorkloadGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:synapse/sqlPoolWorkloadGroup:SqlPoolWorkloadGroup", name, state, makeResourceOptions(options, id), false);
}
private static SqlPoolWorkloadGroupArgs makeArgs(SqlPoolWorkloadGroupArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? SqlPoolWorkloadGroupArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static SqlPoolWorkloadGroup get(java.lang.String name, Output id, @Nullable SqlPoolWorkloadGroupState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new SqlPoolWorkloadGroup(name, id, state, options);
}
}