confluentcloud.SchemaRegistryDek
Explore with Pulumi AI
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
!> Warning: Do not forget to delete terminal command history afterwards for security purposes.
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 string
- The unique name of the resource.
- args SchemaRegistryDekArgs
- 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 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 string
- The unique name of the resource.
- args SchemaRegistryDekArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchemaRegistryDekArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
});
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),
})
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());
schema_registry_dek_resource = confluentcloud.SchemaRegistryDek("schemaRegistryDekResource",
kek_name="string",
subject_name="string",
algorithm="string",
credentials=confluentcloud.SchemaRegistryDekCredentialsArgs(
key="string",
secret="string",
),
encrypted_key_material="string",
hard_delete=False,
rest_endpoint="string",
schema_registry_cluster=confluentcloud.SchemaRegistryDekSchemaRegistryClusterArgs(
id="string",
),
version=0)
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,
});
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
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
The SchemaRegistryDek resource accepts the following input properties:
- Kek
Name string - The name of the KEK used to encrypt this DEK.
- Subject
Name string - The subject for this DEK.
- Algorithm string
- Accepted values are:
AES128_GCM
,AES256_GCM
, andAES256_SIV
. Defaults toAES256_GCM
. - Credentials
Pulumi.
Confluent Cloud. Inputs. Schema Registry Dek Credentials - The Cluster API Credentials.
- Encrypted
Key stringMaterial - 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 tofalse
(soft delete). - Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry Pulumi.Cluster Confluent Cloud. Inputs. Schema Registry Dek Schema Registry Cluster - Version int
- The version of this DEK. Defaults to
1
.
- Kek
Name string - The name of the KEK used to encrypt this DEK.
- Subject
Name string - The subject for this DEK.
- Algorithm string
- Accepted values are:
AES128_GCM
,AES256_GCM
, andAES256_SIV
. Defaults toAES256_GCM
. - Credentials
Schema
Registry Dek Credentials Args - The Cluster API Credentials.
- Encrypted
Key stringMaterial - 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 tofalse
(soft delete). - Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry SchemaCluster Registry Dek Schema Registry Cluster Args - Version int
- The version of this DEK. Defaults to
1
.
- kek
Name String - The name of the KEK used to encrypt this DEK.
- subject
Name String - The subject for this DEK.
- algorithm String
- Accepted values are:
AES128_GCM
,AES256_GCM
, andAES256_SIV
. Defaults toAES256_GCM
. - credentials
Schema
Registry Dek Credentials - The Cluster API Credentials.
- encrypted
Key StringMaterial - The encrypted key material for the DEK.
- hard
Delete 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 tofalse
(soft delete). - rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry SchemaCluster Registry Dek Schema Registry Cluster - version Integer
- The version of this DEK. Defaults to
1
.
- kek
Name string - The name of the KEK used to encrypt this DEK.
- subject
Name string - The subject for this DEK.
- algorithm string
- Accepted values are:
AES128_GCM
,AES256_GCM
, andAES256_SIV
. Defaults toAES256_GCM
. - credentials
Schema
Registry Dek Credentials - The Cluster API Credentials.
- encrypted
Key stringMaterial - The encrypted key material for the DEK.
- hard
Delete 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 tofalse
(soft delete). - rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry SchemaCluster Registry Dek Schema Registry Cluster - version number
- The version of this DEK. Defaults to
1
.
- kek_
name str - The name of the KEK used to encrypt this DEK.
- subject_
name str - The subject for this DEK.
- algorithm str
- Accepted values are:
AES128_GCM
,AES256_GCM
, andAES256_SIV
. Defaults toAES256_GCM
. - credentials
Schema
Registry Dek Credentials Args - The Cluster API Credentials.
- encrypted_
key_ strmaterial - 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 tofalse
(soft delete). - rest_
endpoint str - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema_
registry_ Schemacluster Registry Dek Schema Registry Cluster Args - version int
- The version of this DEK. Defaults to
1
.
- kek
Name String - The name of the KEK used to encrypt this DEK.
- subject
Name String - The subject for this DEK.
- algorithm String
- Accepted values are:
AES128_GCM
,AES256_GCM
, andAES256_SIV
. Defaults toAES256_GCM
. - credentials Property Map
- The Cluster API Credentials.
- encrypted
Key StringMaterial - The encrypted key material for the DEK.
- hard
Delete 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 tofalse
(soft delete). - rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry Property MapCluster - 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.
- Key
Material string - (Optional String) The decrypted version of encrypted key material.
- Id string
- The provider-assigned unique ID for this managed resource.
- Key
Material string - (Optional String) The decrypted version of encrypted key material.
- id String
- The provider-assigned unique ID for this managed resource.
- key
Material String - (Optional String) The decrypted version of encrypted key material.
- id string
- The provider-assigned unique ID for this managed resource.
- key
Material 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.
- key
Material 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Algorithm string
- Accepted values are:
AES128_GCM
,AES256_GCM
, andAES256_SIV
. Defaults toAES256_GCM
. - Credentials
Pulumi.
Confluent Cloud. Inputs. Schema Registry Dek Credentials - The Cluster API Credentials.
- Encrypted
Key stringMaterial - 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 tofalse
(soft delete). - Kek
Name string - The name of the KEK used to encrypt this DEK.
- Key
Material string - (Optional String) The decrypted version of encrypted key material.
- Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry Pulumi.Cluster Confluent Cloud. Inputs. Schema Registry Dek Schema Registry Cluster - Subject
Name 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
, andAES256_SIV
. Defaults toAES256_GCM
. - Credentials
Schema
Registry Dek Credentials Args - The Cluster API Credentials.
- Encrypted
Key stringMaterial - 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 tofalse
(soft delete). - Kek
Name string - The name of the KEK used to encrypt this DEK.
- Key
Material string - (Optional String) The decrypted version of encrypted key material.
- Rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - Schema
Registry SchemaCluster Registry Dek Schema Registry Cluster Args - Subject
Name 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
, andAES256_SIV
. Defaults toAES256_GCM
. - credentials
Schema
Registry Dek Credentials - The Cluster API Credentials.
- encrypted
Key StringMaterial - The encrypted key material for the DEK.
- hard
Delete 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 tofalse
(soft delete). - kek
Name String - The name of the KEK used to encrypt this DEK.
- key
Material String - (Optional String) The decrypted version of encrypted key material.
- rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry SchemaCluster Registry Dek Schema Registry Cluster - subject
Name 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
, andAES256_SIV
. Defaults toAES256_GCM
. - credentials
Schema
Registry Dek Credentials - The Cluster API Credentials.
- encrypted
Key stringMaterial - The encrypted key material for the DEK.
- hard
Delete 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 tofalse
(soft delete). - kek
Name string - The name of the KEK used to encrypt this DEK.
- key
Material string - (Optional String) The decrypted version of encrypted key material.
- rest
Endpoint string - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry SchemaCluster Registry Dek Schema Registry Cluster - subject
Name 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
, andAES256_SIV
. Defaults toAES256_GCM
. - credentials
Schema
Registry Dek Credentials Args - The Cluster API Credentials.
- encrypted_
key_ strmaterial - 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 tofalse
(soft delete). - kek_
name 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 str - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema_
registry_ Schemacluster Registry Dek Schema Registry Cluster Args - subject_
name 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
, andAES256_SIV
. Defaults toAES256_GCM
. - credentials Property Map
- The Cluster API Credentials.
- encrypted
Key StringMaterial - The encrypted key material for the DEK.
- hard
Delete 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 tofalse
(soft delete). - kek
Name String - The name of the KEK used to encrypt this DEK.
- key
Material String - (Optional String) The decrypted version of encrypted key material.
- rest
Endpoint String - The REST endpoint of the Schema Registry cluster, for example,
https://psrc-00000.us-central1.gcp.confluent.cloud:443
). - schema
Registry Property MapCluster - subject
Name String - The subject for this DEK.
- version Number
- The version of this DEK. Defaults to
1
.
Supporting Types
SchemaRegistryDekCredentials, SchemaRegistryDekCredentialsArgs
SchemaRegistryDekSchemaRegistryCluster, SchemaRegistryDekSchemaRegistryClusterArgs
- Id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- Id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id String
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id string
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id str
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
- id String
- The ID of the Schema Registry cluster, for example,
lsrc-abc123
.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluent
Terraform Provider.