pulumi-oci 2.25.0a1740032973__py3-none-any.whl → 2.26.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. pulumi_oci/__init__.py +102 -0
  2. pulumi_oci/config/__init__.pyi +2 -0
  3. pulumi_oci/config/vars.py +4 -0
  4. pulumi_oci/containerengine/_inputs.py +74 -35
  5. pulumi_oci/containerengine/cluster.py +4 -0
  6. pulumi_oci/containerengine/container_instance.py +2 -4
  7. pulumi_oci/containerengine/outputs.py +180 -21
  8. pulumi_oci/containerinstances/outputs.py +0 -14
  9. pulumi_oci/core/_inputs.py +21 -33
  10. pulumi_oci/core/outputs.py +13 -21
  11. pulumi_oci/database/__init__.py +1 -0
  12. pulumi_oci/database/_inputs.py +1246 -57
  13. pulumi_oci/database/application_vip.py +59 -10
  14. pulumi_oci/database/autonomous_container_database.py +92 -0
  15. pulumi_oci/database/autonomous_database.py +90 -22
  16. pulumi_oci/database/backup.py +153 -5
  17. pulumi_oci/database/backup_destination.py +84 -0
  18. pulumi_oci/database/cloud_exadata_infrastructure.py +126 -0
  19. pulumi_oci/database/cloud_vm_cluster.py +163 -30
  20. pulumi_oci/database/data_guard_association.py +49 -0
  21. pulumi_oci/database/db_node.py +64 -8
  22. pulumi_oci/database/db_system.py +111 -8
  23. pulumi_oci/database/exadata_infrastructure.py +157 -3
  24. pulumi_oci/database/exadata_infrastructure_configure_exascale_management.py +1615 -0
  25. pulumi_oci/database/exadb_vm_cluster.py +84 -7
  26. pulumi_oci/database/exascale_db_storage_vault.py +147 -0
  27. pulumi_oci/database/external_container_database.py +4 -4
  28. pulumi_oci/database/external_non_container_database.py +4 -4
  29. pulumi_oci/database/external_pluggable_database.py +4 -4
  30. pulumi_oci/database/get_application_vip.py +16 -2
  31. pulumi_oci/database/get_autonomous_container_database.py +43 -1
  32. pulumi_oci/database/get_autonomous_database.py +29 -1
  33. pulumi_oci/database/get_autonomous_databases.py +0 -26
  34. pulumi_oci/database/get_backup_destination.py +43 -1
  35. pulumi_oci/database/get_backups.py +136 -10
  36. pulumi_oci/database/get_cloud_exadata_infrastructure.py +43 -1
  37. pulumi_oci/database/get_cloud_vm_cluster.py +59 -3
  38. pulumi_oci/database/get_cloud_vm_clusters.py +28 -6
  39. pulumi_oci/database/get_data_guard_association.py +12 -1
  40. pulumi_oci/database/get_database_software_images.py +20 -1
  41. pulumi_oci/database/get_db_node.py +31 -4
  42. pulumi_oci/database/get_db_server.py +15 -1
  43. pulumi_oci/database/get_exadata_infrastructure.py +57 -1
  44. pulumi_oci/database/get_exadb_vm_cluster.py +29 -1
  45. pulumi_oci/database/get_exadb_vm_clusters.py +25 -3
  46. pulumi_oci/database/get_exascale_db_storage_vault.py +43 -1
  47. pulumi_oci/database/get_exascale_db_storage_vaults.py +47 -3
  48. pulumi_oci/database/get_external_container_database.py +1 -1
  49. pulumi_oci/database/get_external_non_container_database.py +1 -1
  50. pulumi_oci/database/get_external_pluggable_database.py +1 -1
  51. pulumi_oci/database/get_flex_components.py +28 -6
  52. pulumi_oci/database/get_maintenance_runs.py +20 -1
  53. pulumi_oci/database/get_vm_cluster.py +60 -4
  54. pulumi_oci/database/get_vm_clusters.py +25 -3
  55. pulumi_oci/database/outputs.py +2260 -87
  56. pulumi_oci/database/pluggable_database.py +13 -13
  57. pulumi_oci/database/vm_cluster.py +172 -18
  58. pulumi_oci/database/vm_cluster_add_virtual_network.py +114 -2
  59. pulumi_oci/database/vm_cluster_remove_virtual_machine.py +114 -2
  60. pulumi_oci/datasafe/__init__.py +7 -0
  61. pulumi_oci/datasafe/_inputs.py +301 -0
  62. pulumi_oci/datasafe/discovery_mod.py +49 -0
  63. pulumi_oci/datasafe/get_discovery_job.py +15 -1
  64. pulumi_oci/datasafe/get_masking_report.py +46 -4
  65. pulumi_oci/datasafe/get_masking_report_masking_errors.py +166 -0
  66. pulumi_oci/datasafe/get_security_assessment_finding.py +31 -1
  67. pulumi_oci/datasafe/get_security_assessment_findings.py +43 -3
  68. pulumi_oci/datasafe/get_sensitive_column_analytics.py +370 -0
  69. pulumi_oci/datasafe/get_sensitive_data_model.py +15 -1
  70. pulumi_oci/datasafe/get_sensitive_type_group.py +253 -0
  71. pulumi_oci/datasafe/get_sensitive_type_group_grouped_sensitive_types.py +166 -0
  72. pulumi_oci/datasafe/get_sensitive_type_groups.py +294 -0
  73. pulumi_oci/datasafe/outputs.py +676 -3
  74. pulumi_oci/datasafe/sensitive_data_model.py +49 -0
  75. pulumi_oci/datasafe/sensitive_type_group.py +563 -0
  76. pulumi_oci/datasafe/sensitive_type_group_grouped_sensitive_type.py +287 -0
  77. pulumi_oci/datascience/__init__.py +4 -0
  78. pulumi_oci/datascience/_inputs.py +1160 -41
  79. pulumi_oci/datascience/get_model.py +29 -1
  80. pulumi_oci/datascience/get_model_custom_metadata_artifact_content.py +151 -0
  81. pulumi_oci/datascience/get_model_defined_metadata_artifact_content.py +151 -0
  82. pulumi_oci/datascience/get_model_version_set.py +15 -1
  83. pulumi_oci/datascience/get_model_version_sets.py +25 -3
  84. pulumi_oci/datascience/get_models.py +25 -3
  85. pulumi_oci/datascience/get_pipeline.py +15 -1
  86. pulumi_oci/datascience/model.py +64 -0
  87. pulumi_oci/datascience/model_custom_metadata_artifact.py +418 -0
  88. pulumi_oci/datascience/model_defined_metadata_artifact.py +418 -0
  89. pulumi_oci/datascience/model_version_set.py +28 -0
  90. pulumi_oci/datascience/outputs.py +4343 -2164
  91. pulumi_oci/datascience/pipeline.py +48 -141
  92. pulumi_oci/datascience/pipeline_run.py +32 -0
  93. pulumi_oci/dblm/__init__.py +17 -0
  94. pulumi_oci/dblm/_inputs.py +275 -0
  95. pulumi_oci/dblm/get_vulnerability.py +242 -0
  96. pulumi_oci/dblm/get_vulnerability_aggregated_vulnerability_data.py +220 -0
  97. pulumi_oci/dblm/get_vulnerability_notifications.py +144 -0
  98. pulumi_oci/dblm/get_vulnerability_resources.py +258 -0
  99. pulumi_oci/dblm/get_vulnerability_scan.py +267 -0
  100. pulumi_oci/dblm/get_vulnerability_scans.py +270 -0
  101. pulumi_oci/dblm/get_vulnerability_vulnerabilities.py +258 -0
  102. pulumi_oci/dblm/outputs.py +1294 -0
  103. pulumi_oci/dblm/vulnerability_scan.py +521 -0
  104. pulumi_oci/email/dkim.py +120 -20
  105. pulumi_oci/email/get_dkim.py +40 -1
  106. pulumi_oci/email/outputs.py +29 -0
  107. pulumi_oci/filestorage/__init__.py +3 -0
  108. pulumi_oci/filestorage/_inputs.py +49 -0
  109. pulumi_oci/filestorage/file_system.py +133 -0
  110. pulumi_oci/filestorage/file_system_quota_rule.py +593 -0
  111. pulumi_oci/filestorage/filesystem_snapshot_policy.py +28 -0
  112. pulumi_oci/filestorage/get_file_system_quota_rule.py +248 -0
  113. pulumi_oci/filestorage/get_file_system_quota_rules.py +210 -0
  114. pulumi_oci/filestorage/get_filesystem_snapshot_policy.py +15 -1
  115. pulumi_oci/filestorage/get_outbound_connector.py +15 -1
  116. pulumi_oci/filestorage/get_replication.py +15 -1
  117. pulumi_oci/filestorage/get_replication_target.py +15 -1
  118. pulumi_oci/filestorage/get_snapshot.py +15 -1
  119. pulumi_oci/filestorage/mount_target.py +28 -0
  120. pulumi_oci/filestorage/outbound_connector.py +28 -0
  121. pulumi_oci/filestorage/outputs.py +263 -0
  122. pulumi_oci/filestorage/replication.py +28 -0
  123. pulumi_oci/filestorage/snapshot.py +28 -0
  124. pulumi_oci/goldengate/connection.py +561 -162
  125. pulumi_oci/goldengate/database_registration.py +14 -14
  126. pulumi_oci/goldengate/get_connection.py +117 -6
  127. pulumi_oci/goldengate/outputs.py +96 -10
  128. pulumi_oci/jms/__init__.py +4 -0
  129. pulumi_oci/jms/_inputs.py +196 -0
  130. pulumi_oci/jms/get_fleet_error_analytics.py +163 -0
  131. pulumi_oci/jms/get_fleet_errors.py +264 -0
  132. pulumi_oci/jms/get_fleet_performance_tuning_analysis_results.py +23 -1
  133. pulumi_oci/jms/get_jms_plugins.py +23 -1
  134. pulumi_oci/jms/get_plugin_error_analytics.py +163 -0
  135. pulumi_oci/jms/get_plugin_errors.py +264 -0
  136. pulumi_oci/jms/outputs.py +566 -6
  137. pulumi_oci/mysql/_inputs.py +1239 -10
  138. pulumi_oci/mysql/channel.py +28 -0
  139. pulumi_oci/mysql/get_channel.py +15 -1
  140. pulumi_oci/mysql/get_mysql_backup.py +15 -1
  141. pulumi_oci/mysql/get_mysql_configuration.py +15 -1
  142. pulumi_oci/mysql/get_mysql_db_system.py +15 -1
  143. pulumi_oci/mysql/mysql_backup.py +28 -0
  144. pulumi_oci/mysql/mysql_configuration.py +106 -0
  145. pulumi_oci/mysql/mysql_db_system.py +36 -0
  146. pulumi_oci/mysql/outputs.py +2008 -35
  147. pulumi_oci/opensearch/__init__.py +3 -0
  148. pulumi_oci/opensearch/_inputs.py +101 -0
  149. pulumi_oci/opensearch/cluster.py +76 -29
  150. pulumi_oci/opensearch/get_opensearch_cluster.py +12 -1
  151. pulumi_oci/opensearch/get_opensearch_cluster_pipeline.py +433 -0
  152. pulumi_oci/opensearch/get_opensearch_cluster_pipelines.py +218 -0
  153. pulumi_oci/opensearch/opensearch_cluster_pipeline.py +1172 -0
  154. pulumi_oci/opensearch/outputs.py +425 -0
  155. pulumi_oci/provider.py +20 -0
  156. pulumi_oci/psql/_inputs.py +258 -0
  157. pulumi_oci/psql/backup.py +129 -28
  158. pulumi_oci/psql/db_system.py +10 -0
  159. pulumi_oci/psql/get_backup.py +47 -2
  160. pulumi_oci/psql/get_backups.py +3 -0
  161. pulumi_oci/psql/get_configurations.py +23 -1
  162. pulumi_oci/psql/get_db_system.py +1 -1
  163. pulumi_oci/psql/get_db_systems.py +1 -1
  164. pulumi_oci/psql/outputs.py +541 -5
  165. pulumi_oci/pulumi-plugin.json +1 -1
  166. pulumi_oci/redis/redis_cluster.py +7 -7
  167. pulumi_oci/stackmonitoring/__init__.py +8 -0
  168. pulumi_oci/stackmonitoring/_inputs.py +372 -1
  169. pulumi_oci/stackmonitoring/get_defined_monitoring_templates.py +185 -0
  170. pulumi_oci/stackmonitoring/get_metric_extension.py +1 -1
  171. pulumi_oci/stackmonitoring/get_monitored_resource_type.py +15 -1
  172. pulumi_oci/stackmonitoring/get_monitoring_template.py +380 -0
  173. pulumi_oci/stackmonitoring/get_monitoring_template_alarm_condition.py +318 -0
  174. pulumi_oci/stackmonitoring/get_monitoring_template_alarm_conditions.py +262 -0
  175. pulumi_oci/stackmonitoring/get_monitoring_templates.py +289 -0
  176. pulumi_oci/stackmonitoring/metric_extension.py +4 -4
  177. pulumi_oci/stackmonitoring/monitored_resource_type.py +30 -0
  178. pulumi_oci/stackmonitoring/monitoring_template.py +954 -0
  179. pulumi_oci/stackmonitoring/monitoring_template_alarm_condition.py +780 -0
  180. pulumi_oci/stackmonitoring/monitoring_template_monitoring_template_on_given_resources_management.py +253 -0
  181. pulumi_oci/stackmonitoring/outputs.py +1305 -118
  182. pulumi_oci/tenantmanagercontrolplane/__init__.py +33 -0
  183. pulumi_oci/tenantmanagercontrolplane/_inputs.py +685 -0
  184. pulumi_oci/tenantmanagercontrolplane/get_assigned_subscription.py +478 -0
  185. pulumi_oci/tenantmanagercontrolplane/get_assigned_subscription_line_items.py +144 -0
  186. pulumi_oci/tenantmanagercontrolplane/get_assigned_subscriptions.py +188 -0
  187. pulumi_oci/tenantmanagercontrolplane/get_domain.py +253 -0
  188. pulumi_oci/tenantmanagercontrolplane/get_domain_governance.py +281 -0
  189. pulumi_oci/tenantmanagercontrolplane/get_domain_governances.py +226 -0
  190. pulumi_oci/tenantmanagercontrolplane/get_domains.py +226 -0
  191. pulumi_oci/tenantmanagercontrolplane/get_link.py +197 -0
  192. pulumi_oci/tenantmanagercontrolplane/get_links.py +191 -0
  193. pulumi_oci/tenantmanagercontrolplane/get_organization.py +211 -0
  194. pulumi_oci/tenantmanagercontrolplane/get_organization_tenancies.py +144 -0
  195. pulumi_oci/tenantmanagercontrolplane/get_organization_tenancy.py +233 -0
  196. pulumi_oci/tenantmanagercontrolplane/get_organizations.py +147 -0
  197. pulumi_oci/tenantmanagercontrolplane/get_recipient_invitation.py +295 -0
  198. pulumi_oci/tenantmanagercontrolplane/get_recipient_invitations.py +213 -0
  199. pulumi_oci/tenantmanagercontrolplane/get_sender_invitation.py +295 -0
  200. pulumi_oci/tenantmanagercontrolplane/get_sender_invitations.py +235 -0
  201. pulumi_oci/tenantmanagercontrolplane/get_subscription.py +464 -0
  202. pulumi_oci/tenantmanagercontrolplane/get_subscription_available_regions.py +144 -0
  203. pulumi_oci/tenantmanagercontrolplane/get_subscription_line_items.py +144 -0
  204. pulumi_oci/tenantmanagercontrolplane/get_subscription_mapping.py +211 -0
  205. pulumi_oci/tenantmanagercontrolplane/get_subscription_mappings.py +210 -0
  206. pulumi_oci/tenantmanagercontrolplane/get_subscriptions.py +188 -0
  207. pulumi_oci/tenantmanagercontrolplane/outputs.py +3257 -0
  208. pulumi_oci/tenantmanagercontrolplane/subscription_mapping.py +409 -0
  209. pulumi_oci/vault/__init__.py +1 -1
  210. pulumi_oci/vault/_inputs.py +92 -0
  211. pulumi_oci/vault/get_secret.py +40 -1
  212. pulumi_oci/vault/{get_secret_version.py → get_secret_version_sdk_v2.py} +32 -77
  213. pulumi_oci/vault/outputs.py +210 -0
  214. pulumi_oci/vault/secret.py +122 -0
  215. {pulumi_oci-2.25.0a1740032973.dist-info → pulumi_oci-2.26.0.dist-info}/METADATA +1 -1
  216. {pulumi_oci-2.25.0a1740032973.dist-info → pulumi_oci-2.26.0.dist-info}/RECORD +218 -150
  217. {pulumi_oci-2.25.0a1740032973.dist-info → pulumi_oci-2.26.0.dist-info}/WHEEL +1 -1
  218. {pulumi_oci-2.25.0a1740032973.dist-info → pulumi_oci-2.26.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,954 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from .. import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
18
+
19
+ __all__ = ['MonitoringTemplateArgs', 'MonitoringTemplate']
20
+
21
+ @pulumi.input_type
22
+ class MonitoringTemplateArgs:
23
+ def __init__(__self__, *,
24
+ compartment_id: pulumi.Input[str],
25
+ destinations: pulumi.Input[Sequence[pulumi.Input[str]]],
26
+ display_name: pulumi.Input[str],
27
+ members: pulumi.Input[Sequence[pulumi.Input['MonitoringTemplateMemberArgs']]],
28
+ defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
29
+ description: Optional[pulumi.Input[str]] = None,
30
+ freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
31
+ is_alarms_enabled: Optional[pulumi.Input[bool]] = None,
32
+ is_split_notification_enabled: Optional[pulumi.Input[bool]] = None,
33
+ message_format: Optional[pulumi.Input[str]] = None,
34
+ repeat_notification_duration: Optional[pulumi.Input[str]] = None):
35
+ """
36
+ The set of arguments for constructing a MonitoringTemplate resource.
37
+ :param pulumi.Input[str] compartment_id: The OCID of the compartment containing the monitoringTemplate.
38
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] destinations: (Updatable) A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic.
39
+ :param pulumi.Input[str] display_name: (Updatable) A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information.
40
+ :param pulumi.Input[Sequence[pulumi.Input['MonitoringTemplateMemberArgs']]] members: (Updatable) List of members of this monitoring template
41
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
42
+ :param pulumi.Input[str] description: (Updatable) A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information.
43
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
44
+ :param pulumi.Input[bool] is_alarms_enabled: (Updatable) Whether the alarm is enabled or disabled, it will be Enabled by default.
45
+ :param pulumi.Input[bool] is_split_notification_enabled: (Updatable) Whether the alarm notification is enabled or disabled, it will be Enabled by default.
46
+ :param pulumi.Input[str] message_format: (Updatable) The format to use for alarm notifications.
47
+ :param pulumi.Input[str] repeat_notification_duration: (Updatable) The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.
48
+
49
+
50
+ ** IMPORTANT **
51
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
52
+ """
53
+ pulumi.set(__self__, "compartment_id", compartment_id)
54
+ pulumi.set(__self__, "destinations", destinations)
55
+ pulumi.set(__self__, "display_name", display_name)
56
+ pulumi.set(__self__, "members", members)
57
+ if defined_tags is not None:
58
+ pulumi.set(__self__, "defined_tags", defined_tags)
59
+ if description is not None:
60
+ pulumi.set(__self__, "description", description)
61
+ if freeform_tags is not None:
62
+ pulumi.set(__self__, "freeform_tags", freeform_tags)
63
+ if is_alarms_enabled is not None:
64
+ pulumi.set(__self__, "is_alarms_enabled", is_alarms_enabled)
65
+ if is_split_notification_enabled is not None:
66
+ pulumi.set(__self__, "is_split_notification_enabled", is_split_notification_enabled)
67
+ if message_format is not None:
68
+ pulumi.set(__self__, "message_format", message_format)
69
+ if repeat_notification_duration is not None:
70
+ pulumi.set(__self__, "repeat_notification_duration", repeat_notification_duration)
71
+
72
+ @property
73
+ @pulumi.getter(name="compartmentId")
74
+ def compartment_id(self) -> pulumi.Input[str]:
75
+ """
76
+ The OCID of the compartment containing the monitoringTemplate.
77
+ """
78
+ return pulumi.get(self, "compartment_id")
79
+
80
+ @compartment_id.setter
81
+ def compartment_id(self, value: pulumi.Input[str]):
82
+ pulumi.set(self, "compartment_id", value)
83
+
84
+ @property
85
+ @pulumi.getter
86
+ def destinations(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
87
+ """
88
+ (Updatable) A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic.
89
+ """
90
+ return pulumi.get(self, "destinations")
91
+
92
+ @destinations.setter
93
+ def destinations(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
94
+ pulumi.set(self, "destinations", value)
95
+
96
+ @property
97
+ @pulumi.getter(name="displayName")
98
+ def display_name(self) -> pulumi.Input[str]:
99
+ """
100
+ (Updatable) A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information.
101
+ """
102
+ return pulumi.get(self, "display_name")
103
+
104
+ @display_name.setter
105
+ def display_name(self, value: pulumi.Input[str]):
106
+ pulumi.set(self, "display_name", value)
107
+
108
+ @property
109
+ @pulumi.getter
110
+ def members(self) -> pulumi.Input[Sequence[pulumi.Input['MonitoringTemplateMemberArgs']]]:
111
+ """
112
+ (Updatable) List of members of this monitoring template
113
+ """
114
+ return pulumi.get(self, "members")
115
+
116
+ @members.setter
117
+ def members(self, value: pulumi.Input[Sequence[pulumi.Input['MonitoringTemplateMemberArgs']]]):
118
+ pulumi.set(self, "members", value)
119
+
120
+ @property
121
+ @pulumi.getter(name="definedTags")
122
+ def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
123
+ """
124
+ (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
125
+ """
126
+ return pulumi.get(self, "defined_tags")
127
+
128
+ @defined_tags.setter
129
+ def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
130
+ pulumi.set(self, "defined_tags", value)
131
+
132
+ @property
133
+ @pulumi.getter
134
+ def description(self) -> Optional[pulumi.Input[str]]:
135
+ """
136
+ (Updatable) A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information.
137
+ """
138
+ return pulumi.get(self, "description")
139
+
140
+ @description.setter
141
+ def description(self, value: Optional[pulumi.Input[str]]):
142
+ pulumi.set(self, "description", value)
143
+
144
+ @property
145
+ @pulumi.getter(name="freeformTags")
146
+ def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
147
+ """
148
+ (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
149
+ """
150
+ return pulumi.get(self, "freeform_tags")
151
+
152
+ @freeform_tags.setter
153
+ def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
154
+ pulumi.set(self, "freeform_tags", value)
155
+
156
+ @property
157
+ @pulumi.getter(name="isAlarmsEnabled")
158
+ def is_alarms_enabled(self) -> Optional[pulumi.Input[bool]]:
159
+ """
160
+ (Updatable) Whether the alarm is enabled or disabled, it will be Enabled by default.
161
+ """
162
+ return pulumi.get(self, "is_alarms_enabled")
163
+
164
+ @is_alarms_enabled.setter
165
+ def is_alarms_enabled(self, value: Optional[pulumi.Input[bool]]):
166
+ pulumi.set(self, "is_alarms_enabled", value)
167
+
168
+ @property
169
+ @pulumi.getter(name="isSplitNotificationEnabled")
170
+ def is_split_notification_enabled(self) -> Optional[pulumi.Input[bool]]:
171
+ """
172
+ (Updatable) Whether the alarm notification is enabled or disabled, it will be Enabled by default.
173
+ """
174
+ return pulumi.get(self, "is_split_notification_enabled")
175
+
176
+ @is_split_notification_enabled.setter
177
+ def is_split_notification_enabled(self, value: Optional[pulumi.Input[bool]]):
178
+ pulumi.set(self, "is_split_notification_enabled", value)
179
+
180
+ @property
181
+ @pulumi.getter(name="messageFormat")
182
+ def message_format(self) -> Optional[pulumi.Input[str]]:
183
+ """
184
+ (Updatable) The format to use for alarm notifications.
185
+ """
186
+ return pulumi.get(self, "message_format")
187
+
188
+ @message_format.setter
189
+ def message_format(self, value: Optional[pulumi.Input[str]]):
190
+ pulumi.set(self, "message_format", value)
191
+
192
+ @property
193
+ @pulumi.getter(name="repeatNotificationDuration")
194
+ def repeat_notification_duration(self) -> Optional[pulumi.Input[str]]:
195
+ """
196
+ (Updatable) The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.
197
+
198
+
199
+ ** IMPORTANT **
200
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
201
+ """
202
+ return pulumi.get(self, "repeat_notification_duration")
203
+
204
+ @repeat_notification_duration.setter
205
+ def repeat_notification_duration(self, value: Optional[pulumi.Input[str]]):
206
+ pulumi.set(self, "repeat_notification_duration", value)
207
+
208
+
209
+ @pulumi.input_type
210
+ class _MonitoringTemplateState:
211
+ def __init__(__self__, *,
212
+ compartment_id: Optional[pulumi.Input[str]] = None,
213
+ defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
214
+ description: Optional[pulumi.Input[str]] = None,
215
+ destinations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
216
+ display_name: Optional[pulumi.Input[str]] = None,
217
+ freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
218
+ is_alarms_enabled: Optional[pulumi.Input[bool]] = None,
219
+ is_split_notification_enabled: Optional[pulumi.Input[bool]] = None,
220
+ members: Optional[pulumi.Input[Sequence[pulumi.Input['MonitoringTemplateMemberArgs']]]] = None,
221
+ message_format: Optional[pulumi.Input[str]] = None,
222
+ repeat_notification_duration: Optional[pulumi.Input[str]] = None,
223
+ state: Optional[pulumi.Input[str]] = None,
224
+ status: Optional[pulumi.Input[str]] = None,
225
+ system_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
226
+ tenant_id: Optional[pulumi.Input[str]] = None,
227
+ time_created: Optional[pulumi.Input[str]] = None,
228
+ time_updated: Optional[pulumi.Input[str]] = None,
229
+ total_alarm_conditions: Optional[pulumi.Input[float]] = None,
230
+ total_applied_alarm_conditions: Optional[pulumi.Input[float]] = None):
231
+ """
232
+ Input properties used for looking up and filtering MonitoringTemplate resources.
233
+ :param pulumi.Input[str] compartment_id: The OCID of the compartment containing the monitoringTemplate.
234
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
235
+ :param pulumi.Input[str] description: (Updatable) A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information.
236
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] destinations: (Updatable) A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic.
237
+ :param pulumi.Input[str] display_name: (Updatable) A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information.
238
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
239
+ :param pulumi.Input[bool] is_alarms_enabled: (Updatable) Whether the alarm is enabled or disabled, it will be Enabled by default.
240
+ :param pulumi.Input[bool] is_split_notification_enabled: (Updatable) Whether the alarm notification is enabled or disabled, it will be Enabled by default.
241
+ :param pulumi.Input[Sequence[pulumi.Input['MonitoringTemplateMemberArgs']]] members: (Updatable) List of members of this monitoring template
242
+ :param pulumi.Input[str] message_format: (Updatable) The format to use for alarm notifications.
243
+ :param pulumi.Input[str] repeat_notification_duration: (Updatable) The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.
244
+
245
+
246
+ ** IMPORTANT **
247
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
248
+ :param pulumi.Input[str] state: The current lifecycle state of the monitoring template.
249
+ :param pulumi.Input[str] status: The current status of the monitoring template i.e. whether it is Applied or NotApplied.
250
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
251
+ :param pulumi.Input[str] tenant_id: Tenant Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
252
+ :param pulumi.Input[str] time_created: The date and time the monitoringTemplate was created. Format defined by RFC3339.
253
+ :param pulumi.Input[str] time_updated: The date and time the monitoringTemplate was last updated. Format defined by RFC3339.
254
+ :param pulumi.Input[float] total_alarm_conditions: Total Alarm Conditions
255
+ :param pulumi.Input[float] total_applied_alarm_conditions: Total Applied Alarm Conditions
256
+ """
257
+ if compartment_id is not None:
258
+ pulumi.set(__self__, "compartment_id", compartment_id)
259
+ if defined_tags is not None:
260
+ pulumi.set(__self__, "defined_tags", defined_tags)
261
+ if description is not None:
262
+ pulumi.set(__self__, "description", description)
263
+ if destinations is not None:
264
+ pulumi.set(__self__, "destinations", destinations)
265
+ if display_name is not None:
266
+ pulumi.set(__self__, "display_name", display_name)
267
+ if freeform_tags is not None:
268
+ pulumi.set(__self__, "freeform_tags", freeform_tags)
269
+ if is_alarms_enabled is not None:
270
+ pulumi.set(__self__, "is_alarms_enabled", is_alarms_enabled)
271
+ if is_split_notification_enabled is not None:
272
+ pulumi.set(__self__, "is_split_notification_enabled", is_split_notification_enabled)
273
+ if members is not None:
274
+ pulumi.set(__self__, "members", members)
275
+ if message_format is not None:
276
+ pulumi.set(__self__, "message_format", message_format)
277
+ if repeat_notification_duration is not None:
278
+ pulumi.set(__self__, "repeat_notification_duration", repeat_notification_duration)
279
+ if state is not None:
280
+ pulumi.set(__self__, "state", state)
281
+ if status is not None:
282
+ pulumi.set(__self__, "status", status)
283
+ if system_tags is not None:
284
+ pulumi.set(__self__, "system_tags", system_tags)
285
+ if tenant_id is not None:
286
+ pulumi.set(__self__, "tenant_id", tenant_id)
287
+ if time_created is not None:
288
+ pulumi.set(__self__, "time_created", time_created)
289
+ if time_updated is not None:
290
+ pulumi.set(__self__, "time_updated", time_updated)
291
+ if total_alarm_conditions is not None:
292
+ pulumi.set(__self__, "total_alarm_conditions", total_alarm_conditions)
293
+ if total_applied_alarm_conditions is not None:
294
+ pulumi.set(__self__, "total_applied_alarm_conditions", total_applied_alarm_conditions)
295
+
296
+ @property
297
+ @pulumi.getter(name="compartmentId")
298
+ def compartment_id(self) -> Optional[pulumi.Input[str]]:
299
+ """
300
+ The OCID of the compartment containing the monitoringTemplate.
301
+ """
302
+ return pulumi.get(self, "compartment_id")
303
+
304
+ @compartment_id.setter
305
+ def compartment_id(self, value: Optional[pulumi.Input[str]]):
306
+ pulumi.set(self, "compartment_id", value)
307
+
308
+ @property
309
+ @pulumi.getter(name="definedTags")
310
+ def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
311
+ """
312
+ (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
313
+ """
314
+ return pulumi.get(self, "defined_tags")
315
+
316
+ @defined_tags.setter
317
+ def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
318
+ pulumi.set(self, "defined_tags", value)
319
+
320
+ @property
321
+ @pulumi.getter
322
+ def description(self) -> Optional[pulumi.Input[str]]:
323
+ """
324
+ (Updatable) A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information.
325
+ """
326
+ return pulumi.get(self, "description")
327
+
328
+ @description.setter
329
+ def description(self, value: Optional[pulumi.Input[str]]):
330
+ pulumi.set(self, "description", value)
331
+
332
+ @property
333
+ @pulumi.getter
334
+ def destinations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
335
+ """
336
+ (Updatable) A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic.
337
+ """
338
+ return pulumi.get(self, "destinations")
339
+
340
+ @destinations.setter
341
+ def destinations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
342
+ pulumi.set(self, "destinations", value)
343
+
344
+ @property
345
+ @pulumi.getter(name="displayName")
346
+ def display_name(self) -> Optional[pulumi.Input[str]]:
347
+ """
348
+ (Updatable) A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information.
349
+ """
350
+ return pulumi.get(self, "display_name")
351
+
352
+ @display_name.setter
353
+ def display_name(self, value: Optional[pulumi.Input[str]]):
354
+ pulumi.set(self, "display_name", value)
355
+
356
+ @property
357
+ @pulumi.getter(name="freeformTags")
358
+ def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
359
+ """
360
+ (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
361
+ """
362
+ return pulumi.get(self, "freeform_tags")
363
+
364
+ @freeform_tags.setter
365
+ def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
366
+ pulumi.set(self, "freeform_tags", value)
367
+
368
+ @property
369
+ @pulumi.getter(name="isAlarmsEnabled")
370
+ def is_alarms_enabled(self) -> Optional[pulumi.Input[bool]]:
371
+ """
372
+ (Updatable) Whether the alarm is enabled or disabled, it will be Enabled by default.
373
+ """
374
+ return pulumi.get(self, "is_alarms_enabled")
375
+
376
+ @is_alarms_enabled.setter
377
+ def is_alarms_enabled(self, value: Optional[pulumi.Input[bool]]):
378
+ pulumi.set(self, "is_alarms_enabled", value)
379
+
380
+ @property
381
+ @pulumi.getter(name="isSplitNotificationEnabled")
382
+ def is_split_notification_enabled(self) -> Optional[pulumi.Input[bool]]:
383
+ """
384
+ (Updatable) Whether the alarm notification is enabled or disabled, it will be Enabled by default.
385
+ """
386
+ return pulumi.get(self, "is_split_notification_enabled")
387
+
388
+ @is_split_notification_enabled.setter
389
+ def is_split_notification_enabled(self, value: Optional[pulumi.Input[bool]]):
390
+ pulumi.set(self, "is_split_notification_enabled", value)
391
+
392
+ @property
393
+ @pulumi.getter
394
+ def members(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MonitoringTemplateMemberArgs']]]]:
395
+ """
396
+ (Updatable) List of members of this monitoring template
397
+ """
398
+ return pulumi.get(self, "members")
399
+
400
+ @members.setter
401
+ def members(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MonitoringTemplateMemberArgs']]]]):
402
+ pulumi.set(self, "members", value)
403
+
404
+ @property
405
+ @pulumi.getter(name="messageFormat")
406
+ def message_format(self) -> Optional[pulumi.Input[str]]:
407
+ """
408
+ (Updatable) The format to use for alarm notifications.
409
+ """
410
+ return pulumi.get(self, "message_format")
411
+
412
+ @message_format.setter
413
+ def message_format(self, value: Optional[pulumi.Input[str]]):
414
+ pulumi.set(self, "message_format", value)
415
+
416
+ @property
417
+ @pulumi.getter(name="repeatNotificationDuration")
418
+ def repeat_notification_duration(self) -> Optional[pulumi.Input[str]]:
419
+ """
420
+ (Updatable) The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.
421
+
422
+
423
+ ** IMPORTANT **
424
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
425
+ """
426
+ return pulumi.get(self, "repeat_notification_duration")
427
+
428
+ @repeat_notification_duration.setter
429
+ def repeat_notification_duration(self, value: Optional[pulumi.Input[str]]):
430
+ pulumi.set(self, "repeat_notification_duration", value)
431
+
432
+ @property
433
+ @pulumi.getter
434
+ def state(self) -> Optional[pulumi.Input[str]]:
435
+ """
436
+ The current lifecycle state of the monitoring template.
437
+ """
438
+ return pulumi.get(self, "state")
439
+
440
+ @state.setter
441
+ def state(self, value: Optional[pulumi.Input[str]]):
442
+ pulumi.set(self, "state", value)
443
+
444
+ @property
445
+ @pulumi.getter
446
+ def status(self) -> Optional[pulumi.Input[str]]:
447
+ """
448
+ The current status of the monitoring template i.e. whether it is Applied or NotApplied.
449
+ """
450
+ return pulumi.get(self, "status")
451
+
452
+ @status.setter
453
+ def status(self, value: Optional[pulumi.Input[str]]):
454
+ pulumi.set(self, "status", value)
455
+
456
+ @property
457
+ @pulumi.getter(name="systemTags")
458
+ def system_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
459
+ """
460
+ Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
461
+ """
462
+ return pulumi.get(self, "system_tags")
463
+
464
+ @system_tags.setter
465
+ def system_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
466
+ pulumi.set(self, "system_tags", value)
467
+
468
+ @property
469
+ @pulumi.getter(name="tenantId")
470
+ def tenant_id(self) -> Optional[pulumi.Input[str]]:
471
+ """
472
+ Tenant Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
473
+ """
474
+ return pulumi.get(self, "tenant_id")
475
+
476
+ @tenant_id.setter
477
+ def tenant_id(self, value: Optional[pulumi.Input[str]]):
478
+ pulumi.set(self, "tenant_id", value)
479
+
480
+ @property
481
+ @pulumi.getter(name="timeCreated")
482
+ def time_created(self) -> Optional[pulumi.Input[str]]:
483
+ """
484
+ The date and time the monitoringTemplate was created. Format defined by RFC3339.
485
+ """
486
+ return pulumi.get(self, "time_created")
487
+
488
+ @time_created.setter
489
+ def time_created(self, value: Optional[pulumi.Input[str]]):
490
+ pulumi.set(self, "time_created", value)
491
+
492
+ @property
493
+ @pulumi.getter(name="timeUpdated")
494
+ def time_updated(self) -> Optional[pulumi.Input[str]]:
495
+ """
496
+ The date and time the monitoringTemplate was last updated. Format defined by RFC3339.
497
+ """
498
+ return pulumi.get(self, "time_updated")
499
+
500
+ @time_updated.setter
501
+ def time_updated(self, value: Optional[pulumi.Input[str]]):
502
+ pulumi.set(self, "time_updated", value)
503
+
504
+ @property
505
+ @pulumi.getter(name="totalAlarmConditions")
506
+ def total_alarm_conditions(self) -> Optional[pulumi.Input[float]]:
507
+ """
508
+ Total Alarm Conditions
509
+ """
510
+ return pulumi.get(self, "total_alarm_conditions")
511
+
512
+ @total_alarm_conditions.setter
513
+ def total_alarm_conditions(self, value: Optional[pulumi.Input[float]]):
514
+ pulumi.set(self, "total_alarm_conditions", value)
515
+
516
+ @property
517
+ @pulumi.getter(name="totalAppliedAlarmConditions")
518
+ def total_applied_alarm_conditions(self) -> Optional[pulumi.Input[float]]:
519
+ """
520
+ Total Applied Alarm Conditions
521
+ """
522
+ return pulumi.get(self, "total_applied_alarm_conditions")
523
+
524
+ @total_applied_alarm_conditions.setter
525
+ def total_applied_alarm_conditions(self, value: Optional[pulumi.Input[float]]):
526
+ pulumi.set(self, "total_applied_alarm_conditions", value)
527
+
528
+
529
+ class MonitoringTemplate(pulumi.CustomResource):
530
+ @overload
531
+ def __init__(__self__,
532
+ resource_name: str,
533
+ opts: Optional[pulumi.ResourceOptions] = None,
534
+ compartment_id: Optional[pulumi.Input[str]] = None,
535
+ defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
536
+ description: Optional[pulumi.Input[str]] = None,
537
+ destinations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
538
+ display_name: Optional[pulumi.Input[str]] = None,
539
+ freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
540
+ is_alarms_enabled: Optional[pulumi.Input[bool]] = None,
541
+ is_split_notification_enabled: Optional[pulumi.Input[bool]] = None,
542
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitoringTemplateMemberArgs', 'MonitoringTemplateMemberArgsDict']]]]] = None,
543
+ message_format: Optional[pulumi.Input[str]] = None,
544
+ repeat_notification_duration: Optional[pulumi.Input[str]] = None,
545
+ __props__=None):
546
+ """
547
+ This resource provides the Monitoring Template resource in Oracle Cloud Infrastructure Stack Monitoring service.
548
+
549
+ Creates a new monitoring template for a given compartment.
550
+
551
+ ## Example Usage
552
+
553
+ ```python
554
+ import pulumi
555
+ import pulumi_oci as oci
556
+
557
+ test_monitoring_template = oci.stack_monitoring.MonitoringTemplate("test_monitoring_template",
558
+ compartment_id=compartment_id,
559
+ destinations=monitoring_template_destinations,
560
+ display_name=monitoring_template_display_name,
561
+ members=[{
562
+ "id": monitoring_template_members_id,
563
+ "type": monitoring_template_members_type,
564
+ "composite_type": monitoring_template_members_composite_type,
565
+ }],
566
+ defined_tags={
567
+ "foo-namespace.bar-key": "value",
568
+ },
569
+ description=monitoring_template_description,
570
+ freeform_tags={
571
+ "bar-key": "value",
572
+ },
573
+ is_alarms_enabled=monitoring_template_is_alarms_enabled,
574
+ is_split_notification_enabled=monitoring_template_is_split_notification_enabled,
575
+ message_format=monitoring_template_message_format,
576
+ repeat_notification_duration=monitoring_template_repeat_notification_duration)
577
+ ```
578
+
579
+ ## Import
580
+
581
+ MonitoringTemplates can be imported using the `id`, e.g.
582
+
583
+ ```sh
584
+ $ pulumi import oci:StackMonitoring/monitoringTemplate:MonitoringTemplate test_monitoring_template "id"
585
+ ```
586
+
587
+ :param str resource_name: The name of the resource.
588
+ :param pulumi.ResourceOptions opts: Options for the resource.
589
+ :param pulumi.Input[str] compartment_id: The OCID of the compartment containing the monitoringTemplate.
590
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
591
+ :param pulumi.Input[str] description: (Updatable) A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information.
592
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] destinations: (Updatable) A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic.
593
+ :param pulumi.Input[str] display_name: (Updatable) A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information.
594
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
595
+ :param pulumi.Input[bool] is_alarms_enabled: (Updatable) Whether the alarm is enabled or disabled, it will be Enabled by default.
596
+ :param pulumi.Input[bool] is_split_notification_enabled: (Updatable) Whether the alarm notification is enabled or disabled, it will be Enabled by default.
597
+ :param pulumi.Input[Sequence[pulumi.Input[Union['MonitoringTemplateMemberArgs', 'MonitoringTemplateMemberArgsDict']]]] members: (Updatable) List of members of this monitoring template
598
+ :param pulumi.Input[str] message_format: (Updatable) The format to use for alarm notifications.
599
+ :param pulumi.Input[str] repeat_notification_duration: (Updatable) The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.
600
+
601
+
602
+ ** IMPORTANT **
603
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
604
+ """
605
+ ...
606
+ @overload
607
+ def __init__(__self__,
608
+ resource_name: str,
609
+ args: MonitoringTemplateArgs,
610
+ opts: Optional[pulumi.ResourceOptions] = None):
611
+ """
612
+ This resource provides the Monitoring Template resource in Oracle Cloud Infrastructure Stack Monitoring service.
613
+
614
+ Creates a new monitoring template for a given compartment.
615
+
616
+ ## Example Usage
617
+
618
+ ```python
619
+ import pulumi
620
+ import pulumi_oci as oci
621
+
622
+ test_monitoring_template = oci.stack_monitoring.MonitoringTemplate("test_monitoring_template",
623
+ compartment_id=compartment_id,
624
+ destinations=monitoring_template_destinations,
625
+ display_name=monitoring_template_display_name,
626
+ members=[{
627
+ "id": monitoring_template_members_id,
628
+ "type": monitoring_template_members_type,
629
+ "composite_type": monitoring_template_members_composite_type,
630
+ }],
631
+ defined_tags={
632
+ "foo-namespace.bar-key": "value",
633
+ },
634
+ description=monitoring_template_description,
635
+ freeform_tags={
636
+ "bar-key": "value",
637
+ },
638
+ is_alarms_enabled=monitoring_template_is_alarms_enabled,
639
+ is_split_notification_enabled=monitoring_template_is_split_notification_enabled,
640
+ message_format=monitoring_template_message_format,
641
+ repeat_notification_duration=monitoring_template_repeat_notification_duration)
642
+ ```
643
+
644
+ ## Import
645
+
646
+ MonitoringTemplates can be imported using the `id`, e.g.
647
+
648
+ ```sh
649
+ $ pulumi import oci:StackMonitoring/monitoringTemplate:MonitoringTemplate test_monitoring_template "id"
650
+ ```
651
+
652
+ :param str resource_name: The name of the resource.
653
+ :param MonitoringTemplateArgs args: The arguments to use to populate this resource's properties.
654
+ :param pulumi.ResourceOptions opts: Options for the resource.
655
+ """
656
+ ...
657
+ def __init__(__self__, resource_name: str, *args, **kwargs):
658
+ resource_args, opts = _utilities.get_resource_args_opts(MonitoringTemplateArgs, pulumi.ResourceOptions, *args, **kwargs)
659
+ if resource_args is not None:
660
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
661
+ else:
662
+ __self__._internal_init(resource_name, *args, **kwargs)
663
+
664
+ def _internal_init(__self__,
665
+ resource_name: str,
666
+ opts: Optional[pulumi.ResourceOptions] = None,
667
+ compartment_id: Optional[pulumi.Input[str]] = None,
668
+ defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
669
+ description: Optional[pulumi.Input[str]] = None,
670
+ destinations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
671
+ display_name: Optional[pulumi.Input[str]] = None,
672
+ freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
673
+ is_alarms_enabled: Optional[pulumi.Input[bool]] = None,
674
+ is_split_notification_enabled: Optional[pulumi.Input[bool]] = None,
675
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitoringTemplateMemberArgs', 'MonitoringTemplateMemberArgsDict']]]]] = None,
676
+ message_format: Optional[pulumi.Input[str]] = None,
677
+ repeat_notification_duration: Optional[pulumi.Input[str]] = None,
678
+ __props__=None):
679
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
680
+ if not isinstance(opts, pulumi.ResourceOptions):
681
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
682
+ if opts.id is None:
683
+ if __props__ is not None:
684
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
685
+ __props__ = MonitoringTemplateArgs.__new__(MonitoringTemplateArgs)
686
+
687
+ if compartment_id is None and not opts.urn:
688
+ raise TypeError("Missing required property 'compartment_id'")
689
+ __props__.__dict__["compartment_id"] = compartment_id
690
+ __props__.__dict__["defined_tags"] = defined_tags
691
+ __props__.__dict__["description"] = description
692
+ if destinations is None and not opts.urn:
693
+ raise TypeError("Missing required property 'destinations'")
694
+ __props__.__dict__["destinations"] = destinations
695
+ if display_name is None and not opts.urn:
696
+ raise TypeError("Missing required property 'display_name'")
697
+ __props__.__dict__["display_name"] = display_name
698
+ __props__.__dict__["freeform_tags"] = freeform_tags
699
+ __props__.__dict__["is_alarms_enabled"] = is_alarms_enabled
700
+ __props__.__dict__["is_split_notification_enabled"] = is_split_notification_enabled
701
+ if members is None and not opts.urn:
702
+ raise TypeError("Missing required property 'members'")
703
+ __props__.__dict__["members"] = members
704
+ __props__.__dict__["message_format"] = message_format
705
+ __props__.__dict__["repeat_notification_duration"] = repeat_notification_duration
706
+ __props__.__dict__["state"] = None
707
+ __props__.__dict__["status"] = None
708
+ __props__.__dict__["system_tags"] = None
709
+ __props__.__dict__["tenant_id"] = None
710
+ __props__.__dict__["time_created"] = None
711
+ __props__.__dict__["time_updated"] = None
712
+ __props__.__dict__["total_alarm_conditions"] = None
713
+ __props__.__dict__["total_applied_alarm_conditions"] = None
714
+ super(MonitoringTemplate, __self__).__init__(
715
+ 'oci:StackMonitoring/monitoringTemplate:MonitoringTemplate',
716
+ resource_name,
717
+ __props__,
718
+ opts)
719
+
720
+ @staticmethod
721
+ def get(resource_name: str,
722
+ id: pulumi.Input[str],
723
+ opts: Optional[pulumi.ResourceOptions] = None,
724
+ compartment_id: Optional[pulumi.Input[str]] = None,
725
+ defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
726
+ description: Optional[pulumi.Input[str]] = None,
727
+ destinations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
728
+ display_name: Optional[pulumi.Input[str]] = None,
729
+ freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
730
+ is_alarms_enabled: Optional[pulumi.Input[bool]] = None,
731
+ is_split_notification_enabled: Optional[pulumi.Input[bool]] = None,
732
+ members: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitoringTemplateMemberArgs', 'MonitoringTemplateMemberArgsDict']]]]] = None,
733
+ message_format: Optional[pulumi.Input[str]] = None,
734
+ repeat_notification_duration: Optional[pulumi.Input[str]] = None,
735
+ state: Optional[pulumi.Input[str]] = None,
736
+ status: Optional[pulumi.Input[str]] = None,
737
+ system_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
738
+ tenant_id: Optional[pulumi.Input[str]] = None,
739
+ time_created: Optional[pulumi.Input[str]] = None,
740
+ time_updated: Optional[pulumi.Input[str]] = None,
741
+ total_alarm_conditions: Optional[pulumi.Input[float]] = None,
742
+ total_applied_alarm_conditions: Optional[pulumi.Input[float]] = None) -> 'MonitoringTemplate':
743
+ """
744
+ Get an existing MonitoringTemplate resource's state with the given name, id, and optional extra
745
+ properties used to qualify the lookup.
746
+
747
+ :param str resource_name: The unique name of the resulting resource.
748
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
749
+ :param pulumi.ResourceOptions opts: Options for the resource.
750
+ :param pulumi.Input[str] compartment_id: The OCID of the compartment containing the monitoringTemplate.
751
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
752
+ :param pulumi.Input[str] description: (Updatable) A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information.
753
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] destinations: (Updatable) A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic.
754
+ :param pulumi.Input[str] display_name: (Updatable) A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information.
755
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
756
+ :param pulumi.Input[bool] is_alarms_enabled: (Updatable) Whether the alarm is enabled or disabled, it will be Enabled by default.
757
+ :param pulumi.Input[bool] is_split_notification_enabled: (Updatable) Whether the alarm notification is enabled or disabled, it will be Enabled by default.
758
+ :param pulumi.Input[Sequence[pulumi.Input[Union['MonitoringTemplateMemberArgs', 'MonitoringTemplateMemberArgsDict']]]] members: (Updatable) List of members of this monitoring template
759
+ :param pulumi.Input[str] message_format: (Updatable) The format to use for alarm notifications.
760
+ :param pulumi.Input[str] repeat_notification_duration: (Updatable) The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.
761
+
762
+
763
+ ** IMPORTANT **
764
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
765
+ :param pulumi.Input[str] state: The current lifecycle state of the monitoring template.
766
+ :param pulumi.Input[str] status: The current status of the monitoring template i.e. whether it is Applied or NotApplied.
767
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
768
+ :param pulumi.Input[str] tenant_id: Tenant Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
769
+ :param pulumi.Input[str] time_created: The date and time the monitoringTemplate was created. Format defined by RFC3339.
770
+ :param pulumi.Input[str] time_updated: The date and time the monitoringTemplate was last updated. Format defined by RFC3339.
771
+ :param pulumi.Input[float] total_alarm_conditions: Total Alarm Conditions
772
+ :param pulumi.Input[float] total_applied_alarm_conditions: Total Applied Alarm Conditions
773
+ """
774
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
775
+
776
+ __props__ = _MonitoringTemplateState.__new__(_MonitoringTemplateState)
777
+
778
+ __props__.__dict__["compartment_id"] = compartment_id
779
+ __props__.__dict__["defined_tags"] = defined_tags
780
+ __props__.__dict__["description"] = description
781
+ __props__.__dict__["destinations"] = destinations
782
+ __props__.__dict__["display_name"] = display_name
783
+ __props__.__dict__["freeform_tags"] = freeform_tags
784
+ __props__.__dict__["is_alarms_enabled"] = is_alarms_enabled
785
+ __props__.__dict__["is_split_notification_enabled"] = is_split_notification_enabled
786
+ __props__.__dict__["members"] = members
787
+ __props__.__dict__["message_format"] = message_format
788
+ __props__.__dict__["repeat_notification_duration"] = repeat_notification_duration
789
+ __props__.__dict__["state"] = state
790
+ __props__.__dict__["status"] = status
791
+ __props__.__dict__["system_tags"] = system_tags
792
+ __props__.__dict__["tenant_id"] = tenant_id
793
+ __props__.__dict__["time_created"] = time_created
794
+ __props__.__dict__["time_updated"] = time_updated
795
+ __props__.__dict__["total_alarm_conditions"] = total_alarm_conditions
796
+ __props__.__dict__["total_applied_alarm_conditions"] = total_applied_alarm_conditions
797
+ return MonitoringTemplate(resource_name, opts=opts, __props__=__props__)
798
+
799
+ @property
800
+ @pulumi.getter(name="compartmentId")
801
+ def compartment_id(self) -> pulumi.Output[str]:
802
+ """
803
+ The OCID of the compartment containing the monitoringTemplate.
804
+ """
805
+ return pulumi.get(self, "compartment_id")
806
+
807
+ @property
808
+ @pulumi.getter(name="definedTags")
809
+ def defined_tags(self) -> pulumi.Output[Mapping[str, str]]:
810
+ """
811
+ (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
812
+ """
813
+ return pulumi.get(self, "defined_tags")
814
+
815
+ @property
816
+ @pulumi.getter
817
+ def description(self) -> pulumi.Output[str]:
818
+ """
819
+ (Updatable) A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information.
820
+ """
821
+ return pulumi.get(self, "description")
822
+
823
+ @property
824
+ @pulumi.getter
825
+ def destinations(self) -> pulumi.Output[Sequence[str]]:
826
+ """
827
+ (Updatable) A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic.
828
+ """
829
+ return pulumi.get(self, "destinations")
830
+
831
+ @property
832
+ @pulumi.getter(name="displayName")
833
+ def display_name(self) -> pulumi.Output[str]:
834
+ """
835
+ (Updatable) A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information.
836
+ """
837
+ return pulumi.get(self, "display_name")
838
+
839
+ @property
840
+ @pulumi.getter(name="freeformTags")
841
+ def freeform_tags(self) -> pulumi.Output[Mapping[str, str]]:
842
+ """
843
+ (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
844
+ """
845
+ return pulumi.get(self, "freeform_tags")
846
+
847
+ @property
848
+ @pulumi.getter(name="isAlarmsEnabled")
849
+ def is_alarms_enabled(self) -> pulumi.Output[bool]:
850
+ """
851
+ (Updatable) Whether the alarm is enabled or disabled, it will be Enabled by default.
852
+ """
853
+ return pulumi.get(self, "is_alarms_enabled")
854
+
855
+ @property
856
+ @pulumi.getter(name="isSplitNotificationEnabled")
857
+ def is_split_notification_enabled(self) -> pulumi.Output[bool]:
858
+ """
859
+ (Updatable) Whether the alarm notification is enabled or disabled, it will be Enabled by default.
860
+ """
861
+ return pulumi.get(self, "is_split_notification_enabled")
862
+
863
+ @property
864
+ @pulumi.getter
865
+ def members(self) -> pulumi.Output[Sequence['outputs.MonitoringTemplateMember']]:
866
+ """
867
+ (Updatable) List of members of this monitoring template
868
+ """
869
+ return pulumi.get(self, "members")
870
+
871
+ @property
872
+ @pulumi.getter(name="messageFormat")
873
+ def message_format(self) -> pulumi.Output[str]:
874
+ """
875
+ (Updatable) The format to use for alarm notifications.
876
+ """
877
+ return pulumi.get(self, "message_format")
878
+
879
+ @property
880
+ @pulumi.getter(name="repeatNotificationDuration")
881
+ def repeat_notification_duration(self) -> pulumi.Output[str]:
882
+ """
883
+ (Updatable) The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D.
884
+
885
+
886
+ ** IMPORTANT **
887
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
888
+ """
889
+ return pulumi.get(self, "repeat_notification_duration")
890
+
891
+ @property
892
+ @pulumi.getter
893
+ def state(self) -> pulumi.Output[str]:
894
+ """
895
+ The current lifecycle state of the monitoring template.
896
+ """
897
+ return pulumi.get(self, "state")
898
+
899
+ @property
900
+ @pulumi.getter
901
+ def status(self) -> pulumi.Output[str]:
902
+ """
903
+ The current status of the monitoring template i.e. whether it is Applied or NotApplied.
904
+ """
905
+ return pulumi.get(self, "status")
906
+
907
+ @property
908
+ @pulumi.getter(name="systemTags")
909
+ def system_tags(self) -> pulumi.Output[Mapping[str, str]]:
910
+ """
911
+ Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
912
+ """
913
+ return pulumi.get(self, "system_tags")
914
+
915
+ @property
916
+ @pulumi.getter(name="tenantId")
917
+ def tenant_id(self) -> pulumi.Output[str]:
918
+ """
919
+ Tenant Identifier [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
920
+ """
921
+ return pulumi.get(self, "tenant_id")
922
+
923
+ @property
924
+ @pulumi.getter(name="timeCreated")
925
+ def time_created(self) -> pulumi.Output[str]:
926
+ """
927
+ The date and time the monitoringTemplate was created. Format defined by RFC3339.
928
+ """
929
+ return pulumi.get(self, "time_created")
930
+
931
+ @property
932
+ @pulumi.getter(name="timeUpdated")
933
+ def time_updated(self) -> pulumi.Output[str]:
934
+ """
935
+ The date and time the monitoringTemplate was last updated. Format defined by RFC3339.
936
+ """
937
+ return pulumi.get(self, "time_updated")
938
+
939
+ @property
940
+ @pulumi.getter(name="totalAlarmConditions")
941
+ def total_alarm_conditions(self) -> pulumi.Output[float]:
942
+ """
943
+ Total Alarm Conditions
944
+ """
945
+ return pulumi.get(self, "total_alarm_conditions")
946
+
947
+ @property
948
+ @pulumi.getter(name="totalAppliedAlarmConditions")
949
+ def total_applied_alarm_conditions(self) -> pulumi.Output[float]:
950
+ """
951
+ Total Applied Alarm Conditions
952
+ """
953
+ return pulumi.get(self, "total_applied_alarm_conditions")
954
+