pulumi-oci 2.19.0a1733984857__py3-none-any.whl → 2.19.0a1734003732__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 +40 -0
- pulumi_oci/database/autonomous_container_database.py +47 -0
- pulumi_oci/database/autonomous_database.py +47 -0
- pulumi_oci/database/get_autonomous_container_database.py +15 -1
- pulumi_oci/database/get_autonomous_database.py +15 -1
- pulumi_oci/database/outputs.py +14 -0
- pulumi_oci/dataflow/application.py +75 -33
- pulumi_oci/dataflow/get_application.py +15 -1
- pulumi_oci/dataflow/outputs.py +7 -0
- pulumi_oci/desktops/_inputs.py +9 -9
- pulumi_oci/desktops/desktop_pool.py +84 -35
- pulumi_oci/desktops/get_desktop_pool.py +12 -1
- pulumi_oci/desktops/outputs.py +13 -6
- pulumi_oci/disasterrecovery/_inputs.py +46 -30
- pulumi_oci/disasterrecovery/dr_plan.py +194 -23
- pulumi_oci/disasterrecovery/get_dr_plan.py +54 -4
- pulumi_oci/disasterrecovery/get_dr_plans.py +23 -1
- pulumi_oci/disasterrecovery/outputs.py +113 -21
- pulumi_oci/fleetappsmanagement/__init__.py +19 -0
- pulumi_oci/fleetappsmanagement/_inputs.py +5334 -378
- pulumi_oci/fleetappsmanagement/compliance_policy_rule.py +830 -0
- pulumi_oci/fleetappsmanagement/fleet.py +112 -67
- pulumi_oci/fleetappsmanagement/fleet_credential.py +44 -36
- pulumi_oci/fleetappsmanagement/fleet_property.py +35 -35
- pulumi_oci/fleetappsmanagement/fleet_resource.py +37 -37
- pulumi_oci/fleetappsmanagement/get_announcements.py +4 -4
- pulumi_oci/fleetappsmanagement/get_compliance_policies.py +199 -0
- pulumi_oci/fleetappsmanagement/get_compliance_policy.py +253 -0
- pulumi_oci/fleetappsmanagement/get_compliance_policy_rule.py +324 -0
- pulumi_oci/fleetappsmanagement/get_compliance_policy_rules.py +243 -0
- pulumi_oci/fleetappsmanagement/get_compliance_record_counts.py +144 -0
- pulumi_oci/fleetappsmanagement/get_compliance_records.py +279 -0
- pulumi_oci/fleetappsmanagement/get_fleet.py +29 -15
- pulumi_oci/fleetappsmanagement/get_fleet_compliance_report.py +8 -8
- pulumi_oci/fleetappsmanagement/get_fleet_credential.py +7 -7
- pulumi_oci/fleetappsmanagement/get_fleet_credentials.py +61 -17
- pulumi_oci/fleetappsmanagement/get_fleet_products.py +6 -6
- pulumi_oci/fleetappsmanagement/get_fleet_properties.py +8 -8
- pulumi_oci/fleetappsmanagement/get_fleet_property.py +11 -11
- pulumi_oci/fleetappsmanagement/get_fleet_resource.py +11 -11
- pulumi_oci/fleetappsmanagement/get_fleet_resources.py +10 -10
- pulumi_oci/fleetappsmanagement/get_fleet_targets.py +8 -8
- pulumi_oci/fleetappsmanagement/get_fleets.py +16 -16
- pulumi_oci/fleetappsmanagement/get_inventory_resources.py +12 -12
- pulumi_oci/fleetappsmanagement/get_maintenance_window.py +8 -8
- pulumi_oci/fleetappsmanagement/get_maintenance_windows.py +31 -12
- pulumi_oci/fleetappsmanagement/get_managed_entity_counts.py +144 -0
- pulumi_oci/fleetappsmanagement/get_onboarding_policies.py +2 -2
- pulumi_oci/fleetappsmanagement/get_onboardings.py +2 -2
- pulumi_oci/fleetappsmanagement/get_patch.py +363 -0
- pulumi_oci/fleetappsmanagement/get_patches.py +335 -0
- pulumi_oci/fleetappsmanagement/get_platform_configuration.py +296 -0
- pulumi_oci/fleetappsmanagement/get_platform_configurations.py +221 -0
- pulumi_oci/fleetappsmanagement/get_properties.py +9 -9
- pulumi_oci/fleetappsmanagement/get_property.py +4 -4
- pulumi_oci/fleetappsmanagement/get_runbook.py +8 -8
- pulumi_oci/fleetappsmanagement/get_runbooks.py +16 -16
- pulumi_oci/fleetappsmanagement/get_scheduler_definition.py +10 -10
- pulumi_oci/fleetappsmanagement/get_scheduler_definition_scheduled_fleets.py +2 -2
- pulumi_oci/fleetappsmanagement/get_scheduler_definitions.py +33 -11
- pulumi_oci/fleetappsmanagement/get_scheduler_job_counts.py +144 -0
- pulumi_oci/fleetappsmanagement/get_scheduler_job_job_activity_resources.py +245 -0
- pulumi_oci/fleetappsmanagement/get_scheduler_job_job_activity_steps.py +245 -0
- pulumi_oci/fleetappsmanagement/get_task_record.py +3 -3
- pulumi_oci/fleetappsmanagement/maintenance_window.py +44 -44
- pulumi_oci/fleetappsmanagement/onboarding.py +108 -20
- pulumi_oci/fleetappsmanagement/outputs.py +11222 -2736
- pulumi_oci/fleetappsmanagement/patch.py +978 -0
- pulumi_oci/fleetappsmanagement/platform_configuration.py +687 -0
- pulumi_oci/fleetappsmanagement/property.py +27 -27
- pulumi_oci/fleetappsmanagement/runbook.py +1173 -0
- pulumi_oci/fleetappsmanagement/scheduler_definition.py +30 -30
- pulumi_oci/fleetappsmanagement/task_record.py +754 -0
- pulumi_oci/fleetsoftwareupdate/fsu_collection.py +28 -0
- pulumi_oci/fleetsoftwareupdate/fsu_cycle.py +56 -0
- pulumi_oci/fleetsoftwareupdate/get_fsu_collection.py +15 -1
- pulumi_oci/fleetsoftwareupdate/get_fsu_cycle.py +29 -1
- pulumi_oci/fleetsoftwareupdate/outputs.py +33 -0
- pulumi_oci/pulumi-plugin.json +1 -1
- pulumi_oci/visualbuilder/_inputs.py +57 -202
- pulumi_oci/visualbuilder/get_vb_instance.py +15 -29
- pulumi_oci/visualbuilder/outputs.py +114 -400
- pulumi_oci/visualbuilder/vb_instance.py +62 -59
- {pulumi_oci-2.19.0a1733984857.dist-info → pulumi_oci-2.19.0a1734003732.dist-info}/METADATA +1 -1
- {pulumi_oci-2.19.0a1733984857.dist-info → pulumi_oci-2.19.0a1734003732.dist-info}/RECORD +87 -68
- {pulumi_oci-2.19.0a1733984857.dist-info → pulumi_oci-2.19.0a1734003732.dist-info}/WHEEL +0 -0
- {pulumi_oci-2.19.0a1733984857.dist-info → pulumi_oci-2.19.0a1734003732.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,830 @@
|
|
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__ = ['CompliancePolicyRuleArgs', 'CompliancePolicyRule']
|
20
|
+
|
21
|
+
@pulumi.input_type
|
22
|
+
class CompliancePolicyRuleArgs:
|
23
|
+
def __init__(__self__, *,
|
24
|
+
compartment_id: pulumi.Input[str],
|
25
|
+
display_name: pulumi.Input[str],
|
26
|
+
patch_selection: pulumi.Input['CompliancePolicyRulePatchSelectionArgs'],
|
27
|
+
patch_types: pulumi.Input[Sequence[pulumi.Input[str]]],
|
28
|
+
product_version: pulumi.Input['CompliancePolicyRuleProductVersionArgs'],
|
29
|
+
compliance_policy_id: Optional[pulumi.Input[str]] = None,
|
30
|
+
defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
31
|
+
freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
32
|
+
grace_period: Optional[pulumi.Input[str]] = None,
|
33
|
+
severities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
34
|
+
"""
|
35
|
+
The set of arguments for constructing a CompliancePolicyRule resource.
|
36
|
+
:param pulumi.Input[str] compartment_id: The OCID of the compartment the CompliancePolicyRule belongs to.
|
37
|
+
:param pulumi.Input[str] display_name: A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: `My new resource`
|
38
|
+
:param pulumi.Input['CompliancePolicyRulePatchSelectionArgs'] patch_selection: (Updatable) Patch Selection Details
|
39
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] patch_types: (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
|
40
|
+
:param pulumi.Input['CompliancePolicyRuleProductVersionArgs'] product_version: (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
|
41
|
+
:param pulumi.Input[str] compliance_policy_id: Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
|
42
|
+
: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"}`
|
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[str] grace_period: (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
|
45
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] severities: (Updatable) Severity to which this CompliancePolicyRule applies.
|
46
|
+
|
47
|
+
|
48
|
+
** IMPORTANT **
|
49
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
50
|
+
"""
|
51
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
52
|
+
pulumi.set(__self__, "display_name", display_name)
|
53
|
+
pulumi.set(__self__, "patch_selection", patch_selection)
|
54
|
+
pulumi.set(__self__, "patch_types", patch_types)
|
55
|
+
pulumi.set(__self__, "product_version", product_version)
|
56
|
+
if compliance_policy_id is not None:
|
57
|
+
pulumi.set(__self__, "compliance_policy_id", compliance_policy_id)
|
58
|
+
if defined_tags is not None:
|
59
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
60
|
+
if freeform_tags is not None:
|
61
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
62
|
+
if grace_period is not None:
|
63
|
+
pulumi.set(__self__, "grace_period", grace_period)
|
64
|
+
if severities is not None:
|
65
|
+
pulumi.set(__self__, "severities", severities)
|
66
|
+
|
67
|
+
@property
|
68
|
+
@pulumi.getter(name="compartmentId")
|
69
|
+
def compartment_id(self) -> pulumi.Input[str]:
|
70
|
+
"""
|
71
|
+
The OCID of the compartment the CompliancePolicyRule belongs to.
|
72
|
+
"""
|
73
|
+
return pulumi.get(self, "compartment_id")
|
74
|
+
|
75
|
+
@compartment_id.setter
|
76
|
+
def compartment_id(self, value: pulumi.Input[str]):
|
77
|
+
pulumi.set(self, "compartment_id", value)
|
78
|
+
|
79
|
+
@property
|
80
|
+
@pulumi.getter(name="displayName")
|
81
|
+
def display_name(self) -> pulumi.Input[str]:
|
82
|
+
"""
|
83
|
+
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: `My new resource`
|
84
|
+
"""
|
85
|
+
return pulumi.get(self, "display_name")
|
86
|
+
|
87
|
+
@display_name.setter
|
88
|
+
def display_name(self, value: pulumi.Input[str]):
|
89
|
+
pulumi.set(self, "display_name", value)
|
90
|
+
|
91
|
+
@property
|
92
|
+
@pulumi.getter(name="patchSelection")
|
93
|
+
def patch_selection(self) -> pulumi.Input['CompliancePolicyRulePatchSelectionArgs']:
|
94
|
+
"""
|
95
|
+
(Updatable) Patch Selection Details
|
96
|
+
"""
|
97
|
+
return pulumi.get(self, "patch_selection")
|
98
|
+
|
99
|
+
@patch_selection.setter
|
100
|
+
def patch_selection(self, value: pulumi.Input['CompliancePolicyRulePatchSelectionArgs']):
|
101
|
+
pulumi.set(self, "patch_selection", value)
|
102
|
+
|
103
|
+
@property
|
104
|
+
@pulumi.getter(name="patchTypes")
|
105
|
+
def patch_types(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
106
|
+
"""
|
107
|
+
(Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
|
108
|
+
"""
|
109
|
+
return pulumi.get(self, "patch_types")
|
110
|
+
|
111
|
+
@patch_types.setter
|
112
|
+
def patch_types(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
113
|
+
pulumi.set(self, "patch_types", value)
|
114
|
+
|
115
|
+
@property
|
116
|
+
@pulumi.getter(name="productVersion")
|
117
|
+
def product_version(self) -> pulumi.Input['CompliancePolicyRuleProductVersionArgs']:
|
118
|
+
"""
|
119
|
+
(Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
|
120
|
+
"""
|
121
|
+
return pulumi.get(self, "product_version")
|
122
|
+
|
123
|
+
@product_version.setter
|
124
|
+
def product_version(self, value: pulumi.Input['CompliancePolicyRuleProductVersionArgs']):
|
125
|
+
pulumi.set(self, "product_version", value)
|
126
|
+
|
127
|
+
@property
|
128
|
+
@pulumi.getter(name="compliancePolicyId")
|
129
|
+
def compliance_policy_id(self) -> Optional[pulumi.Input[str]]:
|
130
|
+
"""
|
131
|
+
Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
|
132
|
+
"""
|
133
|
+
return pulumi.get(self, "compliance_policy_id")
|
134
|
+
|
135
|
+
@compliance_policy_id.setter
|
136
|
+
def compliance_policy_id(self, value: Optional[pulumi.Input[str]]):
|
137
|
+
pulumi.set(self, "compliance_policy_id", value)
|
138
|
+
|
139
|
+
@property
|
140
|
+
@pulumi.getter(name="definedTags")
|
141
|
+
def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
142
|
+
"""
|
143
|
+
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
|
144
|
+
"""
|
145
|
+
return pulumi.get(self, "defined_tags")
|
146
|
+
|
147
|
+
@defined_tags.setter
|
148
|
+
def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
149
|
+
pulumi.set(self, "defined_tags", value)
|
150
|
+
|
151
|
+
@property
|
152
|
+
@pulumi.getter(name="freeformTags")
|
153
|
+
def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
154
|
+
"""
|
155
|
+
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
|
156
|
+
"""
|
157
|
+
return pulumi.get(self, "freeform_tags")
|
158
|
+
|
159
|
+
@freeform_tags.setter
|
160
|
+
def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
161
|
+
pulumi.set(self, "freeform_tags", value)
|
162
|
+
|
163
|
+
@property
|
164
|
+
@pulumi.getter(name="gracePeriod")
|
165
|
+
def grace_period(self) -> Optional[pulumi.Input[str]]:
|
166
|
+
"""
|
167
|
+
(Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
|
168
|
+
"""
|
169
|
+
return pulumi.get(self, "grace_period")
|
170
|
+
|
171
|
+
@grace_period.setter
|
172
|
+
def grace_period(self, value: Optional[pulumi.Input[str]]):
|
173
|
+
pulumi.set(self, "grace_period", value)
|
174
|
+
|
175
|
+
@property
|
176
|
+
@pulumi.getter
|
177
|
+
def severities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
178
|
+
"""
|
179
|
+
(Updatable) Severity to which this CompliancePolicyRule applies.
|
180
|
+
|
181
|
+
|
182
|
+
** IMPORTANT **
|
183
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
184
|
+
"""
|
185
|
+
return pulumi.get(self, "severities")
|
186
|
+
|
187
|
+
@severities.setter
|
188
|
+
def severities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
189
|
+
pulumi.set(self, "severities", value)
|
190
|
+
|
191
|
+
|
192
|
+
@pulumi.input_type
|
193
|
+
class _CompliancePolicyRuleState:
|
194
|
+
def __init__(__self__, *,
|
195
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
196
|
+
compliance_policy_id: Optional[pulumi.Input[str]] = None,
|
197
|
+
defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
198
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
199
|
+
freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
200
|
+
grace_period: Optional[pulumi.Input[str]] = None,
|
201
|
+
lifecycle_details: Optional[pulumi.Input[str]] = None,
|
202
|
+
patch_selection: Optional[pulumi.Input['CompliancePolicyRulePatchSelectionArgs']] = None,
|
203
|
+
patch_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
204
|
+
product_version: Optional[pulumi.Input['CompliancePolicyRuleProductVersionArgs']] = None,
|
205
|
+
severities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
206
|
+
state: Optional[pulumi.Input[str]] = None,
|
207
|
+
system_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
208
|
+
time_created: Optional[pulumi.Input[str]] = None,
|
209
|
+
time_updated: Optional[pulumi.Input[str]] = None):
|
210
|
+
"""
|
211
|
+
Input properties used for looking up and filtering CompliancePolicyRule resources.
|
212
|
+
:param pulumi.Input[str] compartment_id: The OCID of the compartment the CompliancePolicyRule belongs to.
|
213
|
+
:param pulumi.Input[str] compliance_policy_id: Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
|
214
|
+
: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"}`
|
215
|
+
:param pulumi.Input[str] display_name: A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: `My new resource`
|
216
|
+
: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"}`
|
217
|
+
:param pulumi.Input[str] grace_period: (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
|
218
|
+
:param pulumi.Input[str] lifecycle_details: A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
|
219
|
+
:param pulumi.Input['CompliancePolicyRulePatchSelectionArgs'] patch_selection: (Updatable) Patch Selection Details
|
220
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] patch_types: (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
|
221
|
+
:param pulumi.Input['CompliancePolicyRuleProductVersionArgs'] product_version: (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
|
222
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] severities: (Updatable) Severity to which this CompliancePolicyRule applies.
|
223
|
+
|
224
|
+
|
225
|
+
** IMPORTANT **
|
226
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
227
|
+
:param pulumi.Input[str] state: The current state of the CompliancePolicyRule.
|
228
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] system_tags: System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
229
|
+
:param pulumi.Input[str] time_created: The date and time the CompliancePolicyRule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
230
|
+
:param pulumi.Input[str] time_updated: The date and time the CompliancePolicyRule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
231
|
+
"""
|
232
|
+
if compartment_id is not None:
|
233
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
234
|
+
if compliance_policy_id is not None:
|
235
|
+
pulumi.set(__self__, "compliance_policy_id", compliance_policy_id)
|
236
|
+
if defined_tags is not None:
|
237
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
238
|
+
if display_name is not None:
|
239
|
+
pulumi.set(__self__, "display_name", display_name)
|
240
|
+
if freeform_tags is not None:
|
241
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
242
|
+
if grace_period is not None:
|
243
|
+
pulumi.set(__self__, "grace_period", grace_period)
|
244
|
+
if lifecycle_details is not None:
|
245
|
+
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
246
|
+
if patch_selection is not None:
|
247
|
+
pulumi.set(__self__, "patch_selection", patch_selection)
|
248
|
+
if patch_types is not None:
|
249
|
+
pulumi.set(__self__, "patch_types", patch_types)
|
250
|
+
if product_version is not None:
|
251
|
+
pulumi.set(__self__, "product_version", product_version)
|
252
|
+
if severities is not None:
|
253
|
+
pulumi.set(__self__, "severities", severities)
|
254
|
+
if state is not None:
|
255
|
+
pulumi.set(__self__, "state", state)
|
256
|
+
if system_tags is not None:
|
257
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
258
|
+
if time_created is not None:
|
259
|
+
pulumi.set(__self__, "time_created", time_created)
|
260
|
+
if time_updated is not None:
|
261
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
262
|
+
|
263
|
+
@property
|
264
|
+
@pulumi.getter(name="compartmentId")
|
265
|
+
def compartment_id(self) -> Optional[pulumi.Input[str]]:
|
266
|
+
"""
|
267
|
+
The OCID of the compartment the CompliancePolicyRule belongs to.
|
268
|
+
"""
|
269
|
+
return pulumi.get(self, "compartment_id")
|
270
|
+
|
271
|
+
@compartment_id.setter
|
272
|
+
def compartment_id(self, value: Optional[pulumi.Input[str]]):
|
273
|
+
pulumi.set(self, "compartment_id", value)
|
274
|
+
|
275
|
+
@property
|
276
|
+
@pulumi.getter(name="compliancePolicyId")
|
277
|
+
def compliance_policy_id(self) -> Optional[pulumi.Input[str]]:
|
278
|
+
"""
|
279
|
+
Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
|
280
|
+
"""
|
281
|
+
return pulumi.get(self, "compliance_policy_id")
|
282
|
+
|
283
|
+
@compliance_policy_id.setter
|
284
|
+
def compliance_policy_id(self, value: Optional[pulumi.Input[str]]):
|
285
|
+
pulumi.set(self, "compliance_policy_id", value)
|
286
|
+
|
287
|
+
@property
|
288
|
+
@pulumi.getter(name="definedTags")
|
289
|
+
def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
290
|
+
"""
|
291
|
+
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
|
292
|
+
"""
|
293
|
+
return pulumi.get(self, "defined_tags")
|
294
|
+
|
295
|
+
@defined_tags.setter
|
296
|
+
def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
297
|
+
pulumi.set(self, "defined_tags", value)
|
298
|
+
|
299
|
+
@property
|
300
|
+
@pulumi.getter(name="displayName")
|
301
|
+
def display_name(self) -> Optional[pulumi.Input[str]]:
|
302
|
+
"""
|
303
|
+
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: `My new resource`
|
304
|
+
"""
|
305
|
+
return pulumi.get(self, "display_name")
|
306
|
+
|
307
|
+
@display_name.setter
|
308
|
+
def display_name(self, value: Optional[pulumi.Input[str]]):
|
309
|
+
pulumi.set(self, "display_name", value)
|
310
|
+
|
311
|
+
@property
|
312
|
+
@pulumi.getter(name="freeformTags")
|
313
|
+
def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
314
|
+
"""
|
315
|
+
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
|
316
|
+
"""
|
317
|
+
return pulumi.get(self, "freeform_tags")
|
318
|
+
|
319
|
+
@freeform_tags.setter
|
320
|
+
def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
321
|
+
pulumi.set(self, "freeform_tags", value)
|
322
|
+
|
323
|
+
@property
|
324
|
+
@pulumi.getter(name="gracePeriod")
|
325
|
+
def grace_period(self) -> Optional[pulumi.Input[str]]:
|
326
|
+
"""
|
327
|
+
(Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
|
328
|
+
"""
|
329
|
+
return pulumi.get(self, "grace_period")
|
330
|
+
|
331
|
+
@grace_period.setter
|
332
|
+
def grace_period(self, value: Optional[pulumi.Input[str]]):
|
333
|
+
pulumi.set(self, "grace_period", value)
|
334
|
+
|
335
|
+
@property
|
336
|
+
@pulumi.getter(name="lifecycleDetails")
|
337
|
+
def lifecycle_details(self) -> Optional[pulumi.Input[str]]:
|
338
|
+
"""
|
339
|
+
A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
|
340
|
+
"""
|
341
|
+
return pulumi.get(self, "lifecycle_details")
|
342
|
+
|
343
|
+
@lifecycle_details.setter
|
344
|
+
def lifecycle_details(self, value: Optional[pulumi.Input[str]]):
|
345
|
+
pulumi.set(self, "lifecycle_details", value)
|
346
|
+
|
347
|
+
@property
|
348
|
+
@pulumi.getter(name="patchSelection")
|
349
|
+
def patch_selection(self) -> Optional[pulumi.Input['CompliancePolicyRulePatchSelectionArgs']]:
|
350
|
+
"""
|
351
|
+
(Updatable) Patch Selection Details
|
352
|
+
"""
|
353
|
+
return pulumi.get(self, "patch_selection")
|
354
|
+
|
355
|
+
@patch_selection.setter
|
356
|
+
def patch_selection(self, value: Optional[pulumi.Input['CompliancePolicyRulePatchSelectionArgs']]):
|
357
|
+
pulumi.set(self, "patch_selection", value)
|
358
|
+
|
359
|
+
@property
|
360
|
+
@pulumi.getter(name="patchTypes")
|
361
|
+
def patch_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
362
|
+
"""
|
363
|
+
(Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
|
364
|
+
"""
|
365
|
+
return pulumi.get(self, "patch_types")
|
366
|
+
|
367
|
+
@patch_types.setter
|
368
|
+
def patch_types(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
369
|
+
pulumi.set(self, "patch_types", value)
|
370
|
+
|
371
|
+
@property
|
372
|
+
@pulumi.getter(name="productVersion")
|
373
|
+
def product_version(self) -> Optional[pulumi.Input['CompliancePolicyRuleProductVersionArgs']]:
|
374
|
+
"""
|
375
|
+
(Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
|
376
|
+
"""
|
377
|
+
return pulumi.get(self, "product_version")
|
378
|
+
|
379
|
+
@product_version.setter
|
380
|
+
def product_version(self, value: Optional[pulumi.Input['CompliancePolicyRuleProductVersionArgs']]):
|
381
|
+
pulumi.set(self, "product_version", value)
|
382
|
+
|
383
|
+
@property
|
384
|
+
@pulumi.getter
|
385
|
+
def severities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
386
|
+
"""
|
387
|
+
(Updatable) Severity to which this CompliancePolicyRule applies.
|
388
|
+
|
389
|
+
|
390
|
+
** IMPORTANT **
|
391
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
392
|
+
"""
|
393
|
+
return pulumi.get(self, "severities")
|
394
|
+
|
395
|
+
@severities.setter
|
396
|
+
def severities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
397
|
+
pulumi.set(self, "severities", value)
|
398
|
+
|
399
|
+
@property
|
400
|
+
@pulumi.getter
|
401
|
+
def state(self) -> Optional[pulumi.Input[str]]:
|
402
|
+
"""
|
403
|
+
The current state of the CompliancePolicyRule.
|
404
|
+
"""
|
405
|
+
return pulumi.get(self, "state")
|
406
|
+
|
407
|
+
@state.setter
|
408
|
+
def state(self, value: Optional[pulumi.Input[str]]):
|
409
|
+
pulumi.set(self, "state", value)
|
410
|
+
|
411
|
+
@property
|
412
|
+
@pulumi.getter(name="systemTags")
|
413
|
+
def system_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
414
|
+
"""
|
415
|
+
System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
416
|
+
"""
|
417
|
+
return pulumi.get(self, "system_tags")
|
418
|
+
|
419
|
+
@system_tags.setter
|
420
|
+
def system_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
421
|
+
pulumi.set(self, "system_tags", value)
|
422
|
+
|
423
|
+
@property
|
424
|
+
@pulumi.getter(name="timeCreated")
|
425
|
+
def time_created(self) -> Optional[pulumi.Input[str]]:
|
426
|
+
"""
|
427
|
+
The date and time the CompliancePolicyRule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
428
|
+
"""
|
429
|
+
return pulumi.get(self, "time_created")
|
430
|
+
|
431
|
+
@time_created.setter
|
432
|
+
def time_created(self, value: Optional[pulumi.Input[str]]):
|
433
|
+
pulumi.set(self, "time_created", value)
|
434
|
+
|
435
|
+
@property
|
436
|
+
@pulumi.getter(name="timeUpdated")
|
437
|
+
def time_updated(self) -> Optional[pulumi.Input[str]]:
|
438
|
+
"""
|
439
|
+
The date and time the CompliancePolicyRule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
440
|
+
"""
|
441
|
+
return pulumi.get(self, "time_updated")
|
442
|
+
|
443
|
+
@time_updated.setter
|
444
|
+
def time_updated(self, value: Optional[pulumi.Input[str]]):
|
445
|
+
pulumi.set(self, "time_updated", value)
|
446
|
+
|
447
|
+
|
448
|
+
class CompliancePolicyRule(pulumi.CustomResource):
|
449
|
+
@overload
|
450
|
+
def __init__(__self__,
|
451
|
+
resource_name: str,
|
452
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
453
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
454
|
+
compliance_policy_id: Optional[pulumi.Input[str]] = None,
|
455
|
+
defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
456
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
457
|
+
freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
458
|
+
grace_period: Optional[pulumi.Input[str]] = None,
|
459
|
+
patch_selection: Optional[pulumi.Input[Union['CompliancePolicyRulePatchSelectionArgs', 'CompliancePolicyRulePatchSelectionArgsDict']]] = None,
|
460
|
+
patch_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
461
|
+
product_version: Optional[pulumi.Input[Union['CompliancePolicyRuleProductVersionArgs', 'CompliancePolicyRuleProductVersionArgsDict']]] = None,
|
462
|
+
severities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
463
|
+
__props__=None):
|
464
|
+
"""
|
465
|
+
This resource provides the Compliance Policy Rule resource in Oracle Cloud Infrastructure Fleet Apps Management service.
|
466
|
+
|
467
|
+
Creates a CompliancePolicyRule.
|
468
|
+
|
469
|
+
## Example Usage
|
470
|
+
|
471
|
+
```python
|
472
|
+
import pulumi
|
473
|
+
import pulumi_oci as oci
|
474
|
+
|
475
|
+
test_compliance_policy_rule = oci.fleet_apps_management.CompliancePolicyRule("test_compliance_policy_rule",
|
476
|
+
compartment_id=compartment_id,
|
477
|
+
display_name=compliance_policy_rule_display_name,
|
478
|
+
patch_selection={
|
479
|
+
"selection_type": compliance_policy_rule_patch_selection_selection_type,
|
480
|
+
"days_since_release": compliance_policy_rule_patch_selection_days_since_release,
|
481
|
+
"patch_level": compliance_policy_rule_patch_selection_patch_level,
|
482
|
+
"patch_name": test_patch["name"],
|
483
|
+
},
|
484
|
+
patch_types=compliance_policy_rule_patch_type,
|
485
|
+
product_version={
|
486
|
+
"version": compliance_policy_rule_product_version_version,
|
487
|
+
"is_applicable_for_all_higher_versions": compliance_policy_rule_product_version_is_applicable_for_all_higher_versions,
|
488
|
+
},
|
489
|
+
compliance_policy_id=test_compliance_policy["id"],
|
490
|
+
defined_tags={
|
491
|
+
"foo-namespace.bar-key": "value",
|
492
|
+
},
|
493
|
+
freeform_tags={
|
494
|
+
"bar-key": "value",
|
495
|
+
},
|
496
|
+
grace_period=compliance_policy_rule_grace_period,
|
497
|
+
severities=compliance_policy_rule_severity)
|
498
|
+
```
|
499
|
+
|
500
|
+
## Import
|
501
|
+
|
502
|
+
CompliancePolicyRules can be imported using the `id`, e.g.
|
503
|
+
|
504
|
+
```sh
|
505
|
+
$ pulumi import oci:FleetAppsManagement/compliancePolicyRule:CompliancePolicyRule test_compliance_policy_rule "id"
|
506
|
+
```
|
507
|
+
|
508
|
+
:param str resource_name: The name of the resource.
|
509
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
510
|
+
:param pulumi.Input[str] compartment_id: The OCID of the compartment the CompliancePolicyRule belongs to.
|
511
|
+
:param pulumi.Input[str] compliance_policy_id: Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
|
512
|
+
: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"}`
|
513
|
+
:param pulumi.Input[str] display_name: A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: `My new resource`
|
514
|
+
: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"}`
|
515
|
+
:param pulumi.Input[str] grace_period: (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
|
516
|
+
:param pulumi.Input[Union['CompliancePolicyRulePatchSelectionArgs', 'CompliancePolicyRulePatchSelectionArgsDict']] patch_selection: (Updatable) Patch Selection Details
|
517
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] patch_types: (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
|
518
|
+
:param pulumi.Input[Union['CompliancePolicyRuleProductVersionArgs', 'CompliancePolicyRuleProductVersionArgsDict']] product_version: (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
|
519
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] severities: (Updatable) Severity to which this CompliancePolicyRule applies.
|
520
|
+
|
521
|
+
|
522
|
+
** IMPORTANT **
|
523
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
524
|
+
"""
|
525
|
+
...
|
526
|
+
@overload
|
527
|
+
def __init__(__self__,
|
528
|
+
resource_name: str,
|
529
|
+
args: CompliancePolicyRuleArgs,
|
530
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
531
|
+
"""
|
532
|
+
This resource provides the Compliance Policy Rule resource in Oracle Cloud Infrastructure Fleet Apps Management service.
|
533
|
+
|
534
|
+
Creates a CompliancePolicyRule.
|
535
|
+
|
536
|
+
## Example Usage
|
537
|
+
|
538
|
+
```python
|
539
|
+
import pulumi
|
540
|
+
import pulumi_oci as oci
|
541
|
+
|
542
|
+
test_compliance_policy_rule = oci.fleet_apps_management.CompliancePolicyRule("test_compliance_policy_rule",
|
543
|
+
compartment_id=compartment_id,
|
544
|
+
display_name=compliance_policy_rule_display_name,
|
545
|
+
patch_selection={
|
546
|
+
"selection_type": compliance_policy_rule_patch_selection_selection_type,
|
547
|
+
"days_since_release": compliance_policy_rule_patch_selection_days_since_release,
|
548
|
+
"patch_level": compliance_policy_rule_patch_selection_patch_level,
|
549
|
+
"patch_name": test_patch["name"],
|
550
|
+
},
|
551
|
+
patch_types=compliance_policy_rule_patch_type,
|
552
|
+
product_version={
|
553
|
+
"version": compliance_policy_rule_product_version_version,
|
554
|
+
"is_applicable_for_all_higher_versions": compliance_policy_rule_product_version_is_applicable_for_all_higher_versions,
|
555
|
+
},
|
556
|
+
compliance_policy_id=test_compliance_policy["id"],
|
557
|
+
defined_tags={
|
558
|
+
"foo-namespace.bar-key": "value",
|
559
|
+
},
|
560
|
+
freeform_tags={
|
561
|
+
"bar-key": "value",
|
562
|
+
},
|
563
|
+
grace_period=compliance_policy_rule_grace_period,
|
564
|
+
severities=compliance_policy_rule_severity)
|
565
|
+
```
|
566
|
+
|
567
|
+
## Import
|
568
|
+
|
569
|
+
CompliancePolicyRules can be imported using the `id`, e.g.
|
570
|
+
|
571
|
+
```sh
|
572
|
+
$ pulumi import oci:FleetAppsManagement/compliancePolicyRule:CompliancePolicyRule test_compliance_policy_rule "id"
|
573
|
+
```
|
574
|
+
|
575
|
+
:param str resource_name: The name of the resource.
|
576
|
+
:param CompliancePolicyRuleArgs args: The arguments to use to populate this resource's properties.
|
577
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
578
|
+
"""
|
579
|
+
...
|
580
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
581
|
+
resource_args, opts = _utilities.get_resource_args_opts(CompliancePolicyRuleArgs, pulumi.ResourceOptions, *args, **kwargs)
|
582
|
+
if resource_args is not None:
|
583
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
584
|
+
else:
|
585
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
586
|
+
|
587
|
+
def _internal_init(__self__,
|
588
|
+
resource_name: str,
|
589
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
590
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
591
|
+
compliance_policy_id: Optional[pulumi.Input[str]] = None,
|
592
|
+
defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
593
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
594
|
+
freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
595
|
+
grace_period: Optional[pulumi.Input[str]] = None,
|
596
|
+
patch_selection: Optional[pulumi.Input[Union['CompliancePolicyRulePatchSelectionArgs', 'CompliancePolicyRulePatchSelectionArgsDict']]] = None,
|
597
|
+
patch_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
598
|
+
product_version: Optional[pulumi.Input[Union['CompliancePolicyRuleProductVersionArgs', 'CompliancePolicyRuleProductVersionArgsDict']]] = None,
|
599
|
+
severities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
600
|
+
__props__=None):
|
601
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
602
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
603
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
604
|
+
if opts.id is None:
|
605
|
+
if __props__ is not None:
|
606
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
607
|
+
__props__ = CompliancePolicyRuleArgs.__new__(CompliancePolicyRuleArgs)
|
608
|
+
|
609
|
+
if compartment_id is None and not opts.urn:
|
610
|
+
raise TypeError("Missing required property 'compartment_id'")
|
611
|
+
__props__.__dict__["compartment_id"] = compartment_id
|
612
|
+
__props__.__dict__["compliance_policy_id"] = compliance_policy_id
|
613
|
+
__props__.__dict__["defined_tags"] = defined_tags
|
614
|
+
if display_name is None and not opts.urn:
|
615
|
+
raise TypeError("Missing required property 'display_name'")
|
616
|
+
__props__.__dict__["display_name"] = display_name
|
617
|
+
__props__.__dict__["freeform_tags"] = freeform_tags
|
618
|
+
__props__.__dict__["grace_period"] = grace_period
|
619
|
+
if patch_selection is None and not opts.urn:
|
620
|
+
raise TypeError("Missing required property 'patch_selection'")
|
621
|
+
__props__.__dict__["patch_selection"] = patch_selection
|
622
|
+
if patch_types is None and not opts.urn:
|
623
|
+
raise TypeError("Missing required property 'patch_types'")
|
624
|
+
__props__.__dict__["patch_types"] = patch_types
|
625
|
+
if product_version is None and not opts.urn:
|
626
|
+
raise TypeError("Missing required property 'product_version'")
|
627
|
+
__props__.__dict__["product_version"] = product_version
|
628
|
+
__props__.__dict__["severities"] = severities
|
629
|
+
__props__.__dict__["lifecycle_details"] = None
|
630
|
+
__props__.__dict__["state"] = None
|
631
|
+
__props__.__dict__["system_tags"] = None
|
632
|
+
__props__.__dict__["time_created"] = None
|
633
|
+
__props__.__dict__["time_updated"] = None
|
634
|
+
super(CompliancePolicyRule, __self__).__init__(
|
635
|
+
'oci:FleetAppsManagement/compliancePolicyRule:CompliancePolicyRule',
|
636
|
+
resource_name,
|
637
|
+
__props__,
|
638
|
+
opts)
|
639
|
+
|
640
|
+
@staticmethod
|
641
|
+
def get(resource_name: str,
|
642
|
+
id: pulumi.Input[str],
|
643
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
644
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
645
|
+
compliance_policy_id: Optional[pulumi.Input[str]] = None,
|
646
|
+
defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
647
|
+
display_name: Optional[pulumi.Input[str]] = None,
|
648
|
+
freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
649
|
+
grace_period: Optional[pulumi.Input[str]] = None,
|
650
|
+
lifecycle_details: Optional[pulumi.Input[str]] = None,
|
651
|
+
patch_selection: Optional[pulumi.Input[Union['CompliancePolicyRulePatchSelectionArgs', 'CompliancePolicyRulePatchSelectionArgsDict']]] = None,
|
652
|
+
patch_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
653
|
+
product_version: Optional[pulumi.Input[Union['CompliancePolicyRuleProductVersionArgs', 'CompliancePolicyRuleProductVersionArgsDict']]] = None,
|
654
|
+
severities: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
655
|
+
state: Optional[pulumi.Input[str]] = None,
|
656
|
+
system_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
657
|
+
time_created: Optional[pulumi.Input[str]] = None,
|
658
|
+
time_updated: Optional[pulumi.Input[str]] = None) -> 'CompliancePolicyRule':
|
659
|
+
"""
|
660
|
+
Get an existing CompliancePolicyRule resource's state with the given name, id, and optional extra
|
661
|
+
properties used to qualify the lookup.
|
662
|
+
|
663
|
+
:param str resource_name: The unique name of the resulting resource.
|
664
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
665
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
666
|
+
:param pulumi.Input[str] compartment_id: The OCID of the compartment the CompliancePolicyRule belongs to.
|
667
|
+
:param pulumi.Input[str] compliance_policy_id: Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
|
668
|
+
: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"}`
|
669
|
+
:param pulumi.Input[str] display_name: A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: `My new resource`
|
670
|
+
: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"}`
|
671
|
+
:param pulumi.Input[str] grace_period: (Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
|
672
|
+
:param pulumi.Input[str] lifecycle_details: A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
|
673
|
+
:param pulumi.Input[Union['CompliancePolicyRulePatchSelectionArgs', 'CompliancePolicyRulePatchSelectionArgsDict']] patch_selection: (Updatable) Patch Selection Details
|
674
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] patch_types: (Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
|
675
|
+
:param pulumi.Input[Union['CompliancePolicyRuleProductVersionArgs', 'CompliancePolicyRuleProductVersionArgsDict']] product_version: (Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
|
676
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] severities: (Updatable) Severity to which this CompliancePolicyRule applies.
|
677
|
+
|
678
|
+
|
679
|
+
** IMPORTANT **
|
680
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
681
|
+
:param pulumi.Input[str] state: The current state of the CompliancePolicyRule.
|
682
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] system_tags: System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
683
|
+
:param pulumi.Input[str] time_created: The date and time the CompliancePolicyRule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
684
|
+
:param pulumi.Input[str] time_updated: The date and time the CompliancePolicyRule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
685
|
+
"""
|
686
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
687
|
+
|
688
|
+
__props__ = _CompliancePolicyRuleState.__new__(_CompliancePolicyRuleState)
|
689
|
+
|
690
|
+
__props__.__dict__["compartment_id"] = compartment_id
|
691
|
+
__props__.__dict__["compliance_policy_id"] = compliance_policy_id
|
692
|
+
__props__.__dict__["defined_tags"] = defined_tags
|
693
|
+
__props__.__dict__["display_name"] = display_name
|
694
|
+
__props__.__dict__["freeform_tags"] = freeform_tags
|
695
|
+
__props__.__dict__["grace_period"] = grace_period
|
696
|
+
__props__.__dict__["lifecycle_details"] = lifecycle_details
|
697
|
+
__props__.__dict__["patch_selection"] = patch_selection
|
698
|
+
__props__.__dict__["patch_types"] = patch_types
|
699
|
+
__props__.__dict__["product_version"] = product_version
|
700
|
+
__props__.__dict__["severities"] = severities
|
701
|
+
__props__.__dict__["state"] = state
|
702
|
+
__props__.__dict__["system_tags"] = system_tags
|
703
|
+
__props__.__dict__["time_created"] = time_created
|
704
|
+
__props__.__dict__["time_updated"] = time_updated
|
705
|
+
return CompliancePolicyRule(resource_name, opts=opts, __props__=__props__)
|
706
|
+
|
707
|
+
@property
|
708
|
+
@pulumi.getter(name="compartmentId")
|
709
|
+
def compartment_id(self) -> pulumi.Output[str]:
|
710
|
+
"""
|
711
|
+
The OCID of the compartment the CompliancePolicyRule belongs to.
|
712
|
+
"""
|
713
|
+
return pulumi.get(self, "compartment_id")
|
714
|
+
|
715
|
+
@property
|
716
|
+
@pulumi.getter(name="compliancePolicyId")
|
717
|
+
def compliance_policy_id(self) -> pulumi.Output[str]:
|
718
|
+
"""
|
719
|
+
Unique OCID of the CompliancePolicy this CompliancePolicyRule belongs to.
|
720
|
+
"""
|
721
|
+
return pulumi.get(self, "compliance_policy_id")
|
722
|
+
|
723
|
+
@property
|
724
|
+
@pulumi.getter(name="definedTags")
|
725
|
+
def defined_tags(self) -> pulumi.Output[Mapping[str, str]]:
|
726
|
+
"""
|
727
|
+
(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
|
728
|
+
"""
|
729
|
+
return pulumi.get(self, "defined_tags")
|
730
|
+
|
731
|
+
@property
|
732
|
+
@pulumi.getter(name="displayName")
|
733
|
+
def display_name(self) -> pulumi.Output[str]:
|
734
|
+
"""
|
735
|
+
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: `My new resource`
|
736
|
+
"""
|
737
|
+
return pulumi.get(self, "display_name")
|
738
|
+
|
739
|
+
@property
|
740
|
+
@pulumi.getter(name="freeformTags")
|
741
|
+
def freeform_tags(self) -> pulumi.Output[Mapping[str, str]]:
|
742
|
+
"""
|
743
|
+
(Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
|
744
|
+
"""
|
745
|
+
return pulumi.get(self, "freeform_tags")
|
746
|
+
|
747
|
+
@property
|
748
|
+
@pulumi.getter(name="gracePeriod")
|
749
|
+
def grace_period(self) -> pulumi.Output[str]:
|
750
|
+
"""
|
751
|
+
(Updatable) Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn't report the product as noncompliant when patch is not applied.
|
752
|
+
"""
|
753
|
+
return pulumi.get(self, "grace_period")
|
754
|
+
|
755
|
+
@property
|
756
|
+
@pulumi.getter(name="lifecycleDetails")
|
757
|
+
def lifecycle_details(self) -> pulumi.Output[str]:
|
758
|
+
"""
|
759
|
+
A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
|
760
|
+
"""
|
761
|
+
return pulumi.get(self, "lifecycle_details")
|
762
|
+
|
763
|
+
@property
|
764
|
+
@pulumi.getter(name="patchSelection")
|
765
|
+
def patch_selection(self) -> pulumi.Output['outputs.CompliancePolicyRulePatchSelection']:
|
766
|
+
"""
|
767
|
+
(Updatable) Patch Selection Details
|
768
|
+
"""
|
769
|
+
return pulumi.get(self, "patch_selection")
|
770
|
+
|
771
|
+
@property
|
772
|
+
@pulumi.getter(name="patchTypes")
|
773
|
+
def patch_types(self) -> pulumi.Output[Sequence[str]]:
|
774
|
+
"""
|
775
|
+
(Updatable) PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.
|
776
|
+
"""
|
777
|
+
return pulumi.get(self, "patch_types")
|
778
|
+
|
779
|
+
@property
|
780
|
+
@pulumi.getter(name="productVersion")
|
781
|
+
def product_version(self) -> pulumi.Output['outputs.CompliancePolicyRuleProductVersion']:
|
782
|
+
"""
|
783
|
+
(Updatable) A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.
|
784
|
+
"""
|
785
|
+
return pulumi.get(self, "product_version")
|
786
|
+
|
787
|
+
@property
|
788
|
+
@pulumi.getter
|
789
|
+
def severities(self) -> pulumi.Output[Sequence[str]]:
|
790
|
+
"""
|
791
|
+
(Updatable) Severity to which this CompliancePolicyRule applies.
|
792
|
+
|
793
|
+
|
794
|
+
** IMPORTANT **
|
795
|
+
Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
|
796
|
+
"""
|
797
|
+
return pulumi.get(self, "severities")
|
798
|
+
|
799
|
+
@property
|
800
|
+
@pulumi.getter
|
801
|
+
def state(self) -> pulumi.Output[str]:
|
802
|
+
"""
|
803
|
+
The current state of the CompliancePolicyRule.
|
804
|
+
"""
|
805
|
+
return pulumi.get(self, "state")
|
806
|
+
|
807
|
+
@property
|
808
|
+
@pulumi.getter(name="systemTags")
|
809
|
+
def system_tags(self) -> pulumi.Output[Mapping[str, str]]:
|
810
|
+
"""
|
811
|
+
System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
812
|
+
"""
|
813
|
+
return pulumi.get(self, "system_tags")
|
814
|
+
|
815
|
+
@property
|
816
|
+
@pulumi.getter(name="timeCreated")
|
817
|
+
def time_created(self) -> pulumi.Output[str]:
|
818
|
+
"""
|
819
|
+
The date and time the CompliancePolicyRule was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
820
|
+
"""
|
821
|
+
return pulumi.get(self, "time_created")
|
822
|
+
|
823
|
+
@property
|
824
|
+
@pulumi.getter(name="timeUpdated")
|
825
|
+
def time_updated(self) -> pulumi.Output[str]:
|
826
|
+
"""
|
827
|
+
The date and time the CompliancePolicyRule was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z`
|
828
|
+
"""
|
829
|
+
return pulumi.get(self, "time_updated")
|
830
|
+
|