-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
62 lines (56 loc) · 2.95 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
# Copyright (c) 2023 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
variable "tenancy_ocid" {}
variable "region" {description = "Your tenancy region"}
variable "user_ocid" {default = ""}
variable "fingerprint" {default = ""}
variable "private_key_path" {default = ""}
variable "private_key_password" {default = ""}
variable "notifications_configuration" {
description = "Notifications configuration settings, defining all aspects to manage notifications in OCI. Please see the comments within each attribute for details."
type = object({
default_compartment_id = string, # the default compartment where all resources are defined. It's overriden by the compartment_id attribute within each object.
default_defined_tags = optional(map(string)), # the default defined tags. It's overriden by the defined_tags attribute within each object.
default_freeform_tags = optional(map(string)), # the default freeform tags. It's overriden by the frreform_tags attribute within each object.
topics = optional(map(object({ # the topics to manage in this configuration.
compartment_id = optional(string) # the compartment where the topic is created. default_compartment_id is used if undefined.
name = string # topic name
description = optional(string) # topic description. Defaults to topic name if undefined.
subscriptions = optional(list(object({
protocol = string # valid values (case insensitive): EMAIL, CUSTOM_HTTPS, PAGERDUTY, SLACK, ORACLE_FUNCTIONS, SMS
values = list(string) # list of endpoint values, specific to each protocol.
defined_tags = optional(map(string)) # subscription defined_tags. The topic defined_tags is used if undefined.
freeform_tags = optional(map(string)) # subscription freeform_tags. The topic freeform_tags is used if undefined.
})))
defined_tags = optional(map(string)) # topic defined_tags. default_defined_tags is used if undefined.
freeform_tags = optional(map(string)) # topic freeform_tags. default_freeform_tags is used if undefined.
})))
announcement_subscriptions = optional(map(object({
compartment_id = optional(string)
display_name = string
notification_topic_id = string
description = optional(string)
defined_tags = optional(string)
freeform_tags = optional(string)
preferred_language = optional(string)
preferred_time_zone = optional(string)
filter_groups = optional(map(object({
name = string
filter_type = string
filter_value = list(string)
})))
})))
})
}
variable "oci_shared_config_bucket_name" {
type = string
default = null
}
variable "oci_compartments_object_name" {
type = string
default = null
}
variable "oci_topics_object_name" {
type = string
default = null
}