-
Notifications
You must be signed in to change notification settings - Fork 92
/
variables.tf
91 lines (79 loc) · 3.56 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/**
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
variable "destination_uri" {
description = "The self_link URI of the destination resource (This is available as an output coming from one of the destination submodules)"
type = string
}
variable "filter" {
description = "The filter to apply when exporting logs. Only log entries that match the filter are exported. Default is '' which exports all logs."
type = string
default = ""
}
variable "include_children" {
description = "Only valid if 'organization' or 'folder' is chosen as var.parent_resource.type. Determines whether or not to include children organizations/folders in the sink export. If true, logs associated with child projects are also exported; otherwise only logs relating to the provided organization/folder are included."
type = bool
default = false
}
variable "intercept_children" {
description = "Only valid if 'organization' or 'folder' is chosen as var.parent_resource.type. Whether or not to intercept logs from child projects. If true, matching logs will not match with sinks in child resources, except _Required sinks. This sink will be visible to child resources when listing sinks."
type = bool
default = false
}
variable "log_sink_name" {
description = "The name of the log sink to be created."
type = string
}
variable "description" {
description = "A description of this sink. The maximum length of the description is 8000 characters."
type = string
default = null
}
variable "parent_resource_id" {
description = "The ID of the GCP resource in which you create the log sink. If var.parent_resource_type is set to 'project', then this is the Project ID (and etc)."
type = string
}
variable "parent_resource_type" {
description = "The GCP resource in which you create the log sink. The value must not be computed, and must be one of the following: 'project', 'folder', 'billing_account', or 'organization'."
type = string
default = "project"
}
variable "unique_writer_identity" {
description = "Whether or not to create a unique identity associated with this sink. If false (the default), then the writer_identity used is serviceAccount:[email protected]. If true, then a unique service account is created and used for the logging sink."
type = bool
default = false
}
variable "bigquery_options" {
default = null
description = "(Optional) Options that affect sinks exporting data to BigQuery. use_partitioned_tables - (Required) Whether to use BigQuery's partition tables."
type = object({
use_partitioned_tables = bool
})
}
variable "exclusions" {
default = []
description = "(Optional) A list of sink exclusion filters."
type = list(object({
name = string,
description = string,
filter = string,
disabled = bool
}))
}
variable "disabled" {
description = "(Optional) If set to true, then the sink is disabled and it does not export any log entries."
type = bool
default = false
}