pulumi-oci 2.4.0a1721890421__py3-none-any.whl → 2.5.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.
- pulumi_oci/__init__.py +78 -32
- pulumi_oci/_utilities.py +2 -0
- pulumi_oci/apmsynthetics/_inputs.py +457 -1
- pulumi_oci/apmsynthetics/config.py +172 -7
- pulumi_oci/apmsynthetics/get_monitor.py +42 -3
- pulumi_oci/apmsynthetics/get_monitors.py +2 -2
- pulumi_oci/apmsynthetics/outputs.py +1129 -9
- pulumi_oci/bigdataservice/bds_instance.py +47 -0
- pulumi_oci/bigdataservice/get_bds_instance.py +11 -1
- pulumi_oci/bigdataservice/outputs.py +7 -0
- pulumi_oci/core/__init__.py +3 -0
- pulumi_oci/core/_inputs.py +48 -8
- pulumi_oci/core/get_instance_maintenance_event.py +414 -0
- pulumi_oci/core/get_instance_maintenance_events.py +250 -0
- pulumi_oci/core/instance_maintenance_event.py +1022 -0
- pulumi_oci/core/outputs.py +338 -8
- pulumi_oci/database/_inputs.py +16 -0
- pulumi_oci/database/autonomous_database.py +111 -9
- pulumi_oci/database/cloud_autonomous_vm_cluster.py +7 -25
- pulumi_oci/database/cloud_exadata_infrastructure.py +66 -17
- pulumi_oci/database/cloud_vm_cluster.py +49 -0
- pulumi_oci/database/database.py +0 -96
- pulumi_oci/database/get_autonomous_database.py +38 -1
- pulumi_oci/database/get_cloud_exadata_infrastructure.py +14 -1
- pulumi_oci/database/get_cloud_vm_cluster.py +14 -1
- pulumi_oci/database/get_key_store.py +11 -1
- pulumi_oci/database/key_store.py +34 -0
- pulumi_oci/database/outputs.py +115 -0
- pulumi_oci/databasemigration/_inputs.py +184 -0
- pulumi_oci/databasemigration/job.py +99 -24
- pulumi_oci/databasemigration/outputs.py +171 -0
- pulumi_oci/datasafe/__init__.py +3 -4
- pulumi_oci/datasafe/_inputs.py +185 -0
- pulumi_oci/datasafe/alert.py +56 -0
- pulumi_oci/datasafe/alert_policy.py +745 -0
- pulumi_oci/datasafe/alert_policy_rule.py +446 -0
- pulumi_oci/datasafe/discovery_mod.py +67 -38
- pulumi_oci/datasafe/get_alert.py +27 -1
- pulumi_oci/datasafe/get_alert_policy.py +26 -2
- pulumi_oci/datasafe/get_alert_policy_rule.py +94 -18
- pulumi_oci/datasafe/get_audit_events.py +2 -2
- pulumi_oci/datasafe/get_discovery_job.py +15 -1
- pulumi_oci/datasafe/get_report.py +15 -2
- pulumi_oci/datasafe/get_report_definition.py +15 -2
- pulumi_oci/datasafe/get_reports.py +43 -1
- pulumi_oci/datasafe/get_security_assessment.py +14 -1
- pulumi_oci/datasafe/get_security_assessment_finding.py +16 -3
- pulumi_oci/datasafe/get_security_assessment_findings.py +21 -3
- pulumi_oci/datasafe/get_sensitive_data_model.py +15 -1
- pulumi_oci/datasafe/get_sensitive_data_model_sensitive_types.py +153 -0
- pulumi_oci/datasafe/get_target_alert_policy_association.py +15 -2
- pulumi_oci/datasafe/get_user_assessment.py +14 -1
- pulumi_oci/datasafe/outputs.py +761 -33
- pulumi_oci/datasafe/report.py +32 -4
- pulumi_oci/datasafe/report_definition.py +32 -4
- pulumi_oci/datasafe/security_assessment.py +49 -0
- pulumi_oci/datasafe/sensitive_data_model.py +60 -3
- pulumi_oci/datasafe/target_alert_policy_association.py +28 -0
- pulumi_oci/datasafe/unset_security_assessment_baseline.py +69 -16
- pulumi_oci/datasafe/unset_user_assessment_baseline.py +58 -5
- pulumi_oci/datasafe/user_assessment.py +49 -0
- pulumi_oci/fleetsoftwareupdate/__init__.py +15 -0
- pulumi_oci/fleetsoftwareupdate/_inputs.py +553 -0
- pulumi_oci/fleetsoftwareupdate/fsu_collection.py +514 -0
- pulumi_oci/fleetsoftwareupdate/fsu_cycle.py +812 -0
- pulumi_oci/fleetsoftwareupdate/get_fsu_collection.py +225 -0
- pulumi_oci/fleetsoftwareupdate/get_fsu_collections.py +141 -0
- pulumi_oci/fleetsoftwareupdate/get_fsu_cycle.py +325 -0
- pulumi_oci/fleetsoftwareupdate/get_fsu_cycles.py +167 -0
- pulumi_oci/fleetsoftwareupdate/outputs.py +1481 -0
- pulumi_oci/generativeai/get_dedicated_ai_cluster.py +3 -0
- pulumi_oci/generativeai/get_dedicated_ai_clusters.py +3 -0
- pulumi_oci/generativeai/get_endpoint.py +6 -9
- pulumi_oci/generativeai/get_endpoints.py +3 -3
- pulumi_oci/generativeai/get_model.py +36 -6
- pulumi_oci/generativeai/get_models.py +6 -0
- pulumi_oci/generativeai/outputs.py +228 -16
- pulumi_oci/globallydistributeddatabase/__init__.py +15 -0
- pulumi_oci/globallydistributeddatabase/_inputs.py +1003 -0
- pulumi_oci/globallydistributeddatabase/get_private_endpoint.py +300 -0
- pulumi_oci/globallydistributeddatabase/get_private_endpoints.py +176 -0
- pulumi_oci/globallydistributeddatabase/get_sharded_database.py +610 -0
- pulumi_oci/globallydistributeddatabase/get_sharded_databases.py +176 -0
- pulumi_oci/globallydistributeddatabase/outputs.py +2058 -0
- pulumi_oci/globallydistributeddatabase/private_endpoint.py +742 -0
- pulumi_oci/globallydistributeddatabase/sharded_database.py +1816 -0
- pulumi_oci/identity/__init__.py +3 -0
- pulumi_oci/identity/_inputs.py +1029 -0
- pulumi_oci/identity/domains_social_identity_provider.py +4628 -0
- pulumi_oci/identity/get_domains_social_identity_provider.py +664 -0
- pulumi_oci/identity/get_domains_social_identity_providers.py +276 -0
- pulumi_oci/identity/outputs.py +19544 -17378
- pulumi_oci/integration/_inputs.py +0 -2
- pulumi_oci/integration/get_integration_instance.py +0 -1
- pulumi_oci/integration/integration_instance.py +0 -27
- pulumi_oci/integration/outputs.py +4 -12
- pulumi_oci/networkfirewall/__init__.py +3 -0
- pulumi_oci/networkfirewall/_inputs.py +150 -0
- pulumi_oci/networkfirewall/get_network_firewall_policy_tunnel_inspection_rule.py +227 -0
- pulumi_oci/networkfirewall/get_network_firewall_policy_tunnel_inspection_rules.py +167 -0
- pulumi_oci/networkfirewall/network_firewall_policy_tunnel_inspection_rule.py +605 -0
- pulumi_oci/networkfirewall/outputs.py +457 -0
- pulumi_oci/opsi/_inputs.py +8 -8
- pulumi_oci/opsi/database_insight.py +71 -15
- pulumi_oci/opsi/get_database_insight.py +29 -3
- pulumi_oci/opsi/get_database_insights.py +1 -1
- pulumi_oci/opsi/get_enterprise_manager_bridges.py +2 -2
- pulumi_oci/opsi/get_host_insight.py +1 -4
- pulumi_oci/opsi/get_host_insights.py +3 -3
- pulumi_oci/opsi/get_news_report.py +1 -1
- pulumi_oci/opsi/get_news_reports.py +3 -3
- pulumi_oci/opsi/get_operations_insights_private_endpoint.py +1 -1
- pulumi_oci/opsi/get_operations_insights_private_endpoints.py +1 -1
- pulumi_oci/opsi/get_operations_insights_warehouse.py +7 -7
- pulumi_oci/opsi/get_operations_insights_warehouse_user.py +2 -2
- pulumi_oci/opsi/get_operations_insights_warehouses.py +5 -5
- pulumi_oci/opsi/host_insight.py +6 -14
- pulumi_oci/opsi/news_report.py +2 -2
- pulumi_oci/opsi/operations_insights_private_endpoint.py +9 -9
- pulumi_oci/opsi/operations_insights_warehouse.py +17 -17
- pulumi_oci/opsi/operations_insights_warehouse_download_warehouse_wallet.py +14 -14
- pulumi_oci/opsi/operations_insights_warehouse_rotate_warehouse_wallet.py +7 -7
- pulumi_oci/opsi/operations_insights_warehouse_user.py +14 -14
- pulumi_oci/opsi/outputs.py +46 -24
- pulumi_oci/pulumi-plugin.json +1 -1
- pulumi_oci/redis/get_redis_cluster.py +1 -1
- pulumi_oci/redis/outputs.py +2 -2
- pulumi_oci/redis/redis_cluster.py +7 -7
- pulumi_oci/stackmonitoring/_inputs.py +2 -2
- pulumi_oci/stackmonitoring/baselineable_metric.py +76 -28
- pulumi_oci/stackmonitoring/get_baselineable_metric.py +14 -1
- pulumi_oci/stackmonitoring/get_baselineable_metrics.py +45 -5
- pulumi_oci/stackmonitoring/outputs.py +19 -8
- {pulumi_oci-2.4.0a1721890421.dist-info → pulumi_oci-2.5.0.dist-info}/METADATA +1 -1
- {pulumi_oci-2.4.0a1721890421.dist-info → pulumi_oci-2.5.0.dist-info}/RECORD +137 -111
- {pulumi_oci-2.4.0a1721890421.dist-info → pulumi_oci-2.5.0.dist-info}/WHEEL +1 -1
- pulumi_oci/datasafe/masking_policy_health_report_management.py +0 -453
- pulumi_oci/datasafe/masking_report_management.py +0 -693
- pulumi_oci/datasafe/set_security_assessment_baseline_management.py +0 -304
- pulumi_oci/datasafe/set_user_assessment_baseline_management.py +0 -304
- {pulumi_oci-2.4.0a1721890421.dist-info → pulumi_oci-2.5.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
|
+
|