tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

alicloud_kms_secret_versions

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_kms_secret_versions" {
  source = "./modules/alicloud/d/alicloud_kms_secret_versions"

  # enable_details - (optional) is a type of bool
  enable_details = null
  # ids - (optional) is a type of list of string
  ids = []
  # include_deprecated - (optional) is a type of string
  include_deprecated = null
  # output_file - (optional) is a type of string
  output_file = null
  # secret_name - (required) is a type of string
  secret_name = null
  # version_stage - (optional) is a type of string
  version_stage = null
}

top

Variables

variable "enable_details" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "ids" {
  description = "(optional)"
  type        = list(string)
  default     = null
}

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

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

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

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

top

Datasource

data "alicloud_kms_secret_versions" "this" {
  # enable_details - (optional) is a type of bool
  enable_details = var.enable_details
  # ids - (optional) is a type of list of string
  ids = var.ids
  # include_deprecated - (optional) is a type of string
  include_deprecated = var.include_deprecated
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # secret_name - (required) is a type of string
  secret_name = var.secret_name
  # version_stage - (optional) is a type of string
  version_stage = var.version_stage
}

top

Outputs

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

output "ids" {
  description = "returns a list of string"
  value       = data.alicloud_kms_secret_versions.this.ids
}

output "versions" {
  description = "returns a list of object"
  value       = data.alicloud_kms_secret_versions.this.versions
}

output "this" {
  value = alicloud_kms_secret_versions.this
}

top