tfwriter

Terraform HCL code generator.

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

aci_spine_switch_association

back

Index

Terraform

terraform {
  required_providers {
    aci = ">= 0.5.4"
  }
}

top

Example Usage

module "aci_spine_switch_association" {
  source = "./modules/aci/r/aci_spine_switch_association"

  # annotation - (optional) is a type of string
  annotation = null
  # description - (optional) is a type of string
  description = null
  # name - (required) is a type of string
  name = null
  # name_alias - (optional) is a type of string
  name_alias = null
  # relation_infra_rs_spine_acc_node_p_grp - (optional) is a type of string
  relation_infra_rs_spine_acc_node_p_grp = null
  # spine_profile_dn - (required) is a type of string
  spine_profile_dn = null
  # spine_switch_association_type - (required) is a type of string
  spine_switch_association_type = null
}

top

Variables

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

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

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

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

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

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

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

top

Resource

resource "aci_spine_switch_association" "this" {
  # annotation - (optional) is a type of string
  annotation = var.annotation
  # description - (optional) is a type of string
  description = var.description
  # name - (required) is a type of string
  name = var.name
  # name_alias - (optional) is a type of string
  name_alias = var.name_alias
  # relation_infra_rs_spine_acc_node_p_grp - (optional) is a type of string
  relation_infra_rs_spine_acc_node_p_grp = var.relation_infra_rs_spine_acc_node_p_grp
  # spine_profile_dn - (required) is a type of string
  spine_profile_dn = var.spine_profile_dn
  # spine_switch_association_type - (required) is a type of string
  spine_switch_association_type = var.spine_switch_association_type
}

top

Outputs

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

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

output "name_alias" {
  description = "returns a string"
  value       = aci_spine_switch_association.this.name_alias
}

output "relation_infra_rs_spine_acc_node_p_grp" {
  description = "returns a string"
  value       = aci_spine_switch_association.this.relation_infra_rs_spine_acc_node_p_grp
}

output "this" {
  value = aci_spine_switch_association.this
}

top