pulumi-oci 2.5.0a1722062014__py3-none-any.whl → 2.6.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 (129) hide show
  1. pulumi_oci/__init__.py +91 -32
  2. pulumi_oci/bigdataservice/_inputs.py +157 -14
  3. pulumi_oci/bigdataservice/bds_instance.py +175 -0
  4. pulumi_oci/bigdataservice/bds_instance_patch_action.py +64 -3
  5. pulumi_oci/bigdataservice/get_bds_instance.py +41 -1
  6. pulumi_oci/bigdataservice/outputs.py +264 -30
  7. pulumi_oci/core/__init__.py +3 -0
  8. pulumi_oci/core/_inputs.py +40 -0
  9. pulumi_oci/core/get_instance_maintenance_event.py +414 -0
  10. pulumi_oci/core/get_instance_maintenance_events.py +250 -0
  11. pulumi_oci/core/instance_maintenance_event.py +1022 -0
  12. pulumi_oci/core/outputs.py +314 -0
  13. pulumi_oci/database/autonomous_database.py +28 -0
  14. pulumi_oci/database/get_autonomous_database.py +14 -1
  15. pulumi_oci/database/outputs.py +22 -0
  16. pulumi_oci/databasemigration/_inputs.py +184 -0
  17. pulumi_oci/databasemigration/job.py +99 -24
  18. pulumi_oci/databasemigration/outputs.py +171 -0
  19. pulumi_oci/datasafe/__init__.py +2 -4
  20. pulumi_oci/datasafe/_inputs.py +55 -0
  21. pulumi_oci/datasafe/alert.py +56 -0
  22. pulumi_oci/datasafe/alert_policy.py +745 -0
  23. pulumi_oci/datasafe/alert_policy_rule.py +446 -0
  24. pulumi_oci/datasafe/get_alert.py +27 -1
  25. pulumi_oci/datasafe/get_alert_policy.py +26 -2
  26. pulumi_oci/datasafe/get_alert_policy_rule.py +94 -18
  27. pulumi_oci/datasafe/get_report.py +14 -1
  28. pulumi_oci/datasafe/get_report_definition.py +14 -1
  29. pulumi_oci/datasafe/get_target_alert_policy_association.py +15 -2
  30. pulumi_oci/datasafe/outputs.py +231 -27
  31. pulumi_oci/datasafe/report.py +28 -0
  32. pulumi_oci/datasafe/report_definition.py +28 -0
  33. pulumi_oci/datasafe/target_alert_policy_association.py +28 -0
  34. pulumi_oci/devops/__init__.py +6 -0
  35. pulumi_oci/devops/_inputs.py +531 -32
  36. pulumi_oci/devops/get_build_runs.py +0 -5
  37. pulumi_oci/devops/get_project_repository_setting.py +129 -0
  38. pulumi_oci/devops/get_repositories.py +1 -1
  39. pulumi_oci/devops/get_repository.py +17 -4
  40. pulumi_oci/devops/get_repository_diffs.py +20 -3
  41. pulumi_oci/devops/get_repository_protected_branches.py +150 -0
  42. pulumi_oci/devops/get_repository_ref.py +2 -2
  43. pulumi_oci/devops/get_repository_setting.py +142 -0
  44. pulumi_oci/devops/get_triggers.py +0 -5
  45. pulumi_oci/devops/outputs.py +1216 -180
  46. pulumi_oci/devops/project_repository_setting.py +338 -0
  47. pulumi_oci/devops/repository.py +66 -75
  48. pulumi_oci/devops/repository_protected_branch_management.py +333 -0
  49. pulumi_oci/devops/repository_ref.py +2 -2
  50. pulumi_oci/devops/repository_setting.py +391 -0
  51. pulumi_oci/fleetsoftwareupdate/__init__.py +15 -0
  52. pulumi_oci/fleetsoftwareupdate/_inputs.py +553 -0
  53. pulumi_oci/fleetsoftwareupdate/fsu_collection.py +514 -0
  54. pulumi_oci/fleetsoftwareupdate/fsu_cycle.py +812 -0
  55. pulumi_oci/fleetsoftwareupdate/get_fsu_collection.py +225 -0
  56. pulumi_oci/fleetsoftwareupdate/get_fsu_collections.py +141 -0
  57. pulumi_oci/fleetsoftwareupdate/get_fsu_cycle.py +325 -0
  58. pulumi_oci/fleetsoftwareupdate/get_fsu_cycles.py +167 -0
  59. pulumi_oci/fleetsoftwareupdate/outputs.py +1481 -0
  60. pulumi_oci/generativeai/get_dedicated_ai_cluster.py +3 -0
  61. pulumi_oci/generativeai/get_dedicated_ai_clusters.py +3 -0
  62. pulumi_oci/generativeai/get_endpoint.py +6 -9
  63. pulumi_oci/generativeai/get_endpoints.py +3 -3
  64. pulumi_oci/generativeai/get_model.py +36 -6
  65. pulumi_oci/generativeai/get_models.py +6 -0
  66. pulumi_oci/generativeai/outputs.py +228 -16
  67. pulumi_oci/identity/__init__.py +3 -0
  68. pulumi_oci/identity/_inputs.py +1029 -0
  69. pulumi_oci/identity/domains_social_identity_provider.py +4628 -0
  70. pulumi_oci/identity/get_domains_social_identity_provider.py +664 -0
  71. pulumi_oci/identity/get_domains_social_identity_providers.py +276 -0
  72. pulumi_oci/identity/outputs.py +19544 -17378
  73. pulumi_oci/jms/__init__.py +4 -0
  74. pulumi_oci/jms/_inputs.py +80 -0
  75. pulumi_oci/jms/get_agent_installers.py +190 -0
  76. pulumi_oci/jms/get_fleet_blocklists.py +2 -2
  77. pulumi_oci/jms/get_fleet_crypto_analysis_result.py +29 -3
  78. pulumi_oci/jms/get_fleet_crypto_analysis_results.py +97 -3
  79. pulumi_oci/jms/get_fleet_export_setting.py +3 -3
  80. pulumi_oci/jms/get_fleet_export_status.py +2 -2
  81. pulumi_oci/jms/get_fleet_java_migration_analysis_result.py +2 -2
  82. pulumi_oci/jms/get_fleet_java_migration_analysis_results.py +45 -5
  83. pulumi_oci/jms/get_fleet_performance_tuning_analysis_result.py +4 -4
  84. pulumi_oci/jms/get_fleet_performance_tuning_analysis_results.py +25 -5
  85. pulumi_oci/jms/get_fleets.py +2 -2
  86. pulumi_oci/jms/get_installation_site.py +4 -4
  87. pulumi_oci/jms/get_installation_sites.py +4 -4
  88. pulumi_oci/jms/get_java_downloads_java_download_tokens.py +2 -2
  89. pulumi_oci/jms/get_java_downloads_java_license_acceptance_records.py +2 -2
  90. pulumi_oci/jms/get_java_family.py +14 -1
  91. pulumi_oci/jms/get_jms_plugin.py +313 -0
  92. pulumi_oci/jms/get_jms_plugins.py +291 -0
  93. pulumi_oci/jms/jms_plugin.py +731 -0
  94. pulumi_oci/jms/outputs.py +488 -32
  95. pulumi_oci/networkfirewall/__init__.py +3 -0
  96. pulumi_oci/networkfirewall/_inputs.py +150 -0
  97. pulumi_oci/networkfirewall/get_network_firewall_policy_tunnel_inspection_rule.py +227 -0
  98. pulumi_oci/networkfirewall/get_network_firewall_policy_tunnel_inspection_rules.py +167 -0
  99. pulumi_oci/networkfirewall/network_firewall_policy_tunnel_inspection_rule.py +605 -0
  100. pulumi_oci/networkfirewall/outputs.py +457 -0
  101. pulumi_oci/osmanagementhub/get_software_source.py +19 -1
  102. pulumi_oci/osmanagementhub/software_source.py +82 -0
  103. pulumi_oci/psql/_inputs.py +8 -4
  104. pulumi_oci/psql/backup.py +4 -4
  105. pulumi_oci/psql/configuration.py +141 -38
  106. pulumi_oci/psql/db_system.py +53 -55
  107. pulumi_oci/psql/get_backup.py +1 -1
  108. pulumi_oci/psql/get_configuration.py +27 -1
  109. pulumi_oci/psql/get_configurations.py +2 -2
  110. pulumi_oci/psql/get_default_configuration.py +15 -2
  111. pulumi_oci/psql/get_default_configurations.py +2 -2
  112. pulumi_oci/psql/outputs.py +176 -13
  113. pulumi_oci/pulumi-plugin.json +1 -1
  114. pulumi_oci/redis/get_redis_cluster.py +1 -1
  115. pulumi_oci/redis/outputs.py +2 -2
  116. pulumi_oci/redis/redis_cluster.py +7 -7
  117. pulumi_oci/stackmonitoring/_inputs.py +2 -2
  118. pulumi_oci/stackmonitoring/baselineable_metric.py +76 -28
  119. pulumi_oci/stackmonitoring/get_baselineable_metric.py +14 -1
  120. pulumi_oci/stackmonitoring/get_baselineable_metrics.py +45 -5
  121. pulumi_oci/stackmonitoring/outputs.py +19 -8
  122. {pulumi_oci-2.5.0a1722062014.dist-info → pulumi_oci-2.6.0.dist-info}/METADATA +1 -1
  123. {pulumi_oci-2.5.0a1722062014.dist-info → pulumi_oci-2.6.0.dist-info}/RECORD +125 -99
  124. {pulumi_oci-2.5.0a1722062014.dist-info → pulumi_oci-2.6.0.dist-info}/WHEEL +1 -1
  125. pulumi_oci/datasafe/masking_policy_health_report_management.py +0 -453
  126. pulumi_oci/datasafe/masking_report_management.py +0 -693
  127. pulumi_oci/datasafe/set_security_assessment_baseline_management.py +0 -304
  128. pulumi_oci/datasafe/set_user_assessment_baseline_management.py +0 -304
  129. {pulumi_oci-2.5.0a1722062014.dist-info → pulumi_oci-2.6.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,446 @@
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 pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from .. import _utilities
11
+
12
+ __all__ = ['AlertPolicyRuleArgs', 'AlertPolicyRule']
13
+
14
+ @pulumi.input_type
15
+ class AlertPolicyRuleArgs:
16
+ def __init__(__self__, *,
17
+ alert_policy_id: pulumi.Input[str],
18
+ expression: pulumi.Input[str],
19
+ description: Optional[pulumi.Input[str]] = None,
20
+ display_name: Optional[pulumi.Input[str]] = None):
21
+ """
22
+ The set of arguments for constructing a AlertPolicyRule resource.
23
+ :param pulumi.Input[str] alert_policy_id: The OCID of the alert policy.
24
+ :param pulumi.Input[str] expression: (Updatable) The conditional expression of the alert policy rule which evaluates to boolean value.
25
+
26
+
27
+ ** IMPORTANT **
28
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
29
+ :param pulumi.Input[str] description: (Updatable) Describes the alert policy rule.
30
+ :param pulumi.Input[str] display_name: (Updatable) The display name of the alert policy rule.
31
+ """
32
+ pulumi.set(__self__, "alert_policy_id", alert_policy_id)
33
+ pulumi.set(__self__, "expression", expression)
34
+ if description is not None:
35
+ pulumi.set(__self__, "description", description)
36
+ if display_name is not None:
37
+ pulumi.set(__self__, "display_name", display_name)
38
+
39
+ @property
40
+ @pulumi.getter(name="alertPolicyId")
41
+ def alert_policy_id(self) -> pulumi.Input[str]:
42
+ """
43
+ The OCID of the alert policy.
44
+ """
45
+ return pulumi.get(self, "alert_policy_id")
46
+
47
+ @alert_policy_id.setter
48
+ def alert_policy_id(self, value: pulumi.Input[str]):
49
+ pulumi.set(self, "alert_policy_id", value)
50
+
51
+ @property
52
+ @pulumi.getter
53
+ def expression(self) -> pulumi.Input[str]:
54
+ """
55
+ (Updatable) The conditional expression of the alert policy rule which evaluates to boolean value.
56
+
57
+
58
+ ** IMPORTANT **
59
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
60
+ """
61
+ return pulumi.get(self, "expression")
62
+
63
+ @expression.setter
64
+ def expression(self, value: pulumi.Input[str]):
65
+ pulumi.set(self, "expression", value)
66
+
67
+ @property
68
+ @pulumi.getter
69
+ def description(self) -> Optional[pulumi.Input[str]]:
70
+ """
71
+ (Updatable) Describes the alert policy rule.
72
+ """
73
+ return pulumi.get(self, "description")
74
+
75
+ @description.setter
76
+ def description(self, value: Optional[pulumi.Input[str]]):
77
+ pulumi.set(self, "description", value)
78
+
79
+ @property
80
+ @pulumi.getter(name="displayName")
81
+ def display_name(self) -> Optional[pulumi.Input[str]]:
82
+ """
83
+ (Updatable) The display name of the alert policy rule.
84
+ """
85
+ return pulumi.get(self, "display_name")
86
+
87
+ @display_name.setter
88
+ def display_name(self, value: Optional[pulumi.Input[str]]):
89
+ pulumi.set(self, "display_name", value)
90
+
91
+
92
+ @pulumi.input_type
93
+ class _AlertPolicyRuleState:
94
+ def __init__(__self__, *,
95
+ alert_policy_id: Optional[pulumi.Input[str]] = None,
96
+ description: Optional[pulumi.Input[str]] = None,
97
+ display_name: Optional[pulumi.Input[str]] = None,
98
+ expression: Optional[pulumi.Input[str]] = None,
99
+ key: Optional[pulumi.Input[str]] = None,
100
+ state: Optional[pulumi.Input[str]] = None,
101
+ time_created: Optional[pulumi.Input[str]] = None):
102
+ """
103
+ Input properties used for looking up and filtering AlertPolicyRule resources.
104
+ :param pulumi.Input[str] alert_policy_id: The OCID of the alert policy.
105
+ :param pulumi.Input[str] description: (Updatable) Describes the alert policy rule.
106
+ :param pulumi.Input[str] display_name: (Updatable) The display name of the alert policy rule.
107
+ :param pulumi.Input[str] expression: (Updatable) The conditional expression of the alert policy rule which evaluates to boolean value.
108
+
109
+
110
+ ** IMPORTANT **
111
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
112
+ :param pulumi.Input[str] key: The unique key of the alert policy rule.
113
+ :param pulumi.Input[str] state: The current state of the alert policy rule.
114
+ :param pulumi.Input[str] time_created: Creation date and time of the alert policy rule, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
115
+ """
116
+ if alert_policy_id is not None:
117
+ pulumi.set(__self__, "alert_policy_id", alert_policy_id)
118
+ if description is not None:
119
+ pulumi.set(__self__, "description", description)
120
+ if display_name is not None:
121
+ pulumi.set(__self__, "display_name", display_name)
122
+ if expression is not None:
123
+ pulumi.set(__self__, "expression", expression)
124
+ if key is not None:
125
+ pulumi.set(__self__, "key", key)
126
+ if state is not None:
127
+ pulumi.set(__self__, "state", state)
128
+ if time_created is not None:
129
+ pulumi.set(__self__, "time_created", time_created)
130
+
131
+ @property
132
+ @pulumi.getter(name="alertPolicyId")
133
+ def alert_policy_id(self) -> Optional[pulumi.Input[str]]:
134
+ """
135
+ The OCID of the alert policy.
136
+ """
137
+ return pulumi.get(self, "alert_policy_id")
138
+
139
+ @alert_policy_id.setter
140
+ def alert_policy_id(self, value: Optional[pulumi.Input[str]]):
141
+ pulumi.set(self, "alert_policy_id", value)
142
+
143
+ @property
144
+ @pulumi.getter
145
+ def description(self) -> Optional[pulumi.Input[str]]:
146
+ """
147
+ (Updatable) Describes the alert policy rule.
148
+ """
149
+ return pulumi.get(self, "description")
150
+
151
+ @description.setter
152
+ def description(self, value: Optional[pulumi.Input[str]]):
153
+ pulumi.set(self, "description", value)
154
+
155
+ @property
156
+ @pulumi.getter(name="displayName")
157
+ def display_name(self) -> Optional[pulumi.Input[str]]:
158
+ """
159
+ (Updatable) The display name of the alert policy rule.
160
+ """
161
+ return pulumi.get(self, "display_name")
162
+
163
+ @display_name.setter
164
+ def display_name(self, value: Optional[pulumi.Input[str]]):
165
+ pulumi.set(self, "display_name", value)
166
+
167
+ @property
168
+ @pulumi.getter
169
+ def expression(self) -> Optional[pulumi.Input[str]]:
170
+ """
171
+ (Updatable) The conditional expression of the alert policy rule which evaluates to boolean value.
172
+
173
+
174
+ ** IMPORTANT **
175
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
176
+ """
177
+ return pulumi.get(self, "expression")
178
+
179
+ @expression.setter
180
+ def expression(self, value: Optional[pulumi.Input[str]]):
181
+ pulumi.set(self, "expression", value)
182
+
183
+ @property
184
+ @pulumi.getter
185
+ def key(self) -> Optional[pulumi.Input[str]]:
186
+ """
187
+ The unique key of the alert policy rule.
188
+ """
189
+ return pulumi.get(self, "key")
190
+
191
+ @key.setter
192
+ def key(self, value: Optional[pulumi.Input[str]]):
193
+ pulumi.set(self, "key", value)
194
+
195
+ @property
196
+ @pulumi.getter
197
+ def state(self) -> Optional[pulumi.Input[str]]:
198
+ """
199
+ The current state of the alert policy rule.
200
+ """
201
+ return pulumi.get(self, "state")
202
+
203
+ @state.setter
204
+ def state(self, value: Optional[pulumi.Input[str]]):
205
+ pulumi.set(self, "state", value)
206
+
207
+ @property
208
+ @pulumi.getter(name="timeCreated")
209
+ def time_created(self) -> Optional[pulumi.Input[str]]:
210
+ """
211
+ Creation date and time of the alert policy rule, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
212
+ """
213
+ return pulumi.get(self, "time_created")
214
+
215
+ @time_created.setter
216
+ def time_created(self, value: Optional[pulumi.Input[str]]):
217
+ pulumi.set(self, "time_created", value)
218
+
219
+
220
+ class AlertPolicyRule(pulumi.CustomResource):
221
+ @overload
222
+ def __init__(__self__,
223
+ resource_name: str,
224
+ opts: Optional[pulumi.ResourceOptions] = None,
225
+ alert_policy_id: Optional[pulumi.Input[str]] = None,
226
+ description: Optional[pulumi.Input[str]] = None,
227
+ display_name: Optional[pulumi.Input[str]] = None,
228
+ expression: Optional[pulumi.Input[str]] = None,
229
+ __props__=None):
230
+ """
231
+ This resource provides the Alert Policy Rule resource in Oracle Cloud Infrastructure Data Safe service.
232
+
233
+ Creates a new rule for the alert policy.
234
+
235
+ ## Example Usage
236
+
237
+ ```python
238
+ import pulumi
239
+ import pulumi_oci as oci
240
+
241
+ test_alert_policy_rule = oci.data_safe.AlertPolicyRule("test_alert_policy_rule",
242
+ alert_policy_id=test_alert_policy["id"],
243
+ expression=alert_policy_rule_expression,
244
+ description=alert_policy_rule_description,
245
+ display_name=alert_policy_rule_display_name)
246
+ ```
247
+
248
+ ## Import
249
+
250
+ AlertPolicyRules can be imported using the `id`, e.g.
251
+
252
+ ```sh
253
+ $ pulumi import oci:DataSafe/alertPolicyRule:AlertPolicyRule test_alert_policy_rule "alertPolicies/{alertPolicyId}/rules/{ruleKey}"
254
+ ```
255
+
256
+ :param str resource_name: The name of the resource.
257
+ :param pulumi.ResourceOptions opts: Options for the resource.
258
+ :param pulumi.Input[str] alert_policy_id: The OCID of the alert policy.
259
+ :param pulumi.Input[str] description: (Updatable) Describes the alert policy rule.
260
+ :param pulumi.Input[str] display_name: (Updatable) The display name of the alert policy rule.
261
+ :param pulumi.Input[str] expression: (Updatable) The conditional expression of the alert policy rule which evaluates to boolean value.
262
+
263
+
264
+ ** IMPORTANT **
265
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
266
+ """
267
+ ...
268
+ @overload
269
+ def __init__(__self__,
270
+ resource_name: str,
271
+ args: AlertPolicyRuleArgs,
272
+ opts: Optional[pulumi.ResourceOptions] = None):
273
+ """
274
+ This resource provides the Alert Policy Rule resource in Oracle Cloud Infrastructure Data Safe service.
275
+
276
+ Creates a new rule for the alert policy.
277
+
278
+ ## Example Usage
279
+
280
+ ```python
281
+ import pulumi
282
+ import pulumi_oci as oci
283
+
284
+ test_alert_policy_rule = oci.data_safe.AlertPolicyRule("test_alert_policy_rule",
285
+ alert_policy_id=test_alert_policy["id"],
286
+ expression=alert_policy_rule_expression,
287
+ description=alert_policy_rule_description,
288
+ display_name=alert_policy_rule_display_name)
289
+ ```
290
+
291
+ ## Import
292
+
293
+ AlertPolicyRules can be imported using the `id`, e.g.
294
+
295
+ ```sh
296
+ $ pulumi import oci:DataSafe/alertPolicyRule:AlertPolicyRule test_alert_policy_rule "alertPolicies/{alertPolicyId}/rules/{ruleKey}"
297
+ ```
298
+
299
+ :param str resource_name: The name of the resource.
300
+ :param AlertPolicyRuleArgs args: The arguments to use to populate this resource's properties.
301
+ :param pulumi.ResourceOptions opts: Options for the resource.
302
+ """
303
+ ...
304
+ def __init__(__self__, resource_name: str, *args, **kwargs):
305
+ resource_args, opts = _utilities.get_resource_args_opts(AlertPolicyRuleArgs, pulumi.ResourceOptions, *args, **kwargs)
306
+ if resource_args is not None:
307
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
308
+ else:
309
+ __self__._internal_init(resource_name, *args, **kwargs)
310
+
311
+ def _internal_init(__self__,
312
+ resource_name: str,
313
+ opts: Optional[pulumi.ResourceOptions] = None,
314
+ alert_policy_id: Optional[pulumi.Input[str]] = None,
315
+ description: Optional[pulumi.Input[str]] = None,
316
+ display_name: Optional[pulumi.Input[str]] = None,
317
+ expression: Optional[pulumi.Input[str]] = None,
318
+ __props__=None):
319
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
320
+ if not isinstance(opts, pulumi.ResourceOptions):
321
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
322
+ if opts.id is None:
323
+ if __props__ is not None:
324
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
325
+ __props__ = AlertPolicyRuleArgs.__new__(AlertPolicyRuleArgs)
326
+
327
+ if alert_policy_id is None and not opts.urn:
328
+ raise TypeError("Missing required property 'alert_policy_id'")
329
+ __props__.__dict__["alert_policy_id"] = alert_policy_id
330
+ __props__.__dict__["description"] = description
331
+ __props__.__dict__["display_name"] = display_name
332
+ if expression is None and not opts.urn:
333
+ raise TypeError("Missing required property 'expression'")
334
+ __props__.__dict__["expression"] = expression
335
+ __props__.__dict__["key"] = None
336
+ __props__.__dict__["state"] = None
337
+ __props__.__dict__["time_created"] = None
338
+ super(AlertPolicyRule, __self__).__init__(
339
+ 'oci:DataSafe/alertPolicyRule:AlertPolicyRule',
340
+ resource_name,
341
+ __props__,
342
+ opts)
343
+
344
+ @staticmethod
345
+ def get(resource_name: str,
346
+ id: pulumi.Input[str],
347
+ opts: Optional[pulumi.ResourceOptions] = None,
348
+ alert_policy_id: Optional[pulumi.Input[str]] = None,
349
+ description: Optional[pulumi.Input[str]] = None,
350
+ display_name: Optional[pulumi.Input[str]] = None,
351
+ expression: Optional[pulumi.Input[str]] = None,
352
+ key: Optional[pulumi.Input[str]] = None,
353
+ state: Optional[pulumi.Input[str]] = None,
354
+ time_created: Optional[pulumi.Input[str]] = None) -> 'AlertPolicyRule':
355
+ """
356
+ Get an existing AlertPolicyRule resource's state with the given name, id, and optional extra
357
+ properties used to qualify the lookup.
358
+
359
+ :param str resource_name: The unique name of the resulting resource.
360
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
361
+ :param pulumi.ResourceOptions opts: Options for the resource.
362
+ :param pulumi.Input[str] alert_policy_id: The OCID of the alert policy.
363
+ :param pulumi.Input[str] description: (Updatable) Describes the alert policy rule.
364
+ :param pulumi.Input[str] display_name: (Updatable) The display name of the alert policy rule.
365
+ :param pulumi.Input[str] expression: (Updatable) The conditional expression of the alert policy rule which evaluates to boolean value.
366
+
367
+
368
+ ** IMPORTANT **
369
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
370
+ :param pulumi.Input[str] key: The unique key of the alert policy rule.
371
+ :param pulumi.Input[str] state: The current state of the alert policy rule.
372
+ :param pulumi.Input[str] time_created: Creation date and time of the alert policy rule, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
373
+ """
374
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
375
+
376
+ __props__ = _AlertPolicyRuleState.__new__(_AlertPolicyRuleState)
377
+
378
+ __props__.__dict__["alert_policy_id"] = alert_policy_id
379
+ __props__.__dict__["description"] = description
380
+ __props__.__dict__["display_name"] = display_name
381
+ __props__.__dict__["expression"] = expression
382
+ __props__.__dict__["key"] = key
383
+ __props__.__dict__["state"] = state
384
+ __props__.__dict__["time_created"] = time_created
385
+ return AlertPolicyRule(resource_name, opts=opts, __props__=__props__)
386
+
387
+ @property
388
+ @pulumi.getter(name="alertPolicyId")
389
+ def alert_policy_id(self) -> pulumi.Output[str]:
390
+ """
391
+ The OCID of the alert policy.
392
+ """
393
+ return pulumi.get(self, "alert_policy_id")
394
+
395
+ @property
396
+ @pulumi.getter
397
+ def description(self) -> pulumi.Output[str]:
398
+ """
399
+ (Updatable) Describes the alert policy rule.
400
+ """
401
+ return pulumi.get(self, "description")
402
+
403
+ @property
404
+ @pulumi.getter(name="displayName")
405
+ def display_name(self) -> pulumi.Output[str]:
406
+ """
407
+ (Updatable) The display name of the alert policy rule.
408
+ """
409
+ return pulumi.get(self, "display_name")
410
+
411
+ @property
412
+ @pulumi.getter
413
+ def expression(self) -> pulumi.Output[str]:
414
+ """
415
+ (Updatable) The conditional expression of the alert policy rule which evaluates to boolean value.
416
+
417
+
418
+ ** IMPORTANT **
419
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
420
+ """
421
+ return pulumi.get(self, "expression")
422
+
423
+ @property
424
+ @pulumi.getter
425
+ def key(self) -> pulumi.Output[str]:
426
+ """
427
+ The unique key of the alert policy rule.
428
+ """
429
+ return pulumi.get(self, "key")
430
+
431
+ @property
432
+ @pulumi.getter
433
+ def state(self) -> pulumi.Output[str]:
434
+ """
435
+ The current state of the alert policy rule.
436
+ """
437
+ return pulumi.get(self, "state")
438
+
439
+ @property
440
+ @pulumi.getter(name="timeCreated")
441
+ def time_created(self) -> pulumi.Output[str]:
442
+ """
443
+ Creation date and time of the alert policy rule, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
444
+ """
445
+ return pulumi.get(self, "time_created")
446
+
@@ -21,10 +21,16 @@ class GetAlertResult:
21
21
  """
22
22
  A collection of values returned by getAlert.
23
23
  """
24
- def __init__(__self__, alert_id=None, alert_type=None, comment=None, compartment_id=None, defined_tags=None, description=None, display_name=None, feature_details=None, freeform_tags=None, id=None, operation=None, operation_status=None, operation_time=None, policy_id=None, resource_name=None, severity=None, state=None, status=None, system_tags=None, target_ids=None, target_names=None, time_created=None, time_updated=None):
24
+ def __init__(__self__, alert_id=None, alert_policy_rule_key=None, alert_policy_rule_name=None, alert_type=None, comment=None, compartment_id=None, defined_tags=None, description=None, display_name=None, feature_details=None, freeform_tags=None, id=None, operation=None, operation_status=None, operation_time=None, policy_id=None, resource_name=None, severity=None, state=None, status=None, system_tags=None, target_ids=None, target_names=None, time_created=None, time_updated=None):
25
25
  if alert_id and not isinstance(alert_id, str):
26
26
  raise TypeError("Expected argument 'alert_id' to be a str")
27
27
  pulumi.set(__self__, "alert_id", alert_id)
28
+ if alert_policy_rule_key and not isinstance(alert_policy_rule_key, str):
29
+ raise TypeError("Expected argument 'alert_policy_rule_key' to be a str")
30
+ pulumi.set(__self__, "alert_policy_rule_key", alert_policy_rule_key)
31
+ if alert_policy_rule_name and not isinstance(alert_policy_rule_name, str):
32
+ raise TypeError("Expected argument 'alert_policy_rule_name' to be a str")
33
+ pulumi.set(__self__, "alert_policy_rule_name", alert_policy_rule_name)
28
34
  if alert_type and not isinstance(alert_type, str):
29
35
  raise TypeError("Expected argument 'alert_type' to be a str")
30
36
  pulumi.set(__self__, "alert_type", alert_type)
@@ -97,6 +103,22 @@ class GetAlertResult:
97
103
  def alert_id(self) -> str:
98
104
  return pulumi.get(self, "alert_id")
99
105
 
106
+ @property
107
+ @pulumi.getter(name="alertPolicyRuleKey")
108
+ def alert_policy_rule_key(self) -> str:
109
+ """
110
+ The key of the rule of alert policy that triggered alert.
111
+ """
112
+ return pulumi.get(self, "alert_policy_rule_key")
113
+
114
+ @property
115
+ @pulumi.getter(name="alertPolicyRuleName")
116
+ def alert_policy_rule_name(self) -> str:
117
+ """
118
+ The display name of the rule of alert policy that triggered alert.
119
+ """
120
+ return pulumi.get(self, "alert_policy_rule_name")
121
+
100
122
  @property
101
123
  @pulumi.getter(name="alertType")
102
124
  def alert_type(self) -> str:
@@ -281,6 +303,8 @@ class AwaitableGetAlertResult(GetAlertResult):
281
303
  yield self
282
304
  return GetAlertResult(
283
305
  alert_id=self.alert_id,
306
+ alert_policy_rule_key=self.alert_policy_rule_key,
307
+ alert_policy_rule_name=self.alert_policy_rule_name,
284
308
  alert_type=self.alert_type,
285
309
  comment=self.comment,
286
310
  compartment_id=self.compartment_id,
@@ -331,6 +355,8 @@ def get_alert(alert_id: Optional[str] = None,
331
355
 
332
356
  return AwaitableGetAlertResult(
333
357
  alert_id=pulumi.get(__ret__, 'alert_id'),
358
+ alert_policy_rule_key=pulumi.get(__ret__, 'alert_policy_rule_key'),
359
+ alert_policy_rule_name=pulumi.get(__ret__, 'alert_policy_rule_name'),
334
360
  alert_type=pulumi.get(__ret__, 'alert_type'),
335
361
  comment=pulumi.get(__ret__, 'comment'),
336
362
  compartment_id=pulumi.get(__ret__, 'compartment_id'),
@@ -8,6 +8,7 @@ import pulumi
8
8
  import pulumi.runtime
9
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from .. import _utilities
11
+ from . import outputs
11
12
 
12
13
  __all__ = [
13
14
  'GetAlertPolicyResult',
@@ -21,10 +22,13 @@ class GetAlertPolicyResult:
21
22
  """
22
23
  A collection of values returned by getAlertPolicy.
23
24
  """
24
- def __init__(__self__, alert_policy_id=None, alert_policy_type=None, compartment_id=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, is_user_defined=None, severity=None, state=None, system_tags=None, time_created=None, time_updated=None):
25
+ def __init__(__self__, alert_policy_id=None, alert_policy_rule_details=None, alert_policy_type=None, compartment_id=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, is_user_defined=None, lifecycle_details=None, severity=None, state=None, system_tags=None, time_created=None, time_updated=None):
25
26
  if alert_policy_id and not isinstance(alert_policy_id, str):
26
27
  raise TypeError("Expected argument 'alert_policy_id' to be a str")
27
28
  pulumi.set(__self__, "alert_policy_id", alert_policy_id)
29
+ if alert_policy_rule_details and not isinstance(alert_policy_rule_details, list):
30
+ raise TypeError("Expected argument 'alert_policy_rule_details' to be a list")
31
+ pulumi.set(__self__, "alert_policy_rule_details", alert_policy_rule_details)
28
32
  if alert_policy_type and not isinstance(alert_policy_type, str):
29
33
  raise TypeError("Expected argument 'alert_policy_type' to be a str")
30
34
  pulumi.set(__self__, "alert_policy_type", alert_policy_type)
@@ -49,6 +53,9 @@ class GetAlertPolicyResult:
49
53
  if is_user_defined and not isinstance(is_user_defined, bool):
50
54
  raise TypeError("Expected argument 'is_user_defined' to be a bool")
51
55
  pulumi.set(__self__, "is_user_defined", is_user_defined)
56
+ if lifecycle_details and not isinstance(lifecycle_details, str):
57
+ raise TypeError("Expected argument 'lifecycle_details' to be a str")
58
+ pulumi.set(__self__, "lifecycle_details", lifecycle_details)
52
59
  if severity and not isinstance(severity, str):
53
60
  raise TypeError("Expected argument 'severity' to be a str")
54
61
  pulumi.set(__self__, "severity", severity)
@@ -70,6 +77,11 @@ class GetAlertPolicyResult:
70
77
  def alert_policy_id(self) -> str:
71
78
  return pulumi.get(self, "alert_policy_id")
72
79
 
80
+ @property
81
+ @pulumi.getter(name="alertPolicyRuleDetails")
82
+ def alert_policy_rule_details(self) -> Sequence['outputs.GetAlertPolicyAlertPolicyRuleDetailResult']:
83
+ return pulumi.get(self, "alert_policy_rule_details")
84
+
73
85
  @property
74
86
  @pulumi.getter(name="alertPolicyType")
75
87
  def alert_policy_type(self) -> str:
@@ -122,7 +134,7 @@ class GetAlertPolicyResult:
122
134
  @pulumi.getter
123
135
  def id(self) -> str:
124
136
  """
125
- The provider-assigned unique ID for this managed resource.
137
+ The OCID of the alert policy.
126
138
  """
127
139
  return pulumi.get(self, "id")
128
140
 
@@ -134,6 +146,14 @@ class GetAlertPolicyResult:
134
146
  """
135
147
  return pulumi.get(self, "is_user_defined")
136
148
 
149
+ @property
150
+ @pulumi.getter(name="lifecycleDetails")
151
+ def lifecycle_details(self) -> str:
152
+ """
153
+ Details about the current state of the alert policy.
154
+ """
155
+ return pulumi.get(self, "lifecycle_details")
156
+
137
157
  @property
138
158
  @pulumi.getter
139
159
  def severity(self) -> str:
@@ -182,6 +202,7 @@ class AwaitableGetAlertPolicyResult(GetAlertPolicyResult):
182
202
  yield self
183
203
  return GetAlertPolicyResult(
184
204
  alert_policy_id=self.alert_policy_id,
205
+ alert_policy_rule_details=self.alert_policy_rule_details,
185
206
  alert_policy_type=self.alert_policy_type,
186
207
  compartment_id=self.compartment_id,
187
208
  defined_tags=self.defined_tags,
@@ -190,6 +211,7 @@ class AwaitableGetAlertPolicyResult(GetAlertPolicyResult):
190
211
  freeform_tags=self.freeform_tags,
191
212
  id=self.id,
192
213
  is_user_defined=self.is_user_defined,
214
+ lifecycle_details=self.lifecycle_details,
193
215
  severity=self.severity,
194
216
  state=self.state,
195
217
  system_tags=self.system_tags,
@@ -223,6 +245,7 @@ def get_alert_policy(alert_policy_id: Optional[str] = None,
223
245
 
224
246
  return AwaitableGetAlertPolicyResult(
225
247
  alert_policy_id=pulumi.get(__ret__, 'alert_policy_id'),
248
+ alert_policy_rule_details=pulumi.get(__ret__, 'alert_policy_rule_details'),
226
249
  alert_policy_type=pulumi.get(__ret__, 'alert_policy_type'),
227
250
  compartment_id=pulumi.get(__ret__, 'compartment_id'),
228
251
  defined_tags=pulumi.get(__ret__, 'defined_tags'),
@@ -231,6 +254,7 @@ def get_alert_policy(alert_policy_id: Optional[str] = None,
231
254
  freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
232
255
  id=pulumi.get(__ret__, 'id'),
233
256
  is_user_defined=pulumi.get(__ret__, 'is_user_defined'),
257
+ lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
234
258
  severity=pulumi.get(__ret__, 'severity'),
235
259
  state=pulumi.get(__ret__, 'state'),
236
260
  system_tags=pulumi.get(__ret__, 'system_tags'),