1. Packages
  2. Confluent Provider
  3. API Docs
  4. SchemaRegistryDek
Confluent v2.24.0 published on Saturday, Apr 19, 2025 by Pulumi

confluentcloud.SchemaRegistryDek

Explore with Pulumi AI

General Availability

confluentcloud.SchemaRegistryDek provides a Schema Registry Data Encryption Key (DEK) resource that enables creating, editing, and deleting Schema Registry Data Encryption Keys on Confluent Cloud.

Example Usage

Option #1: Manage multiple Schema Registry clusters in the same Pulumi Stack

import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";

const myDek = new confluentcloud.SchemaRegistryDek("my_dek", {
    schemaRegistryCluster: {
        id: essentials.id,
    },
    restEndpoint: essentials.restEndpoint,
    credentials: {
        key: "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
        secret: "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
    },
    kekName: "my_kek",
    subjectName: "my_subject",
    hardDelete: true,
});
Copy
import pulumi
import pulumi_confluentcloud as confluentcloud

my_dek = confluentcloud.SchemaRegistryDek("my_dek",
    schema_registry_cluster={
        "id": essentials["id"],
    },
    rest_endpoint=essentials["restEndpoint"],
    credentials={
        "key": "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
        "secret": "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
    },
    kek_name="my_kek",
    subject_name="my_subject",
    hard_delete=True)
Copy
package main

import (
	"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := confluentcloud.NewSchemaRegistryDek(ctx, "my_dek", &confluentcloud.SchemaRegistryDekArgs{
			SchemaRegistryCluster: &confluentcloud.SchemaRegistryDekSchemaRegistryClusterArgs{
				Id: pulumi.Any(essentials.Id),
			},
			RestEndpoint: pulumi.Any(essentials.RestEndpoint),
			Credentials: &confluentcloud.SchemaRegistryDekCredentialsArgs{
				Key:    pulumi.String("<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>"),
				Secret: pulumi.String("<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>"),
			},
			KekName:     pulumi.String("my_kek"),
			SubjectName: pulumi.String("my_subject"),
			HardDelete:  pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;

return await Deployment.RunAsync(() => 
{
    var myDek = new ConfluentCloud.SchemaRegistryDek("my_dek", new()
    {
        SchemaRegistryCluster = new ConfluentCloud.Inputs.SchemaRegistryDekSchemaRegistryClusterArgs
        {
            Id = essentials.Id,
        },
        RestEndpoint = essentials.RestEndpoint,
        Credentials = new ConfluentCloud.Inputs.SchemaRegistryDekCredentialsArgs
        {
            Key = "<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>",
            Secret = "<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>",
        },
        KekName = "my_kek",
        SubjectName = "my_subject",
        HardDelete = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.SchemaRegistryDek;
import com.pulumi.confluentcloud.SchemaRegistryDekArgs;
import com.pulumi.confluentcloud.inputs.SchemaRegistryDekSchemaRegistryClusterArgs;
import com.pulumi.confluentcloud.inputs.SchemaRegistryDekCredentialsArgs;
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 myDek = new SchemaRegistryDek("myDek", SchemaRegistryDekArgs.builder()
            .schemaRegistryCluster(SchemaRegistryDekSchemaRegistryClusterArgs.builder()
                .id(essentials.id())
                .build())
            .restEndpoint(essentials.restEndpoint())
            .credentials(SchemaRegistryDekCredentialsArgs.builder()
                .key("<Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>")
                .secret("<Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>")
                .build())
            .kekName("my_kek")
            .subjectName("my_subject")
            .hardDelete(true)
            .build());

    }
}
Copy
resources:
  myDek:
    type: confluentcloud:SchemaRegistryDek
    name: my_dek
    properties:
      schemaRegistryCluster:
        id: ${essentials.id}
      restEndpoint: ${essentials.restEndpoint}
      credentials:
        key: <Schema Registry API Key for data.confluent_schema_registry_cluster.essentials>
        secret: <Schema Registry API Secret for data.confluent_schema_registry_cluster.essentials>
      kekName: my_kek
      subjectName: my_subject
      hardDelete: true
Copy

Option #2: Manage a single Schema Registry cluster in the same Pulumi Stack

import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";

const myDek = new confluentcloud.SchemaRegistryDek("my_dek", {
    kekName: "my_kek",
    subjectName: "my_subject",
    hardDelete: true,
});
Copy
import pulumi
import pulumi_confluentcloud as confluentcloud

my_dek = confluentcloud.SchemaRegistryDek("my_dek",
    kek_name="my_kek",
    subject_name="my_subject",
    hard_delete=True)
Copy
package main

import (
	"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := confluentcloud.NewSchemaRegistryDek(ctx, "my_dek", &confluentcloud.SchemaRegistryDekArgs{
			KekName:     pulumi.String("my_kek"),
			SubjectName: pulumi.String("my_subject"),
			HardDelete:  pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;

return await Deployment.RunAsync(() => 
{
    var myDek = new ConfluentCloud.SchemaRegistryDek("my_dek", new()
    {
        KekName = "my_kek",
        SubjectName = "my_subject",
        HardDelete = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.SchemaRegistryDek;
import com.pulumi.confluentcloud.SchemaRegistryDekArgs;
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 myDek = new SchemaRegistryDek("myDek", SchemaRegistryDekArgs.builder()
            .kekName("my_kek")
            .subjectName("my_subject")
            .hardDelete(true)
            .build());

    }
}
Copy
resources:
  myDek:
    type: confluentcloud:SchemaRegistryDek
    name: my_dek
    properties:
      kekName: my_kek
      subjectName: my_subject
      hardDelete: true
Copy

Getting Started

The following end-to-end example might help to get started with field-level encryption:

  • field-level-encryption-schema

Create SchemaRegistryDek Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SchemaRegistryDek(name: string, args: SchemaRegistryDekArgs, opts?: CustomResourceOptions);
@overload
def SchemaRegistryDek(resource_name: str,
                      args: SchemaRegistryDekArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def SchemaRegistryDek(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      kek_name: Optional[str] = None,
                      subject_name: Optional[str] = None,
                      algorithm: Optional[str] = None,
                      credentials: Optional[SchemaRegistryDekCredentialsArgs] = None,
                      encrypted_key_material: Optional[str] = None,
                      hard_delete: Optional[bool] = None,
                      rest_endpoint: Optional[str] = None,
                      schema_registry_cluster: Optional[SchemaRegistryDekSchemaRegistryClusterArgs] = None,
                      version: Optional[int] = None)
func NewSchemaRegistryDek(ctx *Context, name string, args SchemaRegistryDekArgs, opts ...ResourceOption) (*SchemaRegistryDek, error)
public SchemaRegistryDek(string name, SchemaRegistryDekArgs args, CustomResourceOptions? opts = null)
public SchemaRegistryDek(String name, SchemaRegistryDekArgs args)
public SchemaRegistryDek(String name, SchemaRegistryDekArgs args, CustomResourceOptions options)
type: confluentcloud:SchemaRegistryDek
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SchemaRegistryDekArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SchemaRegistryDekArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SchemaRegistryDekArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SchemaRegistryDekArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SchemaRegistryDekArgs
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 schemaRegistryDekResource = new ConfluentCloud.SchemaRegistryDek("schemaRegistryDekResource", new()
{
    KekName = "string",
    SubjectName = "string",
    Algorithm = "string",
    Credentials = new ConfluentCloud.Inputs.SchemaRegistryDekCredentialsArgs
    {
        Key = "string",
        Secret = "string",
    },
    EncryptedKeyMaterial = "string",
    HardDelete = false,
    RestEndpoint = "string",
    SchemaRegistryCluster = new ConfluentCloud.Inputs.SchemaRegistryDekSchemaRegistryClusterArgs
    {
        Id = "string",
    },
    Version = 0,
});
Copy
example, err := confluentcloud.NewSchemaRegistryDek(ctx, "schemaRegistryDekResource", &confluentcloud.SchemaRegistryDekArgs{
	KekName:     pulumi.String("string"),
	SubjectName: pulumi.String("string"),
	Algorithm:   pulumi.String("string"),
	Credentials: &confluentcloud.SchemaRegistryDekCredentialsArgs{
		Key:    pulumi.String("string"),
		Secret: pulumi.String("string"),
	},
	EncryptedKeyMaterial: pulumi.String("string"),
	HardDelete:           pulumi.Bool(false),
	RestEndpoint:         pulumi.String("string"),
	SchemaRegistryCluster: &confluentcloud.SchemaRegistryDekSchemaRegistryClusterArgs{
		Id: pulumi.String("string"),
	},
	Version: pulumi.Int(0),
})
Copy
var schemaRegistryDekResource = new SchemaRegistryDek("schemaRegistryDekResource", SchemaRegistryDekArgs.builder()
    .kekName("string")
    .subjectName("string")
    .algorithm("string")
    .credentials(SchemaRegistryDekCredentialsArgs.builder()
        .key("string")
        .secret("string")
        .build())
    .encryptedKeyMaterial("string")
    .hardDelete(false)
    .restEndpoint("string")
    .schemaRegistryCluster(SchemaRegistryDekSchemaRegistryClusterArgs.builder()
        .id("string")
        .build())
    .version(0)
    .build());
Copy
schema_registry_dek_resource = confluentcloud.SchemaRegistryDek("schemaRegistryDekResource",
    kek_name="string",
    subject_name="string",
    algorithm="string",
    credentials={
        "key": "string",
        "secret": "string",
    },
    encrypted_key_material="string",
    hard_delete=False,
    rest_endpoint="string",
    schema_registry_cluster={
        "id": "string",
    },
    version=0)
Copy
const schemaRegistryDekResource = new confluentcloud.SchemaRegistryDek("schemaRegistryDekResource", {
    kekName: "string",
    subjectName: "string",
    algorithm: "string",
    credentials: {
        key: "string",
        secret: "string",
    },
    encryptedKeyMaterial: "string",
    hardDelete: false,
    restEndpoint: "string",
    schemaRegistryCluster: {
        id: "string",
    },
    version: 0,
});
Copy
type: confluentcloud:SchemaRegistryDek
properties:
    algorithm: string
    credentials:
        key: string
        secret: string
    encryptedKeyMaterial: string
    hardDelete: false
    kekName: string
    restEndpoint: string
    schemaRegistryCluster:
        id: string
    subjectName: string
    version: 0
Copy

SchemaRegistryDek 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 SchemaRegistryDek resource accepts the following input properties:

KekName
This property is required.
Changes to this property will trigger replacement.
string
The name of the KEK used to encrypt this DEK.
SubjectName
This property is required.
Changes to this property will trigger replacement.
string
The subject for this DEK.
Algorithm string
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
Credentials Pulumi.ConfluentCloud.Inputs.SchemaRegistryDekCredentials
The Cluster API Credentials.
EncryptedKeyMaterial string
The encrypted key material for the DEK.
HardDelete bool
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
RestEndpoint Changes to this property will trigger replacement. string
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
SchemaRegistryCluster Changes to this property will trigger replacement. Pulumi.ConfluentCloud.Inputs.SchemaRegistryDekSchemaRegistryCluster
Version int
The version of this DEK. Defaults to 1.
KekName
This property is required.
Changes to this property will trigger replacement.
string
The name of the KEK used to encrypt this DEK.
SubjectName
This property is required.
Changes to this property will trigger replacement.
string
The subject for this DEK.
Algorithm string
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
Credentials SchemaRegistryDekCredentialsArgs
The Cluster API Credentials.
EncryptedKeyMaterial string
The encrypted key material for the DEK.
HardDelete bool
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
RestEndpoint Changes to this property will trigger replacement. string
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
SchemaRegistryCluster Changes to this property will trigger replacement. SchemaRegistryDekSchemaRegistryClusterArgs
Version int
The version of this DEK. Defaults to 1.
kekName
This property is required.
Changes to this property will trigger replacement.
String
The name of the KEK used to encrypt this DEK.
subjectName
This property is required.
Changes to this property will trigger replacement.
String
The subject for this DEK.
algorithm String
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
credentials SchemaRegistryDekCredentials
The Cluster API Credentials.
encryptedKeyMaterial String
The encrypted key material for the DEK.
hardDelete Boolean
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
restEndpoint Changes to this property will trigger replacement. String
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
schemaRegistryCluster Changes to this property will trigger replacement. SchemaRegistryDekSchemaRegistryCluster
version Integer
The version of this DEK. Defaults to 1.
kekName
This property is required.
Changes to this property will trigger replacement.
string
The name of the KEK used to encrypt this DEK.
subjectName
This property is required.
Changes to this property will trigger replacement.
string
The subject for this DEK.
algorithm string
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
credentials SchemaRegistryDekCredentials
The Cluster API Credentials.
encryptedKeyMaterial string
The encrypted key material for the DEK.
hardDelete boolean
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
restEndpoint Changes to this property will trigger replacement. string
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
schemaRegistryCluster Changes to this property will trigger replacement. SchemaRegistryDekSchemaRegistryCluster
version number
The version of this DEK. Defaults to 1.
kek_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the KEK used to encrypt this DEK.
subject_name
This property is required.
Changes to this property will trigger replacement.
str
The subject for this DEK.
algorithm str
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
credentials SchemaRegistryDekCredentialsArgs
The Cluster API Credentials.
encrypted_key_material str
The encrypted key material for the DEK.
hard_delete bool
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
rest_endpoint Changes to this property will trigger replacement. str
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
schema_registry_cluster Changes to this property will trigger replacement. SchemaRegistryDekSchemaRegistryClusterArgs
version int
The version of this DEK. Defaults to 1.
kekName
This property is required.
Changes to this property will trigger replacement.
String
The name of the KEK used to encrypt this DEK.
subjectName
This property is required.
Changes to this property will trigger replacement.
String
The subject for this DEK.
algorithm String
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
credentials Property Map
The Cluster API Credentials.
encryptedKeyMaterial String
The encrypted key material for the DEK.
hardDelete Boolean
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
restEndpoint Changes to this property will trigger replacement. String
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
schemaRegistryCluster Changes to this property will trigger replacement. Property Map
version Number
The version of this DEK. Defaults to 1.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
KeyMaterial string
(Optional String) The decrypted version of encrypted key material.
Id string
The provider-assigned unique ID for this managed resource.
KeyMaterial string
(Optional String) The decrypted version of encrypted key material.
id String
The provider-assigned unique ID for this managed resource.
keyMaterial String
(Optional String) The decrypted version of encrypted key material.
id string
The provider-assigned unique ID for this managed resource.
keyMaterial string
(Optional String) The decrypted version of encrypted key material.
id str
The provider-assigned unique ID for this managed resource.
key_material str
(Optional String) The decrypted version of encrypted key material.
id String
The provider-assigned unique ID for this managed resource.
keyMaterial String
(Optional String) The decrypted version of encrypted key material.

Look up Existing SchemaRegistryDek Resource

Get an existing SchemaRegistryDek resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SchemaRegistryDekState, opts?: CustomResourceOptions): SchemaRegistryDek
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        algorithm: Optional[str] = None,
        credentials: Optional[SchemaRegistryDekCredentialsArgs] = None,
        encrypted_key_material: Optional[str] = None,
        hard_delete: Optional[bool] = None,
        kek_name: Optional[str] = None,
        key_material: Optional[str] = None,
        rest_endpoint: Optional[str] = None,
        schema_registry_cluster: Optional[SchemaRegistryDekSchemaRegistryClusterArgs] = None,
        subject_name: Optional[str] = None,
        version: Optional[int] = None) -> SchemaRegistryDek
func GetSchemaRegistryDek(ctx *Context, name string, id IDInput, state *SchemaRegistryDekState, opts ...ResourceOption) (*SchemaRegistryDek, error)
public static SchemaRegistryDek Get(string name, Input<string> id, SchemaRegistryDekState? state, CustomResourceOptions? opts = null)
public static SchemaRegistryDek get(String name, Output<String> id, SchemaRegistryDekState state, CustomResourceOptions options)
resources:  _:    type: confluentcloud:SchemaRegistryDek    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Algorithm string
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
Credentials Pulumi.ConfluentCloud.Inputs.SchemaRegistryDekCredentials
The Cluster API Credentials.
EncryptedKeyMaterial string
The encrypted key material for the DEK.
HardDelete bool
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
KekName Changes to this property will trigger replacement. string
The name of the KEK used to encrypt this DEK.
KeyMaterial string
(Optional String) The decrypted version of encrypted key material.
RestEndpoint Changes to this property will trigger replacement. string
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
SchemaRegistryCluster Changes to this property will trigger replacement. Pulumi.ConfluentCloud.Inputs.SchemaRegistryDekSchemaRegistryCluster
SubjectName Changes to this property will trigger replacement. string
The subject for this DEK.
Version int
The version of this DEK. Defaults to 1.
Algorithm string
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
Credentials SchemaRegistryDekCredentialsArgs
The Cluster API Credentials.
EncryptedKeyMaterial string
The encrypted key material for the DEK.
HardDelete bool
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
KekName Changes to this property will trigger replacement. string
The name of the KEK used to encrypt this DEK.
KeyMaterial string
(Optional String) The decrypted version of encrypted key material.
RestEndpoint Changes to this property will trigger replacement. string
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
SchemaRegistryCluster Changes to this property will trigger replacement. SchemaRegistryDekSchemaRegistryClusterArgs
SubjectName Changes to this property will trigger replacement. string
The subject for this DEK.
Version int
The version of this DEK. Defaults to 1.
algorithm String
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
credentials SchemaRegistryDekCredentials
The Cluster API Credentials.
encryptedKeyMaterial String
The encrypted key material for the DEK.
hardDelete Boolean
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
kekName Changes to this property will trigger replacement. String
The name of the KEK used to encrypt this DEK.
keyMaterial String
(Optional String) The decrypted version of encrypted key material.
restEndpoint Changes to this property will trigger replacement. String
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
schemaRegistryCluster Changes to this property will trigger replacement. SchemaRegistryDekSchemaRegistryCluster
subjectName Changes to this property will trigger replacement. String
The subject for this DEK.
version Integer
The version of this DEK. Defaults to 1.
algorithm string
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
credentials SchemaRegistryDekCredentials
The Cluster API Credentials.
encryptedKeyMaterial string
The encrypted key material for the DEK.
hardDelete boolean
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
kekName Changes to this property will trigger replacement. string
The name of the KEK used to encrypt this DEK.
keyMaterial string
(Optional String) The decrypted version of encrypted key material.
restEndpoint Changes to this property will trigger replacement. string
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
schemaRegistryCluster Changes to this property will trigger replacement. SchemaRegistryDekSchemaRegistryCluster
subjectName Changes to this property will trigger replacement. string
The subject for this DEK.
version number
The version of this DEK. Defaults to 1.
algorithm str
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
credentials SchemaRegistryDekCredentialsArgs
The Cluster API Credentials.
encrypted_key_material str
The encrypted key material for the DEK.
hard_delete bool
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
kek_name Changes to this property will trigger replacement. str
The name of the KEK used to encrypt this DEK.
key_material str
(Optional String) The decrypted version of encrypted key material.
rest_endpoint Changes to this property will trigger replacement. str
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
schema_registry_cluster Changes to this property will trigger replacement. SchemaRegistryDekSchemaRegistryClusterArgs
subject_name Changes to this property will trigger replacement. str
The subject for this DEK.
version int
The version of this DEK. Defaults to 1.
algorithm String
Accepted values are: AES128_GCM, AES256_GCM, and AES256_SIV. Defaults to AES256_GCM.
credentials Property Map
The Cluster API Credentials.
encryptedKeyMaterial String
The encrypted key material for the DEK.
hardDelete Boolean
Controls whether a dek should be soft or hard deleted. Set it to true if you want to hard delete a schema registry dek on destroy. Defaults to false (soft delete).
kekName Changes to this property will trigger replacement. String
The name of the KEK used to encrypt this DEK.
keyMaterial String
(Optional String) The decrypted version of encrypted key material.
restEndpoint Changes to this property will trigger replacement. String
The REST endpoint of the Schema Registry cluster, for example, https://psrc-00000.us-central1.gcp.confluent.cloud:443).
schemaRegistryCluster Changes to this property will trigger replacement. Property Map
subjectName Changes to this property will trigger replacement. String
The subject for this DEK.
version Number
The version of this DEK. Defaults to 1.

Supporting Types

SchemaRegistryDekCredentials
, SchemaRegistryDekCredentialsArgs

Key This property is required. string
The Schema Registry API Key.
Secret This property is required. string
The Schema Registry API Secret.
Key This property is required. string
The Schema Registry API Key.
Secret This property is required. string
The Schema Registry API Secret.
key This property is required. String
The Schema Registry API Key.
secret This property is required. String
The Schema Registry API Secret.
key This property is required. string
The Schema Registry API Key.
secret This property is required. string
The Schema Registry API Secret.
key This property is required. str
The Schema Registry API Key.
secret This property is required. str
The Schema Registry API Secret.
key This property is required. String
The Schema Registry API Key.
secret This property is required. String
The Schema Registry API Secret.

SchemaRegistryDekSchemaRegistryCluster
, SchemaRegistryDekSchemaRegistryClusterArgs

Id
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Schema Registry cluster, for example, lsrc-abc123.
Id
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Schema Registry cluster, for example, lsrc-abc123.
id
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Schema Registry cluster, for example, lsrc-abc123.
id
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Schema Registry cluster, for example, lsrc-abc123.
id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Schema Registry cluster, for example, lsrc-abc123.
id
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Schema Registry cluster, for example, lsrc-abc123.

Import

You can import a Schema Registry Key by using the Schema Registry cluster ID, KEK name, Subject, Version and Algorithm in the format <Schema Registry Cluster Id>/<Schema Registry KEK Name>/<Subject>/<Version>/<Algorithm>, for example:

$ export IMPORT_SCHEMA_REGISTRY_API_KEY="<schema_registry_api_key>"

$ export IMPORT_SCHEMA_REGISTRY_API_SECRET="<schema_registry_api_secret>"

$ export IMPORT_SCHEMA_REGISTRY_REST_ENDPOINT="<schema_registry_rest_endpoint>"

$ pulumi import confluentcloud:index/schemaRegistryDek:SchemaRegistryDek my_dek lsrc-8wrx70/testkek/ts/1/AES256_GCM
Copy

!> Warning: Do not forget to delete terminal command history afterwards for security purposes.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Confluent Cloud pulumi/pulumi-confluentcloud
License
Apache-2.0
Notes
This Pulumi package is based on the confluent Terraform Provider.