pulumi-oci 2.22.0a1737681134__py3-none-any.whl → 2.23.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.
Files changed (49) hide show
  1. pulumi_oci/__init__.py +24 -0
  2. pulumi_oci/apmsynthetics/config.py +2 -2
  3. pulumi_oci/apmsynthetics/dedicated_vantage_point.py +2 -2
  4. pulumi_oci/apmsynthetics/get_dedicated_vantage_point.py +2 -2
  5. pulumi_oci/apmsynthetics/get_dedicated_vantage_points.py +2 -2
  6. pulumi_oci/apmsynthetics/get_monitor.py +2 -2
  7. pulumi_oci/apmsynthetics/get_monitors.py +2 -2
  8. pulumi_oci/apmsynthetics/get_on_premise_vantage_point.py +2 -2
  9. pulumi_oci/apmsynthetics/get_on_premise_vantage_point_worker.py +2 -2
  10. pulumi_oci/apmsynthetics/get_on_premise_vantage_point_workers.py +2 -2
  11. pulumi_oci/apmsynthetics/get_on_premise_vantage_points.py +2 -2
  12. pulumi_oci/apmsynthetics/get_result.py +2 -2
  13. pulumi_oci/apmsynthetics/get_script.py +2 -2
  14. pulumi_oci/apmsynthetics/get_scripts.py +2 -2
  15. pulumi_oci/apmsynthetics/get_vantage_point.py +2 -2
  16. pulumi_oci/apmsynthetics/get_vantage_points.py +2 -2
  17. pulumi_oci/apmsynthetics/on_premise_vantage_point.py +2 -2
  18. pulumi_oci/apmsynthetics/on_premise_vantage_point_worker.py +2 -2
  19. pulumi_oci/apmsynthetics/script.py +2 -2
  20. pulumi_oci/database/_inputs.py +270 -0
  21. pulumi_oci/database/backup.py +30 -0
  22. pulumi_oci/database/outputs.py +491 -0
  23. pulumi_oci/databasemanagement/__init__.py +7 -0
  24. pulumi_oci/databasemanagement/_inputs.py +282 -0
  25. pulumi_oci/databasemanagement/external_my_sql_database.py +297 -0
  26. pulumi_oci/databasemanagement/external_my_sql_database_connector.py +890 -0
  27. pulumi_oci/databasemanagement/external_my_sql_database_external_mysql_databases_management.py +302 -0
  28. pulumi_oci/databasemanagement/get_external_my_sql_database.py +152 -0
  29. pulumi_oci/databasemanagement/get_external_my_sql_database_connector.py +413 -0
  30. pulumi_oci/databasemanagement/get_external_my_sql_database_connectors.py +169 -0
  31. pulumi_oci/databasemanagement/get_external_my_sql_databases.py +166 -0
  32. pulumi_oci/databasemanagement/get_managed_my_sql_database.py +60 -4
  33. pulumi_oci/databasemanagement/get_managed_my_sql_databases.py +22 -3
  34. pulumi_oci/databasemanagement/outputs.py +767 -1
  35. pulumi_oci/disasterrecovery/_inputs.py +720 -0
  36. pulumi_oci/disasterrecovery/dr_protection_group.py +0 -188
  37. pulumi_oci/disasterrecovery/get_dr_protection_group.py +1 -1
  38. pulumi_oci/disasterrecovery/outputs.py +1328 -48
  39. pulumi_oci/opsi/_inputs.py +20 -0
  40. pulumi_oci/opsi/database_insight.py +47 -0
  41. pulumi_oci/opsi/get_database_insight.py +15 -1
  42. pulumi_oci/opsi/get_news_report.py +29 -1
  43. pulumi_oci/opsi/news_report.py +117 -17
  44. pulumi_oci/opsi/outputs.py +70 -1
  45. pulumi_oci/pulumi-plugin.json +1 -1
  46. {pulumi_oci-2.22.0a1737681134.dist-info → pulumi_oci-2.23.0.dist-info}/METADATA +1 -1
  47. {pulumi_oci-2.22.0a1737681134.dist-info → pulumi_oci-2.23.0.dist-info}/RECORD +49 -42
  48. {pulumi_oci-2.22.0a1737681134.dist-info → pulumi_oci-2.23.0.dist-info}/WHEEL +0 -0
  49. {pulumi_oci-2.22.0a1737681134.dist-info → pulumi_oci-2.23.0.dist-info}/top_level.txt +0 -0
@@ -25,6 +25,9 @@ from .external_exadata_storage_connector import *
25
25
  from .external_exadata_storage_grid import *
26
26
  from .external_exadata_storage_server import *
27
27
  from .external_listener import *
28
+ from .external_my_sql_database import *
29
+ from .external_my_sql_database_connector import *
30
+ from .external_my_sql_database_external_mysql_databases_management import *
28
31
  from .externalcontainerdatabase_external_container_dbm_features_management import *
29
32
  from .externalnoncontainerdatabase_external_non_container_dbm_features_management import *
30
33
  from .externalpluggabledatabase_external_pluggable_dbm_features_management import *
@@ -67,6 +70,10 @@ from .get_external_exadata_storage_servers import *
67
70
  from .get_external_listener import *
68
71
  from .get_external_listener_services import *
69
72
  from .get_external_listeners import *
73
+ from .get_external_my_sql_database import *
74
+ from .get_external_my_sql_database_connector import *
75
+ from .get_external_my_sql_database_connectors import *
76
+ from .get_external_my_sql_databases import *
70
77
  from .get_job_executions_status import *
71
78
  from .get_job_executions_statuses import *
72
79
  from .get_managed_database import *
@@ -131,6 +131,8 @@ __all__ = [
131
131
  'ExternalListenerServicedAsmArgsDict',
132
132
  'ExternalListenerServicedDatabaseArgs',
133
133
  'ExternalListenerServicedDatabaseArgsDict',
134
+ 'ExternalMySqlDatabaseConnectorConnectorDetailsArgs',
135
+ 'ExternalMySqlDatabaseConnectorConnectorDetailsArgsDict',
134
136
  'ExternalcontainerdatabaseExternalContainerDbmFeaturesManagementFeatureDetailsArgs',
135
137
  'ExternalcontainerdatabaseExternalContainerDbmFeaturesManagementFeatureDetailsArgsDict',
136
138
  'ExternalcontainerdatabaseExternalContainerDbmFeaturesManagementFeatureDetailsConnectorDetailsArgs',
@@ -217,6 +219,10 @@ __all__ = [
217
219
  'GetExternalListenerServicesFilterArgsDict',
218
220
  'GetExternalListenersFilterArgs',
219
221
  'GetExternalListenersFilterArgsDict',
222
+ 'GetExternalMySqlDatabaseConnectorsFilterArgs',
223
+ 'GetExternalMySqlDatabaseConnectorsFilterArgsDict',
224
+ 'GetExternalMySqlDatabasesFilterArgs',
225
+ 'GetExternalMySqlDatabasesFilterArgsDict',
220
226
  'GetJobExecutionsStatusesFilterArgs',
221
227
  'GetJobExecutionsStatusesFilterArgsDict',
222
228
  'GetManagedDatabaseAddmTasksFilterArgs',
@@ -8182,6 +8188,170 @@ class ExternalListenerServicedDatabaseArgs:
8182
8188
  pulumi.set(self, "is_managed", value)
8183
8189
 
8184
8190
 
8191
+ if not MYPY:
8192
+ class ExternalMySqlDatabaseConnectorConnectorDetailsArgsDict(TypedDict):
8193
+ credential_type: pulumi.Input[str]
8194
+ """
8195
+ (Updatable) Type of the credential.
8196
+ """
8197
+ display_name: pulumi.Input[str]
8198
+ """
8199
+ (Updatable) External MySQL Database Connector Name.
8200
+ """
8201
+ external_database_id: pulumi.Input[str]
8202
+ """
8203
+ (Updatable) OCID of MySQL Database resource.
8204
+ """
8205
+ host_name: pulumi.Input[str]
8206
+ """
8207
+ (Updatable) Host name for Connector.
8208
+ """
8209
+ macs_agent_id: pulumi.Input[str]
8210
+ """
8211
+ (Updatable) Agent Id of the MACS agent.
8212
+ """
8213
+ network_protocol: pulumi.Input[str]
8214
+ """
8215
+ (Updatable) Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket.
8216
+ """
8217
+ port: pulumi.Input[int]
8218
+ """
8219
+ (Updatable) Port number to connect to External MySQL Database.
8220
+ """
8221
+ ssl_secret_id: pulumi.Input[str]
8222
+ """
8223
+ (Updatable) If using existing SSL secret to connect, OCID for the secret resource.
8224
+ """
8225
+ elif False:
8226
+ ExternalMySqlDatabaseConnectorConnectorDetailsArgsDict: TypeAlias = Mapping[str, Any]
8227
+
8228
+ @pulumi.input_type
8229
+ class ExternalMySqlDatabaseConnectorConnectorDetailsArgs:
8230
+ def __init__(__self__, *,
8231
+ credential_type: pulumi.Input[str],
8232
+ display_name: pulumi.Input[str],
8233
+ external_database_id: pulumi.Input[str],
8234
+ host_name: pulumi.Input[str],
8235
+ macs_agent_id: pulumi.Input[str],
8236
+ network_protocol: pulumi.Input[str],
8237
+ port: pulumi.Input[int],
8238
+ ssl_secret_id: pulumi.Input[str]):
8239
+ """
8240
+ :param pulumi.Input[str] credential_type: (Updatable) Type of the credential.
8241
+ :param pulumi.Input[str] display_name: (Updatable) External MySQL Database Connector Name.
8242
+ :param pulumi.Input[str] external_database_id: (Updatable) OCID of MySQL Database resource.
8243
+ :param pulumi.Input[str] host_name: (Updatable) Host name for Connector.
8244
+ :param pulumi.Input[str] macs_agent_id: (Updatable) Agent Id of the MACS agent.
8245
+ :param pulumi.Input[str] network_protocol: (Updatable) Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket.
8246
+ :param pulumi.Input[int] port: (Updatable) Port number to connect to External MySQL Database.
8247
+ :param pulumi.Input[str] ssl_secret_id: (Updatable) If using existing SSL secret to connect, OCID for the secret resource.
8248
+ """
8249
+ pulumi.set(__self__, "credential_type", credential_type)
8250
+ pulumi.set(__self__, "display_name", display_name)
8251
+ pulumi.set(__self__, "external_database_id", external_database_id)
8252
+ pulumi.set(__self__, "host_name", host_name)
8253
+ pulumi.set(__self__, "macs_agent_id", macs_agent_id)
8254
+ pulumi.set(__self__, "network_protocol", network_protocol)
8255
+ pulumi.set(__self__, "port", port)
8256
+ pulumi.set(__self__, "ssl_secret_id", ssl_secret_id)
8257
+
8258
+ @property
8259
+ @pulumi.getter(name="credentialType")
8260
+ def credential_type(self) -> pulumi.Input[str]:
8261
+ """
8262
+ (Updatable) Type of the credential.
8263
+ """
8264
+ return pulumi.get(self, "credential_type")
8265
+
8266
+ @credential_type.setter
8267
+ def credential_type(self, value: pulumi.Input[str]):
8268
+ pulumi.set(self, "credential_type", value)
8269
+
8270
+ @property
8271
+ @pulumi.getter(name="displayName")
8272
+ def display_name(self) -> pulumi.Input[str]:
8273
+ """
8274
+ (Updatable) External MySQL Database Connector Name.
8275
+ """
8276
+ return pulumi.get(self, "display_name")
8277
+
8278
+ @display_name.setter
8279
+ def display_name(self, value: pulumi.Input[str]):
8280
+ pulumi.set(self, "display_name", value)
8281
+
8282
+ @property
8283
+ @pulumi.getter(name="externalDatabaseId")
8284
+ def external_database_id(self) -> pulumi.Input[str]:
8285
+ """
8286
+ (Updatable) OCID of MySQL Database resource.
8287
+ """
8288
+ return pulumi.get(self, "external_database_id")
8289
+
8290
+ @external_database_id.setter
8291
+ def external_database_id(self, value: pulumi.Input[str]):
8292
+ pulumi.set(self, "external_database_id", value)
8293
+
8294
+ @property
8295
+ @pulumi.getter(name="hostName")
8296
+ def host_name(self) -> pulumi.Input[str]:
8297
+ """
8298
+ (Updatable) Host name for Connector.
8299
+ """
8300
+ return pulumi.get(self, "host_name")
8301
+
8302
+ @host_name.setter
8303
+ def host_name(self, value: pulumi.Input[str]):
8304
+ pulumi.set(self, "host_name", value)
8305
+
8306
+ @property
8307
+ @pulumi.getter(name="macsAgentId")
8308
+ def macs_agent_id(self) -> pulumi.Input[str]:
8309
+ """
8310
+ (Updatable) Agent Id of the MACS agent.
8311
+ """
8312
+ return pulumi.get(self, "macs_agent_id")
8313
+
8314
+ @macs_agent_id.setter
8315
+ def macs_agent_id(self, value: pulumi.Input[str]):
8316
+ pulumi.set(self, "macs_agent_id", value)
8317
+
8318
+ @property
8319
+ @pulumi.getter(name="networkProtocol")
8320
+ def network_protocol(self) -> pulumi.Input[str]:
8321
+ """
8322
+ (Updatable) Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket.
8323
+ """
8324
+ return pulumi.get(self, "network_protocol")
8325
+
8326
+ @network_protocol.setter
8327
+ def network_protocol(self, value: pulumi.Input[str]):
8328
+ pulumi.set(self, "network_protocol", value)
8329
+
8330
+ @property
8331
+ @pulumi.getter
8332
+ def port(self) -> pulumi.Input[int]:
8333
+ """
8334
+ (Updatable) Port number to connect to External MySQL Database.
8335
+ """
8336
+ return pulumi.get(self, "port")
8337
+
8338
+ @port.setter
8339
+ def port(self, value: pulumi.Input[int]):
8340
+ pulumi.set(self, "port", value)
8341
+
8342
+ @property
8343
+ @pulumi.getter(name="sslSecretId")
8344
+ def ssl_secret_id(self) -> pulumi.Input[str]:
8345
+ """
8346
+ (Updatable) If using existing SSL secret to connect, OCID for the secret resource.
8347
+ """
8348
+ return pulumi.get(self, "ssl_secret_id")
8349
+
8350
+ @ssl_secret_id.setter
8351
+ def ssl_secret_id(self, value: pulumi.Input[str]):
8352
+ pulumi.set(self, "ssl_secret_id", value)
8353
+
8354
+
8185
8355
  if not MYPY:
8186
8356
  class ExternalcontainerdatabaseExternalContainerDbmFeaturesManagementFeatureDetailsArgsDict(TypedDict):
8187
8357
  feature: pulumi.Input[str]
@@ -11596,6 +11766,118 @@ class GetExternalListenersFilterArgs:
11596
11766
  pulumi.set(self, "regex", value)
11597
11767
 
11598
11768
 
11769
+ if not MYPY:
11770
+ class GetExternalMySqlDatabaseConnectorsFilterArgsDict(TypedDict):
11771
+ name: str
11772
+ """
11773
+ The parameter to filter by MySQL Database System type.
11774
+ """
11775
+ values: Sequence[str]
11776
+ regex: NotRequired[bool]
11777
+ elif False:
11778
+ GetExternalMySqlDatabaseConnectorsFilterArgsDict: TypeAlias = Mapping[str, Any]
11779
+
11780
+ @pulumi.input_type
11781
+ class GetExternalMySqlDatabaseConnectorsFilterArgs:
11782
+ def __init__(__self__, *,
11783
+ name: str,
11784
+ values: Sequence[str],
11785
+ regex: Optional[bool] = None):
11786
+ """
11787
+ :param str name: The parameter to filter by MySQL Database System type.
11788
+ """
11789
+ pulumi.set(__self__, "name", name)
11790
+ pulumi.set(__self__, "values", values)
11791
+ if regex is not None:
11792
+ pulumi.set(__self__, "regex", regex)
11793
+
11794
+ @property
11795
+ @pulumi.getter
11796
+ def name(self) -> str:
11797
+ """
11798
+ The parameter to filter by MySQL Database System type.
11799
+ """
11800
+ return pulumi.get(self, "name")
11801
+
11802
+ @name.setter
11803
+ def name(self, value: str):
11804
+ pulumi.set(self, "name", value)
11805
+
11806
+ @property
11807
+ @pulumi.getter
11808
+ def values(self) -> Sequence[str]:
11809
+ return pulumi.get(self, "values")
11810
+
11811
+ @values.setter
11812
+ def values(self, value: Sequence[str]):
11813
+ pulumi.set(self, "values", value)
11814
+
11815
+ @property
11816
+ @pulumi.getter
11817
+ def regex(self) -> Optional[bool]:
11818
+ return pulumi.get(self, "regex")
11819
+
11820
+ @regex.setter
11821
+ def regex(self, value: Optional[bool]):
11822
+ pulumi.set(self, "regex", value)
11823
+
11824
+
11825
+ if not MYPY:
11826
+ class GetExternalMySqlDatabasesFilterArgsDict(TypedDict):
11827
+ name: str
11828
+ """
11829
+ The parameter to filter by MySQL Database System type.
11830
+ """
11831
+ values: Sequence[str]
11832
+ regex: NotRequired[bool]
11833
+ elif False:
11834
+ GetExternalMySqlDatabasesFilterArgsDict: TypeAlias = Mapping[str, Any]
11835
+
11836
+ @pulumi.input_type
11837
+ class GetExternalMySqlDatabasesFilterArgs:
11838
+ def __init__(__self__, *,
11839
+ name: str,
11840
+ values: Sequence[str],
11841
+ regex: Optional[bool] = None):
11842
+ """
11843
+ :param str name: The parameter to filter by MySQL Database System type.
11844
+ """
11845
+ pulumi.set(__self__, "name", name)
11846
+ pulumi.set(__self__, "values", values)
11847
+ if regex is not None:
11848
+ pulumi.set(__self__, "regex", regex)
11849
+
11850
+ @property
11851
+ @pulumi.getter
11852
+ def name(self) -> str:
11853
+ """
11854
+ The parameter to filter by MySQL Database System type.
11855
+ """
11856
+ return pulumi.get(self, "name")
11857
+
11858
+ @name.setter
11859
+ def name(self, value: str):
11860
+ pulumi.set(self, "name", value)
11861
+
11862
+ @property
11863
+ @pulumi.getter
11864
+ def values(self) -> Sequence[str]:
11865
+ return pulumi.get(self, "values")
11866
+
11867
+ @values.setter
11868
+ def values(self, value: Sequence[str]):
11869
+ pulumi.set(self, "values", value)
11870
+
11871
+ @property
11872
+ @pulumi.getter
11873
+ def regex(self) -> Optional[bool]:
11874
+ return pulumi.get(self, "regex")
11875
+
11876
+ @regex.setter
11877
+ def regex(self, value: Optional[bool]):
11878
+ pulumi.set(self, "regex", value)
11879
+
11880
+
11599
11881
  if not MYPY:
11600
11882
  class GetJobExecutionsStatusesFilterArgsDict(TypedDict):
11601
11883
  name: str
@@ -0,0 +1,297 @@
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
+
17
+ __all__ = ['ExternalMySqlDatabaseArgs', 'ExternalMySqlDatabase']
18
+
19
+ @pulumi.input_type
20
+ class ExternalMySqlDatabaseArgs:
21
+ def __init__(__self__, *,
22
+ compartment_id: pulumi.Input[str],
23
+ db_name: pulumi.Input[str]):
24
+ """
25
+ The set of arguments for constructing a ExternalMySqlDatabase resource.
26
+ :param pulumi.Input[str] compartment_id: OCID of compartment for the External MySQL Database.
27
+ :param pulumi.Input[str] db_name: (Updatable) Name of the External MySQL Database.
28
+
29
+
30
+ ** IMPORTANT **
31
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
32
+ """
33
+ pulumi.set(__self__, "compartment_id", compartment_id)
34
+ pulumi.set(__self__, "db_name", db_name)
35
+
36
+ @property
37
+ @pulumi.getter(name="compartmentId")
38
+ def compartment_id(self) -> pulumi.Input[str]:
39
+ """
40
+ OCID of compartment for the External MySQL Database.
41
+ """
42
+ return pulumi.get(self, "compartment_id")
43
+
44
+ @compartment_id.setter
45
+ def compartment_id(self, value: pulumi.Input[str]):
46
+ pulumi.set(self, "compartment_id", value)
47
+
48
+ @property
49
+ @pulumi.getter(name="dbName")
50
+ def db_name(self) -> pulumi.Input[str]:
51
+ """
52
+ (Updatable) Name of the External MySQL Database.
53
+
54
+
55
+ ** IMPORTANT **
56
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
57
+ """
58
+ return pulumi.get(self, "db_name")
59
+
60
+ @db_name.setter
61
+ def db_name(self, value: pulumi.Input[str]):
62
+ pulumi.set(self, "db_name", value)
63
+
64
+
65
+ @pulumi.input_type
66
+ class _ExternalMySqlDatabaseState:
67
+ def __init__(__self__, *,
68
+ compartment_id: Optional[pulumi.Input[str]] = None,
69
+ db_name: Optional[pulumi.Input[str]] = None,
70
+ external_database_id: Optional[pulumi.Input[str]] = None):
71
+ """
72
+ Input properties used for looking up and filtering ExternalMySqlDatabase resources.
73
+ :param pulumi.Input[str] compartment_id: OCID of compartment for the External MySQL Database.
74
+ :param pulumi.Input[str] db_name: (Updatable) Name of the External MySQL Database.
75
+
76
+
77
+ ** IMPORTANT **
78
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
79
+ :param pulumi.Input[str] external_database_id: OCID of External MySQL Database.
80
+ """
81
+ if compartment_id is not None:
82
+ pulumi.set(__self__, "compartment_id", compartment_id)
83
+ if db_name is not None:
84
+ pulumi.set(__self__, "db_name", db_name)
85
+ if external_database_id is not None:
86
+ pulumi.set(__self__, "external_database_id", external_database_id)
87
+
88
+ @property
89
+ @pulumi.getter(name="compartmentId")
90
+ def compartment_id(self) -> Optional[pulumi.Input[str]]:
91
+ """
92
+ OCID of compartment for the External MySQL Database.
93
+ """
94
+ return pulumi.get(self, "compartment_id")
95
+
96
+ @compartment_id.setter
97
+ def compartment_id(self, value: Optional[pulumi.Input[str]]):
98
+ pulumi.set(self, "compartment_id", value)
99
+
100
+ @property
101
+ @pulumi.getter(name="dbName")
102
+ def db_name(self) -> Optional[pulumi.Input[str]]:
103
+ """
104
+ (Updatable) Name of the External MySQL Database.
105
+
106
+
107
+ ** IMPORTANT **
108
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
109
+ """
110
+ return pulumi.get(self, "db_name")
111
+
112
+ @db_name.setter
113
+ def db_name(self, value: Optional[pulumi.Input[str]]):
114
+ pulumi.set(self, "db_name", value)
115
+
116
+ @property
117
+ @pulumi.getter(name="externalDatabaseId")
118
+ def external_database_id(self) -> Optional[pulumi.Input[str]]:
119
+ """
120
+ OCID of External MySQL Database.
121
+ """
122
+ return pulumi.get(self, "external_database_id")
123
+
124
+ @external_database_id.setter
125
+ def external_database_id(self, value: Optional[pulumi.Input[str]]):
126
+ pulumi.set(self, "external_database_id", value)
127
+
128
+
129
+ class ExternalMySqlDatabase(pulumi.CustomResource):
130
+ @overload
131
+ def __init__(__self__,
132
+ resource_name: str,
133
+ opts: Optional[pulumi.ResourceOptions] = None,
134
+ compartment_id: Optional[pulumi.Input[str]] = None,
135
+ db_name: Optional[pulumi.Input[str]] = None,
136
+ __props__=None):
137
+ """
138
+ This resource provides the External My Sql Database resource in Oracle Cloud Infrastructure Database Management service.
139
+
140
+ Creates an external MySQL database.
141
+
142
+ ## Example Usage
143
+
144
+ ```python
145
+ import pulumi
146
+ import pulumi_oci as oci
147
+
148
+ test_external_my_sql_database = oci.database_management.ExternalMySqlDatabase("test_external_my_sql_database",
149
+ compartment_id=compartment_id,
150
+ db_name=external_my_sql_database_db_name)
151
+ ```
152
+
153
+ ## Import
154
+
155
+ ExternalMySqlDatabases can be imported using the `id`, e.g.
156
+
157
+ ```sh
158
+ $ pulumi import oci:DatabaseManagement/externalMySqlDatabase:ExternalMySqlDatabase test_external_my_sql_database "id"
159
+ ```
160
+
161
+ :param str resource_name: The name of the resource.
162
+ :param pulumi.ResourceOptions opts: Options for the resource.
163
+ :param pulumi.Input[str] compartment_id: OCID of compartment for the External MySQL Database.
164
+ :param pulumi.Input[str] db_name: (Updatable) Name of the External MySQL Database.
165
+
166
+
167
+ ** IMPORTANT **
168
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
169
+ """
170
+ ...
171
+ @overload
172
+ def __init__(__self__,
173
+ resource_name: str,
174
+ args: ExternalMySqlDatabaseArgs,
175
+ opts: Optional[pulumi.ResourceOptions] = None):
176
+ """
177
+ This resource provides the External My Sql Database resource in Oracle Cloud Infrastructure Database Management service.
178
+
179
+ Creates an external MySQL database.
180
+
181
+ ## Example Usage
182
+
183
+ ```python
184
+ import pulumi
185
+ import pulumi_oci as oci
186
+
187
+ test_external_my_sql_database = oci.database_management.ExternalMySqlDatabase("test_external_my_sql_database",
188
+ compartment_id=compartment_id,
189
+ db_name=external_my_sql_database_db_name)
190
+ ```
191
+
192
+ ## Import
193
+
194
+ ExternalMySqlDatabases can be imported using the `id`, e.g.
195
+
196
+ ```sh
197
+ $ pulumi import oci:DatabaseManagement/externalMySqlDatabase:ExternalMySqlDatabase test_external_my_sql_database "id"
198
+ ```
199
+
200
+ :param str resource_name: The name of the resource.
201
+ :param ExternalMySqlDatabaseArgs args: The arguments to use to populate this resource's properties.
202
+ :param pulumi.ResourceOptions opts: Options for the resource.
203
+ """
204
+ ...
205
+ def __init__(__self__, resource_name: str, *args, **kwargs):
206
+ resource_args, opts = _utilities.get_resource_args_opts(ExternalMySqlDatabaseArgs, pulumi.ResourceOptions, *args, **kwargs)
207
+ if resource_args is not None:
208
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
209
+ else:
210
+ __self__._internal_init(resource_name, *args, **kwargs)
211
+
212
+ def _internal_init(__self__,
213
+ resource_name: str,
214
+ opts: Optional[pulumi.ResourceOptions] = None,
215
+ compartment_id: Optional[pulumi.Input[str]] = None,
216
+ db_name: Optional[pulumi.Input[str]] = None,
217
+ __props__=None):
218
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
219
+ if not isinstance(opts, pulumi.ResourceOptions):
220
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
221
+ if opts.id is None:
222
+ if __props__ is not None:
223
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
224
+ __props__ = ExternalMySqlDatabaseArgs.__new__(ExternalMySqlDatabaseArgs)
225
+
226
+ if compartment_id is None and not opts.urn:
227
+ raise TypeError("Missing required property 'compartment_id'")
228
+ __props__.__dict__["compartment_id"] = compartment_id
229
+ if db_name is None and not opts.urn:
230
+ raise TypeError("Missing required property 'db_name'")
231
+ __props__.__dict__["db_name"] = db_name
232
+ __props__.__dict__["external_database_id"] = None
233
+ super(ExternalMySqlDatabase, __self__).__init__(
234
+ 'oci:DatabaseManagement/externalMySqlDatabase:ExternalMySqlDatabase',
235
+ resource_name,
236
+ __props__,
237
+ opts)
238
+
239
+ @staticmethod
240
+ def get(resource_name: str,
241
+ id: pulumi.Input[str],
242
+ opts: Optional[pulumi.ResourceOptions] = None,
243
+ compartment_id: Optional[pulumi.Input[str]] = None,
244
+ db_name: Optional[pulumi.Input[str]] = None,
245
+ external_database_id: Optional[pulumi.Input[str]] = None) -> 'ExternalMySqlDatabase':
246
+ """
247
+ Get an existing ExternalMySqlDatabase resource's state with the given name, id, and optional extra
248
+ properties used to qualify the lookup.
249
+
250
+ :param str resource_name: The unique name of the resulting resource.
251
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
252
+ :param pulumi.ResourceOptions opts: Options for the resource.
253
+ :param pulumi.Input[str] compartment_id: OCID of compartment for the External MySQL Database.
254
+ :param pulumi.Input[str] db_name: (Updatable) Name of the External MySQL Database.
255
+
256
+
257
+ ** IMPORTANT **
258
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
259
+ :param pulumi.Input[str] external_database_id: OCID of External MySQL Database.
260
+ """
261
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
262
+
263
+ __props__ = _ExternalMySqlDatabaseState.__new__(_ExternalMySqlDatabaseState)
264
+
265
+ __props__.__dict__["compartment_id"] = compartment_id
266
+ __props__.__dict__["db_name"] = db_name
267
+ __props__.__dict__["external_database_id"] = external_database_id
268
+ return ExternalMySqlDatabase(resource_name, opts=opts, __props__=__props__)
269
+
270
+ @property
271
+ @pulumi.getter(name="compartmentId")
272
+ def compartment_id(self) -> pulumi.Output[str]:
273
+ """
274
+ OCID of compartment for the External MySQL Database.
275
+ """
276
+ return pulumi.get(self, "compartment_id")
277
+
278
+ @property
279
+ @pulumi.getter(name="dbName")
280
+ def db_name(self) -> pulumi.Output[str]:
281
+ """
282
+ (Updatable) Name of the External MySQL Database.
283
+
284
+
285
+ ** IMPORTANT **
286
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
287
+ """
288
+ return pulumi.get(self, "db_name")
289
+
290
+ @property
291
+ @pulumi.getter(name="externalDatabaseId")
292
+ def external_database_id(self) -> pulumi.Output[str]:
293
+ """
294
+ OCID of External MySQL Database.
295
+ """
296
+ return pulumi.get(self, "external_database_id")
297
+