azure-native.sql.TransparentDataEncryption

Explore with Pulumi AI

Represents a database transparent data encryption configuration. API Version: 2014-04-01.

Example Usage

Create or update a database's transparent data encryption configuration

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var transparentDataEncryption = new AzureNative.Sql.TransparentDataEncryption("transparentDataEncryption", new()
    {
        DatabaseName = "sqlcrudtest-9187",
        ResourceGroupName = "sqlcrudtest-6852",
        ServerName = "sqlcrudtest-2080",
        Status = "Enabled",
        TransparentDataEncryptionName = "current",
    });

});
package main

import (
	sql "github.com/pulumi/pulumi-azure-native/sdk/go/azure/sql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sql.NewTransparentDataEncryption(ctx, "transparentDataEncryption", &sql.TransparentDataEncryptionArgs{
			DatabaseName:                  pulumi.String("sqlcrudtest-9187"),
			ResourceGroupName:             pulumi.String("sqlcrudtest-6852"),
			ServerName:                    pulumi.String("sqlcrudtest-2080"),
			Status:                        pulumi.String("Enabled"),
			TransparentDataEncryptionName: pulumi.String("current"),
		})
		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.sql.TransparentDataEncryption;
import com.pulumi.azurenative.sql.TransparentDataEncryptionArgs;
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 transparentDataEncryption = new TransparentDataEncryption("transparentDataEncryption", TransparentDataEncryptionArgs.builder()        
            .databaseName("sqlcrudtest-9187")
            .resourceGroupName("sqlcrudtest-6852")
            .serverName("sqlcrudtest-2080")
            .status("Enabled")
            .transparentDataEncryptionName("current")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

transparent_data_encryption = azure_native.sql.TransparentDataEncryption("transparentDataEncryption",
    database_name="sqlcrudtest-9187",
    resource_group_name="sqlcrudtest-6852",
    server_name="sqlcrudtest-2080",
    status="Enabled",
    transparent_data_encryption_name="current")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const transparentDataEncryption = new azure_native.sql.TransparentDataEncryption("transparentDataEncryption", {
    databaseName: "sqlcrudtest-9187",
    resourceGroupName: "sqlcrudtest-6852",
    serverName: "sqlcrudtest-2080",
    status: "Enabled",
    transparentDataEncryptionName: "current",
});
resources:
  transparentDataEncryption:
    type: azure-native:sql:TransparentDataEncryption
    properties:
      databaseName: sqlcrudtest-9187
      resourceGroupName: sqlcrudtest-6852
      serverName: sqlcrudtest-2080
      status: Enabled
      transparentDataEncryptionName: current

Create TransparentDataEncryption Resource

new TransparentDataEncryption(name: string, args: TransparentDataEncryptionArgs, opts?: CustomResourceOptions);
@overload
def TransparentDataEncryption(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              database_name: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              server_name: Optional[str] = None,
                              status: Optional[Union[str, TransparentDataEncryptionStatus]] = None,
                              transparent_data_encryption_name: Optional[str] = None)
@overload
def TransparentDataEncryption(resource_name: str,
                              args: TransparentDataEncryptionArgs,
                              opts: Optional[ResourceOptions] = None)
func NewTransparentDataEncryption(ctx *Context, name string, args TransparentDataEncryptionArgs, opts ...ResourceOption) (*TransparentDataEncryption, error)
public TransparentDataEncryption(string name, TransparentDataEncryptionArgs args, CustomResourceOptions? opts = null)
public TransparentDataEncryption(String name, TransparentDataEncryptionArgs args)
public TransparentDataEncryption(String name, TransparentDataEncryptionArgs args, CustomResourceOptions options)
type: azure-native:sql:TransparentDataEncryption
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TransparentDataEncryptionArgs
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 TransparentDataEncryptionArgs
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 TransparentDataEncryptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TransparentDataEncryptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TransparentDataEncryptionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

TransparentDataEncryption Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The TransparentDataEncryption resource accepts the following input properties:

DatabaseName string

The name of the database for which setting the transparent data encryption applies.

ResourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

ServerName string

The name of the server.

Status string | Pulumi.AzureNative.Sql.TransparentDataEncryptionStatus

The status of the database transparent data encryption.

TransparentDataEncryptionName string

The name of the transparent data encryption configuration.

DatabaseName string

The name of the database for which setting the transparent data encryption applies.

ResourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

ServerName string

The name of the server.

Status string | TransparentDataEncryptionStatus

The status of the database transparent data encryption.

TransparentDataEncryptionName string

The name of the transparent data encryption configuration.

databaseName String

The name of the database for which setting the transparent data encryption applies.

resourceGroupName String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName String

The name of the server.

status String | TransparentDataEncryptionStatus

The status of the database transparent data encryption.

transparentDataEncryptionName String

The name of the transparent data encryption configuration.

databaseName string

The name of the database for which setting the transparent data encryption applies.

resourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName string

The name of the server.

status string | TransparentDataEncryptionStatus

The status of the database transparent data encryption.

transparentDataEncryptionName string

The name of the transparent data encryption configuration.

database_name str

The name of the database for which setting the transparent data encryption applies.

resource_group_name str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

server_name str

The name of the server.

status str | TransparentDataEncryptionStatus

The status of the database transparent data encryption.

transparent_data_encryption_name str

The name of the transparent data encryption configuration.

databaseName String

The name of the database for which setting the transparent data encryption applies.

resourceGroupName String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName String

The name of the server.

status String | "Enabled" | "Disabled"

The status of the database transparent data encryption.

transparentDataEncryptionName String

The name of the transparent data encryption configuration.

Outputs

All input properties are implicitly available as output properties. Additionally, the TransparentDataEncryption resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Location string

Resource location.

Name string

Resource name.

Type string

Resource type.

Id string

The provider-assigned unique ID for this managed resource.

Location string

Resource location.

Name string

Resource name.

Type string

Resource type.

id String

The provider-assigned unique ID for this managed resource.

location String

Resource location.

name String

Resource name.

type String

Resource type.

id string

The provider-assigned unique ID for this managed resource.

location string

Resource location.

name string

Resource name.

type string

Resource type.

id str

The provider-assigned unique ID for this managed resource.

location str

Resource location.

name str

Resource name.

type str

Resource type.

id String

The provider-assigned unique ID for this managed resource.

location String

Resource location.

name String

Resource name.

type String

Resource type.

Supporting Types

TransparentDataEncryptionStatus

Enabled
Enabled
Disabled
Disabled
TransparentDataEncryptionStatusEnabled
Enabled
TransparentDataEncryptionStatusDisabled
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:sql:TransparentDataEncryption current /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0