pulumi-oci 2.14.0a1730198001__py3-none-any.whl → 2.15.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/containerengine/addon.py +54 -7
- pulumi_oci/containerengine/get_addon.py +12 -1
- pulumi_oci/containerengine/outputs.py +9 -1
- pulumi_oci/core/instance_pool.py +7 -7
- pulumi_oci/datasafe/__init__.py +2 -0
- pulumi_oci/datasafe/_inputs.py +49 -0
- pulumi_oci/datasafe/get_database_security_config.py +307 -0
- pulumi_oci/datasafe/get_database_security_configs.py +342 -0
- pulumi_oci/datasafe/outputs.py +325 -0
- pulumi_oci/datascience/get_model.py +29 -4
- pulumi_oci/datascience/get_models.py +25 -5
- pulumi_oci/datascience/model.py +205 -4
- pulumi_oci/datascience/outputs.py +19 -1
- pulumi_oci/identity/domains_auth_token.py +68 -0
- pulumi_oci/identity/domains_customer_secret_key.py +56 -0
- pulumi_oci/identity/domains_oauth2client_credential.py +64 -0
- pulumi_oci/identity/domains_smtp_credential.py +60 -0
- pulumi_oci/identity/get_domains_auth_token.py +15 -1
- pulumi_oci/identity/get_domains_customer_secret_key.py +15 -1
- pulumi_oci/identity/get_domains_oauth2client_credential.py +15 -1
- pulumi_oci/identity/get_domains_smtp_credential.py +15 -1
- pulumi_oci/identity/outputs.py +44 -0
- pulumi_oci/loadbalancer/listener.py +7 -7
- pulumi_oci/networkloadbalancer/get_backend_set.py +1 -1
- pulumi_oci/networkloadbalancer/get_listener.py +15 -1
- pulumi_oci/networkloadbalancer/listener.py +49 -0
- pulumi_oci/networkloadbalancer/outputs.py +13 -2
- pulumi_oci/pulumi-plugin.json +1 -1
- pulumi_oci/resourcescheduler/_inputs.py +24 -21
- pulumi_oci/resourcescheduler/get_schedules.py +6 -6
- pulumi_oci/resourcescheduler/outputs.py +18 -16
- pulumi_oci/resourcescheduler/schedule.py +14 -88
- {pulumi_oci-2.14.0a1730198001.dist-info → pulumi_oci-2.15.0.dist-info}/METADATA +1 -1
- {pulumi_oci-2.14.0a1730198001.dist-info → pulumi_oci-2.15.0.dist-info}/RECORD +36 -34
- {pulumi_oci-2.14.0a1730198001.dist-info → pulumi_oci-2.15.0.dist-info}/WHEEL +0 -0
- {pulumi_oci-2.14.0a1730198001.dist-info → pulumi_oci-2.15.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,307 @@
|
|
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
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetDatabaseSecurityConfigResult',
|
20
|
+
'AwaitableGetDatabaseSecurityConfigResult',
|
21
|
+
'get_database_security_config',
|
22
|
+
'get_database_security_config_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetDatabaseSecurityConfigResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getDatabaseSecurityConfig.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, compartment_id=None, database_security_config_id=None, defined_tags=None, description=None, display_name=None, freeform_tags=None, id=None, lifecycle_details=None, refresh_trigger=None, sql_firewall_configs=None, state=None, system_tags=None, target_id=None, time_created=None, time_last_refreshed=None, time_updated=None):
|
31
|
+
if compartment_id and not isinstance(compartment_id, str):
|
32
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
33
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
34
|
+
if database_security_config_id and not isinstance(database_security_config_id, str):
|
35
|
+
raise TypeError("Expected argument 'database_security_config_id' to be a str")
|
36
|
+
pulumi.set(__self__, "database_security_config_id", database_security_config_id)
|
37
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
38
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
39
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
40
|
+
if description and not isinstance(description, str):
|
41
|
+
raise TypeError("Expected argument 'description' to be a str")
|
42
|
+
pulumi.set(__self__, "description", description)
|
43
|
+
if display_name and not isinstance(display_name, str):
|
44
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
45
|
+
pulumi.set(__self__, "display_name", display_name)
|
46
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
47
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
48
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
49
|
+
if id and not isinstance(id, str):
|
50
|
+
raise TypeError("Expected argument 'id' to be a str")
|
51
|
+
pulumi.set(__self__, "id", id)
|
52
|
+
if lifecycle_details and not isinstance(lifecycle_details, str):
|
53
|
+
raise TypeError("Expected argument 'lifecycle_details' to be a str")
|
54
|
+
pulumi.set(__self__, "lifecycle_details", lifecycle_details)
|
55
|
+
if refresh_trigger and not isinstance(refresh_trigger, int):
|
56
|
+
raise TypeError("Expected argument 'refresh_trigger' to be a int")
|
57
|
+
pulumi.set(__self__, "refresh_trigger", refresh_trigger)
|
58
|
+
if sql_firewall_configs and not isinstance(sql_firewall_configs, list):
|
59
|
+
raise TypeError("Expected argument 'sql_firewall_configs' to be a list")
|
60
|
+
pulumi.set(__self__, "sql_firewall_configs", sql_firewall_configs)
|
61
|
+
if state and not isinstance(state, str):
|
62
|
+
raise TypeError("Expected argument 'state' to be a str")
|
63
|
+
pulumi.set(__self__, "state", state)
|
64
|
+
if system_tags and not isinstance(system_tags, dict):
|
65
|
+
raise TypeError("Expected argument 'system_tags' to be a dict")
|
66
|
+
pulumi.set(__self__, "system_tags", system_tags)
|
67
|
+
if target_id and not isinstance(target_id, str):
|
68
|
+
raise TypeError("Expected argument 'target_id' to be a str")
|
69
|
+
pulumi.set(__self__, "target_id", target_id)
|
70
|
+
if time_created and not isinstance(time_created, str):
|
71
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
72
|
+
pulumi.set(__self__, "time_created", time_created)
|
73
|
+
if time_last_refreshed and not isinstance(time_last_refreshed, str):
|
74
|
+
raise TypeError("Expected argument 'time_last_refreshed' to be a str")
|
75
|
+
pulumi.set(__self__, "time_last_refreshed", time_last_refreshed)
|
76
|
+
if time_updated and not isinstance(time_updated, str):
|
77
|
+
raise TypeError("Expected argument 'time_updated' to be a str")
|
78
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
79
|
+
|
80
|
+
@property
|
81
|
+
@pulumi.getter(name="compartmentId")
|
82
|
+
def compartment_id(self) -> str:
|
83
|
+
"""
|
84
|
+
The OCID of the compartment containing the database security config.
|
85
|
+
"""
|
86
|
+
return pulumi.get(self, "compartment_id")
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter(name="databaseSecurityConfigId")
|
90
|
+
def database_security_config_id(self) -> str:
|
91
|
+
return pulumi.get(self, "database_security_config_id")
|
92
|
+
|
93
|
+
@property
|
94
|
+
@pulumi.getter(name="definedTags")
|
95
|
+
def defined_tags(self) -> Mapping[str, str]:
|
96
|
+
"""
|
97
|
+
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Operations.CostCenter": "42"}`
|
98
|
+
"""
|
99
|
+
return pulumi.get(self, "defined_tags")
|
100
|
+
|
101
|
+
@property
|
102
|
+
@pulumi.getter
|
103
|
+
def description(self) -> str:
|
104
|
+
"""
|
105
|
+
The description of the database security config.
|
106
|
+
"""
|
107
|
+
return pulumi.get(self, "description")
|
108
|
+
|
109
|
+
@property
|
110
|
+
@pulumi.getter(name="displayName")
|
111
|
+
def display_name(self) -> str:
|
112
|
+
"""
|
113
|
+
The display name of the database security config.
|
114
|
+
"""
|
115
|
+
return pulumi.get(self, "display_name")
|
116
|
+
|
117
|
+
@property
|
118
|
+
@pulumi.getter(name="freeformTags")
|
119
|
+
def freeform_tags(self) -> Mapping[str, str]:
|
120
|
+
"""
|
121
|
+
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) Example: `{"Department": "Finance"}`
|
122
|
+
"""
|
123
|
+
return pulumi.get(self, "freeform_tags")
|
124
|
+
|
125
|
+
@property
|
126
|
+
@pulumi.getter
|
127
|
+
def id(self) -> str:
|
128
|
+
"""
|
129
|
+
The OCID of the database security config.
|
130
|
+
"""
|
131
|
+
return pulumi.get(self, "id")
|
132
|
+
|
133
|
+
@property
|
134
|
+
@pulumi.getter(name="lifecycleDetails")
|
135
|
+
def lifecycle_details(self) -> str:
|
136
|
+
"""
|
137
|
+
Details about the current state of the database security config in Data Safe.
|
138
|
+
"""
|
139
|
+
return pulumi.get(self, "lifecycle_details")
|
140
|
+
|
141
|
+
@property
|
142
|
+
@pulumi.getter(name="refreshTrigger")
|
143
|
+
def refresh_trigger(self) -> int:
|
144
|
+
return pulumi.get(self, "refresh_trigger")
|
145
|
+
|
146
|
+
@property
|
147
|
+
@pulumi.getter(name="sqlFirewallConfigs")
|
148
|
+
def sql_firewall_configs(self) -> Sequence['outputs.GetDatabaseSecurityConfigSqlFirewallConfigResult']:
|
149
|
+
"""
|
150
|
+
The SQL Firewall related configurations.
|
151
|
+
"""
|
152
|
+
return pulumi.get(self, "sql_firewall_configs")
|
153
|
+
|
154
|
+
@property
|
155
|
+
@pulumi.getter
|
156
|
+
def state(self) -> str:
|
157
|
+
"""
|
158
|
+
The current state of the database security config.
|
159
|
+
"""
|
160
|
+
return pulumi.get(self, "state")
|
161
|
+
|
162
|
+
@property
|
163
|
+
@pulumi.getter(name="systemTags")
|
164
|
+
def system_tags(self) -> Mapping[str, str]:
|
165
|
+
"""
|
166
|
+
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: `{"orcl-cloud.free-tier-retained": "true"}`
|
167
|
+
"""
|
168
|
+
return pulumi.get(self, "system_tags")
|
169
|
+
|
170
|
+
@property
|
171
|
+
@pulumi.getter(name="targetId")
|
172
|
+
def target_id(self) -> str:
|
173
|
+
"""
|
174
|
+
The target OCID corresponding to the database security config.
|
175
|
+
"""
|
176
|
+
return pulumi.get(self, "target_id")
|
177
|
+
|
178
|
+
@property
|
179
|
+
@pulumi.getter(name="timeCreated")
|
180
|
+
def time_created(self) -> str:
|
181
|
+
"""
|
182
|
+
The time that the database security config was created, in the format defined by RFC3339.
|
183
|
+
"""
|
184
|
+
return pulumi.get(self, "time_created")
|
185
|
+
|
186
|
+
@property
|
187
|
+
@pulumi.getter(name="timeLastRefreshed")
|
188
|
+
def time_last_refreshed(self) -> str:
|
189
|
+
"""
|
190
|
+
The last date and time the database security config was refreshed, in the format defined by RFC3339.
|
191
|
+
"""
|
192
|
+
return pulumi.get(self, "time_last_refreshed")
|
193
|
+
|
194
|
+
@property
|
195
|
+
@pulumi.getter(name="timeUpdated")
|
196
|
+
def time_updated(self) -> str:
|
197
|
+
"""
|
198
|
+
The date and time the database security configuration was last updated, in the format defined by RFC3339.
|
199
|
+
"""
|
200
|
+
return pulumi.get(self, "time_updated")
|
201
|
+
|
202
|
+
|
203
|
+
class AwaitableGetDatabaseSecurityConfigResult(GetDatabaseSecurityConfigResult):
|
204
|
+
# pylint: disable=using-constant-test
|
205
|
+
def __await__(self):
|
206
|
+
if False:
|
207
|
+
yield self
|
208
|
+
return GetDatabaseSecurityConfigResult(
|
209
|
+
compartment_id=self.compartment_id,
|
210
|
+
database_security_config_id=self.database_security_config_id,
|
211
|
+
defined_tags=self.defined_tags,
|
212
|
+
description=self.description,
|
213
|
+
display_name=self.display_name,
|
214
|
+
freeform_tags=self.freeform_tags,
|
215
|
+
id=self.id,
|
216
|
+
lifecycle_details=self.lifecycle_details,
|
217
|
+
refresh_trigger=self.refresh_trigger,
|
218
|
+
sql_firewall_configs=self.sql_firewall_configs,
|
219
|
+
state=self.state,
|
220
|
+
system_tags=self.system_tags,
|
221
|
+
target_id=self.target_id,
|
222
|
+
time_created=self.time_created,
|
223
|
+
time_last_refreshed=self.time_last_refreshed,
|
224
|
+
time_updated=self.time_updated)
|
225
|
+
|
226
|
+
|
227
|
+
def get_database_security_config(database_security_config_id: Optional[str] = None,
|
228
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseSecurityConfigResult:
|
229
|
+
"""
|
230
|
+
This data source provides details about a specific Database Security Config resource in Oracle Cloud Infrastructure Data Safe service.
|
231
|
+
|
232
|
+
Gets a database security configuration by identifier.
|
233
|
+
|
234
|
+
## Example Usage
|
235
|
+
|
236
|
+
```python
|
237
|
+
import pulumi
|
238
|
+
import pulumi_oci as oci
|
239
|
+
|
240
|
+
test_database_security_config = oci.DataSafe.get_database_security_config(database_security_config_id=test_database_security_config_oci_data_safe_database_security_config["id"])
|
241
|
+
```
|
242
|
+
|
243
|
+
|
244
|
+
:param str database_security_config_id: The OCID of the database security configuration resource.
|
245
|
+
"""
|
246
|
+
__args__ = dict()
|
247
|
+
__args__['databaseSecurityConfigId'] = database_security_config_id
|
248
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
249
|
+
__ret__ = pulumi.runtime.invoke('oci:DataSafe/getDatabaseSecurityConfig:getDatabaseSecurityConfig', __args__, opts=opts, typ=GetDatabaseSecurityConfigResult).value
|
250
|
+
|
251
|
+
return AwaitableGetDatabaseSecurityConfigResult(
|
252
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
253
|
+
database_security_config_id=pulumi.get(__ret__, 'database_security_config_id'),
|
254
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
255
|
+
description=pulumi.get(__ret__, 'description'),
|
256
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
257
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
258
|
+
id=pulumi.get(__ret__, 'id'),
|
259
|
+
lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
|
260
|
+
refresh_trigger=pulumi.get(__ret__, 'refresh_trigger'),
|
261
|
+
sql_firewall_configs=pulumi.get(__ret__, 'sql_firewall_configs'),
|
262
|
+
state=pulumi.get(__ret__, 'state'),
|
263
|
+
system_tags=pulumi.get(__ret__, 'system_tags'),
|
264
|
+
target_id=pulumi.get(__ret__, 'target_id'),
|
265
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
266
|
+
time_last_refreshed=pulumi.get(__ret__, 'time_last_refreshed'),
|
267
|
+
time_updated=pulumi.get(__ret__, 'time_updated'))
|
268
|
+
def get_database_security_config_output(database_security_config_id: Optional[pulumi.Input[str]] = None,
|
269
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabaseSecurityConfigResult]:
|
270
|
+
"""
|
271
|
+
This data source provides details about a specific Database Security Config resource in Oracle Cloud Infrastructure Data Safe service.
|
272
|
+
|
273
|
+
Gets a database security configuration by identifier.
|
274
|
+
|
275
|
+
## Example Usage
|
276
|
+
|
277
|
+
```python
|
278
|
+
import pulumi
|
279
|
+
import pulumi_oci as oci
|
280
|
+
|
281
|
+
test_database_security_config = oci.DataSafe.get_database_security_config(database_security_config_id=test_database_security_config_oci_data_safe_database_security_config["id"])
|
282
|
+
```
|
283
|
+
|
284
|
+
|
285
|
+
:param str database_security_config_id: The OCID of the database security configuration resource.
|
286
|
+
"""
|
287
|
+
__args__ = dict()
|
288
|
+
__args__['databaseSecurityConfigId'] = database_security_config_id
|
289
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
290
|
+
__ret__ = pulumi.runtime.invoke_output('oci:DataSafe/getDatabaseSecurityConfig:getDatabaseSecurityConfig', __args__, opts=opts, typ=GetDatabaseSecurityConfigResult)
|
291
|
+
return __ret__.apply(lambda __response__: GetDatabaseSecurityConfigResult(
|
292
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
293
|
+
database_security_config_id=pulumi.get(__response__, 'database_security_config_id'),
|
294
|
+
defined_tags=pulumi.get(__response__, 'defined_tags'),
|
295
|
+
description=pulumi.get(__response__, 'description'),
|
296
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
297
|
+
freeform_tags=pulumi.get(__response__, 'freeform_tags'),
|
298
|
+
id=pulumi.get(__response__, 'id'),
|
299
|
+
lifecycle_details=pulumi.get(__response__, 'lifecycle_details'),
|
300
|
+
refresh_trigger=pulumi.get(__response__, 'refresh_trigger'),
|
301
|
+
sql_firewall_configs=pulumi.get(__response__, 'sql_firewall_configs'),
|
302
|
+
state=pulumi.get(__response__, 'state'),
|
303
|
+
system_tags=pulumi.get(__response__, 'system_tags'),
|
304
|
+
target_id=pulumi.get(__response__, 'target_id'),
|
305
|
+
time_created=pulumi.get(__response__, 'time_created'),
|
306
|
+
time_last_refreshed=pulumi.get(__response__, 'time_last_refreshed'),
|
307
|
+
time_updated=pulumi.get(__response__, 'time_updated')))
|
@@ -0,0 +1,342 @@
|
|
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__ = [
|
20
|
+
'GetDatabaseSecurityConfigsResult',
|
21
|
+
'AwaitableGetDatabaseSecurityConfigsResult',
|
22
|
+
'get_database_security_configs',
|
23
|
+
'get_database_security_configs_output',
|
24
|
+
]
|
25
|
+
|
26
|
+
@pulumi.output_type
|
27
|
+
class GetDatabaseSecurityConfigsResult:
|
28
|
+
"""
|
29
|
+
A collection of values returned by getDatabaseSecurityConfigs.
|
30
|
+
"""
|
31
|
+
def __init__(__self__, access_level=None, compartment_id=None, compartment_id_in_subtree=None, database_security_config_collections=None, database_security_config_id=None, display_name=None, filters=None, id=None, state=None, target_id=None, time_created_greater_than_or_equal_to=None, time_created_less_than=None):
|
32
|
+
if access_level and not isinstance(access_level, str):
|
33
|
+
raise TypeError("Expected argument 'access_level' to be a str")
|
34
|
+
pulumi.set(__self__, "access_level", access_level)
|
35
|
+
if compartment_id and not isinstance(compartment_id, str):
|
36
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
37
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
38
|
+
if compartment_id_in_subtree and not isinstance(compartment_id_in_subtree, bool):
|
39
|
+
raise TypeError("Expected argument 'compartment_id_in_subtree' to be a bool")
|
40
|
+
pulumi.set(__self__, "compartment_id_in_subtree", compartment_id_in_subtree)
|
41
|
+
if database_security_config_collections and not isinstance(database_security_config_collections, list):
|
42
|
+
raise TypeError("Expected argument 'database_security_config_collections' to be a list")
|
43
|
+
pulumi.set(__self__, "database_security_config_collections", database_security_config_collections)
|
44
|
+
if database_security_config_id and not isinstance(database_security_config_id, str):
|
45
|
+
raise TypeError("Expected argument 'database_security_config_id' to be a str")
|
46
|
+
pulumi.set(__self__, "database_security_config_id", database_security_config_id)
|
47
|
+
if display_name and not isinstance(display_name, str):
|
48
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
49
|
+
pulumi.set(__self__, "display_name", display_name)
|
50
|
+
if filters and not isinstance(filters, list):
|
51
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
52
|
+
pulumi.set(__self__, "filters", filters)
|
53
|
+
if id and not isinstance(id, str):
|
54
|
+
raise TypeError("Expected argument 'id' to be a str")
|
55
|
+
pulumi.set(__self__, "id", id)
|
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_id and not isinstance(target_id, str):
|
60
|
+
raise TypeError("Expected argument 'target_id' to be a str")
|
61
|
+
pulumi.set(__self__, "target_id", target_id)
|
62
|
+
if time_created_greater_than_or_equal_to and not isinstance(time_created_greater_than_or_equal_to, str):
|
63
|
+
raise TypeError("Expected argument 'time_created_greater_than_or_equal_to' to be a str")
|
64
|
+
pulumi.set(__self__, "time_created_greater_than_or_equal_to", time_created_greater_than_or_equal_to)
|
65
|
+
if time_created_less_than and not isinstance(time_created_less_than, str):
|
66
|
+
raise TypeError("Expected argument 'time_created_less_than' to be a str")
|
67
|
+
pulumi.set(__self__, "time_created_less_than", time_created_less_than)
|
68
|
+
|
69
|
+
@property
|
70
|
+
@pulumi.getter(name="accessLevel")
|
71
|
+
def access_level(self) -> Optional[str]:
|
72
|
+
return pulumi.get(self, "access_level")
|
73
|
+
|
74
|
+
@property
|
75
|
+
@pulumi.getter(name="compartmentId")
|
76
|
+
def compartment_id(self) -> str:
|
77
|
+
"""
|
78
|
+
The OCID of the compartment containing the database security config.
|
79
|
+
"""
|
80
|
+
return pulumi.get(self, "compartment_id")
|
81
|
+
|
82
|
+
@property
|
83
|
+
@pulumi.getter(name="compartmentIdInSubtree")
|
84
|
+
def compartment_id_in_subtree(self) -> Optional[bool]:
|
85
|
+
return pulumi.get(self, "compartment_id_in_subtree")
|
86
|
+
|
87
|
+
@property
|
88
|
+
@pulumi.getter(name="databaseSecurityConfigCollections")
|
89
|
+
def database_security_config_collections(self) -> Sequence['outputs.GetDatabaseSecurityConfigsDatabaseSecurityConfigCollectionResult']:
|
90
|
+
"""
|
91
|
+
The list of database_security_config_collection.
|
92
|
+
"""
|
93
|
+
return pulumi.get(self, "database_security_config_collections")
|
94
|
+
|
95
|
+
@property
|
96
|
+
@pulumi.getter(name="databaseSecurityConfigId")
|
97
|
+
def database_security_config_id(self) -> Optional[str]:
|
98
|
+
return pulumi.get(self, "database_security_config_id")
|
99
|
+
|
100
|
+
@property
|
101
|
+
@pulumi.getter(name="displayName")
|
102
|
+
def display_name(self) -> Optional[str]:
|
103
|
+
"""
|
104
|
+
The display name of the database security config.
|
105
|
+
"""
|
106
|
+
return pulumi.get(self, "display_name")
|
107
|
+
|
108
|
+
@property
|
109
|
+
@pulumi.getter
|
110
|
+
def filters(self) -> Optional[Sequence['outputs.GetDatabaseSecurityConfigsFilterResult']]:
|
111
|
+
return pulumi.get(self, "filters")
|
112
|
+
|
113
|
+
@property
|
114
|
+
@pulumi.getter
|
115
|
+
def id(self) -> str:
|
116
|
+
"""
|
117
|
+
The provider-assigned unique ID for this managed resource.
|
118
|
+
"""
|
119
|
+
return pulumi.get(self, "id")
|
120
|
+
|
121
|
+
@property
|
122
|
+
@pulumi.getter
|
123
|
+
def state(self) -> Optional[str]:
|
124
|
+
"""
|
125
|
+
The current state of the database security config.
|
126
|
+
"""
|
127
|
+
return pulumi.get(self, "state")
|
128
|
+
|
129
|
+
@property
|
130
|
+
@pulumi.getter(name="targetId")
|
131
|
+
def target_id(self) -> Optional[str]:
|
132
|
+
"""
|
133
|
+
The target OCID corresponding to the database security config.
|
134
|
+
"""
|
135
|
+
return pulumi.get(self, "target_id")
|
136
|
+
|
137
|
+
@property
|
138
|
+
@pulumi.getter(name="timeCreatedGreaterThanOrEqualTo")
|
139
|
+
def time_created_greater_than_or_equal_to(self) -> Optional[str]:
|
140
|
+
return pulumi.get(self, "time_created_greater_than_or_equal_to")
|
141
|
+
|
142
|
+
@property
|
143
|
+
@pulumi.getter(name="timeCreatedLessThan")
|
144
|
+
def time_created_less_than(self) -> Optional[str]:
|
145
|
+
return pulumi.get(self, "time_created_less_than")
|
146
|
+
|
147
|
+
|
148
|
+
class AwaitableGetDatabaseSecurityConfigsResult(GetDatabaseSecurityConfigsResult):
|
149
|
+
# pylint: disable=using-constant-test
|
150
|
+
def __await__(self):
|
151
|
+
if False:
|
152
|
+
yield self
|
153
|
+
return GetDatabaseSecurityConfigsResult(
|
154
|
+
access_level=self.access_level,
|
155
|
+
compartment_id=self.compartment_id,
|
156
|
+
compartment_id_in_subtree=self.compartment_id_in_subtree,
|
157
|
+
database_security_config_collections=self.database_security_config_collections,
|
158
|
+
database_security_config_id=self.database_security_config_id,
|
159
|
+
display_name=self.display_name,
|
160
|
+
filters=self.filters,
|
161
|
+
id=self.id,
|
162
|
+
state=self.state,
|
163
|
+
target_id=self.target_id,
|
164
|
+
time_created_greater_than_or_equal_to=self.time_created_greater_than_or_equal_to,
|
165
|
+
time_created_less_than=self.time_created_less_than)
|
166
|
+
|
167
|
+
|
168
|
+
def get_database_security_configs(access_level: Optional[str] = None,
|
169
|
+
compartment_id: Optional[str] = None,
|
170
|
+
compartment_id_in_subtree: Optional[bool] = None,
|
171
|
+
database_security_config_id: Optional[str] = None,
|
172
|
+
display_name: Optional[str] = None,
|
173
|
+
filters: Optional[Sequence[Union['GetDatabaseSecurityConfigsFilterArgs', 'GetDatabaseSecurityConfigsFilterArgsDict']]] = None,
|
174
|
+
state: Optional[str] = None,
|
175
|
+
target_id: Optional[str] = None,
|
176
|
+
time_created_greater_than_or_equal_to: Optional[str] = None,
|
177
|
+
time_created_less_than: Optional[str] = None,
|
178
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseSecurityConfigsResult:
|
179
|
+
"""
|
180
|
+
This data source provides the list of Database Security Configs in Oracle Cloud Infrastructure Data Safe service.
|
181
|
+
|
182
|
+
Retrieves a list of all database security configurations in Data Safe.
|
183
|
+
|
184
|
+
The ListDatabaseSecurityConfigs operation returns only the database security configurations in the specified `compartmentId`.
|
185
|
+
|
186
|
+
The parameter `accessLevel` specifies whether to return only those compartments for which the
|
187
|
+
requestor has INSPECT permissions on at least one resource directly
|
188
|
+
or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
|
189
|
+
Principal doesn't have access to even one of the child compartments. This is valid only when
|
190
|
+
`compartmentIdInSubtree` is set to `true`.
|
191
|
+
|
192
|
+
The parameter `compartmentIdInSubtree` applies when you perform ListDatabaseSecurityConfigs on the
|
193
|
+
`compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
|
194
|
+
To get a full list of all compartments and subcompartments in the tenancy (root compartment),
|
195
|
+
set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
|
196
|
+
|
197
|
+
## Example Usage
|
198
|
+
|
199
|
+
```python
|
200
|
+
import pulumi
|
201
|
+
import pulumi_oci as oci
|
202
|
+
|
203
|
+
test_database_security_configs = oci.DataSafe.get_database_security_configs(compartment_id=compartment_id,
|
204
|
+
access_level=database_security_config_access_level,
|
205
|
+
compartment_id_in_subtree=database_security_config_compartment_id_in_subtree,
|
206
|
+
database_security_config_id=test_database_security_config["id"],
|
207
|
+
display_name=database_security_config_display_name,
|
208
|
+
state=database_security_config_state,
|
209
|
+
target_id=test_target["id"],
|
210
|
+
time_created_greater_than_or_equal_to=database_security_config_time_created_greater_than_or_equal_to,
|
211
|
+
time_created_less_than=database_security_config_time_created_less_than)
|
212
|
+
```
|
213
|
+
|
214
|
+
|
215
|
+
: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.
|
216
|
+
:param str compartment_id: A filter to return only resources that match the specified compartment OCID.
|
217
|
+
: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.
|
218
|
+
:param str database_security_config_id: An optional filter to return only resources that match the specified OCID of the database security configuration resource.
|
219
|
+
:param str display_name: A filter to return only resources that match the specified display name.
|
220
|
+
:param str state: The current state of the database security configuration.
|
221
|
+
:param str target_id: A filter to return only items related to a specific target OCID.
|
222
|
+
:param str time_created_greater_than_or_equal_to: A filter to return only the resources that were created after the specified date and time, as defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
|
223
|
+
|
224
|
+
**Example:** 2016-12-19T16:39:57.600Z
|
225
|
+
:param str time_created_less_than: Search for resources that were created before a specific date. Specifying this parameter corresponding `timeCreatedLessThan` parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
|
226
|
+
|
227
|
+
**Example:** 2016-12-19T16:39:57.600Z
|
228
|
+
"""
|
229
|
+
__args__ = dict()
|
230
|
+
__args__['accessLevel'] = access_level
|
231
|
+
__args__['compartmentId'] = compartment_id
|
232
|
+
__args__['compartmentIdInSubtree'] = compartment_id_in_subtree
|
233
|
+
__args__['databaseSecurityConfigId'] = database_security_config_id
|
234
|
+
__args__['displayName'] = display_name
|
235
|
+
__args__['filters'] = filters
|
236
|
+
__args__['state'] = state
|
237
|
+
__args__['targetId'] = target_id
|
238
|
+
__args__['timeCreatedGreaterThanOrEqualTo'] = time_created_greater_than_or_equal_to
|
239
|
+
__args__['timeCreatedLessThan'] = time_created_less_than
|
240
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
241
|
+
__ret__ = pulumi.runtime.invoke('oci:DataSafe/getDatabaseSecurityConfigs:getDatabaseSecurityConfigs', __args__, opts=opts, typ=GetDatabaseSecurityConfigsResult).value
|
242
|
+
|
243
|
+
return AwaitableGetDatabaseSecurityConfigsResult(
|
244
|
+
access_level=pulumi.get(__ret__, 'access_level'),
|
245
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
246
|
+
compartment_id_in_subtree=pulumi.get(__ret__, 'compartment_id_in_subtree'),
|
247
|
+
database_security_config_collections=pulumi.get(__ret__, 'database_security_config_collections'),
|
248
|
+
database_security_config_id=pulumi.get(__ret__, 'database_security_config_id'),
|
249
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
250
|
+
filters=pulumi.get(__ret__, 'filters'),
|
251
|
+
id=pulumi.get(__ret__, 'id'),
|
252
|
+
state=pulumi.get(__ret__, 'state'),
|
253
|
+
target_id=pulumi.get(__ret__, 'target_id'),
|
254
|
+
time_created_greater_than_or_equal_to=pulumi.get(__ret__, 'time_created_greater_than_or_equal_to'),
|
255
|
+
time_created_less_than=pulumi.get(__ret__, 'time_created_less_than'))
|
256
|
+
def get_database_security_configs_output(access_level: Optional[pulumi.Input[Optional[str]]] = None,
|
257
|
+
compartment_id: Optional[pulumi.Input[str]] = None,
|
258
|
+
compartment_id_in_subtree: Optional[pulumi.Input[Optional[bool]]] = None,
|
259
|
+
database_security_config_id: Optional[pulumi.Input[Optional[str]]] = None,
|
260
|
+
display_name: Optional[pulumi.Input[Optional[str]]] = None,
|
261
|
+
filters: Optional[pulumi.Input[Optional[Sequence[Union['GetDatabaseSecurityConfigsFilterArgs', 'GetDatabaseSecurityConfigsFilterArgsDict']]]]] = None,
|
262
|
+
state: Optional[pulumi.Input[Optional[str]]] = None,
|
263
|
+
target_id: Optional[pulumi.Input[Optional[str]]] = None,
|
264
|
+
time_created_greater_than_or_equal_to: Optional[pulumi.Input[Optional[str]]] = None,
|
265
|
+
time_created_less_than: Optional[pulumi.Input[Optional[str]]] = None,
|
266
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabaseSecurityConfigsResult]:
|
267
|
+
"""
|
268
|
+
This data source provides the list of Database Security Configs in Oracle Cloud Infrastructure Data Safe service.
|
269
|
+
|
270
|
+
Retrieves a list of all database security configurations in Data Safe.
|
271
|
+
|
272
|
+
The ListDatabaseSecurityConfigs operation returns only the database security configurations in the specified `compartmentId`.
|
273
|
+
|
274
|
+
The parameter `accessLevel` specifies whether to return only those compartments for which the
|
275
|
+
requestor has INSPECT permissions on at least one resource directly
|
276
|
+
or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
|
277
|
+
Principal doesn't have access to even one of the child compartments. This is valid only when
|
278
|
+
`compartmentIdInSubtree` is set to `true`.
|
279
|
+
|
280
|
+
The parameter `compartmentIdInSubtree` applies when you perform ListDatabaseSecurityConfigs on the
|
281
|
+
`compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
|
282
|
+
To get a full list of all compartments and subcompartments in the tenancy (root compartment),
|
283
|
+
set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
|
284
|
+
|
285
|
+
## Example Usage
|
286
|
+
|
287
|
+
```python
|
288
|
+
import pulumi
|
289
|
+
import pulumi_oci as oci
|
290
|
+
|
291
|
+
test_database_security_configs = oci.DataSafe.get_database_security_configs(compartment_id=compartment_id,
|
292
|
+
access_level=database_security_config_access_level,
|
293
|
+
compartment_id_in_subtree=database_security_config_compartment_id_in_subtree,
|
294
|
+
database_security_config_id=test_database_security_config["id"],
|
295
|
+
display_name=database_security_config_display_name,
|
296
|
+
state=database_security_config_state,
|
297
|
+
target_id=test_target["id"],
|
298
|
+
time_created_greater_than_or_equal_to=database_security_config_time_created_greater_than_or_equal_to,
|
299
|
+
time_created_less_than=database_security_config_time_created_less_than)
|
300
|
+
```
|
301
|
+
|
302
|
+
|
303
|
+
: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.
|
304
|
+
:param str compartment_id: A filter to return only resources that match the specified compartment OCID.
|
305
|
+
: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.
|
306
|
+
:param str database_security_config_id: An optional filter to return only resources that match the specified OCID of the database security configuration resource.
|
307
|
+
:param str display_name: A filter to return only resources that match the specified display name.
|
308
|
+
:param str state: The current state of the database security configuration.
|
309
|
+
:param str target_id: A filter to return only items related to a specific target OCID.
|
310
|
+
:param str time_created_greater_than_or_equal_to: A filter to return only the resources that were created after the specified date and time, as defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Using TimeCreatedGreaterThanOrEqualToQueryParam parameter retrieves all resources created after that date.
|
311
|
+
|
312
|
+
**Example:** 2016-12-19T16:39:57.600Z
|
313
|
+
:param str time_created_less_than: Search for resources that were created before a specific date. Specifying this parameter corresponding `timeCreatedLessThan` parameter will retrieve all resources created before the specified created date, in "YYYY-MM-ddThh:mmZ" format with a Z offset, as defined by RFC 3339.
|
314
|
+
|
315
|
+
**Example:** 2016-12-19T16:39:57.600Z
|
316
|
+
"""
|
317
|
+
__args__ = dict()
|
318
|
+
__args__['accessLevel'] = access_level
|
319
|
+
__args__['compartmentId'] = compartment_id
|
320
|
+
__args__['compartmentIdInSubtree'] = compartment_id_in_subtree
|
321
|
+
__args__['databaseSecurityConfigId'] = database_security_config_id
|
322
|
+
__args__['displayName'] = display_name
|
323
|
+
__args__['filters'] = filters
|
324
|
+
__args__['state'] = state
|
325
|
+
__args__['targetId'] = target_id
|
326
|
+
__args__['timeCreatedGreaterThanOrEqualTo'] = time_created_greater_than_or_equal_to
|
327
|
+
__args__['timeCreatedLessThan'] = time_created_less_than
|
328
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
329
|
+
__ret__ = pulumi.runtime.invoke_output('oci:DataSafe/getDatabaseSecurityConfigs:getDatabaseSecurityConfigs', __args__, opts=opts, typ=GetDatabaseSecurityConfigsResult)
|
330
|
+
return __ret__.apply(lambda __response__: GetDatabaseSecurityConfigsResult(
|
331
|
+
access_level=pulumi.get(__response__, 'access_level'),
|
332
|
+
compartment_id=pulumi.get(__response__, 'compartment_id'),
|
333
|
+
compartment_id_in_subtree=pulumi.get(__response__, 'compartment_id_in_subtree'),
|
334
|
+
database_security_config_collections=pulumi.get(__response__, 'database_security_config_collections'),
|
335
|
+
database_security_config_id=pulumi.get(__response__, 'database_security_config_id'),
|
336
|
+
display_name=pulumi.get(__response__, 'display_name'),
|
337
|
+
filters=pulumi.get(__response__, 'filters'),
|
338
|
+
id=pulumi.get(__response__, 'id'),
|
339
|
+
state=pulumi.get(__response__, 'state'),
|
340
|
+
target_id=pulumi.get(__response__, 'target_id'),
|
341
|
+
time_created_greater_than_or_equal_to=pulumi.get(__response__, 'time_created_greater_than_or_equal_to'),
|
342
|
+
time_created_less_than=pulumi.get(__response__, 'time_created_less_than')))
|