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.SqlPoolArgs;
import com.pulumi.azure.synapse.inputs.SqlPoolState;
import com.pulumi.azure.synapse.outputs.SqlPoolRestore;
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.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages a Synapse SQL Pool.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Synapse SQL Pool can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:synapse/sqlPool:SqlPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Synapse/workspaces/workspace1/sqlPools/sqlPool1
* ```
*
*/
@ResourceType(type="azure:synapse/sqlPool:SqlPool")
public class SqlPool extends com.pulumi.resources.CustomResource {
/**
* The name of the collation to use with this pool, only applicable when `create_mode` is set to `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new Synapse SQL Pool to be created.
*
*/
@Export(name="collation", refs={String.class}, tree="[0]")
private Output collation;
/**
* @return The name of the collation to use with this pool, only applicable when `create_mode` is set to `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new Synapse SQL Pool to be created.
*
*/
public Output collation() {
return this.collation;
}
/**
* Specifies how to create the SQL Pool. Valid values are: `Default`, `Recovery` or `PointInTimeRestore`. Must be `Default` to create a new database. Defaults to `Default`. Changing this forces a new Synapse SQL Pool to be created.
*
*/
@Export(name="createMode", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> createMode;
/**
* @return Specifies how to create the SQL Pool. Valid values are: `Default`, `Recovery` or `PointInTimeRestore`. Must be `Default` to create a new database. Defaults to `Default`. Changing this forces a new Synapse SQL Pool to be created.
*
*/
public Output> createMode() {
return Codegen.optional(this.createMode);
}
/**
* Is transparent data encryption enabled?
*
*/
@Export(name="dataEncrypted", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> dataEncrypted;
/**
* @return Is transparent data encryption enabled?
*
*/
public Output> dataEncrypted() {
return Codegen.optional(this.dataEncrypted);
}
/**
* Is geo-backup policy enabled? Possible values include `true` or `false`. Defaults to `true`.
*
*/
@Export(name="geoBackupPolicyEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> geoBackupPolicyEnabled;
/**
* @return Is geo-backup policy enabled? Possible values include `true` or `false`. Defaults to `true`.
*
*/
public Output> geoBackupPolicyEnabled() {
return Codegen.optional(this.geoBackupPolicyEnabled);
}
/**
* The name which should be used for this Synapse SQL Pool. Changing this forces a new Synapse SQL Pool 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. Changing this forces a new Synapse SQL Pool to be created.
*
*/
public Output name() {
return this.name;
}
/**
* The ID of the Synapse SQL Pool or SQL Database which is to back up, only applicable when `create_mode` is set to `Recovery`. Changing this forces a new Synapse SQL Pool to be created.
*
*/
@Export(name="recoveryDatabaseId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> recoveryDatabaseId;
/**
* @return The ID of the Synapse SQL Pool or SQL Database which is to back up, only applicable when `create_mode` is set to `Recovery`. Changing this forces a new Synapse SQL Pool to be created.
*
*/
public Output> recoveryDatabaseId() {
return Codegen.optional(this.recoveryDatabaseId);
}
/**
* A `restore` block as defined below. Only applicable when `create_mode` is set to `PointInTimeRestore`. Changing this forces a new Synapse SQL Pool to be created.
*
*/
@Export(name="restore", refs={SqlPoolRestore.class}, tree="[0]")
private Output* @Nullable */ SqlPoolRestore> restore;
/**
* @return A `restore` block as defined below. Only applicable when `create_mode` is set to `PointInTimeRestore`. Changing this forces a new Synapse SQL Pool to be created.
*
*/
public Output> restore() {
return Codegen.optional(this.restore);
}
/**
* Specifies the SKU Name for this Synapse SQL Pool. Possible values are `DW100c`, `DW200c`, `DW300c`, `DW400c`, `DW500c`, `DW1000c`, `DW1500c`, `DW2000c`, `DW2500c`, `DW3000c`, `DW5000c`, `DW6000c`, `DW7500c`, `DW10000c`, `DW15000c` or `DW30000c`.
*
*/
@Export(name="skuName", refs={String.class}, tree="[0]")
private Output skuName;
/**
* @return Specifies the SKU Name for this Synapse SQL Pool. Possible values are `DW100c`, `DW200c`, `DW300c`, `DW400c`, `DW500c`, `DW1000c`, `DW1500c`, `DW2000c`, `DW2500c`, `DW3000c`, `DW5000c`, `DW6000c`, `DW7500c`, `DW10000c`, `DW15000c` or `DW30000c`.
*
*/
public Output skuName() {
return this.skuName;
}
/**
* The storage account type that will be used to store backups for this Synapse SQL Pool. Possible values are `LRS` or `GRS`. Changing this forces a new Synapse SQL Pool to be created. Defaults to `GRS`.
*
*/
@Export(name="storageAccountType", refs={String.class}, tree="[0]")
private Output storageAccountType;
/**
* @return The storage account type that will be used to store backups for this Synapse SQL Pool. Possible values are `LRS` or `GRS`. Changing this forces a new Synapse SQL Pool to be created. Defaults to `GRS`.
*
*/
public Output storageAccountType() {
return this.storageAccountType;
}
/**
* The ID of Synapse Workspace within which this SQL Pool should be created. Changing this forces a new Synapse SQL Pool to be created.
*
*/
@Export(name="synapseWorkspaceId", refs={String.class}, tree="[0]")
private Output synapseWorkspaceId;
/**
* @return The ID of Synapse Workspace within which this SQL Pool should be created. Changing this forces a new Synapse SQL Pool to be created.
*
*/
public Output synapseWorkspaceId() {
return this.synapseWorkspaceId;
}
/**
* A mapping of tags which should be assigned to the Synapse SQL Pool.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A mapping of tags which should be assigned to the Synapse SQL Pool.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public SqlPool(java.lang.String name) {
this(name, SqlPoolArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public SqlPool(java.lang.String name, SqlPoolArgs 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 SqlPool(java.lang.String name, SqlPoolArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:synapse/sqlPool:SqlPool", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private SqlPool(java.lang.String name, Output id, @Nullable SqlPoolState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:synapse/sqlPool:SqlPool", name, state, makeResourceOptions(options, id), false);
}
private static SqlPoolArgs makeArgs(SqlPoolArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? SqlPoolArgs.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 SqlPool get(java.lang.String name, Output id, @Nullable SqlPoolState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new SqlPool(name, id, state, options);
}
}