All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.synapse.SqlPoolWorkloadGroup Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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 -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.storage.DataLakeGen2Filesystem;
 * import com.pulumi.azure.storage.DataLakeGen2FilesystemArgs;
 * import com.pulumi.azure.synapse.Workspace;
 * import com.pulumi.azure.synapse.WorkspaceArgs;
 * import com.pulumi.azure.synapse.inputs.WorkspaceIdentityArgs;
 * import com.pulumi.azure.synapse.SqlPool;
 * import com.pulumi.azure.synapse.SqlPoolArgs;
 * import com.pulumi.azure.synapse.SqlPoolWorkloadGroup;
 * import com.pulumi.azure.synapse.SqlPoolWorkloadGroupArgs;
 * 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 }{{@code
 *     public static void main(String[] args) }{{@code
 *         Pulumi.run(App::stack);
 *     }}{@code
 * 
 *     public static void stack(Context ctx) }{{@code
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example")
 *             .location("west europe")
 *             .build());
 * 
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("example")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountKind("BlobStorage")
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .build());
 * 
 *         var exampleDataLakeGen2Filesystem = new DataLakeGen2Filesystem("exampleDataLakeGen2Filesystem", DataLakeGen2FilesystemArgs.builder()
 *             .name("example")
 *             .storageAccountId(exampleAccount.id())
 *             .build());
 * 
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("example")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .storageDataLakeGen2FilesystemId(exampleDataLakeGen2Filesystem.id())
 *             .sqlAdministratorLogin("sqladminuser")
 *             .sqlAdministratorLoginPassword("H}{@literal @}{@code Sh1CoR3!")
 *             .identity(WorkspaceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .build());
 * 
 *         var exampleSqlPool = new SqlPool("exampleSqlPool", SqlPoolArgs.builder()
 *             .name("example")
 *             .synapseWorkspaceId(exampleWorkspace.id())
 *             .skuName("DW100c")
 *             .createMode("Default")
 *             .build());
 * 
 *         var exampleSqlPoolWorkloadGroup = new SqlPoolWorkloadGroup("exampleSqlPoolWorkloadGroup", SqlPoolWorkloadGroupArgs.builder()
 *             .name("example")
 *             .sqlPoolId(exampleSqlPool.id())
 *             .importance("normal")
 *             .maxResourcePercent(100)
 *             .minResourcePercent(0)
 *             .maxResourcePercentPerRequest(3)
 *             .minResourcePercentPerRequest(3)
 *             .queryExecutionTimeoutInSeconds(0)
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * }
 * 
* <!--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 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 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 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 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); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy