Skip to content

Latest commit

 

History

History
110 lines (86 loc) · 2.2 KB

File metadata and controls

110 lines (86 loc) · 2.2 KB

google_logging_billing_account_exclusion

back

Index

Terraform

terraform {
  required_providers {
    google-beta = ">= 3.63.0"
  }
}

top

Example Usage

module "google_logging_billing_account_exclusion" {
  source = "./modules/google-beta/r/google_logging_billing_account_exclusion"

  # billing_account - (required) is a type of string
  billing_account = null
  # description - (optional) is a type of string
  description = null
  # disabled - (optional) is a type of bool
  disabled = null
  # filter - (required) is a type of string
  filter = null
  # name - (required) is a type of string
  name = null
}

top

Variables

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

variable "description" {
  description = "(optional) - A human-readable description."
  type        = string
  default     = null
}

variable "disabled" {
  description = "(optional) - Whether this exclusion rule should be disabled or not. This defaults to false."
  type        = bool
  default     = null
}

variable "filter" {
  description = "(required) - The filter to apply when excluding logs. Only log entries that match the filter are excluded."
  type        = string
}

variable "name" {
  description = "(required) - The name of the logging exclusion."
  type        = string
}

top

Resource

resource "google_logging_billing_account_exclusion" "this" {
  # billing_account - (required) is a type of string
  billing_account = var.billing_account
  # description - (optional) is a type of string
  description = var.description
  # disabled - (optional) is a type of bool
  disabled = var.disabled
  # filter - (required) is a type of string
  filter = var.filter
  # name - (required) is a type of string
  name = var.name
}

top

Outputs

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

output "this" {
  value = google_logging_billing_account_exclusion.this
}

top