tfwriter

Terraform HCL code generator.

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

akamai_gtm_default_datacenter

back

Index

Terraform

terraform {
  required_providers {
    akamai = ">= 1.5.0"
  }
}

top

Example Usage

module "akamai_gtm_default_datacenter" {
  source = "./modules/akamai/d/akamai_gtm_default_datacenter"

  # datacenter - (optional) is a type of number
  datacenter = null
  # domain - (required) is a type of string
  domain = null
}

top

Variables

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

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

top

Datasource

data "akamai_gtm_default_datacenter" "this" {
  # datacenter - (optional) is a type of number
  datacenter = var.datacenter
  # domain - (required) is a type of string
  domain = var.domain
}

top

Outputs

output "datacenter_id" {
  description = "returns a number"
  value       = data.akamai_gtm_default_datacenter.this.datacenter_id
}

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

output "nickname" {
  description = "returns a string"
  value       = data.akamai_gtm_default_datacenter.this.nickname
}

output "this" {
  value = akamai_gtm_default_datacenter.this
}

top