Skip to content

Latest commit

 

History

History
176 lines (142 loc) · 3.63 KB

oci_log_analytics_log_analytics_log_group.md

File metadata and controls

176 lines (142 loc) · 3.63 KB

oci_log_analytics_log_analytics_log_group

back

Index

Terraform

terraform {
  required_providers {
    oci = ">= 4.21.0"
  }
}

top

Example Usage

module "oci_log_analytics_log_analytics_log_group" {
  source = "./modules/oci/r/oci_log_analytics_log_analytics_log_group"

  # compartment_id - (required) is a type of string
  compartment_id = null
  # defined_tags - (optional) is a type of map of string
  defined_tags = {}
  # description - (optional) is a type of string
  description = null
  # display_name - (required) is a type of string
  display_name = null
  # freeform_tags - (optional) is a type of map of string
  freeform_tags = {}
  # namespace - (required) is a type of string
  namespace = null

  timeouts = [{
    create = null
    delete = null
    update = null
  }]
}

top

Variables

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

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

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

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

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

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
      update = string
    }
  ))
  default = []
}

top

Resource

resource "oci_log_analytics_log_analytics_log_group" "this" {
  # compartment_id - (required) is a type of string
  compartment_id = var.compartment_id
  # defined_tags - (optional) is a type of map of string
  defined_tags = var.defined_tags
  # description - (optional) is a type of string
  description = var.description
  # display_name - (required) is a type of string
  display_name = var.display_name
  # freeform_tags - (optional) is a type of map of string
  freeform_tags = var.freeform_tags
  # namespace - (required) is a type of string
  namespace = var.namespace

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
      # update - (optional) is a type of string
      update = timeouts.value["update"]
    }
  }

}

top

Outputs

output "defined_tags" {
  description = "returns a map of string"
  value       = oci_log_analytics_log_analytics_log_group.this.defined_tags
}

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

output "freeform_tags" {
  description = "returns a map of string"
  value       = oci_log_analytics_log_analytics_log_group.this.freeform_tags
}

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

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

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

output "this" {
  value = oci_log_analytics_log_analytics_log_group.this
}

top