tfwriter

Terraform HCL code generator.

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

avi_certificatemanagementprofile

back

Index

Terraform

terraform {
  required_providers {
    avi = ">= 0.2.3"
  }
}

top

Example Usage

module "avi_certificatemanagementprofile" {
  source = "./modules/avi/r/avi_certificatemanagementprofile"

  # name - (required) is a type of string
  name = null
  # script_path - (required) is a type of string
  script_path = null
  # tenant_ref - (optional) is a type of string
  tenant_ref = null
  # uuid - (optional) is a type of string
  uuid = null

  script_params = [{
    is_dynamic   = null
    is_sensitive = null
    name         = null
    value        = null
  }]
}

top

Variables

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

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

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

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

variable "script_params" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      is_dynamic   = bool
      is_sensitive = bool
      name         = string
      value        = string
    }
  ))
  default = []
}

top

Resource

resource "avi_certificatemanagementprofile" "this" {
  # name - (required) is a type of string
  name = var.name
  # script_path - (required) is a type of string
  script_path = var.script_path
  # tenant_ref - (optional) is a type of string
  tenant_ref = var.tenant_ref
  # uuid - (optional) is a type of string
  uuid = var.uuid

  dynamic "script_params" {
    for_each = var.script_params
    content {
      # is_dynamic - (optional) is a type of bool
      is_dynamic = script_params.value["is_dynamic"]
      # is_sensitive - (optional) is a type of bool
      is_sensitive = script_params.value["is_sensitive"]
      # name - (required) is a type of string
      name = script_params.value["name"]
      # value - (optional) is a type of string
      value = script_params.value["value"]
    }
  }

}

top

Outputs

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

output "tenant_ref" {
  description = "returns a string"
  value       = avi_certificatemanagementprofile.this.tenant_ref
}

output "uuid" {
  description = "returns a string"
  value       = avi_certificatemanagementprofile.this.uuid
}

output "this" {
  value = avi_certificatemanagementprofile.this
}

top