You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_logging_organization_sink" {
source="./modules/google-beta/r/google_logging_organization_sink"# description - (optional) is a type of stringdescription=null# destination - (required) is a type of stringdestination=null# disabled - (optional) is a type of booldisabled=null# filter - (optional) is a type of stringfilter=null# include_children - (optional) is a type of boolinclude_children=null# name - (required) is a type of stringname=null# org_id - (required) is a type of stringorg_id=nullbigquery_options=[{
use_partitioned_tables =null
}]
exclusions=[{
description =null
disabled =null
filter =null
name =null
}]
}
variable"description" {
description="(optional) - A description of this sink. The maximum length of the description is 8000 characters."type=stringdefault=null
}
variable"destination" {
description="(required) - The destination of the sink (or, in other words, where logs are written to). Can be a Cloud Storage bucket, a PubSub topic, or a BigQuery dataset. Examples: \"storage.googleapis.com/[GCS_BUCKET]\"\"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]\"\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]\" The writer associated with the sink must have access to write to the above resource."type=string
}
variable"disabled" {
description="(optional) - If set to True, then this sink is disabled and it does not export any log entries."type=booldefault=null
}
variable"filter" {
description="(optional) - The filter to apply when exporting logs. Only log entries that match the filter are exported."type=stringdefault=null
}
variable"include_children" {
description="(optional) - Whether or not to include children organizations in the sink export. If true, logs associated with child projects are also exported; otherwise only logs relating to the provided organization are included."type=booldefault=null
}
variable"name" {
description="(required) - The name of the logging sink."type=string
}
variable"org_id" {
description="(required) - The numeric ID of the organization to be exported to the sink."type=string
}
variable"bigquery_options" {
description="nested block: NestingList, min items: 0, max items: 1"type=set(object(
{
use_partitioned_tables =bool
}
))
default=[]
}
variable"exclusions" {
description="nested block: NestingList, min items: 0, max items: 0"type=set(object(
{
description =string
disabled =bool
filter =string
name =string
}
))
default=[]
}
resource"google_logging_organization_sink""this" {
# description - (optional) is a type of stringdescription=var.description# destination - (required) is a type of stringdestination=var.destination# disabled - (optional) is a type of booldisabled=var.disabled# filter - (optional) is a type of stringfilter=var.filter# include_children - (optional) is a type of boolinclude_children=var.include_children# name - (required) is a type of stringname=var.name# org_id - (required) is a type of stringorg_id=var.org_iddynamic"bigquery_options" {
for_each=var.bigquery_optionscontent {
# use_partitioned_tables - (required) is a type of booluse_partitioned_tables=bigquery_options.value["use_partitioned_tables"]
}
}
dynamic"exclusions" {
for_each=var.exclusionscontent {
# description - (optional) is a type of stringdescription=exclusions.value["description"]
# disabled - (optional) is a type of booldisabled=exclusions.value["disabled"]
# filter - (required) is a type of stringfilter=exclusions.value["filter"]
# name - (required) is a type of stringname=exclusions.value["name"]
}
}
}