tfwriter

Terraform HCL code generator.

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

aci_cloud_subnet

back

Index

Terraform

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

top

Example Usage

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

  # annotation - (optional) is a type of string
  annotation = null
  # cloud_cidr_pool_dn - (required) is a type of string
  cloud_cidr_pool_dn = null
  # description - (optional) is a type of string
  description = null
  # ip - (required) is a type of string
  ip = null
  # name - (optional) is a type of string
  name = null
  # name_alias - (optional) is a type of string
  name_alias = null
  # relation_cloud_rs_subnet_to_flow_log - (optional) is a type of string
  relation_cloud_rs_subnet_to_flow_log = null
  # scope - (optional) is a type of string
  scope = null
  # usage - (optional) is a type of string
  usage = null
  # zone - (optional) is a type of string
  zone = null
}

top

Variables

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

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

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

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

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

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

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

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

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

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

top

Resource

resource "aci_cloud_subnet" "this" {
  # annotation - (optional) is a type of string
  annotation = var.annotation
  # cloud_cidr_pool_dn - (required) is a type of string
  cloud_cidr_pool_dn = var.cloud_cidr_pool_dn
  # description - (optional) is a type of string
  description = var.description
  # ip - (required) is a type of string
  ip = var.ip
  # name - (optional) is a type of string
  name = var.name
  # name_alias - (optional) is a type of string
  name_alias = var.name_alias
  # relation_cloud_rs_subnet_to_flow_log - (optional) is a type of string
  relation_cloud_rs_subnet_to_flow_log = var.relation_cloud_rs_subnet_to_flow_log
  # scope - (optional) is a type of string
  scope = var.scope
  # usage - (optional) is a type of string
  usage = var.usage
  # zone - (optional) is a type of string
  zone = var.zone
}

top

Outputs

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

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

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

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

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

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

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

output "this" {
  value = aci_cloud_subnet.this
}

top