Skip to content

Latest commit

 

History

History
127 lines (101 loc) · 2.27 KB

alicloud_logtail_config.md

File metadata and controls

127 lines (101 loc) · 2.27 KB

alicloud_logtail_config

back

Index

Terraform

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

top

Example Usage

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

  # input_detail - (required) is a type of string
  input_detail = null
  # input_type - (required) is a type of string
  input_type = null
  # log_sample - (optional) is a type of string
  log_sample = null
  # logstore - (required) is a type of string
  logstore = null
  # name - (required) is a type of string
  name = null
  # output_type - (required) is a type of string
  output_type = null
  # project - (required) is a type of string
  project = null
}

top

Variables

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

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

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

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

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

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

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

top

Resource

resource "alicloud_logtail_config" "this" {
  # input_detail - (required) is a type of string
  input_detail = var.input_detail
  # input_type - (required) is a type of string
  input_type = var.input_type
  # log_sample - (optional) is a type of string
  log_sample = var.log_sample
  # logstore - (required) is a type of string
  logstore = var.logstore
  # name - (required) is a type of string
  name = var.name
  # output_type - (required) is a type of string
  output_type = var.output_type
  # project - (required) is a type of string
  project = var.project
}

top

Outputs

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

output "this" {
  value = alicloud_logtail_config.this
}

top