azure-native.synapse.SqlPoolTransparentDataEncryption
Explore with Pulumi AI
Represents a Sql pool transparent data encryption configuration. Azure REST API version: 2021-06-01. Prior API version in Azure Native 1.x: 2021-03-01.
Other available API versions: 2021-06-01-preview.
Example Usage
Create or update a Sql pool's transparent data encryption configuration
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sqlPoolTransparentDataEncryption = new AzureNative.Synapse.SqlPoolTransparentDataEncryption("sqlPoolTransparentDataEncryption", new()
{
ResourceGroupName = "sqlcrudtest-6852",
SqlPoolName = "sqlcrudtest-9187",
Status = AzureNative.Synapse.TransparentDataEncryptionStatus.Enabled,
TransparentDataEncryptionName = "current",
WorkspaceName = "sqlcrudtest-2080",
});
});
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.NewSqlPoolTransparentDataEncryption(ctx, "sqlPoolTransparentDataEncryption", &synapse.SqlPoolTransparentDataEncryptionArgs{
ResourceGroupName: pulumi.String("sqlcrudtest-6852"),
SqlPoolName: pulumi.String("sqlcrudtest-9187"),
Status: pulumi.String(synapse.TransparentDataEncryptionStatusEnabled),
TransparentDataEncryptionName: pulumi.String("current"),
WorkspaceName: pulumi.String("sqlcrudtest-2080"),
})
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.SqlPoolTransparentDataEncryption;
import com.pulumi.azurenative.synapse.SqlPoolTransparentDataEncryptionArgs;
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 sqlPoolTransparentDataEncryption = new SqlPoolTransparentDataEncryption("sqlPoolTransparentDataEncryption", SqlPoolTransparentDataEncryptionArgs.builder()
.resourceGroupName("sqlcrudtest-6852")
.sqlPoolName("sqlcrudtest-9187")
.status("Enabled")
.transparentDataEncryptionName("current")
.workspaceName("sqlcrudtest-2080")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
sql_pool_transparent_data_encryption = azure_native.synapse.SqlPoolTransparentDataEncryption("sqlPoolTransparentDataEncryption",
resource_group_name="sqlcrudtest-6852",
sql_pool_name="sqlcrudtest-9187",
status=azure_native.synapse.TransparentDataEncryptionStatus.ENABLED,
transparent_data_encryption_name="current",
workspace_name="sqlcrudtest-2080")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sqlPoolTransparentDataEncryption = new azure_native.synapse.SqlPoolTransparentDataEncryption("sqlPoolTransparentDataEncryption", {
resourceGroupName: "sqlcrudtest-6852",
sqlPoolName: "sqlcrudtest-9187",
status: azure_native.synapse.TransparentDataEncryptionStatus.Enabled,
transparentDataEncryptionName: "current",
workspaceName: "sqlcrudtest-2080",
});
resources:
sqlPoolTransparentDataEncryption:
type: azure-native:synapse:SqlPoolTransparentDataEncryption
properties:
resourceGroupName: sqlcrudtest-6852
sqlPoolName: sqlcrudtest-9187
status: Enabled
transparentDataEncryptionName: current
workspaceName: sqlcrudtest-2080
Create SqlPoolTransparentDataEncryption Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlPoolTransparentDataEncryption(name: string, args: SqlPoolTransparentDataEncryptionArgs, opts?: CustomResourceOptions);
@overload
def SqlPoolTransparentDataEncryption(resource_name: str,
args: SqlPoolTransparentDataEncryptionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SqlPoolTransparentDataEncryption(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
sql_pool_name: Optional[str] = None,
workspace_name: Optional[str] = None,
status: Optional[Union[str, TransparentDataEncryptionStatus]] = None,
transparent_data_encryption_name: Optional[str] = None)
func NewSqlPoolTransparentDataEncryption(ctx *Context, name string, args SqlPoolTransparentDataEncryptionArgs, opts ...ResourceOption) (*SqlPoolTransparentDataEncryption, error)
public SqlPoolTransparentDataEncryption(string name, SqlPoolTransparentDataEncryptionArgs args, CustomResourceOptions? opts = null)
public SqlPoolTransparentDataEncryption(String name, SqlPoolTransparentDataEncryptionArgs args)
public SqlPoolTransparentDataEncryption(String name, SqlPoolTransparentDataEncryptionArgs args, CustomResourceOptions options)
type: azure-native:synapse:SqlPoolTransparentDataEncryption
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SqlPoolTransparentDataEncryptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SqlPoolTransparentDataEncryptionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SqlPoolTransparentDataEncryptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlPoolTransparentDataEncryptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlPoolTransparentDataEncryptionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sqlPoolTransparentDataEncryptionResource = new AzureNative.Synapse.SqlPoolTransparentDataEncryption("sqlPoolTransparentDataEncryptionResource", new()
{
ResourceGroupName = "string",
SqlPoolName = "string",
WorkspaceName = "string",
Status = "string",
TransparentDataEncryptionName = "string",
});
example, err := synapse.NewSqlPoolTransparentDataEncryption(ctx, "sqlPoolTransparentDataEncryptionResource", &synapse.SqlPoolTransparentDataEncryptionArgs{
ResourceGroupName: pulumi.String("string"),
SqlPoolName: pulumi.String("string"),
WorkspaceName: pulumi.String("string"),
Status: pulumi.String("string"),
TransparentDataEncryptionName: pulumi.String("string"),
})
var sqlPoolTransparentDataEncryptionResource = new SqlPoolTransparentDataEncryption("sqlPoolTransparentDataEncryptionResource", SqlPoolTransparentDataEncryptionArgs.builder()
.resourceGroupName("string")
.sqlPoolName("string")
.workspaceName("string")
.status("string")
.transparentDataEncryptionName("string")
.build());
sql_pool_transparent_data_encryption_resource = azure_native.synapse.SqlPoolTransparentDataEncryption("sqlPoolTransparentDataEncryptionResource",
resource_group_name="string",
sql_pool_name="string",
workspace_name="string",
status="string",
transparent_data_encryption_name="string")
const sqlPoolTransparentDataEncryptionResource = new azure_native.synapse.SqlPoolTransparentDataEncryption("sqlPoolTransparentDataEncryptionResource", {
resourceGroupName: "string",
sqlPoolName: "string",
workspaceName: "string",
status: "string",
transparentDataEncryptionName: "string",
});
type: azure-native:synapse:SqlPoolTransparentDataEncryption
properties:
resourceGroupName: string
sqlPoolName: string
status: string
transparentDataEncryptionName: string
workspaceName: string
SqlPoolTransparentDataEncryption Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SqlPoolTransparentDataEncryption resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sql
Pool stringName - SQL pool name
- Workspace
Name string - The name of the workspace.
- Status
string | Pulumi.
Azure Native. Synapse. Transparent Data Encryption Status - The status of the database transparent data encryption.
- Transparent
Data stringEncryption Name - The name of the transparent data encryption configuration.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Sql
Pool stringName - SQL pool name
- Workspace
Name string - The name of the workspace.
- Status
string | Transparent
Data Encryption Status - The status of the database transparent data encryption.
- Transparent
Data stringEncryption Name - The name of the transparent data encryption configuration.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sql
Pool StringName - SQL pool name
- workspace
Name String - The name of the workspace.
- status
String | Transparent
Data Encryption Status - The status of the database transparent data encryption.
- transparent
Data StringEncryption Name - The name of the transparent data encryption configuration.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- sql
Pool stringName - SQL pool name
- workspace
Name string - The name of the workspace.
- status
string | Transparent
Data Encryption Status - The status of the database transparent data encryption.
- transparent
Data stringEncryption Name - The name of the transparent data encryption configuration.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- sql_
pool_ strname - SQL pool name
- workspace_
name str - The name of the workspace.
- status
str | Transparent
Data Encryption Status - The status of the database transparent data encryption.
- transparent_
data_ strencryption_ name - The name of the transparent data encryption configuration.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- sql
Pool StringName - SQL pool name
- workspace
Name String - The name of the workspace.
- status String | "Enabled" | "Disabled"
- The status of the database transparent data encryption.
- transparent
Data StringEncryption Name - The name of the transparent data encryption configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlPoolTransparentDataEncryption resource produces the following output properties:
Supporting Types
TransparentDataEncryptionStatus, TransparentDataEncryptionStatusArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Transparent
Data Encryption Status Enabled - Enabled
- Transparent
Data Encryption Status Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:synapse:SqlPoolTransparentDataEncryption current /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/transparentDataEncryption/{transparentDataEncryptionName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0