-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
73 lines (64 loc) · 2.84 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
/**
* Copyright 2019 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 "log_sink_name" {
description = "The name of the log sink to be created."
type = string
}
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
}))
}