pulumi-oci 2.12.0a1728593306__py3-none-any.whl → 2.12.0a1728642710__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. pulumi_oci/__init__.py +145 -0
  2. pulumi_oci/analytics/analytics_instance.py +54 -5
  3. pulumi_oci/analytics/get_analytics_instance.py +18 -4
  4. pulumi_oci/analytics/outputs.py +12 -1
  5. pulumi_oci/core/_inputs.py +648 -159
  6. pulumi_oci/core/cluster_network.py +7 -7
  7. pulumi_oci/core/get_instance.py +29 -1
  8. pulumi_oci/core/get_vcn.py +15 -1
  9. pulumi_oci/core/get_vnic.py +15 -1
  10. pulumi_oci/core/instance.py +87 -0
  11. pulumi_oci/core/instance_configuration.py +12 -0
  12. pulumi_oci/core/ipsec.py +183 -23
  13. pulumi_oci/core/network_security_group_security_rule.py +2 -2
  14. pulumi_oci/core/outputs.py +709 -107
  15. pulumi_oci/core/service_gateway.py +13 -7
  16. pulumi_oci/core/vcn.py +65 -23
  17. pulumi_oci/core/virtual_network.py +35 -1
  18. pulumi_oci/core/vnic_attachment.py +2 -0
  19. pulumi_oci/database/_inputs.py +905 -27
  20. pulumi_oci/database/autonomous_database.py +48 -28
  21. pulumi_oci/database/autonomous_database_backup.py +12 -12
  22. pulumi_oci/database/autonomous_exadata_infrastructure.py +2 -0
  23. pulumi_oci/database/autonomous_vm_cluster.py +2 -0
  24. pulumi_oci/database/backup.py +12 -12
  25. pulumi_oci/database/cloud_autonomous_vm_cluster.py +2 -0
  26. pulumi_oci/database/cloud_exadata_infrastructure.py +2 -0
  27. pulumi_oci/database/cloud_vm_cluster.py +71 -0
  28. pulumi_oci/database/database.py +15 -15
  29. pulumi_oci/database/database_upgrade.py +12 -12
  30. pulumi_oci/database/db_system.py +9 -9
  31. pulumi_oci/database/exadata_infrastructure.py +2 -0
  32. pulumi_oci/database/get_autonomous_container_database.py +1 -1
  33. pulumi_oci/database/get_autonomous_database.py +18 -4
  34. pulumi_oci/database/get_autonomous_database_backup.py +3 -3
  35. pulumi_oci/database/get_autonomous_databases.py +88 -5
  36. pulumi_oci/database/get_cloud_vm_cluster.py +15 -1
  37. pulumi_oci/database/get_database.py +3 -3
  38. pulumi_oci/database/get_pluggable_database.py +12 -1
  39. pulumi_oci/database/get_vm_cluster.py +15 -1
  40. pulumi_oci/database/outputs.py +1431 -74
  41. pulumi_oci/database/pluggable_database.py +34 -0
  42. pulumi_oci/database/vm_cluster.py +71 -0
  43. pulumi_oci/database/vm_cluster_add_virtual_network.py +28 -0
  44. pulumi_oci/database/vm_cluster_remove_virtual_machine.py +28 -0
  45. pulumi_oci/datasafe/__init__.py +12 -0
  46. pulumi_oci/datasafe/_inputs.py +441 -0
  47. pulumi_oci/datasafe/get_reports.py +23 -1
  48. pulumi_oci/datasafe/get_sql_collection.py +392 -0
  49. pulumi_oci/datasafe/get_sql_collection_analytics.py +309 -0
  50. pulumi_oci/datasafe/get_sql_collection_log_insights.py +207 -0
  51. pulumi_oci/datasafe/get_sql_collections.py +364 -0
  52. pulumi_oci/datasafe/get_sql_firewall_allowed_sql.py +337 -0
  53. pulumi_oci/datasafe/get_sql_firewall_allowed_sql_analytics.py +250 -0
  54. pulumi_oci/datasafe/get_sql_firewall_allowed_sqls.py +234 -0
  55. pulumi_oci/datasafe/get_sql_firewall_policies.py +386 -0
  56. pulumi_oci/datasafe/get_sql_firewall_policy.py +393 -0
  57. pulumi_oci/datasafe/get_sql_firewall_policy_analytics.py +305 -0
  58. pulumi_oci/datasafe/get_sql_firewall_violation_analytics.py +306 -0
  59. pulumi_oci/datasafe/get_sql_firewall_violations.py +208 -0
  60. pulumi_oci/datasafe/outputs.py +1808 -2
  61. pulumi_oci/desktops/_inputs.py +223 -7
  62. pulumi_oci/desktops/desktop_pool.py +186 -21
  63. pulumi_oci/desktops/get_desktop_pool.py +47 -5
  64. pulumi_oci/desktops/outputs.py +480 -19
  65. pulumi_oci/fleetappsmanagement/__init__.py +43 -0
  66. pulumi_oci/fleetappsmanagement/_inputs.py +2057 -0
  67. pulumi_oci/fleetappsmanagement/fleet.py +955 -0
  68. pulumi_oci/fleetappsmanagement/fleet_credential.py +615 -0
  69. pulumi_oci/fleetappsmanagement/fleet_property.py +585 -0
  70. pulumi_oci/fleetappsmanagement/fleet_resource.py +851 -0
  71. pulumi_oci/fleetappsmanagement/get_announcements.py +166 -0
  72. pulumi_oci/fleetappsmanagement/get_fleet.py +394 -0
  73. pulumi_oci/fleetappsmanagement/get_fleet_compliance_report.py +164 -0
  74. pulumi_oci/fleetappsmanagement/get_fleet_credential.py +273 -0
  75. pulumi_oci/fleetappsmanagement/get_fleet_credentials.py +240 -0
  76. pulumi_oci/fleetappsmanagement/get_fleet_products.py +232 -0
  77. pulumi_oci/fleetappsmanagement/get_fleet_properties.py +218 -0
  78. pulumi_oci/fleetappsmanagement/get_fleet_property.py +286 -0
  79. pulumi_oci/fleetappsmanagement/get_fleet_resource.py +398 -0
  80. pulumi_oci/fleetappsmanagement/get_fleet_resources.py +237 -0
  81. pulumi_oci/fleetappsmanagement/get_fleet_targets.py +232 -0
  82. pulumi_oci/fleetappsmanagement/get_fleets.py +284 -0
  83. pulumi_oci/fleetappsmanagement/get_inventory_resources.py +311 -0
  84. pulumi_oci/fleetappsmanagement/get_maintenance_window.py +365 -0
  85. pulumi_oci/fleetappsmanagement/get_maintenance_windows.py +199 -0
  86. pulumi_oci/fleetappsmanagement/get_onboarding_policies.py +123 -0
  87. pulumi_oci/fleetappsmanagement/get_onboardings.py +177 -0
  88. pulumi_oci/fleetappsmanagement/get_properties.py +221 -0
  89. pulumi_oci/fleetappsmanagement/get_property.py +323 -0
  90. pulumi_oci/fleetappsmanagement/get_runbook.py +377 -0
  91. pulumi_oci/fleetappsmanagement/get_runbooks.py +284 -0
  92. pulumi_oci/fleetappsmanagement/get_scheduler_definition.py +436 -0
  93. pulumi_oci/fleetappsmanagement/get_scheduler_definition_scheduled_fleets.py +185 -0
  94. pulumi_oci/fleetappsmanagement/get_scheduler_definitions.py +262 -0
  95. pulumi_oci/fleetappsmanagement/get_task_record.py +307 -0
  96. pulumi_oci/fleetappsmanagement/get_task_records.py +240 -0
  97. pulumi_oci/fleetappsmanagement/maintenance_window.py +935 -0
  98. pulumi_oci/fleetappsmanagement/onboarding.py +477 -0
  99. pulumi_oci/fleetappsmanagement/outputs.py +8128 -0
  100. pulumi_oci/fleetappsmanagement/property.py +697 -0
  101. pulumi_oci/fleetappsmanagement/scheduler_definition.py +1035 -0
  102. pulumi_oci/functions/get_fusion_environment_refresh_activity.py +15 -1
  103. pulumi_oci/functions/outputs.py +11 -0
  104. pulumi_oci/fusionapps/_inputs.py +21 -20
  105. pulumi_oci/fusionapps/fusion_environment.py +2 -2
  106. pulumi_oci/fusionapps/fusion_environment_admin_user.py +21 -22
  107. pulumi_oci/fusionapps/fusion_environment_refresh_activity.py +48 -51
  108. pulumi_oci/fusionapps/outputs.py +11 -10
  109. pulumi_oci/integration/__init__.py +1 -0
  110. pulumi_oci/integration/_inputs.py +289 -2
  111. pulumi_oci/integration/get_integration_instance.py +65 -1
  112. pulumi_oci/integration/integration_instance.py +172 -0
  113. pulumi_oci/integration/oracle_managed_custom_endpoint.py +307 -0
  114. pulumi_oci/integration/outputs.py +587 -19
  115. pulumi_oci/loadbalancer/_inputs.py +20 -0
  116. pulumi_oci/loadbalancer/listener.py +4 -2
  117. pulumi_oci/loadbalancer/outputs.py +16 -2
  118. pulumi_oci/monitoring/_inputs.py +137 -16
  119. pulumi_oci/monitoring/alarm_suppression.py +164 -35
  120. pulumi_oci/monitoring/get_alarm_statuses.py +5 -3
  121. pulumi_oci/monitoring/get_alarm_suppression.py +33 -3
  122. pulumi_oci/monitoring/get_alarm_suppressions.py +137 -14
  123. pulumi_oci/monitoring/outputs.py +291 -18
  124. pulumi_oci/mysql/mysql_db_system.py +7 -7
  125. pulumi_oci/objectstorage/__init__.py +3 -0
  126. pulumi_oci/objectstorage/_inputs.py +97 -0
  127. pulumi_oci/objectstorage/get_object_versions.py +6 -6
  128. pulumi_oci/objectstorage/get_objects.py +6 -6
  129. pulumi_oci/objectstorage/get_private_endpoint.py +263 -0
  130. pulumi_oci/objectstorage/get_private_endpoint_summaries.py +128 -0
  131. pulumi_oci/objectstorage/outputs.py +258 -0
  132. pulumi_oci/objectstorage/private_endpoint.py +630 -0
  133. pulumi_oci/objectstorage/storage_object.py +7 -7
  134. pulumi_oci/opsi/_inputs.py +268 -114
  135. pulumi_oci/opsi/database_insight.py +162 -21
  136. pulumi_oci/opsi/exadata_insight.py +44 -0
  137. pulumi_oci/opsi/get_database_insight.py +40 -1
  138. pulumi_oci/opsi/get_host_insights.py +2 -2
  139. pulumi_oci/opsi/host_insight.py +0 -48
  140. pulumi_oci/opsi/outputs.py +405 -109
  141. pulumi_oci/pulumi-plugin.json +1 -1
  142. pulumi_oci/securityattribute/__init__.py +15 -0
  143. pulumi_oci/securityattribute/_inputs.py +209 -0
  144. pulumi_oci/securityattribute/get_security_attribute.py +262 -0
  145. pulumi_oci/securityattribute/get_security_attribute_namespace.py +253 -0
  146. pulumi_oci/securityattribute/get_security_attribute_namespaces.py +210 -0
  147. pulumi_oci/securityattribute/get_security_attributes.py +169 -0
  148. pulumi_oci/securityattribute/outputs.py +466 -0
  149. pulumi_oci/securityattribute/security_attribute.py +588 -0
  150. pulumi_oci/securityattribute/security_attribute_namespace.py +609 -0
  151. pulumi_oci/stackmonitoring/__init__.py +5 -0
  152. pulumi_oci/stackmonitoring/_inputs.py +330 -0
  153. pulumi_oci/stackmonitoring/get_maintenance_window.py +254 -0
  154. pulumi_oci/stackmonitoring/get_maintenance_windows.py +210 -0
  155. pulumi_oci/stackmonitoring/maintenance_window.py +551 -0
  156. pulumi_oci/stackmonitoring/maintenance_windows_retry_failed_operation.py +217 -0
  157. pulumi_oci/stackmonitoring/maintenance_windows_stop.py +217 -0
  158. pulumi_oci/stackmonitoring/outputs.py +603 -0
  159. pulumi_oci/zpr/__init__.py +14 -0
  160. pulumi_oci/zpr/_inputs.py +79 -0
  161. pulumi_oci/zpr/configuration.py +516 -0
  162. pulumi_oci/zpr/get_configuration.py +230 -0
  163. pulumi_oci/zpr/get_zpr_policies.py +191 -0
  164. pulumi_oci/zpr/get_zpr_policy.py +264 -0
  165. pulumi_oci/zpr/outputs.py +203 -0
  166. pulumi_oci/zpr/zpr_policy.py +614 -0
  167. {pulumi_oci-2.12.0a1728593306.dist-info → pulumi_oci-2.12.0a1728642710.dist-info}/METADATA +1 -1
  168. {pulumi_oci-2.12.0a1728593306.dist-info → pulumi_oci-2.12.0a1728642710.dist-info}/RECORD +170 -95
  169. {pulumi_oci-2.12.0a1728593306.dist-info → pulumi_oci-2.12.0a1728642710.dist-info}/WHEEL +0 -0
  170. {pulumi_oci-2.12.0a1728593306.dist-info → pulumi_oci-2.12.0a1728642710.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,309 @@
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
+ 'GetSqlCollectionAnalyticsResult',
21
+ 'AwaitableGetSqlCollectionAnalyticsResult',
22
+ 'get_sql_collection_analytics',
23
+ 'get_sql_collection_analytics_output',
24
+ ]
25
+
26
+ @pulumi.output_type
27
+ class GetSqlCollectionAnalyticsResult:
28
+ """
29
+ A collection of values returned by getSqlCollectionAnalytics.
30
+ """
31
+ def __init__(__self__, access_level=None, compartment_id=None, compartment_id_in_subtree=None, filters=None, group_bies=None, id=None, sql_collection_analytics_collections=None, state=None, target_id=None, time_ended=None, time_started=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 filters and not isinstance(filters, list):
42
+ raise TypeError("Expected argument 'filters' to be a list")
43
+ pulumi.set(__self__, "filters", filters)
44
+ if group_bies and not isinstance(group_bies, list):
45
+ raise TypeError("Expected argument 'group_bies' to be a list")
46
+ pulumi.set(__self__, "group_bies", group_bies)
47
+ if id and not isinstance(id, str):
48
+ raise TypeError("Expected argument 'id' to be a str")
49
+ pulumi.set(__self__, "id", id)
50
+ if sql_collection_analytics_collections and not isinstance(sql_collection_analytics_collections, list):
51
+ raise TypeError("Expected argument 'sql_collection_analytics_collections' to be a list")
52
+ pulumi.set(__self__, "sql_collection_analytics_collections", sql_collection_analytics_collections)
53
+ if state and not isinstance(state, str):
54
+ raise TypeError("Expected argument 'state' to be a str")
55
+ pulumi.set(__self__, "state", state)
56
+ if target_id and not isinstance(target_id, str):
57
+ raise TypeError("Expected argument 'target_id' to be a str")
58
+ pulumi.set(__self__, "target_id", target_id)
59
+ if time_ended and not isinstance(time_ended, str):
60
+ raise TypeError("Expected argument 'time_ended' to be a str")
61
+ pulumi.set(__self__, "time_ended", time_ended)
62
+ if time_started and not isinstance(time_started, str):
63
+ raise TypeError("Expected argument 'time_started' to be a str")
64
+ pulumi.set(__self__, "time_started", time_started)
65
+
66
+ @property
67
+ @pulumi.getter(name="accessLevel")
68
+ def access_level(self) -> Optional[str]:
69
+ return pulumi.get(self, "access_level")
70
+
71
+ @property
72
+ @pulumi.getter(name="compartmentId")
73
+ def compartment_id(self) -> str:
74
+ return pulumi.get(self, "compartment_id")
75
+
76
+ @property
77
+ @pulumi.getter(name="compartmentIdInSubtree")
78
+ def compartment_id_in_subtree(self) -> Optional[bool]:
79
+ return pulumi.get(self, "compartment_id_in_subtree")
80
+
81
+ @property
82
+ @pulumi.getter
83
+ def filters(self) -> Optional[Sequence['outputs.GetSqlCollectionAnalyticsFilterResult']]:
84
+ return pulumi.get(self, "filters")
85
+
86
+ @property
87
+ @pulumi.getter(name="groupBies")
88
+ def group_bies(self) -> Optional[Sequence[str]]:
89
+ return pulumi.get(self, "group_bies")
90
+
91
+ @property
92
+ @pulumi.getter
93
+ def id(self) -> str:
94
+ """
95
+ The provider-assigned unique ID for this managed resource.
96
+ """
97
+ return pulumi.get(self, "id")
98
+
99
+ @property
100
+ @pulumi.getter(name="sqlCollectionAnalyticsCollections")
101
+ def sql_collection_analytics_collections(self) -> Sequence['outputs.GetSqlCollectionAnalyticsSqlCollectionAnalyticsCollectionResult']:
102
+ """
103
+ The list of sql_collection_analytics_collection.
104
+ """
105
+ return pulumi.get(self, "sql_collection_analytics_collections")
106
+
107
+ @property
108
+ @pulumi.getter
109
+ def state(self) -> Optional[str]:
110
+ """
111
+ The current state of the SQL collection.
112
+ """
113
+ return pulumi.get(self, "state")
114
+
115
+ @property
116
+ @pulumi.getter(name="targetId")
117
+ def target_id(self) -> Optional[str]:
118
+ """
119
+ The OCID of the target corresponding to the security policy deployment.
120
+ """
121
+ return pulumi.get(self, "target_id")
122
+
123
+ @property
124
+ @pulumi.getter(name="timeEnded")
125
+ def time_ended(self) -> Optional[str]:
126
+ return pulumi.get(self, "time_ended")
127
+
128
+ @property
129
+ @pulumi.getter(name="timeStarted")
130
+ def time_started(self) -> Optional[str]:
131
+ return pulumi.get(self, "time_started")
132
+
133
+
134
+ class AwaitableGetSqlCollectionAnalyticsResult(GetSqlCollectionAnalyticsResult):
135
+ # pylint: disable=using-constant-test
136
+ def __await__(self):
137
+ if False:
138
+ yield self
139
+ return GetSqlCollectionAnalyticsResult(
140
+ access_level=self.access_level,
141
+ compartment_id=self.compartment_id,
142
+ compartment_id_in_subtree=self.compartment_id_in_subtree,
143
+ filters=self.filters,
144
+ group_bies=self.group_bies,
145
+ id=self.id,
146
+ sql_collection_analytics_collections=self.sql_collection_analytics_collections,
147
+ state=self.state,
148
+ target_id=self.target_id,
149
+ time_ended=self.time_ended,
150
+ time_started=self.time_started)
151
+
152
+
153
+ def get_sql_collection_analytics(access_level: Optional[str] = None,
154
+ compartment_id: Optional[str] = None,
155
+ compartment_id_in_subtree: Optional[bool] = None,
156
+ filters: Optional[Sequence[Union['GetSqlCollectionAnalyticsFilterArgs', 'GetSqlCollectionAnalyticsFilterArgsDict']]] = None,
157
+ group_bies: Optional[Sequence[str]] = None,
158
+ state: Optional[str] = None,
159
+ target_id: Optional[str] = None,
160
+ time_ended: Optional[str] = None,
161
+ time_started: Optional[str] = None,
162
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSqlCollectionAnalyticsResult:
163
+ """
164
+ This data source provides the list of Sql Collection Analytics in Oracle Cloud Infrastructure Data Safe service.
165
+
166
+ Retrieves a list of all SQL collection analytics in Data Safe.
167
+
168
+ The ListSqlCollectionAnalytics operation returns only the analytics for the SQL collections in the specified `compartmentId`.
169
+
170
+ The parameter `accessLevel` specifies whether to return only those compartments for which the
171
+ requestor has INSPECT permissions on at least one resource directly
172
+ or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
173
+ Principal doesn't have access to even one of the child compartments. This is valid only when
174
+ `compartmentIdInSubtree` is set to `true`.
175
+
176
+ The parameter `compartmentIdInSubtree` applies when you perform ListSqlCollections on the
177
+ `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
178
+ To get a full list of all compartments and subcompartments in the tenancy (root compartment),
179
+ set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
180
+
181
+ ## Example Usage
182
+
183
+ ```python
184
+ import pulumi
185
+ import pulumi_oci as oci
186
+
187
+ test_sql_collection_analytics = oci.DataSafe.get_sql_collection_analytics(compartment_id=compartment_id,
188
+ access_level=sql_collection_analytic_access_level,
189
+ compartment_id_in_subtree=sql_collection_analytic_compartment_id_in_subtree,
190
+ group_bies=sql_collection_analytic_group_by,
191
+ state=sql_collection_analytic_state,
192
+ target_id=test_target["id"],
193
+ time_ended=sql_collection_analytic_time_ended,
194
+ time_started=sql_collection_analytic_time_started)
195
+ ```
196
+
197
+
198
+ :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.
199
+ :param str compartment_id: A filter to return only resources that match the specified compartment OCID.
200
+ :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.
201
+ :param Sequence[str] group_bies: The group by parameter to summarize SQL collection aggregation.
202
+ :param str state: The current state of the SQL collection.
203
+ :param str target_id: A filter to return only items related to a specific target OCID.
204
+ :param str time_ended: An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
205
+ :param str time_started: An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
206
+ """
207
+ __args__ = dict()
208
+ __args__['accessLevel'] = access_level
209
+ __args__['compartmentId'] = compartment_id
210
+ __args__['compartmentIdInSubtree'] = compartment_id_in_subtree
211
+ __args__['filters'] = filters
212
+ __args__['groupBies'] = group_bies
213
+ __args__['state'] = state
214
+ __args__['targetId'] = target_id
215
+ __args__['timeEnded'] = time_ended
216
+ __args__['timeStarted'] = time_started
217
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
218
+ __ret__ = pulumi.runtime.invoke('oci:DataSafe/getSqlCollectionAnalytics:getSqlCollectionAnalytics', __args__, opts=opts, typ=GetSqlCollectionAnalyticsResult).value
219
+
220
+ return AwaitableGetSqlCollectionAnalyticsResult(
221
+ access_level=pulumi.get(__ret__, 'access_level'),
222
+ compartment_id=pulumi.get(__ret__, 'compartment_id'),
223
+ compartment_id_in_subtree=pulumi.get(__ret__, 'compartment_id_in_subtree'),
224
+ filters=pulumi.get(__ret__, 'filters'),
225
+ group_bies=pulumi.get(__ret__, 'group_bies'),
226
+ id=pulumi.get(__ret__, 'id'),
227
+ sql_collection_analytics_collections=pulumi.get(__ret__, 'sql_collection_analytics_collections'),
228
+ state=pulumi.get(__ret__, 'state'),
229
+ target_id=pulumi.get(__ret__, 'target_id'),
230
+ time_ended=pulumi.get(__ret__, 'time_ended'),
231
+ time_started=pulumi.get(__ret__, 'time_started'))
232
+ def get_sql_collection_analytics_output(access_level: Optional[pulumi.Input[Optional[str]]] = None,
233
+ compartment_id: Optional[pulumi.Input[str]] = None,
234
+ compartment_id_in_subtree: Optional[pulumi.Input[Optional[bool]]] = None,
235
+ filters: Optional[pulumi.Input[Optional[Sequence[Union['GetSqlCollectionAnalyticsFilterArgs', 'GetSqlCollectionAnalyticsFilterArgsDict']]]]] = None,
236
+ group_bies: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
237
+ state: Optional[pulumi.Input[Optional[str]]] = None,
238
+ target_id: Optional[pulumi.Input[Optional[str]]] = None,
239
+ time_ended: Optional[pulumi.Input[Optional[str]]] = None,
240
+ time_started: Optional[pulumi.Input[Optional[str]]] = None,
241
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSqlCollectionAnalyticsResult]:
242
+ """
243
+ This data source provides the list of Sql Collection Analytics in Oracle Cloud Infrastructure Data Safe service.
244
+
245
+ Retrieves a list of all SQL collection analytics in Data Safe.
246
+
247
+ The ListSqlCollectionAnalytics operation returns only the analytics for the SQL collections in the specified `compartmentId`.
248
+
249
+ The parameter `accessLevel` specifies whether to return only those compartments for which the
250
+ requestor has INSPECT permissions on at least one resource directly
251
+ or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if
252
+ Principal doesn't have access to even one of the child compartments. This is valid only when
253
+ `compartmentIdInSubtree` is set to `true`.
254
+
255
+ The parameter `compartmentIdInSubtree` applies when you perform ListSqlCollections on the
256
+ `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned.
257
+ To get a full list of all compartments and subcompartments in the tenancy (root compartment),
258
+ set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE.
259
+
260
+ ## Example Usage
261
+
262
+ ```python
263
+ import pulumi
264
+ import pulumi_oci as oci
265
+
266
+ test_sql_collection_analytics = oci.DataSafe.get_sql_collection_analytics(compartment_id=compartment_id,
267
+ access_level=sql_collection_analytic_access_level,
268
+ compartment_id_in_subtree=sql_collection_analytic_compartment_id_in_subtree,
269
+ group_bies=sql_collection_analytic_group_by,
270
+ state=sql_collection_analytic_state,
271
+ target_id=test_target["id"],
272
+ time_ended=sql_collection_analytic_time_ended,
273
+ time_started=sql_collection_analytic_time_started)
274
+ ```
275
+
276
+
277
+ :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.
278
+ :param str compartment_id: A filter to return only resources that match the specified compartment OCID.
279
+ :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.
280
+ :param Sequence[str] group_bies: The group by parameter to summarize SQL collection aggregation.
281
+ :param str state: The current state of the SQL collection.
282
+ :param str target_id: A filter to return only items related to a specific target OCID.
283
+ :param str time_ended: An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
284
+ :param str time_started: An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
285
+ """
286
+ __args__ = dict()
287
+ __args__['accessLevel'] = access_level
288
+ __args__['compartmentId'] = compartment_id
289
+ __args__['compartmentIdInSubtree'] = compartment_id_in_subtree
290
+ __args__['filters'] = filters
291
+ __args__['groupBies'] = group_bies
292
+ __args__['state'] = state
293
+ __args__['targetId'] = target_id
294
+ __args__['timeEnded'] = time_ended
295
+ __args__['timeStarted'] = time_started
296
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
297
+ __ret__ = pulumi.runtime.invoke_output('oci:DataSafe/getSqlCollectionAnalytics:getSqlCollectionAnalytics', __args__, opts=opts, typ=GetSqlCollectionAnalyticsResult)
298
+ return __ret__.apply(lambda __response__: GetSqlCollectionAnalyticsResult(
299
+ access_level=pulumi.get(__response__, 'access_level'),
300
+ compartment_id=pulumi.get(__response__, 'compartment_id'),
301
+ compartment_id_in_subtree=pulumi.get(__response__, 'compartment_id_in_subtree'),
302
+ filters=pulumi.get(__response__, 'filters'),
303
+ group_bies=pulumi.get(__response__, 'group_bies'),
304
+ id=pulumi.get(__response__, 'id'),
305
+ sql_collection_analytics_collections=pulumi.get(__response__, 'sql_collection_analytics_collections'),
306
+ state=pulumi.get(__response__, 'state'),
307
+ target_id=pulumi.get(__response__, 'target_id'),
308
+ time_ended=pulumi.get(__response__, 'time_ended'),
309
+ time_started=pulumi.get(__response__, 'time_started')))
@@ -0,0 +1,207 @@
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
+ 'GetSqlCollectionLogInsightsResult',
21
+ 'AwaitableGetSqlCollectionLogInsightsResult',
22
+ 'get_sql_collection_log_insights',
23
+ 'get_sql_collection_log_insights_output',
24
+ ]
25
+
26
+ @pulumi.output_type
27
+ class GetSqlCollectionLogInsightsResult:
28
+ """
29
+ A collection of values returned by getSqlCollectionLogInsights.
30
+ """
31
+ def __init__(__self__, filters=None, group_by=None, id=None, sql_collection_id=None, sql_collection_log_insights_collections=None, time_ended=None, time_started=None):
32
+ if filters and not isinstance(filters, list):
33
+ raise TypeError("Expected argument 'filters' to be a list")
34
+ pulumi.set(__self__, "filters", filters)
35
+ if group_by and not isinstance(group_by, str):
36
+ raise TypeError("Expected argument 'group_by' to be a str")
37
+ pulumi.set(__self__, "group_by", group_by)
38
+ if id and not isinstance(id, str):
39
+ raise TypeError("Expected argument 'id' to be a str")
40
+ pulumi.set(__self__, "id", id)
41
+ if sql_collection_id and not isinstance(sql_collection_id, str):
42
+ raise TypeError("Expected argument 'sql_collection_id' to be a str")
43
+ pulumi.set(__self__, "sql_collection_id", sql_collection_id)
44
+ if sql_collection_log_insights_collections and not isinstance(sql_collection_log_insights_collections, list):
45
+ raise TypeError("Expected argument 'sql_collection_log_insights_collections' to be a list")
46
+ pulumi.set(__self__, "sql_collection_log_insights_collections", sql_collection_log_insights_collections)
47
+ if time_ended and not isinstance(time_ended, str):
48
+ raise TypeError("Expected argument 'time_ended' to be a str")
49
+ pulumi.set(__self__, "time_ended", time_ended)
50
+ if time_started and not isinstance(time_started, str):
51
+ raise TypeError("Expected argument 'time_started' to be a str")
52
+ pulumi.set(__self__, "time_started", time_started)
53
+
54
+ @property
55
+ @pulumi.getter
56
+ def filters(self) -> Optional[Sequence['outputs.GetSqlCollectionLogInsightsFilterResult']]:
57
+ return pulumi.get(self, "filters")
58
+
59
+ @property
60
+ @pulumi.getter(name="groupBy")
61
+ def group_by(self) -> Optional[str]:
62
+ return pulumi.get(self, "group_by")
63
+
64
+ @property
65
+ @pulumi.getter
66
+ def id(self) -> str:
67
+ """
68
+ The provider-assigned unique ID for this managed resource.
69
+ """
70
+ return pulumi.get(self, "id")
71
+
72
+ @property
73
+ @pulumi.getter(name="sqlCollectionId")
74
+ def sql_collection_id(self) -> str:
75
+ return pulumi.get(self, "sql_collection_id")
76
+
77
+ @property
78
+ @pulumi.getter(name="sqlCollectionLogInsightsCollections")
79
+ def sql_collection_log_insights_collections(self) -> Sequence['outputs.GetSqlCollectionLogInsightsSqlCollectionLogInsightsCollectionResult']:
80
+ """
81
+ The list of sql_collection_log_insights_collection.
82
+ """
83
+ return pulumi.get(self, "sql_collection_log_insights_collections")
84
+
85
+ @property
86
+ @pulumi.getter(name="timeEnded")
87
+ def time_ended(self) -> str:
88
+ """
89
+ The time at which the aggregation ended.
90
+ """
91
+ return pulumi.get(self, "time_ended")
92
+
93
+ @property
94
+ @pulumi.getter(name="timeStarted")
95
+ def time_started(self) -> str:
96
+ """
97
+ The time at which the aggregation started.
98
+ """
99
+ return pulumi.get(self, "time_started")
100
+
101
+
102
+ class AwaitableGetSqlCollectionLogInsightsResult(GetSqlCollectionLogInsightsResult):
103
+ # pylint: disable=using-constant-test
104
+ def __await__(self):
105
+ if False:
106
+ yield self
107
+ return GetSqlCollectionLogInsightsResult(
108
+ filters=self.filters,
109
+ group_by=self.group_by,
110
+ id=self.id,
111
+ sql_collection_id=self.sql_collection_id,
112
+ sql_collection_log_insights_collections=self.sql_collection_log_insights_collections,
113
+ time_ended=self.time_ended,
114
+ time_started=self.time_started)
115
+
116
+
117
+ def get_sql_collection_log_insights(filters: Optional[Sequence[Union['GetSqlCollectionLogInsightsFilterArgs', 'GetSqlCollectionLogInsightsFilterArgsDict']]] = None,
118
+ group_by: Optional[str] = None,
119
+ sql_collection_id: Optional[str] = None,
120
+ time_ended: Optional[str] = None,
121
+ time_started: Optional[str] = None,
122
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSqlCollectionLogInsightsResult:
123
+ """
124
+ This data source provides the list of Sql Collection Log Insights in Oracle Cloud Infrastructure Data Safe service.
125
+
126
+ Retrieves a list of the SQL collection log analytics.
127
+
128
+ ## Example Usage
129
+
130
+ ```python
131
+ import pulumi
132
+ import pulumi_oci as oci
133
+
134
+ test_sql_collection_log_insights = oci.DataSafe.get_sql_collection_log_insights(sql_collection_id=test_sql_collection["id"],
135
+ time_ended=sql_collection_log_insight_time_ended,
136
+ time_started=sql_collection_log_insight_time_started,
137
+ group_by=sql_collection_log_insight_group_by)
138
+ ```
139
+
140
+
141
+ :param str group_by: The group by parameter to summarize SQL collection log insights aggregation.
142
+ :param str sql_collection_id: The OCID of the SQL collection resource.
143
+ :param str time_ended: An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
144
+ :param str time_started: An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
145
+ """
146
+ __args__ = dict()
147
+ __args__['filters'] = filters
148
+ __args__['groupBy'] = group_by
149
+ __args__['sqlCollectionId'] = sql_collection_id
150
+ __args__['timeEnded'] = time_ended
151
+ __args__['timeStarted'] = time_started
152
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
153
+ __ret__ = pulumi.runtime.invoke('oci:DataSafe/getSqlCollectionLogInsights:getSqlCollectionLogInsights', __args__, opts=opts, typ=GetSqlCollectionLogInsightsResult).value
154
+
155
+ return AwaitableGetSqlCollectionLogInsightsResult(
156
+ filters=pulumi.get(__ret__, 'filters'),
157
+ group_by=pulumi.get(__ret__, 'group_by'),
158
+ id=pulumi.get(__ret__, 'id'),
159
+ sql_collection_id=pulumi.get(__ret__, 'sql_collection_id'),
160
+ sql_collection_log_insights_collections=pulumi.get(__ret__, 'sql_collection_log_insights_collections'),
161
+ time_ended=pulumi.get(__ret__, 'time_ended'),
162
+ time_started=pulumi.get(__ret__, 'time_started'))
163
+ def get_sql_collection_log_insights_output(filters: Optional[pulumi.Input[Optional[Sequence[Union['GetSqlCollectionLogInsightsFilterArgs', 'GetSqlCollectionLogInsightsFilterArgsDict']]]]] = None,
164
+ group_by: Optional[pulumi.Input[Optional[str]]] = None,
165
+ sql_collection_id: Optional[pulumi.Input[str]] = None,
166
+ time_ended: Optional[pulumi.Input[str]] = None,
167
+ time_started: Optional[pulumi.Input[str]] = None,
168
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSqlCollectionLogInsightsResult]:
169
+ """
170
+ This data source provides the list of Sql Collection Log Insights in Oracle Cloud Infrastructure Data Safe service.
171
+
172
+ Retrieves a list of the SQL collection log analytics.
173
+
174
+ ## Example Usage
175
+
176
+ ```python
177
+ import pulumi
178
+ import pulumi_oci as oci
179
+
180
+ test_sql_collection_log_insights = oci.DataSafe.get_sql_collection_log_insights(sql_collection_id=test_sql_collection["id"],
181
+ time_ended=sql_collection_log_insight_time_ended,
182
+ time_started=sql_collection_log_insight_time_started,
183
+ group_by=sql_collection_log_insight_group_by)
184
+ ```
185
+
186
+
187
+ :param str group_by: The group by parameter to summarize SQL collection log insights aggregation.
188
+ :param str sql_collection_id: The OCID of the SQL collection resource.
189
+ :param str time_ended: An optional filter to return the stats of the SQL collection logs collected before the date-time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
190
+ :param str time_started: An optional filter to return the stats of the SQL collection logs collected after the date-time specified, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
191
+ """
192
+ __args__ = dict()
193
+ __args__['filters'] = filters
194
+ __args__['groupBy'] = group_by
195
+ __args__['sqlCollectionId'] = sql_collection_id
196
+ __args__['timeEnded'] = time_ended
197
+ __args__['timeStarted'] = time_started
198
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
199
+ __ret__ = pulumi.runtime.invoke_output('oci:DataSafe/getSqlCollectionLogInsights:getSqlCollectionLogInsights', __args__, opts=opts, typ=GetSqlCollectionLogInsightsResult)
200
+ return __ret__.apply(lambda __response__: GetSqlCollectionLogInsightsResult(
201
+ filters=pulumi.get(__response__, 'filters'),
202
+ group_by=pulumi.get(__response__, 'group_by'),
203
+ id=pulumi.get(__response__, 'id'),
204
+ sql_collection_id=pulumi.get(__response__, 'sql_collection_id'),
205
+ sql_collection_log_insights_collections=pulumi.get(__response__, 'sql_collection_log_insights_collections'),
206
+ time_ended=pulumi.get(__response__, 'time_ended'),
207
+ time_started=pulumi.get(__response__, 'time_started')))