pulumi-oci 1.19.0a1705693078__py3-none-any.whl → 1.20.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 +59 -0
- pulumi_oci/adm/_inputs.py +99 -18
- pulumi_oci/adm/get_remediation_run_application_dependency_recommendations.py +23 -3
- pulumi_oci/adm/get_vulnerability_audit.py +31 -5
- pulumi_oci/adm/get_vulnerability_audit_application_dependency_vulnerabilities.py +43 -6
- pulumi_oci/adm/get_vulnerability_audit_application_dependency_vulnerability.py +27 -1
- pulumi_oci/adm/get_vulnerability_audits.py +54 -3
- pulumi_oci/adm/outputs.py +296 -31
- pulumi_oci/adm/remediation_recipe.py +2 -0
- pulumi_oci/adm/vulnerability_audit.py +96 -37
- pulumi_oci/database/__init__.py +1 -0
- pulumi_oci/database/_inputs.py +40 -0
- pulumi_oci/database/cloud_vm_cluster.py +22 -1
- pulumi_oci/database/get_system_versions.py +173 -0
- pulumi_oci/database/outputs.py +88 -0
- pulumi_oci/database/vm_cluster.py +22 -1
- pulumi_oci/datasafe/__init__.py +22 -0
- pulumi_oci/datasafe/_inputs.py +1826 -161
- pulumi_oci/datasafe/audit_trail.py +140 -0
- pulumi_oci/datasafe/discovery_mod.py +7 -7
- pulumi_oci/datasafe/get_audit_trail.py +66 -1
- pulumi_oci/datasafe/get_discovery_job.py +1 -1
- pulumi_oci/datasafe/get_discovery_jobs_result.py +1 -1
- pulumi_oci/datasafe/get_discovery_jobs_results.py +1 -1
- pulumi_oci/datasafe/get_masking_policies_masking_column.py +1 -1
- pulumi_oci/datasafe/get_masking_policies_masking_columns.py +1 -1
- pulumi_oci/datasafe/get_masking_policy.py +1 -1
- pulumi_oci/datasafe/get_report.py +1 -1
- pulumi_oci/datasafe/get_security_assessment.py +3 -3
- pulumi_oci/datasafe/get_security_assessment_comparison.py +5 -5
- pulumi_oci/datasafe/get_security_assessment_finding.py +29 -3
- pulumi_oci/datasafe/get_security_assessment_finding_analytics.py +276 -0
- pulumi_oci/datasafe/get_security_assessment_findings.py +43 -7
- pulumi_oci/datasafe/get_security_assessment_findings_change_audit_logs.py +309 -0
- pulumi_oci/datasafe/get_security_assessment_security_feature_analytics.py +198 -0
- pulumi_oci/datasafe/get_security_assessment_security_features.py +377 -0
- pulumi_oci/datasafe/get_security_assessments.py +2 -2
- pulumi_oci/datasafe/get_security_policies.py +253 -0
- pulumi_oci/datasafe/get_security_policy.py +235 -0
- pulumi_oci/datasafe/get_security_policy_deployment.py +261 -0
- pulumi_oci/datasafe/get_security_policy_deployment_security_policy_entry_state.py +165 -0
- pulumi_oci/datasafe/get_security_policy_deployment_security_policy_entry_states.py +180 -0
- pulumi_oci/datasafe/get_security_policy_deployments.py +293 -0
- pulumi_oci/datasafe/get_security_policy_report.py +248 -0
- pulumi_oci/datasafe/get_security_policy_report_database_table_access_entries.py +158 -0
- pulumi_oci/datasafe/get_security_policy_report_database_table_access_entry.py +408 -0
- pulumi_oci/datasafe/get_security_policy_report_database_view_access_entries.py +178 -0
- pulumi_oci/datasafe/get_security_policy_report_database_view_access_entry.py +382 -0
- pulumi_oci/datasafe/get_security_policy_report_role_grant_paths.py +177 -0
- pulumi_oci/datasafe/get_security_policy_reports.py +273 -0
- pulumi_oci/datasafe/get_sensitive_data_model.py +1 -1
- pulumi_oci/datasafe/get_target_database.py +27 -4
- pulumi_oci/datasafe/get_target_database_peer_target_database.py +263 -0
- pulumi_oci/datasafe/get_target_database_peer_target_databases.py +133 -0
- pulumi_oci/datasafe/get_target_databases.py +1 -1
- pulumi_oci/datasafe/get_user_assessment.py +5 -5
- pulumi_oci/datasafe/get_user_assessment_comparison.py +2 -2
- pulumi_oci/datasafe/get_user_assessment_user_access_analytics.py +133 -0
- pulumi_oci/datasafe/get_user_assessment_user_analytics.py +2 -2
- pulumi_oci/datasafe/get_user_assessment_users.py +42 -2
- pulumi_oci/datasafe/get_user_assessments.py +2 -2
- pulumi_oci/datasafe/masking_policies_masking_column.py +7 -7
- pulumi_oci/datasafe/masking_policy.py +9 -9
- pulumi_oci/datasafe/outputs.py +16686 -9777
- pulumi_oci/datasafe/report.py +559 -0
- pulumi_oci/datasafe/security_assessment.py +12 -12
- pulumi_oci/datasafe/sensitive_data_model.py +7 -7
- pulumi_oci/datasafe/set_security_assessment_baseline.py +7 -7
- pulumi_oci/datasafe/set_user_assessment_baseline.py +7 -7
- pulumi_oci/datasafe/target_database.py +146 -25
- pulumi_oci/datasafe/target_database_peer_target_database.py +634 -0
- pulumi_oci/datasafe/user_assessment.py +20 -20
- pulumi_oci/generativeai/__init__.py +18 -0
- pulumi_oci/generativeai/_inputs.py +534 -0
- pulumi_oci/generativeai/dedicated_ai_cluster.py +808 -0
- pulumi_oci/generativeai/endpoint.py +717 -0
- pulumi_oci/generativeai/get_dedicated_ai_cluster.py +288 -0
- pulumi_oci/generativeai/get_dedicated_ai_clusters.py +183 -0
- pulumi_oci/generativeai/get_endpoint.py +275 -0
- pulumi_oci/generativeai/get_endpoints.py +183 -0
- pulumi_oci/generativeai/get_model.py +353 -0
- pulumi_oci/generativeai/get_models.py +220 -0
- pulumi_oci/generativeai/model.py +858 -0
- pulumi_oci/generativeai/outputs.py +1721 -0
- pulumi_oci/marketplace/get_publication.py +14 -1
- pulumi_oci/marketplace/outputs.py +11 -0
- pulumi_oci/marketplace/publication.py +28 -0
- pulumi_oci/monitoring/__init__.py +3 -0
- pulumi_oci/monitoring/_inputs.py +82 -4
- pulumi_oci/monitoring/alarm.py +15 -15
- pulumi_oci/monitoring/alarm_suppression.py +745 -0
- pulumi_oci/monitoring/get_alarm.py +5 -5
- pulumi_oci/monitoring/get_alarm_history_collection.py +4 -4
- pulumi_oci/monitoring/get_alarm_statuses.py +3 -1
- pulumi_oci/monitoring/get_alarm_suppression.py +276 -0
- pulumi_oci/monitoring/get_alarm_suppressions.py +192 -0
- pulumi_oci/monitoring/get_metric_data.py +12 -8
- pulumi_oci/monitoring/get_metrics.py +2 -2
- pulumi_oci/monitoring/outputs.py +355 -50
- pulumi_oci/networkfirewall/_inputs.py +25 -20
- pulumi_oci/networkfirewall/outputs.py +40 -30
- pulumi_oci/stackmonitoring/__init__.py +3 -0
- pulumi_oci/stackmonitoring/_inputs.py +143 -0
- pulumi_oci/stackmonitoring/get_process_set.py +236 -0
- pulumi_oci/stackmonitoring/get_process_sets.py +156 -0
- pulumi_oci/stackmonitoring/outputs.py +422 -0
- pulumi_oci/stackmonitoring/process_set.py +548 -0
- {pulumi_oci-1.19.0a1705693078.dist-info → pulumi_oci-1.20.0.dist-info}/METADATA +1 -1
- {pulumi_oci-1.19.0a1705693078.dist-info → pulumi_oci-1.20.0.dist-info}/RECORD +111 -70
- {pulumi_oci-1.19.0a1705693078.dist-info → pulumi_oci-1.20.0.dist-info}/WHEEL +0 -0
- {pulumi_oci-1.19.0a1705693078.dist-info → pulumi_oci-1.20.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,273 @@
|
|
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
|
+
from . import outputs
|
12
|
+
from ._inputs import *
|
13
|
+
|
14
|
+
__all__ = [
|
15
|
+
'GetSecurityPolicyReportsResult',
|
16
|
+
'AwaitableGetSecurityPolicyReportsResult',
|
17
|
+
'get_security_policy_reports',
|
18
|
+
'get_security_policy_reports_output',
|
19
|
+
]
|
20
|
+
|
21
|
+
@pulumi.output_type
|
22
|
+
class GetSecurityPolicyReportsResult:
|
23
|
+
"""
|
24
|
+
A collection of values returned by getSecurityPolicyReports.
|
25
|
+
"""
|
26
|
+
def __init__(__self__, access_level=None, compartment_id=None, compartment_id_in_subtree=None, display_name=None, filters=None, id=None, security_policy_report_collections=None, security_policy_report_id=None, state=None, target_id=None):
|
27
|
+
if access_level and not isinstance(access_level, str):
|
28
|
+
raise TypeError("Expected argument 'access_level' to be a str")
|
29
|
+
pulumi.set(__self__, "access_level", access_level)
|
30
|
+
if compartment_id and not isinstance(compartment_id, str):
|
31
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
32
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
33
|
+
if compartment_id_in_subtree and not isinstance(compartment_id_in_subtree, bool):
|
34
|
+
raise TypeError("Expected argument 'compartment_id_in_subtree' to be a bool")
|
35
|
+
pulumi.set(__self__, "compartment_id_in_subtree", compartment_id_in_subtree)
|
36
|
+
if display_name and not isinstance(display_name, str):
|
37
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
38
|
+
pulumi.set(__self__, "display_name", display_name)
|
39
|
+
if filters and not isinstance(filters, list):
|
40
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
41
|
+
pulumi.set(__self__, "filters", filters)
|
42
|
+
if id and not isinstance(id, str):
|
43
|
+
raise TypeError("Expected argument 'id' to be a str")
|
44
|
+
pulumi.set(__self__, "id", id)
|
45
|
+
if security_policy_report_collections and not isinstance(security_policy_report_collections, list):
|
46
|
+
raise TypeError("Expected argument 'security_policy_report_collections' to be a list")
|
47
|
+
pulumi.set(__self__, "security_policy_report_collections", security_policy_report_collections)
|
48
|
+
if security_policy_report_id and not isinstance(security_policy_report_id, str):
|
49
|
+
raise TypeError("Expected argument 'security_policy_report_id' to be a str")
|
50
|
+
pulumi.set(__self__, "security_policy_report_id", security_policy_report_id)
|
51
|
+
if state and not isinstance(state, str):
|
52
|
+
raise TypeError("Expected argument 'state' to be a str")
|
53
|
+
pulumi.set(__self__, "state", state)
|
54
|
+
if target_id and not isinstance(target_id, str):
|
55
|
+
raise TypeError("Expected argument 'target_id' to be a str")
|
56
|
+
pulumi.set(__self__, "target_id", target_id)
|
57
|
+
|
58
|
+
@property
|
59
|
+
@pulumi.getter(name="accessLevel")
|
60
|
+
def access_level(self) -> Optional[str]:
|
61
|
+
return pulumi.get(self, "access_level")
|
62
|
+
|
63
|
+
@property
|
64
|
+
@pulumi.getter(name="compartmentId")
|
65
|
+
def compartment_id(self) -> str:
|
66
|
+
"""
|
67
|
+
The OCID of the compartment that contains the security policy report.
|
68
|
+
"""
|
69
|
+
return pulumi.get(self, "compartment_id")
|
70
|
+
|
71
|
+
@property
|
72
|
+
@pulumi.getter(name="compartmentIdInSubtree")
|
73
|
+
def compartment_id_in_subtree(self) -> Optional[bool]:
|
74
|
+
return pulumi.get(self, "compartment_id_in_subtree")
|
75
|
+
|
76
|
+
@property
|
77
|
+
@pulumi.getter(name="displayName")
|
78
|
+
def display_name(self) -> Optional[str]:
|
79
|
+
"""
|
80
|
+
The display name of the security policy report.
|
81
|
+
"""
|
82
|
+
return pulumi.get(self, "display_name")
|
83
|
+
|
84
|
+
@property
|
85
|
+
@pulumi.getter
|
86
|
+
def filters(self) -> Optional[Sequence['outputs.GetSecurityPolicyReportsFilterResult']]:
|
87
|
+
return pulumi.get(self, "filters")
|
88
|
+
|
89
|
+
@property
|
90
|
+
@pulumi.getter
|
91
|
+
def id(self) -> str:
|
92
|
+
"""
|
93
|
+
The provider-assigned unique ID for this managed resource.
|
94
|
+
"""
|
95
|
+
return pulumi.get(self, "id")
|
96
|
+
|
97
|
+
@property
|
98
|
+
@pulumi.getter(name="securityPolicyReportCollections")
|
99
|
+
def security_policy_report_collections(self) -> Sequence['outputs.GetSecurityPolicyReportsSecurityPolicyReportCollectionResult']:
|
100
|
+
"""
|
101
|
+
The list of security_policy_report_collection.
|
102
|
+
"""
|
103
|
+
return pulumi.get(self, "security_policy_report_collections")
|
104
|
+
|
105
|
+
@property
|
106
|
+
@pulumi.getter(name="securityPolicyReportId")
|
107
|
+
def security_policy_report_id(self) -> Optional[str]:
|
108
|
+
return pulumi.get(self, "security_policy_report_id")
|
109
|
+
|
110
|
+
@property
|
111
|
+
@pulumi.getter
|
112
|
+
def state(self) -> Optional[str]:
|
113
|
+
"""
|
114
|
+
The current state of the security policy report.
|
115
|
+
"""
|
116
|
+
return pulumi.get(self, "state")
|
117
|
+
|
118
|
+
@property
|
119
|
+
@pulumi.getter(name="targetId")
|
120
|
+
def target_id(self) -> Optional[str]:
|
121
|
+
"""
|
122
|
+
The OCID of the of the target database.
|
123
|
+
"""
|
124
|
+
return pulumi.get(self, "target_id")
|
125
|
+
|
126
|
+
|
127
|
+
class AwaitableGetSecurityPolicyReportsResult(GetSecurityPolicyReportsResult):
|
128
|
+
# pylint: disable=using-constant-test
|
129
|
+
def __await__(self):
|
130
|
+
if False:
|
131
|
+
yield self
|
132
|
+
return GetSecurityPolicyReportsResult(
|
133
|
+
access_level=self.access_level,
|
134
|
+
compartment_id=self.compartment_id,
|
135
|
+
compartment_id_in_subtree=self.compartment_id_in_subtree,
|
136
|
+
display_name=self.display_name,
|
137
|
+
filters=self.filters,
|
138
|
+
id=self.id,
|
139
|
+
security_policy_report_collections=self.security_policy_report_collections,
|
140
|
+
security_policy_report_id=self.security_policy_report_id,
|
141
|
+
state=self.state,
|
142
|
+
target_id=self.target_id)
|
143
|
+
|
144
|
+
|
145
|
+
def get_security_policy_reports(access_level: Optional[str] = None,
|
146
|
+
compartment_id: Optional[str] = None,
|
147
|
+
compartment_id_in_subtree: Optional[bool] = None,
|
148
|
+
display_name: Optional[str] = None,
|
149
|
+
filters: Optional[Sequence[pulumi.InputType['GetSecurityPolicyReportsFilterArgs']]] = None,
|
150
|
+
security_policy_report_id: Optional[str] = None,
|
151
|
+
state: Optional[str] = None,
|
152
|
+
target_id: Optional[str] = None,
|
153
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecurityPolicyReportsResult:
|
154
|
+
"""
|
155
|
+
This data source provides the list of Security Policy Reports in Oracle Cloud Infrastructure Data Safe service.
|
156
|
+
|
157
|
+
Retrieves a list of all security policy reports in Data Safe.
|
158
|
+
|
159
|
+
The ListSecurityPolicyReports operation returns only the security policy reports in the specified `compartmentId`.
|
160
|
+
|
161
|
+
The parameter `accessLevel` specifies whether to return only those compartments for which the
|
162
|
+
requestor has INSPECT permissions on at least one resource directly
|
163
|
+
or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
|
164
|
+
Principal doesn't have access to even one of the child compartments. This is valid only when
|
165
|
+
`compartmentIdInSubtree` is set to `true`.
|
166
|
+
|
167
|
+
The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicyReports on the
|
168
|
+
`compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
|
169
|
+
To get a full list of all compartments and subcompartments in the tenancy (root compartment),
|
170
|
+
set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
|
171
|
+
|
172
|
+
## Example Usage
|
173
|
+
|
174
|
+
```python
|
175
|
+
import pulumi
|
176
|
+
import pulumi_oci as oci
|
177
|
+
|
178
|
+
test_security_policy_reports = oci.DataSafe.get_security_policy_reports(compartment_id=var["compartment_id"],
|
179
|
+
access_level=var["security_policy_report_access_level"],
|
180
|
+
compartment_id_in_subtree=var["security_policy_report_compartment_id_in_subtree"],
|
181
|
+
display_name=var["security_policy_report_display_name"],
|
182
|
+
security_policy_report_id=oci_data_safe_security_policy_report["test_security_policy_report"]["id"],
|
183
|
+
state=var["security_policy_report_state"],
|
184
|
+
target_id=oci_cloud_guard_target["test_target"]["id"])
|
185
|
+
```
|
186
|
+
|
187
|
+
|
188
|
+
:param str access_level: Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
|
189
|
+
:param str compartment_id: A filter to return only resources that match the specified compartment OCID.
|
190
|
+
:param bool compartment_id_in_subtree: Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
|
191
|
+
:param str display_name: A filter to return only resources that match the specified display name.
|
192
|
+
:param str security_policy_report_id: An optional filter to return only resources that match the specified OCID of the security policy report resource.
|
193
|
+
:param str state: The current state of the security policy report.
|
194
|
+
:param str target_id: A filter to return only items related to a specific target OCID.
|
195
|
+
"""
|
196
|
+
__args__ = dict()
|
197
|
+
__args__['accessLevel'] = access_level
|
198
|
+
__args__['compartmentId'] = compartment_id
|
199
|
+
__args__['compartmentIdInSubtree'] = compartment_id_in_subtree
|
200
|
+
__args__['displayName'] = display_name
|
201
|
+
__args__['filters'] = filters
|
202
|
+
__args__['securityPolicyReportId'] = security_policy_report_id
|
203
|
+
__args__['state'] = state
|
204
|
+
__args__['targetId'] = target_id
|
205
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
206
|
+
__ret__ = pulumi.runtime.invoke('oci:DataSafe/getSecurityPolicyReports:getSecurityPolicyReports', __args__, opts=opts, typ=GetSecurityPolicyReportsResult).value
|
207
|
+
|
208
|
+
return AwaitableGetSecurityPolicyReportsResult(
|
209
|
+
access_level=pulumi.get(__ret__, 'access_level'),
|
210
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
211
|
+
compartment_id_in_subtree=pulumi.get(__ret__, 'compartment_id_in_subtree'),
|
212
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
213
|
+
filters=pulumi.get(__ret__, 'filters'),
|
214
|
+
id=pulumi.get(__ret__, 'id'),
|
215
|
+
security_policy_report_collections=pulumi.get(__ret__, 'security_policy_report_collections'),
|
216
|
+
security_policy_report_id=pulumi.get(__ret__, 'security_policy_report_id'),
|
217
|
+
state=pulumi.get(__ret__, 'state'),
|
218
|
+
target_id=pulumi.get(__ret__, 'target_id'))
|
219
|
+
|
220
|
+
|
221
|
+
@_utilities.lift_output_func(get_security_policy_reports)
|
222
|
+
def get_security_policy_reports_output(access_level: Optional[pulumi.Input[Optional[str]]] = None,
|
223
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
224
|
+
compartment_id_in_subtree: Optional[pulumi.Input[Optional[bool]]] = None,
|
225
|
+
display_name: Optional[pulumi.Input[Optional[str]]] = None,
|
226
|
+
filters: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetSecurityPolicyReportsFilterArgs']]]]] = None,
|
227
|
+
security_policy_report_id: Optional[pulumi.Input[Optional[str]]] = None,
|
228
|
+
state: Optional[pulumi.Input[Optional[str]]] = None,
|
229
|
+
target_id: Optional[pulumi.Input[Optional[str]]] = None,
|
230
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecurityPolicyReportsResult]:
|
231
|
+
"""
|
232
|
+
This data source provides the list of Security Policy Reports in Oracle Cloud Infrastructure Data Safe service.
|
233
|
+
|
234
|
+
Retrieves a list of all security policy reports in Data Safe.
|
235
|
+
|
236
|
+
The ListSecurityPolicyReports operation returns only the security policy reports in the specified `compartmentId`.
|
237
|
+
|
238
|
+
The parameter `accessLevel` specifies whether to return only those compartments for which the
|
239
|
+
requestor has INSPECT permissions on at least one resource directly
|
240
|
+
or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
|
241
|
+
Principal doesn't have access to even one of the child compartments. This is valid only when
|
242
|
+
`compartmentIdInSubtree` is set to `true`.
|
243
|
+
|
244
|
+
The parameter `compartmentIdInSubtree` applies when you perform ListSecurityPolicyReports on the
|
245
|
+
`compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
|
246
|
+
To get a full list of all compartments and subcompartments in the tenancy (root compartment),
|
247
|
+
set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
|
248
|
+
|
249
|
+
## Example Usage
|
250
|
+
|
251
|
+
```python
|
252
|
+
import pulumi
|
253
|
+
import pulumi_oci as oci
|
254
|
+
|
255
|
+
test_security_policy_reports = oci.DataSafe.get_security_policy_reports(compartment_id=var["compartment_id"],
|
256
|
+
access_level=var["security_policy_report_access_level"],
|
257
|
+
compartment_id_in_subtree=var["security_policy_report_compartment_id_in_subtree"],
|
258
|
+
display_name=var["security_policy_report_display_name"],
|
259
|
+
security_policy_report_id=oci_data_safe_security_policy_report["test_security_policy_report"]["id"],
|
260
|
+
state=var["security_policy_report_state"],
|
261
|
+
target_id=oci_cloud_guard_target["test_target"]["id"])
|
262
|
+
```
|
263
|
+
|
264
|
+
|
265
|
+
:param str access_level: Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed.
|
266
|
+
:param str compartment_id: A filter to return only resources that match the specified compartment OCID.
|
267
|
+
:param bool compartment_id_in_subtree: Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting.
|
268
|
+
:param str display_name: A filter to return only resources that match the specified display name.
|
269
|
+
:param str security_policy_report_id: An optional filter to return only resources that match the specified OCID of the security policy report resource.
|
270
|
+
:param str state: The current state of the security policy report.
|
271
|
+
:param str target_id: A filter to return only items related to a specific target OCID.
|
272
|
+
"""
|
273
|
+
...
|
@@ -148,7 +148,7 @@ class GetSensitiveDataModelResult:
|
|
148
148
|
@pulumi.getter(name="isIncludeAllSchemas")
|
149
149
|
def is_include_all_schemas(self) -> bool:
|
150
150
|
"""
|
151
|
-
Indicates if all the schemas in the associated target database should be scanned by data discovery jobs. If it
|
151
|
+
Indicates if all the schemas in the associated target database should be scanned by data discovery jobs. If it is set to true, sensitive data is discovered in all schemas (except for schemas maintained by Oracle).
|
152
152
|
"""
|
153
153
|
return pulumi.get(self, "is_include_all_schemas")
|
154
154
|
|
@@ -22,7 +22,7 @@ class GetTargetDatabaseResult:
|
|
22
22
|
"""
|
23
23
|
A collection of values returned by getTargetDatabase.
|
24
24
|
"""
|
25
|
-
def __init__(__self__, associated_resource_ids=None, compartment_id=None, connection_options=None, credentials=None, database_details=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, lifecycle_details=None, state=None, system_tags=None, target_database_id=None, time_created=None, time_updated=None, tls_configs=None):
|
25
|
+
def __init__(__self__, associated_resource_ids=None, compartment_id=None, connection_options=None, credentials=None, database_details=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, lifecycle_details=None, peer_target_database_details=None, peer_target_databases=None, state=None, system_tags=None, target_database_id=None, time_created=None, time_updated=None, tls_configs=None):
|
26
26
|
if associated_resource_ids and not isinstance(associated_resource_ids, list):
|
27
27
|
raise TypeError("Expected argument 'associated_resource_ids' to be a list")
|
28
28
|
pulumi.set(__self__, "associated_resource_ids", associated_resource_ids)
|
@@ -56,6 +56,12 @@ class GetTargetDatabaseResult:
|
|
56
56
|
if lifecycle_details and not isinstance(lifecycle_details, str):
|
57
57
|
raise TypeError("Expected argument 'lifecycle_details' to be a str")
|
58
58
|
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
59
|
+
if peer_target_database_details and not isinstance(peer_target_database_details, list):
|
60
|
+
raise TypeError("Expected argument 'peer_target_database_details' to be a list")
|
61
|
+
pulumi.set(__self__, "peer_target_database_details", peer_target_database_details)
|
62
|
+
if peer_target_databases and not isinstance(peer_target_databases, list):
|
63
|
+
raise TypeError("Expected argument 'peer_target_databases' to be a list")
|
64
|
+
pulumi.set(__self__, "peer_target_databases", peer_target_databases)
|
59
65
|
if state and not isinstance(state, str):
|
60
66
|
raise TypeError("Expected argument 'state' to be a str")
|
61
67
|
pulumi.set(__self__, "state", state)
|
@@ -127,7 +133,7 @@ class GetTargetDatabaseResult:
|
|
127
133
|
@pulumi.getter
|
128
134
|
def description(self) -> str:
|
129
135
|
"""
|
130
|
-
The description of the target database in Data Safe.
|
136
|
+
The description of the peer target database in Data Safe.
|
131
137
|
"""
|
132
138
|
return pulumi.get(self, "description")
|
133
139
|
|
@@ -135,7 +141,7 @@ class GetTargetDatabaseResult:
|
|
135
141
|
@pulumi.getter(name="displayName")
|
136
142
|
def display_name(self) -> str:
|
137
143
|
"""
|
138
|
-
The display name of the target database in Data Safe.
|
144
|
+
The display name of the peer target database in Data Safe.
|
139
145
|
"""
|
140
146
|
return pulumi.get(self, "display_name")
|
141
147
|
|
@@ -159,10 +165,23 @@ class GetTargetDatabaseResult:
|
|
159
165
|
@pulumi.getter(name="lifecycleDetails")
|
160
166
|
def lifecycle_details(self) -> str:
|
161
167
|
"""
|
162
|
-
Details about the current state of the target database in Data Safe.
|
168
|
+
Details about the current state of the peer target database in Data Safe.
|
163
169
|
"""
|
164
170
|
return pulumi.get(self, "lifecycle_details")
|
165
171
|
|
172
|
+
@property
|
173
|
+
@pulumi.getter(name="peerTargetDatabaseDetails")
|
174
|
+
def peer_target_database_details(self) -> Sequence['outputs.GetTargetDatabasePeerTargetDatabaseDetailResult']:
|
175
|
+
return pulumi.get(self, "peer_target_database_details")
|
176
|
+
|
177
|
+
@property
|
178
|
+
@pulumi.getter(name="peerTargetDatabases")
|
179
|
+
def peer_target_databases(self) -> Sequence['outputs.GetTargetDatabasePeerTargetDatabaseResult']:
|
180
|
+
"""
|
181
|
+
The OCIDs of associated resources like Database, Data Safe private endpoint etc.
|
182
|
+
"""
|
183
|
+
return pulumi.get(self, "peer_target_databases")
|
184
|
+
|
166
185
|
@property
|
167
186
|
@pulumi.getter
|
168
187
|
def state(self) -> str:
|
@@ -226,6 +245,8 @@ class AwaitableGetTargetDatabaseResult(GetTargetDatabaseResult):
|
|
226
245
|
freeform_tags=self.freeform_tags,
|
227
246
|
id=self.id,
|
228
247
|
lifecycle_details=self.lifecycle_details,
|
248
|
+
peer_target_database_details=self.peer_target_database_details,
|
249
|
+
peer_target_databases=self.peer_target_databases,
|
229
250
|
state=self.state,
|
230
251
|
system_tags=self.system_tags,
|
231
252
|
target_database_id=self.target_database_id,
|
@@ -270,6 +291,8 @@ def get_target_database(target_database_id: Optional[str] = None,
|
|
270
291
|
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
271
292
|
id=pulumi.get(__ret__, 'id'),
|
272
293
|
lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
|
294
|
+
peer_target_database_details=pulumi.get(__ret__, 'peer_target_database_details'),
|
295
|
+
peer_target_databases=pulumi.get(__ret__, 'peer_target_databases'),
|
273
296
|
state=pulumi.get(__ret__, 'state'),
|
274
297
|
system_tags=pulumi.get(__ret__, 'system_tags'),
|
275
298
|
target_database_id=pulumi.get(__ret__, 'target_database_id'),
|
@@ -0,0 +1,263 @@
|
|
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
|
+
from . import outputs
|
12
|
+
|
13
|
+
__all__ = [
|
14
|
+
'GetTargetDatabasePeerTargetDatabaseResult',
|
15
|
+
'AwaitableGetTargetDatabasePeerTargetDatabaseResult',
|
16
|
+
'get_target_database_peer_target_database',
|
17
|
+
'get_target_database_peer_target_database_output',
|
18
|
+
]
|
19
|
+
|
20
|
+
@pulumi.output_type
|
21
|
+
class GetTargetDatabasePeerTargetDatabaseResult:
|
22
|
+
"""
|
23
|
+
A collection of values returned by getTargetDatabasePeerTargetDatabase.
|
24
|
+
"""
|
25
|
+
def __init__(__self__, database_details=None, database_unique_name=None, dataguard_association_id=None, description=None, display_name=None, id=None, key=None, lifecycle_details=None, peer_target_database_id=None, role=None, state=None, target_database_id=None, time_created=None, tls_configs=None):
|
26
|
+
if database_details and not isinstance(database_details, list):
|
27
|
+
raise TypeError("Expected argument 'database_details' to be a list")
|
28
|
+
pulumi.set(__self__, "database_details", database_details)
|
29
|
+
if database_unique_name and not isinstance(database_unique_name, str):
|
30
|
+
raise TypeError("Expected argument 'database_unique_name' to be a str")
|
31
|
+
pulumi.set(__self__, "database_unique_name", database_unique_name)
|
32
|
+
if dataguard_association_id and not isinstance(dataguard_association_id, str):
|
33
|
+
raise TypeError("Expected argument 'dataguard_association_id' to be a str")
|
34
|
+
pulumi.set(__self__, "dataguard_association_id", dataguard_association_id)
|
35
|
+
if description and not isinstance(description, str):
|
36
|
+
raise TypeError("Expected argument 'description' to be a str")
|
37
|
+
pulumi.set(__self__, "description", description)
|
38
|
+
if display_name and not isinstance(display_name, str):
|
39
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
40
|
+
pulumi.set(__self__, "display_name", display_name)
|
41
|
+
if id and not isinstance(id, str):
|
42
|
+
raise TypeError("Expected argument 'id' to be a str")
|
43
|
+
pulumi.set(__self__, "id", id)
|
44
|
+
if key and not isinstance(key, int):
|
45
|
+
raise TypeError("Expected argument 'key' to be a int")
|
46
|
+
pulumi.set(__self__, "key", key)
|
47
|
+
if lifecycle_details and not isinstance(lifecycle_details, str):
|
48
|
+
raise TypeError("Expected argument 'lifecycle_details' to be a str")
|
49
|
+
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
50
|
+
if peer_target_database_id and not isinstance(peer_target_database_id, str):
|
51
|
+
raise TypeError("Expected argument 'peer_target_database_id' to be a str")
|
52
|
+
pulumi.set(__self__, "peer_target_database_id", peer_target_database_id)
|
53
|
+
if role and not isinstance(role, str):
|
54
|
+
raise TypeError("Expected argument 'role' to be a str")
|
55
|
+
pulumi.set(__self__, "role", role)
|
56
|
+
if state and not isinstance(state, str):
|
57
|
+
raise TypeError("Expected argument 'state' to be a str")
|
58
|
+
pulumi.set(__self__, "state", state)
|
59
|
+
if target_database_id and not isinstance(target_database_id, str):
|
60
|
+
raise TypeError("Expected argument 'target_database_id' to be a str")
|
61
|
+
pulumi.set(__self__, "target_database_id", target_database_id)
|
62
|
+
if time_created and not isinstance(time_created, str):
|
63
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
64
|
+
pulumi.set(__self__, "time_created", time_created)
|
65
|
+
if tls_configs and not isinstance(tls_configs, list):
|
66
|
+
raise TypeError("Expected argument 'tls_configs' to be a list")
|
67
|
+
pulumi.set(__self__, "tls_configs", tls_configs)
|
68
|
+
|
69
|
+
@property
|
70
|
+
@pulumi.getter(name="databaseDetails")
|
71
|
+
def database_details(self) -> Sequence['outputs.GetTargetDatabasePeerTargetDatabaseDatabaseDetailResult']:
|
72
|
+
"""
|
73
|
+
Details of the database for the registration in Data Safe.
|
74
|
+
"""
|
75
|
+
return pulumi.get(self, "database_details")
|
76
|
+
|
77
|
+
@property
|
78
|
+
@pulumi.getter(name="databaseUniqueName")
|
79
|
+
def database_unique_name(self) -> str:
|
80
|
+
"""
|
81
|
+
Unique name of the database associated to the peer target database.
|
82
|
+
"""
|
83
|
+
return pulumi.get(self, "database_unique_name")
|
84
|
+
|
85
|
+
@property
|
86
|
+
@pulumi.getter(name="dataguardAssociationId")
|
87
|
+
def dataguard_association_id(self) -> str:
|
88
|
+
"""
|
89
|
+
The OCID of the Data Guard Association resource in which the database associated to the peer target database is considered as peer database to the primary database.
|
90
|
+
"""
|
91
|
+
return pulumi.get(self, "dataguard_association_id")
|
92
|
+
|
93
|
+
@property
|
94
|
+
@pulumi.getter
|
95
|
+
def description(self) -> str:
|
96
|
+
"""
|
97
|
+
The description of the peer target database in Data Safe.
|
98
|
+
"""
|
99
|
+
return pulumi.get(self, "description")
|
100
|
+
|
101
|
+
@property
|
102
|
+
@pulumi.getter(name="displayName")
|
103
|
+
def display_name(self) -> str:
|
104
|
+
"""
|
105
|
+
The display name of the peer target database in Data Safe.
|
106
|
+
"""
|
107
|
+
return pulumi.get(self, "display_name")
|
108
|
+
|
109
|
+
@property
|
110
|
+
@pulumi.getter
|
111
|
+
def id(self) -> str:
|
112
|
+
return pulumi.get(self, "id")
|
113
|
+
|
114
|
+
@property
|
115
|
+
@pulumi.getter
|
116
|
+
def key(self) -> int:
|
117
|
+
"""
|
118
|
+
The secondary key assigned for the peer target database in Data Safe.
|
119
|
+
"""
|
120
|
+
return pulumi.get(self, "key")
|
121
|
+
|
122
|
+
@property
|
123
|
+
@pulumi.getter(name="lifecycleDetails")
|
124
|
+
def lifecycle_details(self) -> str:
|
125
|
+
"""
|
126
|
+
Details about the current state of the peer target database in Data Safe.
|
127
|
+
"""
|
128
|
+
return pulumi.get(self, "lifecycle_details")
|
129
|
+
|
130
|
+
@property
|
131
|
+
@pulumi.getter(name="peerTargetDatabaseId")
|
132
|
+
def peer_target_database_id(self) -> str:
|
133
|
+
return pulumi.get(self, "peer_target_database_id")
|
134
|
+
|
135
|
+
@property
|
136
|
+
@pulumi.getter
|
137
|
+
def role(self) -> str:
|
138
|
+
"""
|
139
|
+
Role of the database associated to the peer target database.
|
140
|
+
"""
|
141
|
+
return pulumi.get(self, "role")
|
142
|
+
|
143
|
+
@property
|
144
|
+
@pulumi.getter
|
145
|
+
def state(self) -> str:
|
146
|
+
"""
|
147
|
+
The current state of the peer target database in Data Safe.
|
148
|
+
"""
|
149
|
+
return pulumi.get(self, "state")
|
150
|
+
|
151
|
+
@property
|
152
|
+
@pulumi.getter(name="targetDatabaseId")
|
153
|
+
def target_database_id(self) -> str:
|
154
|
+
return pulumi.get(self, "target_database_id")
|
155
|
+
|
156
|
+
@property
|
157
|
+
@pulumi.getter(name="timeCreated")
|
158
|
+
def time_created(self) -> str:
|
159
|
+
"""
|
160
|
+
The date and time of the peer target database registration in Data Safe.
|
161
|
+
"""
|
162
|
+
return pulumi.get(self, "time_created")
|
163
|
+
|
164
|
+
@property
|
165
|
+
@pulumi.getter(name="tlsConfigs")
|
166
|
+
def tls_configs(self) -> Sequence['outputs.GetTargetDatabasePeerTargetDatabaseTlsConfigResult']:
|
167
|
+
"""
|
168
|
+
The details required to establish a TLS enabled connection.
|
169
|
+
"""
|
170
|
+
return pulumi.get(self, "tls_configs")
|
171
|
+
|
172
|
+
|
173
|
+
class AwaitableGetTargetDatabasePeerTargetDatabaseResult(GetTargetDatabasePeerTargetDatabaseResult):
|
174
|
+
# pylint: disable=using-constant-test
|
175
|
+
def __await__(self):
|
176
|
+
if False:
|
177
|
+
yield self
|
178
|
+
return GetTargetDatabasePeerTargetDatabaseResult(
|
179
|
+
database_details=self.database_details,
|
180
|
+
database_unique_name=self.database_unique_name,
|
181
|
+
dataguard_association_id=self.dataguard_association_id,
|
182
|
+
description=self.description,
|
183
|
+
display_name=self.display_name,
|
184
|
+
id=self.id,
|
185
|
+
key=self.key,
|
186
|
+
lifecycle_details=self.lifecycle_details,
|
187
|
+
peer_target_database_id=self.peer_target_database_id,
|
188
|
+
role=self.role,
|
189
|
+
state=self.state,
|
190
|
+
target_database_id=self.target_database_id,
|
191
|
+
time_created=self.time_created,
|
192
|
+
tls_configs=self.tls_configs)
|
193
|
+
|
194
|
+
|
195
|
+
def get_target_database_peer_target_database(peer_target_database_id: Optional[str] = None,
|
196
|
+
target_database_id: Optional[str] = None,
|
197
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTargetDatabasePeerTargetDatabaseResult:
|
198
|
+
"""
|
199
|
+
This data source provides details about a specific Target Database Peer Target Database resource in Oracle Cloud Infrastructure Data Safe service.
|
200
|
+
|
201
|
+
Returns the details of the specified Data Safe peer target database.
|
202
|
+
|
203
|
+
## Example Usage
|
204
|
+
|
205
|
+
```python
|
206
|
+
import pulumi
|
207
|
+
import pulumi_oci as oci
|
208
|
+
|
209
|
+
test_target_database_peer_target_database = oci.DataSafe.get_target_database_peer_target_database(peer_target_database_id=oci_data_safe_target_database["test_target_database"]["id"],
|
210
|
+
target_database_id=oci_data_safe_target_database["test_target_database"]["id"])
|
211
|
+
```
|
212
|
+
|
213
|
+
|
214
|
+
:param str peer_target_database_id: The unique id of the peer target database.
|
215
|
+
:param str target_database_id: The OCID of the Data Safe target database.
|
216
|
+
"""
|
217
|
+
__args__ = dict()
|
218
|
+
__args__['peerTargetDatabaseId'] = peer_target_database_id
|
219
|
+
__args__['targetDatabaseId'] = target_database_id
|
220
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
221
|
+
__ret__ = pulumi.runtime.invoke('oci:DataSafe/getTargetDatabasePeerTargetDatabase:getTargetDatabasePeerTargetDatabase', __args__, opts=opts, typ=GetTargetDatabasePeerTargetDatabaseResult).value
|
222
|
+
|
223
|
+
return AwaitableGetTargetDatabasePeerTargetDatabaseResult(
|
224
|
+
database_details=pulumi.get(__ret__, 'database_details'),
|
225
|
+
database_unique_name=pulumi.get(__ret__, 'database_unique_name'),
|
226
|
+
dataguard_association_id=pulumi.get(__ret__, 'dataguard_association_id'),
|
227
|
+
description=pulumi.get(__ret__, 'description'),
|
228
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
229
|
+
id=pulumi.get(__ret__, 'id'),
|
230
|
+
key=pulumi.get(__ret__, 'key'),
|
231
|
+
lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
|
232
|
+
peer_target_database_id=pulumi.get(__ret__, 'peer_target_database_id'),
|
233
|
+
role=pulumi.get(__ret__, 'role'),
|
234
|
+
state=pulumi.get(__ret__, 'state'),
|
235
|
+
target_database_id=pulumi.get(__ret__, 'target_database_id'),
|
236
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
237
|
+
tls_configs=pulumi.get(__ret__, 'tls_configs'))
|
238
|
+
|
239
|
+
|
240
|
+
@_utilities.lift_output_func(get_target_database_peer_target_database)
|
241
|
+
def get_target_database_peer_target_database_output(peer_target_database_id: Optional[pulumi.Input[str]] = None,
|
242
|
+
target_database_id: Optional[pulumi.Input[str]] = None,
|
243
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTargetDatabasePeerTargetDatabaseResult]:
|
244
|
+
"""
|
245
|
+
This data source provides details about a specific Target Database Peer Target Database resource in Oracle Cloud Infrastructure Data Safe service.
|
246
|
+
|
247
|
+
Returns the details of the specified Data Safe peer target database.
|
248
|
+
|
249
|
+
## Example Usage
|
250
|
+
|
251
|
+
```python
|
252
|
+
import pulumi
|
253
|
+
import pulumi_oci as oci
|
254
|
+
|
255
|
+
test_target_database_peer_target_database = oci.DataSafe.get_target_database_peer_target_database(peer_target_database_id=oci_data_safe_target_database["test_target_database"]["id"],
|
256
|
+
target_database_id=oci_data_safe_target_database["test_target_database"]["id"])
|
257
|
+
```
|
258
|
+
|
259
|
+
|
260
|
+
:param str peer_target_database_id: The unique id of the peer target database.
|
261
|
+
:param str target_database_id: The OCID of the Data Safe target database.
|
262
|
+
"""
|
263
|
+
...
|