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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.synapse.kotlin
import com.pulumi.azurenative.synapse.SqlPoolArgs.builder
import com.pulumi.azurenative.synapse.kotlin.enums.CreateMode
import com.pulumi.azurenative.synapse.kotlin.enums.StorageAccountType
import com.pulumi.azurenative.synapse.kotlin.inputs.SkuArgs
import com.pulumi.azurenative.synapse.kotlin.inputs.SkuArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A SQL Analytics pool
* Azure REST API version: 2021-06-01. Prior API version in Azure Native 1.x: 2021-03-01.
* Other available API versions: 2021-05-01, 2021-06-01-preview.
* ## Example Usage
* ### Create a SQL Analytics pool
* ```csharp
* 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",
* });
* });
* ```
* ```go
* 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: nil,
* WorkspaceName: pulumi.String("ExampleWorkspace"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* 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.
* ```sh
* $ pulumi import azure-native:synapse:SqlPool ExampleSqlPool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}
* ```
* @property collation Collation mode
* @property createMode 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.
* @property location The geo-location where the resource lives
* @property maxSizeBytes Maximum size in bytes
* @property provisioningState Resource state
* @property recoverableDatabaseId Backup database to restore from
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property restorePointInTime Snapshot time to restore
* @property sku SQL pool SKU
* @property sourceDatabaseDeletionDate Specifies the time that the sql pool was deleted
* @property sourceDatabaseId Source database to create from
* @property sqlPoolName SQL pool name
* @property storageAccountType The storage account type used to store backups for this sql pool.
* @property tags Resource tags.
* @property workspaceName The name of the workspace.
*/
public data class SqlPoolArgs(
public val collation: Output? = null,
public val createMode: Output>? = null,
public val location: Output? = null,
public val maxSizeBytes: Output? = null,
public val provisioningState: Output? = null,
public val recoverableDatabaseId: Output? = null,
public val resourceGroupName: Output? = null,
public val restorePointInTime: Output? = null,
public val sku: Output? = null,
public val sourceDatabaseDeletionDate: Output? = null,
public val sourceDatabaseId: Output? = null,
public val sqlPoolName: Output? = null,
public val storageAccountType: Output>? = null,
public val tags: Output