Skip to main content

key_encryption_keys

Creates, updates, deletes, gets or lists a key_encryption_keys resource.

Overview

Namekey_encryption_keys
TypeResource
Idconfluent.encryption_keys.key_encryption_keys

Fields

NameDatatypeDescription
namestringName of the kek
deletedbooleanWhether the kek is deleted
docstringDescription of the kek
kmsKeyIdstringKMS key ID of the kek
kmsPropsobjectProperties of the kek
kmsTypestringKMS type of the kek
sharedbooleanWhether the kek is shared
tsintegerTimestamp of the kek

Methods

NameAccessible byRequired ParamsDescription
get_kekSELECTname
get_kek_namesSELECT
create_kekINSERT
delete_kekDELETEname
put_kekREPLACEname
undelete_kekEXECname

SELECT examples

SELECT
name,
deleted,
doc,
kmsKeyId,
kmsProps,
kmsType,
shared,
ts
FROM confluent.encryption_keys.key_encryption_keys
;

INSERT example

Use the following StackQL query and manifest file to create a new key_encryption_keys resource.

/*+ create */
INSERT INTO confluent.encryption_keys.key_encryption_keys (
data__name,
data__kmsType,
data__kmsKeyId,
data__kmsProps,
data__doc,
data__shared,
data__deleted
)
SELECT
'{{ name }}',
'{{ kmsType }}',
'{{ kmsKeyId }}',
'{{ kmsProps }}',
'{{ doc }}',
'{{ shared }}',
'{{ deleted }}'
;

REPLACE example

Replaces all fields in the specified key_encryption_keys resource.

/*+ update */
REPLACE confluent.encryption_keys.key_encryption_keys
SET
kmsProps = '{{ kmsProps }}',
doc = '{{ doc }}',
shared = true|false
WHERE
name = '{{ name }}';

DELETE example

Deletes the specified key_encryption_keys resource.

/*+ delete */
DELETE FROM confluent.encryption_keys.key_encryption_keys
WHERE name = '{{ name }}';