SqlPoolArgs

data class SqlPoolArgs(val collation: Output<String>? = null, val createMode: Output<Either<String, CreateMode>>? = null, val location: Output<String>? = null, val maxSizeBytes: Output<Double>? = null, val provisioningState: Output<String>? = null, val recoverableDatabaseId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val restorePointInTime: Output<String>? = null, val sku: Output<SkuArgs>? = null, val sourceDatabaseDeletionDate: Output<String>? = null, val sourceDatabaseId: Output<String>? = null, val sqlPoolName: Output<String>? = null, val storageAccountType: Output<Either<String, StorageAccountType>>? = null, val tags: Output<Map<String, String>>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<SqlPoolArgs>

A SQL Analytics pool Uses Azure REST API version 2021-06-01. In version 1.x of the Azure Native provider, it used API version 2021-03-01. Other available API versions: 2021-05-01, 2021-06-01-preview.

Example Usage

Create a SQL Analytics pool

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sqlPool = new AzureNative.Synapse.SqlPool("sqlPool", new()
{
Collation = "",
CreateMode = "",
Location = "Southeast Asia",
MaxSizeBytes = 0,
RecoverableDatabaseId = "",
ResourceGroupName = "ExampleResourceGroup",
Sku = new AzureNative.Synapse.Inputs.SkuArgs
{
Name = "",
Tier = "",
},
SourceDatabaseId = "",
SqlPoolName = "ExampleSqlPool",
StorageAccountType = AzureNative.Synapse.StorageAccountType.LRS,
Tags = null,
WorkspaceName = "ExampleWorkspace",
});
});
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.NewSqlPool(ctx, "sqlPool", &synapse.SqlPoolArgs{
Collation: pulumi.String(""),
CreateMode: pulumi.String(""),
Location: pulumi.String("Southeast Asia"),
MaxSizeBytes: pulumi.Float64(0),
RecoverableDatabaseId: pulumi.String(""),
ResourceGroupName: pulumi.String("ExampleResourceGroup"),
Sku: &synapse.SkuArgs{
Name: pulumi.String(""),
Tier: pulumi.String(""),
},
SourceDatabaseId: pulumi.String(""),
SqlPoolName: pulumi.String("ExampleSqlPool"),
StorageAccountType: pulumi.String(synapse.StorageAccountTypeLRS),
Tags: pulumi.StringMap{},
WorkspaceName: pulumi.String("ExampleWorkspace"),
})
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.SqlPool;
import com.pulumi.azurenative.synapse.SqlPoolArgs;
import com.pulumi.azurenative.synapse.inputs.SkuArgs;
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 sqlPool = new SqlPool("sqlPool", SqlPoolArgs.builder()
.collation("")
.createMode("")
.location("Southeast Asia")
.maxSizeBytes(0)
.recoverableDatabaseId("")
.resourceGroupName("ExampleResourceGroup")
.sku(SkuArgs.builder()
.name("")
.tier("")
.build())
.sourceDatabaseId("")
.sqlPoolName("ExampleSqlPool")
.storageAccountType("LRS")
.tags()
.workspaceName("ExampleWorkspace")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:synapse:SqlPool ExampleSqlPool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}

Constructors

Link copied to clipboard
constructor(collation: Output<String>? = null, createMode: Output<Either<String, CreateMode>>? = null, location: Output<String>? = null, maxSizeBytes: Output<Double>? = null, provisioningState: Output<String>? = null, recoverableDatabaseId: Output<String>? = null, resourceGroupName: Output<String>? = null, restorePointInTime: Output<String>? = null, sku: Output<SkuArgs>? = null, sourceDatabaseDeletionDate: Output<String>? = null, sourceDatabaseId: Output<String>? = null, sqlPoolName: Output<String>? = null, storageAccountType: Output<Either<String, StorageAccountType>>? = null, tags: Output<Map<String, String>>? = null, workspaceName: Output<String>? = null)

Properties

Link copied to clipboard
val collation: Output<String>? = null

Collation mode

Link copied to clipboard
val createMode: Output<Either<String, CreateMode>>? = null

Specifies the mode of sql pool creation. Default: regular sql pool creation. PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool. sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be specified. Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the recoverableDatabaseId to restore. Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val maxSizeBytes: Output<Double>? = null

Maximum size in bytes

Link copied to clipboard
val provisioningState: Output<String>? = null

Resource state

Link copied to clipboard
val recoverableDatabaseId: Output<String>? = null

Backup database to restore from

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val restorePointInTime: Output<String>? = null

Snapshot time to restore

Link copied to clipboard
val sku: Output<SkuArgs>? = null

SQL pool SKU

Link copied to clipboard
val sourceDatabaseDeletionDate: Output<String>? = null

Specifies the time that the sql pool was deleted

Link copied to clipboard
val sourceDatabaseId: Output<String>? = null

Source database to create from

Link copied to clipboard
val sqlPoolName: Output<String>? = null

SQL pool name

Link copied to clipboard
val storageAccountType: Output<Either<String, StorageAccountType>>? = null

The storage account type used to store backups for this sql pool.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val workspaceName: Output<String>? = null

The name of the workspace.

Functions

Link copied to clipboard
open override fun toJava(): SqlPoolArgs