oci_kms_encrypted_data

This resource provides the Encrypted Data resource in Oracle Cloud Infrastructure Kms service.

Encrypts data using the given EncryptDataDetails resource. Plaintext included in the example request is a base64-encoded value of a UTF-8 string.

Example Usage

resource "oci_kms_encrypted_data" "test_encrypted_data" {
    #Required
    crypto_endpoint = var.encrypted_data_crypto_endpoint
    key_id = oci_kms_key.test_key.id
    plaintext = var.encrypted_data_plaintext

    #Optional
    associated_data = var.encrypted_data_associated_data
    encryption_algorithm = var.encrypted_data_encryption_algorithm
    key_version_id = oci_kms_key_version.test_key_version.id
    logging_context = var.encrypted_data_logging_context
}

Argument Reference

The following arguments are supported:

* IMPORTANT * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Encrypted Data * update - (Defaults to 20 minutes), when updating the Encrypted Data * delete - (Defaults to 20 minutes), when destroying the Encrypted Data

Import

Import is not supported for this resource.