tfwriter

Terraform HCL code generator.

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

aviatrix_periodic_ping

back

Index

Terraform

terraform {
  required_providers {
    aviatrix = ">= 2.18.2"
  }
}

top

Example Usage

module "aviatrix_periodic_ping" {
  source = "./modules/aviatrix/r/aviatrix_periodic_ping"

  # gw_name - (required) is a type of string
  gw_name = null
  # interval - (required) is a type of number
  interval = null
  # ip_address - (required) is a type of string
  ip_address = null
}

top

Variables

variable "gw_name" {
  description = "(required) - Name of gateway."
  type        = string
}

variable "interval" {
  description = "(required) - Interval between pings in seconds."
  type        = number
}

variable "ip_address" {
  description = "(required) - IP Address to ping."
  type        = string
}

top

Resource

resource "aviatrix_periodic_ping" "this" {
  # gw_name - (required) is a type of string
  gw_name = var.gw_name
  # interval - (required) is a type of number
  interval = var.interval
  # ip_address - (required) is a type of string
  ip_address = var.ip_address
}

top

Outputs

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

output "this" {
  value = aviatrix_periodic_ping.this
}

top