import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Synapse SQL Pool. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAccount = new azure.storage.Account("example", { * name: "examplestorageacc", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * accountKind: "BlobStorage", * }); * const exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("example", { * name: "example", * storageAccountId: exampleAccount.id, * }); * const exampleWorkspace = new azure.synapse.Workspace("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * storageDataLakeGen2FilesystemId: exampleDataLakeGen2Filesystem.id, * sqlAdministratorLogin: "sqladminuser", * sqlAdministratorLoginPassword: "H@Sh1CoR3!", * identity: { * type: "SystemAssigned", * }, * }); * const exampleSqlPool = new azure.synapse.SqlPool("example", { * name: "examplesqlpool", * synapseWorkspaceId: exampleWorkspace.id, * skuName: "DW100c", * createMode: "Default", * storageAccountType: "GRS", * }); * ``` * * ## 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 * ``` */ export declare class SqlPool extends pulumi.CustomResource { /** * Get an existing SqlPool 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 Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SqlPoolState, opts?: pulumi.CustomResourceOptions): SqlPool; /** * Returns true if the given object is an instance of SqlPool. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SqlPool; /** * The name of the collation to use with this pool, only applicable when `createMode` is set to `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new Synapse SQL Pool to be created. */ readonly collation: pulumi.Output; /** * 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. */ readonly createMode: pulumi.Output; /** * Is transparent data encryption enabled? */ readonly dataEncrypted: pulumi.Output; /** * Is geo-backup policy enabled? Defaults to `true`. */ readonly geoBackupPolicyEnabled: pulumi.Output; /** * The name which should be used for this Synapse SQL Pool. Changing this forces a new Synapse SQL Pool to be created. */ readonly name: pulumi.Output; /** * The ID of the Synapse SQL Pool or SQL Database which is to back up, only applicable when `createMode` is set to `Recovery`. Changing this forces a new Synapse SQL Pool to be created. */ readonly recoveryDatabaseId: pulumi.Output; /** * A `restore` block as defined below. Only applicable when `createMode` is set to `PointInTimeRestore`. Changing this forces a new Synapse SQL Pool to be created. */ readonly restore: pulumi.Output; /** * 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`. */ readonly skuName: pulumi.Output; /** * 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. */ readonly storageAccountType: pulumi.Output; /** * The ID of Synapse Workspace within which this SQL Pool should be created. Changing this forces a new Synapse SQL Pool to be created. */ readonly synapseWorkspaceId: pulumi.Output; /** * A mapping of tags which should be assigned to the Synapse SQL Pool. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a SqlPool resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SqlPoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SqlPool resources. */ export interface SqlPoolState { /** * The name of the collation to use with this pool, only applicable when `createMode` is set to `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new Synapse SQL Pool to be created. */ collation?: pulumi.Input; /** * 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. */ createMode?: pulumi.Input; /** * Is transparent data encryption enabled? */ dataEncrypted?: pulumi.Input; /** * Is geo-backup policy enabled? Defaults to `true`. */ geoBackupPolicyEnabled?: pulumi.Input; /** * The name which should be used for this Synapse SQL Pool. Changing this forces a new Synapse SQL Pool to be created. */ name?: pulumi.Input; /** * The ID of the Synapse SQL Pool or SQL Database which is to back up, only applicable when `createMode` is set to `Recovery`. Changing this forces a new Synapse SQL Pool to be created. */ recoveryDatabaseId?: pulumi.Input; /** * A `restore` block as defined below. Only applicable when `createMode` is set to `PointInTimeRestore`. Changing this forces a new Synapse SQL Pool to be created. */ restore?: pulumi.Input; /** * 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`. */ skuName?: pulumi.Input; /** * 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. */ storageAccountType?: pulumi.Input; /** * The ID of Synapse Workspace within which this SQL Pool should be created. Changing this forces a new Synapse SQL Pool to be created. */ synapseWorkspaceId?: pulumi.Input; /** * A mapping of tags which should be assigned to the Synapse SQL Pool. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a SqlPool resource. */ export interface SqlPoolArgs { /** * The name of the collation to use with this pool, only applicable when `createMode` is set to `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new Synapse SQL Pool to be created. */ collation?: pulumi.Input; /** * 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. */ createMode?: pulumi.Input; /** * Is transparent data encryption enabled? */ dataEncrypted?: pulumi.Input; /** * Is geo-backup policy enabled? Defaults to `true`. */ geoBackupPolicyEnabled?: pulumi.Input; /** * The name which should be used for this Synapse SQL Pool. Changing this forces a new Synapse SQL Pool to be created. */ name?: pulumi.Input; /** * The ID of the Synapse SQL Pool or SQL Database which is to back up, only applicable when `createMode` is set to `Recovery`. Changing this forces a new Synapse SQL Pool to be created. */ recoveryDatabaseId?: pulumi.Input; /** * A `restore` block as defined below. Only applicable when `createMode` is set to `PointInTimeRestore`. Changing this forces a new Synapse SQL Pool to be created. */ restore?: pulumi.Input; /** * 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`. */ skuName: pulumi.Input; /** * 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. */ storageAccountType: pulumi.Input; /** * The ID of Synapse Workspace within which this SQL Pool should be created. Changing this forces a new Synapse SQL Pool to be created. */ synapseWorkspaceId: pulumi.Input; /** * A mapping of tags which should be assigned to the Synapse SQL Pool. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }