tfwriter

Terraform HCL code generator.

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

alicloud_mns_topic

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_mns_topic" {
  source = "./modules/alicloud/r/alicloud_mns_topic"

  # logging_enabled - (optional) is a type of bool
  logging_enabled = null
  # maximum_message_size - (optional) is a type of number
  maximum_message_size = null
  # name - (required) is a type of string
  name = null
}

top

Variables

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

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

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

top

Resource

resource "alicloud_mns_topic" "this" {
  # logging_enabled - (optional) is a type of bool
  logging_enabled = var.logging_enabled
  # maximum_message_size - (optional) is a type of number
  maximum_message_size = var.maximum_message_size
  # name - (required) is a type of string
  name = var.name
}

top

Outputs

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

output "this" {
  value = alicloud_mns_topic.this
}

top