Skip to content

Latest commit

 

History

History
110 lines (85 loc) · 1.94 KB

oci_kms_decrypted_data.md

File metadata and controls

110 lines (85 loc) · 1.94 KB

oci_kms_decrypted_data

back

Index

Terraform

terraform {
  required_providers {
    oci = ">= 4.21.0"
  }
}

top

Example Usage

module "oci_kms_decrypted_data" {
  source = "./modules/oci/d/oci_kms_decrypted_data"

  # associated_data - (optional) is a type of map of string
  associated_data = {}
  # ciphertext - (required) is a type of string
  ciphertext = null
  # crypto_endpoint - (required) is a type of string
  crypto_endpoint = null
  # key_id - (required) is a type of string
  key_id = null
}

top

Variables

variable "associated_data" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

variable "ciphertext" {
  description = "(required)"
  type        = string
}

variable "crypto_endpoint" {
  description = "(required)"
  type        = string
}

variable "key_id" {
  description = "(required)"
  type        = string
}

top

Datasource

data "oci_kms_decrypted_data" "this" {
  # associated_data - (optional) is a type of map of string
  associated_data = var.associated_data
  # ciphertext - (required) is a type of string
  ciphertext = var.ciphertext
  # crypto_endpoint - (required) is a type of string
  crypto_endpoint = var.crypto_endpoint
  # key_id - (required) is a type of string
  key_id = var.key_id
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = data.oci_kms_decrypted_data.this.id
}

output "plaintext" {
  description = "returns a string"
  value       = data.oci_kms_decrypted_data.this.plaintext
}

output "plaintext_checksum" {
  description = "returns a string"
  value       = data.oci_kms_decrypted_data.this.plaintext_checksum
}

output "this" {
  value = oci_kms_decrypted_data.this
}

top