pulumi-oci 1.42.0a1719642398__py3-none-any.whl → 2.0.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.
@@ -1,1199 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import pulumi
8
- import pulumi.runtime
9
- from typing import Any, Mapping, Optional, Sequence, Union, overload
10
- from .. import _utilities
11
- from . import outputs
12
- from ._inputs import *
13
-
14
- __all__ = ['ConnectionArgs', 'Connection']
15
-
16
- @pulumi.input_type
17
- class ConnectionArgs:
18
- def __init__(__self__, *,
19
- admin_credentials: pulumi.Input['ConnectionAdminCredentialsArgs'],
20
- compartment_id: pulumi.Input[str],
21
- database_type: pulumi.Input[str],
22
- vault_details: pulumi.Input['ConnectionVaultDetailsArgs'],
23
- certificate_tdn: Optional[pulumi.Input[str]] = None,
24
- connect_descriptor: Optional[pulumi.Input['ConnectionConnectDescriptorArgs']] = None,
25
- database_id: Optional[pulumi.Input[str]] = None,
26
- defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
27
- display_name: Optional[pulumi.Input[str]] = None,
28
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
29
- manual_database_sub_type: Optional[pulumi.Input[str]] = None,
30
- nsg_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
31
- private_endpoint: Optional[pulumi.Input['ConnectionPrivateEndpointArgs']] = None,
32
- replication_credentials: Optional[pulumi.Input['ConnectionReplicationCredentialsArgs']] = None,
33
- ssh_details: Optional[pulumi.Input['ConnectionSshDetailsArgs']] = None,
34
- tls_keystore: Optional[pulumi.Input[str]] = None,
35
- tls_wallet: Optional[pulumi.Input[str]] = None):
36
- """
37
- The set of arguments for constructing a Connection resource.
38
- :param pulumi.Input['ConnectionAdminCredentialsArgs'] admin_credentials: (Updatable) Database Administrator Credentials details.
39
- :param pulumi.Input[str] compartment_id: (Updatable) OCID of the compartment
40
- :param pulumi.Input[str] database_type: Database connection type.
41
- :param pulumi.Input['ConnectionVaultDetailsArgs'] vault_details: (Updatable) Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
42
- :param pulumi.Input[str] certificate_tdn: (Updatable) This name is the distinguished name used while creating the certificate on target database. Requires a TLS wallet to be specified. Not required for source container database connections.
43
- :param pulumi.Input['ConnectionConnectDescriptorArgs'] connect_descriptor: (Updatable) Connect Descriptor details. Required for Manual and UserManagerOci connection types. If a Private Endpoint was specified for the Connection, the host should contain a valid IP address.
44
- :param pulumi.Input[str] database_id: (Updatable) The OCID of the cloud database. Required if the database connection type is Autonomous.
45
- :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
46
- :param pulumi.Input[str] display_name: (Updatable) Database Connection display name identifier.
47
- :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
48
- :param pulumi.Input[str] manual_database_sub_type: Database manual connection subtype. This value can only be specified for manual connections.
49
- :param pulumi.Input[Sequence[pulumi.Input[str]]] nsg_ids: (Updatable) An array of Network Security Group OCIDs used to define network access for Connections.
50
- :param pulumi.Input['ConnectionPrivateEndpointArgs'] private_endpoint: (Updatable) Oracle Cloud Infrastructure Private Endpoint configuration details. Not required for source container database connections, it will default to the specified Source Database Connection Private Endpoint.
51
- :param pulumi.Input['ConnectionReplicationCredentialsArgs'] replication_credentials: (Updatable) Database Administrator Credentials details.
52
- :param pulumi.Input['ConnectionSshDetailsArgs'] ssh_details: (Updatable) Details of the SSH key that will be used. Required for source database Manual and UserManagerOci connection types. Not required for source container database connections.
53
- :param pulumi.Input[str] tls_keystore: (Updatable) keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections.
54
- :param pulumi.Input[str] tls_wallet: (Updatable) cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
55
- """
56
- pulumi.set(__self__, "admin_credentials", admin_credentials)
57
- pulumi.set(__self__, "compartment_id", compartment_id)
58
- pulumi.set(__self__, "database_type", database_type)
59
- pulumi.set(__self__, "vault_details", vault_details)
60
- if certificate_tdn is not None:
61
- pulumi.set(__self__, "certificate_tdn", certificate_tdn)
62
- if connect_descriptor is not None:
63
- pulumi.set(__self__, "connect_descriptor", connect_descriptor)
64
- if database_id is not None:
65
- pulumi.set(__self__, "database_id", database_id)
66
- if defined_tags is not None:
67
- pulumi.set(__self__, "defined_tags", defined_tags)
68
- if display_name is not None:
69
- pulumi.set(__self__, "display_name", display_name)
70
- if freeform_tags is not None:
71
- pulumi.set(__self__, "freeform_tags", freeform_tags)
72
- if manual_database_sub_type is not None:
73
- pulumi.set(__self__, "manual_database_sub_type", manual_database_sub_type)
74
- if nsg_ids is not None:
75
- pulumi.set(__self__, "nsg_ids", nsg_ids)
76
- if private_endpoint is not None:
77
- pulumi.set(__self__, "private_endpoint", private_endpoint)
78
- if replication_credentials is not None:
79
- pulumi.set(__self__, "replication_credentials", replication_credentials)
80
- if ssh_details is not None:
81
- pulumi.set(__self__, "ssh_details", ssh_details)
82
- if tls_keystore is not None:
83
- pulumi.set(__self__, "tls_keystore", tls_keystore)
84
- if tls_wallet is not None:
85
- pulumi.set(__self__, "tls_wallet", tls_wallet)
86
-
87
- @property
88
- @pulumi.getter(name="adminCredentials")
89
- def admin_credentials(self) -> pulumi.Input['ConnectionAdminCredentialsArgs']:
90
- """
91
- (Updatable) Database Administrator Credentials details.
92
- """
93
- return pulumi.get(self, "admin_credentials")
94
-
95
- @admin_credentials.setter
96
- def admin_credentials(self, value: pulumi.Input['ConnectionAdminCredentialsArgs']):
97
- pulumi.set(self, "admin_credentials", value)
98
-
99
- @property
100
- @pulumi.getter(name="compartmentId")
101
- def compartment_id(self) -> pulumi.Input[str]:
102
- """
103
- (Updatable) OCID of the compartment
104
- """
105
- return pulumi.get(self, "compartment_id")
106
-
107
- @compartment_id.setter
108
- def compartment_id(self, value: pulumi.Input[str]):
109
- pulumi.set(self, "compartment_id", value)
110
-
111
- @property
112
- @pulumi.getter(name="databaseType")
113
- def database_type(self) -> pulumi.Input[str]:
114
- """
115
- Database connection type.
116
- """
117
- return pulumi.get(self, "database_type")
118
-
119
- @database_type.setter
120
- def database_type(self, value: pulumi.Input[str]):
121
- pulumi.set(self, "database_type", value)
122
-
123
- @property
124
- @pulumi.getter(name="vaultDetails")
125
- def vault_details(self) -> pulumi.Input['ConnectionVaultDetailsArgs']:
126
- """
127
- (Updatable) Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
128
- """
129
- return pulumi.get(self, "vault_details")
130
-
131
- @vault_details.setter
132
- def vault_details(self, value: pulumi.Input['ConnectionVaultDetailsArgs']):
133
- pulumi.set(self, "vault_details", value)
134
-
135
- @property
136
- @pulumi.getter(name="certificateTdn")
137
- def certificate_tdn(self) -> Optional[pulumi.Input[str]]:
138
- """
139
- (Updatable) This name is the distinguished name used while creating the certificate on target database. Requires a TLS wallet to be specified. Not required for source container database connections.
140
- """
141
- return pulumi.get(self, "certificate_tdn")
142
-
143
- @certificate_tdn.setter
144
- def certificate_tdn(self, value: Optional[pulumi.Input[str]]):
145
- pulumi.set(self, "certificate_tdn", value)
146
-
147
- @property
148
- @pulumi.getter(name="connectDescriptor")
149
- def connect_descriptor(self) -> Optional[pulumi.Input['ConnectionConnectDescriptorArgs']]:
150
- """
151
- (Updatable) Connect Descriptor details. Required for Manual and UserManagerOci connection types. If a Private Endpoint was specified for the Connection, the host should contain a valid IP address.
152
- """
153
- return pulumi.get(self, "connect_descriptor")
154
-
155
- @connect_descriptor.setter
156
- def connect_descriptor(self, value: Optional[pulumi.Input['ConnectionConnectDescriptorArgs']]):
157
- pulumi.set(self, "connect_descriptor", value)
158
-
159
- @property
160
- @pulumi.getter(name="databaseId")
161
- def database_id(self) -> Optional[pulumi.Input[str]]:
162
- """
163
- (Updatable) The OCID of the cloud database. Required if the database connection type is Autonomous.
164
- """
165
- return pulumi.get(self, "database_id")
166
-
167
- @database_id.setter
168
- def database_id(self, value: Optional[pulumi.Input[str]]):
169
- pulumi.set(self, "database_id", value)
170
-
171
- @property
172
- @pulumi.getter(name="definedTags")
173
- def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
174
- """
175
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
176
- """
177
- return pulumi.get(self, "defined_tags")
178
-
179
- @defined_tags.setter
180
- def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
181
- pulumi.set(self, "defined_tags", value)
182
-
183
- @property
184
- @pulumi.getter(name="displayName")
185
- def display_name(self) -> Optional[pulumi.Input[str]]:
186
- """
187
- (Updatable) Database Connection display name identifier.
188
- """
189
- return pulumi.get(self, "display_name")
190
-
191
- @display_name.setter
192
- def display_name(self, value: Optional[pulumi.Input[str]]):
193
- pulumi.set(self, "display_name", value)
194
-
195
- @property
196
- @pulumi.getter(name="freeformTags")
197
- def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
198
- """
199
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
200
- """
201
- return pulumi.get(self, "freeform_tags")
202
-
203
- @freeform_tags.setter
204
- def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
205
- pulumi.set(self, "freeform_tags", value)
206
-
207
- @property
208
- @pulumi.getter(name="manualDatabaseSubType")
209
- def manual_database_sub_type(self) -> Optional[pulumi.Input[str]]:
210
- """
211
- Database manual connection subtype. This value can only be specified for manual connections.
212
- """
213
- return pulumi.get(self, "manual_database_sub_type")
214
-
215
- @manual_database_sub_type.setter
216
- def manual_database_sub_type(self, value: Optional[pulumi.Input[str]]):
217
- pulumi.set(self, "manual_database_sub_type", value)
218
-
219
- @property
220
- @pulumi.getter(name="nsgIds")
221
- def nsg_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
222
- """
223
- (Updatable) An array of Network Security Group OCIDs used to define network access for Connections.
224
- """
225
- return pulumi.get(self, "nsg_ids")
226
-
227
- @nsg_ids.setter
228
- def nsg_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
229
- pulumi.set(self, "nsg_ids", value)
230
-
231
- @property
232
- @pulumi.getter(name="privateEndpoint")
233
- def private_endpoint(self) -> Optional[pulumi.Input['ConnectionPrivateEndpointArgs']]:
234
- """
235
- (Updatable) Oracle Cloud Infrastructure Private Endpoint configuration details. Not required for source container database connections, it will default to the specified Source Database Connection Private Endpoint.
236
- """
237
- return pulumi.get(self, "private_endpoint")
238
-
239
- @private_endpoint.setter
240
- def private_endpoint(self, value: Optional[pulumi.Input['ConnectionPrivateEndpointArgs']]):
241
- pulumi.set(self, "private_endpoint", value)
242
-
243
- @property
244
- @pulumi.getter(name="replicationCredentials")
245
- def replication_credentials(self) -> Optional[pulumi.Input['ConnectionReplicationCredentialsArgs']]:
246
- """
247
- (Updatable) Database Administrator Credentials details.
248
- """
249
- return pulumi.get(self, "replication_credentials")
250
-
251
- @replication_credentials.setter
252
- def replication_credentials(self, value: Optional[pulumi.Input['ConnectionReplicationCredentialsArgs']]):
253
- pulumi.set(self, "replication_credentials", value)
254
-
255
- @property
256
- @pulumi.getter(name="sshDetails")
257
- def ssh_details(self) -> Optional[pulumi.Input['ConnectionSshDetailsArgs']]:
258
- """
259
- (Updatable) Details of the SSH key that will be used. Required for source database Manual and UserManagerOci connection types. Not required for source container database connections.
260
- """
261
- return pulumi.get(self, "ssh_details")
262
-
263
- @ssh_details.setter
264
- def ssh_details(self, value: Optional[pulumi.Input['ConnectionSshDetailsArgs']]):
265
- pulumi.set(self, "ssh_details", value)
266
-
267
- @property
268
- @pulumi.getter(name="tlsKeystore")
269
- def tls_keystore(self) -> Optional[pulumi.Input[str]]:
270
- """
271
- (Updatable) keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections.
272
- """
273
- return pulumi.get(self, "tls_keystore")
274
-
275
- @tls_keystore.setter
276
- def tls_keystore(self, value: Optional[pulumi.Input[str]]):
277
- pulumi.set(self, "tls_keystore", value)
278
-
279
- @property
280
- @pulumi.getter(name="tlsWallet")
281
- def tls_wallet(self) -> Optional[pulumi.Input[str]]:
282
- """
283
- (Updatable) cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
284
- """
285
- return pulumi.get(self, "tls_wallet")
286
-
287
- @tls_wallet.setter
288
- def tls_wallet(self, value: Optional[pulumi.Input[str]]):
289
- pulumi.set(self, "tls_wallet", value)
290
-
291
-
292
- @pulumi.input_type
293
- class _ConnectionState:
294
- def __init__(__self__, *,
295
- admin_credentials: Optional[pulumi.Input['ConnectionAdminCredentialsArgs']] = None,
296
- certificate_tdn: Optional[pulumi.Input[str]] = None,
297
- compartment_id: Optional[pulumi.Input[str]] = None,
298
- connect_descriptor: Optional[pulumi.Input['ConnectionConnectDescriptorArgs']] = None,
299
- credentials_secret_id: Optional[pulumi.Input[str]] = None,
300
- database_id: Optional[pulumi.Input[str]] = None,
301
- database_type: Optional[pulumi.Input[str]] = None,
302
- defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
303
- display_name: Optional[pulumi.Input[str]] = None,
304
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
305
- lifecycle_details: Optional[pulumi.Input[str]] = None,
306
- manual_database_sub_type: Optional[pulumi.Input[str]] = None,
307
- nsg_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
308
- private_endpoint: Optional[pulumi.Input['ConnectionPrivateEndpointArgs']] = None,
309
- replication_credentials: Optional[pulumi.Input['ConnectionReplicationCredentialsArgs']] = None,
310
- ssh_details: Optional[pulumi.Input['ConnectionSshDetailsArgs']] = None,
311
- state: Optional[pulumi.Input[str]] = None,
312
- system_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
313
- time_created: Optional[pulumi.Input[str]] = None,
314
- time_updated: Optional[pulumi.Input[str]] = None,
315
- tls_keystore: Optional[pulumi.Input[str]] = None,
316
- tls_wallet: Optional[pulumi.Input[str]] = None,
317
- vault_details: Optional[pulumi.Input['ConnectionVaultDetailsArgs']] = None):
318
- """
319
- Input properties used for looking up and filtering Connection resources.
320
- :param pulumi.Input['ConnectionAdminCredentialsArgs'] admin_credentials: (Updatable) Database Administrator Credentials details.
321
- :param pulumi.Input[str] certificate_tdn: (Updatable) This name is the distinguished name used while creating the certificate on target database. Requires a TLS wallet to be specified. Not required for source container database connections.
322
- :param pulumi.Input[str] compartment_id: (Updatable) OCID of the compartment
323
- :param pulumi.Input['ConnectionConnectDescriptorArgs'] connect_descriptor: (Updatable) Connect Descriptor details. Required for Manual and UserManagerOci connection types. If a Private Endpoint was specified for the Connection, the host should contain a valid IP address.
324
- :param pulumi.Input[str] credentials_secret_id: OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
325
- :param pulumi.Input[str] database_id: (Updatable) The OCID of the cloud database. Required if the database connection type is Autonomous.
326
- :param pulumi.Input[str] database_type: Database connection type.
327
- :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
328
- :param pulumi.Input[str] display_name: (Updatable) Database Connection display name identifier.
329
- :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
330
- :param pulumi.Input[str] lifecycle_details: A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
331
- :param pulumi.Input[str] manual_database_sub_type: Database manual connection subtype. This value can only be specified for manual connections.
332
- :param pulumi.Input[Sequence[pulumi.Input[str]]] nsg_ids: (Updatable) An array of Network Security Group OCIDs used to define network access for Connections.
333
- :param pulumi.Input['ConnectionPrivateEndpointArgs'] private_endpoint: (Updatable) Oracle Cloud Infrastructure Private Endpoint configuration details. Not required for source container database connections, it will default to the specified Source Database Connection Private Endpoint.
334
- :param pulumi.Input['ConnectionReplicationCredentialsArgs'] replication_credentials: (Updatable) Database Administrator Credentials details.
335
- :param pulumi.Input['ConnectionSshDetailsArgs'] ssh_details: (Updatable) Details of the SSH key that will be used. Required for source database Manual and UserManagerOci connection types. Not required for source container database connections.
336
- :param pulumi.Input[str] state: The current state of the Connection resource.
337
- :param pulumi.Input[Mapping[str, Any]] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
338
- :param pulumi.Input[str] time_created: The time the Connection resource was created. An RFC3339 formatted datetime string.
339
- :param pulumi.Input[str] time_updated: The time of the last Connection resource details update. An RFC3339 formatted datetime string.
340
- :param pulumi.Input[str] tls_keystore: (Updatable) keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections.
341
- :param pulumi.Input[str] tls_wallet: (Updatable) cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
342
- :param pulumi.Input['ConnectionVaultDetailsArgs'] vault_details: (Updatable) Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
343
- """
344
- if admin_credentials is not None:
345
- pulumi.set(__self__, "admin_credentials", admin_credentials)
346
- if certificate_tdn is not None:
347
- pulumi.set(__self__, "certificate_tdn", certificate_tdn)
348
- if compartment_id is not None:
349
- pulumi.set(__self__, "compartment_id", compartment_id)
350
- if connect_descriptor is not None:
351
- pulumi.set(__self__, "connect_descriptor", connect_descriptor)
352
- if credentials_secret_id is not None:
353
- pulumi.set(__self__, "credentials_secret_id", credentials_secret_id)
354
- if database_id is not None:
355
- pulumi.set(__self__, "database_id", database_id)
356
- if database_type is not None:
357
- pulumi.set(__self__, "database_type", database_type)
358
- if defined_tags is not None:
359
- pulumi.set(__self__, "defined_tags", defined_tags)
360
- if display_name is not None:
361
- pulumi.set(__self__, "display_name", display_name)
362
- if freeform_tags is not None:
363
- pulumi.set(__self__, "freeform_tags", freeform_tags)
364
- if lifecycle_details is not None:
365
- pulumi.set(__self__, "lifecycle_details", lifecycle_details)
366
- if manual_database_sub_type is not None:
367
- pulumi.set(__self__, "manual_database_sub_type", manual_database_sub_type)
368
- if nsg_ids is not None:
369
- pulumi.set(__self__, "nsg_ids", nsg_ids)
370
- if private_endpoint is not None:
371
- pulumi.set(__self__, "private_endpoint", private_endpoint)
372
- if replication_credentials is not None:
373
- pulumi.set(__self__, "replication_credentials", replication_credentials)
374
- if ssh_details is not None:
375
- pulumi.set(__self__, "ssh_details", ssh_details)
376
- if state is not None:
377
- pulumi.set(__self__, "state", state)
378
- if system_tags is not None:
379
- pulumi.set(__self__, "system_tags", system_tags)
380
- if time_created is not None:
381
- pulumi.set(__self__, "time_created", time_created)
382
- if time_updated is not None:
383
- pulumi.set(__self__, "time_updated", time_updated)
384
- if tls_keystore is not None:
385
- pulumi.set(__self__, "tls_keystore", tls_keystore)
386
- if tls_wallet is not None:
387
- pulumi.set(__self__, "tls_wallet", tls_wallet)
388
- if vault_details is not None:
389
- pulumi.set(__self__, "vault_details", vault_details)
390
-
391
- @property
392
- @pulumi.getter(name="adminCredentials")
393
- def admin_credentials(self) -> Optional[pulumi.Input['ConnectionAdminCredentialsArgs']]:
394
- """
395
- (Updatable) Database Administrator Credentials details.
396
- """
397
- return pulumi.get(self, "admin_credentials")
398
-
399
- @admin_credentials.setter
400
- def admin_credentials(self, value: Optional[pulumi.Input['ConnectionAdminCredentialsArgs']]):
401
- pulumi.set(self, "admin_credentials", value)
402
-
403
- @property
404
- @pulumi.getter(name="certificateTdn")
405
- def certificate_tdn(self) -> Optional[pulumi.Input[str]]:
406
- """
407
- (Updatable) This name is the distinguished name used while creating the certificate on target database. Requires a TLS wallet to be specified. Not required for source container database connections.
408
- """
409
- return pulumi.get(self, "certificate_tdn")
410
-
411
- @certificate_tdn.setter
412
- def certificate_tdn(self, value: Optional[pulumi.Input[str]]):
413
- pulumi.set(self, "certificate_tdn", value)
414
-
415
- @property
416
- @pulumi.getter(name="compartmentId")
417
- def compartment_id(self) -> Optional[pulumi.Input[str]]:
418
- """
419
- (Updatable) OCID of the compartment
420
- """
421
- return pulumi.get(self, "compartment_id")
422
-
423
- @compartment_id.setter
424
- def compartment_id(self, value: Optional[pulumi.Input[str]]):
425
- pulumi.set(self, "compartment_id", value)
426
-
427
- @property
428
- @pulumi.getter(name="connectDescriptor")
429
- def connect_descriptor(self) -> Optional[pulumi.Input['ConnectionConnectDescriptorArgs']]:
430
- """
431
- (Updatable) Connect Descriptor details. Required for Manual and UserManagerOci connection types. If a Private Endpoint was specified for the Connection, the host should contain a valid IP address.
432
- """
433
- return pulumi.get(self, "connect_descriptor")
434
-
435
- @connect_descriptor.setter
436
- def connect_descriptor(self, value: Optional[pulumi.Input['ConnectionConnectDescriptorArgs']]):
437
- pulumi.set(self, "connect_descriptor", value)
438
-
439
- @property
440
- @pulumi.getter(name="credentialsSecretId")
441
- def credentials_secret_id(self) -> Optional[pulumi.Input[str]]:
442
- """
443
- OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
444
- """
445
- return pulumi.get(self, "credentials_secret_id")
446
-
447
- @credentials_secret_id.setter
448
- def credentials_secret_id(self, value: Optional[pulumi.Input[str]]):
449
- pulumi.set(self, "credentials_secret_id", value)
450
-
451
- @property
452
- @pulumi.getter(name="databaseId")
453
- def database_id(self) -> Optional[pulumi.Input[str]]:
454
- """
455
- (Updatable) The OCID of the cloud database. Required if the database connection type is Autonomous.
456
- """
457
- return pulumi.get(self, "database_id")
458
-
459
- @database_id.setter
460
- def database_id(self, value: Optional[pulumi.Input[str]]):
461
- pulumi.set(self, "database_id", value)
462
-
463
- @property
464
- @pulumi.getter(name="databaseType")
465
- def database_type(self) -> Optional[pulumi.Input[str]]:
466
- """
467
- Database connection type.
468
- """
469
- return pulumi.get(self, "database_type")
470
-
471
- @database_type.setter
472
- def database_type(self, value: Optional[pulumi.Input[str]]):
473
- pulumi.set(self, "database_type", value)
474
-
475
- @property
476
- @pulumi.getter(name="definedTags")
477
- def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
478
- """
479
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
480
- """
481
- return pulumi.get(self, "defined_tags")
482
-
483
- @defined_tags.setter
484
- def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
485
- pulumi.set(self, "defined_tags", value)
486
-
487
- @property
488
- @pulumi.getter(name="displayName")
489
- def display_name(self) -> Optional[pulumi.Input[str]]:
490
- """
491
- (Updatable) Database Connection display name identifier.
492
- """
493
- return pulumi.get(self, "display_name")
494
-
495
- @display_name.setter
496
- def display_name(self, value: Optional[pulumi.Input[str]]):
497
- pulumi.set(self, "display_name", value)
498
-
499
- @property
500
- @pulumi.getter(name="freeformTags")
501
- def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
502
- """
503
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
504
- """
505
- return pulumi.get(self, "freeform_tags")
506
-
507
- @freeform_tags.setter
508
- def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
509
- pulumi.set(self, "freeform_tags", value)
510
-
511
- @property
512
- @pulumi.getter(name="lifecycleDetails")
513
- def lifecycle_details(self) -> Optional[pulumi.Input[str]]:
514
- """
515
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
516
- """
517
- return pulumi.get(self, "lifecycle_details")
518
-
519
- @lifecycle_details.setter
520
- def lifecycle_details(self, value: Optional[pulumi.Input[str]]):
521
- pulumi.set(self, "lifecycle_details", value)
522
-
523
- @property
524
- @pulumi.getter(name="manualDatabaseSubType")
525
- def manual_database_sub_type(self) -> Optional[pulumi.Input[str]]:
526
- """
527
- Database manual connection subtype. This value can only be specified for manual connections.
528
- """
529
- return pulumi.get(self, "manual_database_sub_type")
530
-
531
- @manual_database_sub_type.setter
532
- def manual_database_sub_type(self, value: Optional[pulumi.Input[str]]):
533
- pulumi.set(self, "manual_database_sub_type", value)
534
-
535
- @property
536
- @pulumi.getter(name="nsgIds")
537
- def nsg_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
538
- """
539
- (Updatable) An array of Network Security Group OCIDs used to define network access for Connections.
540
- """
541
- return pulumi.get(self, "nsg_ids")
542
-
543
- @nsg_ids.setter
544
- def nsg_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
545
- pulumi.set(self, "nsg_ids", value)
546
-
547
- @property
548
- @pulumi.getter(name="privateEndpoint")
549
- def private_endpoint(self) -> Optional[pulumi.Input['ConnectionPrivateEndpointArgs']]:
550
- """
551
- (Updatable) Oracle Cloud Infrastructure Private Endpoint configuration details. Not required for source container database connections, it will default to the specified Source Database Connection Private Endpoint.
552
- """
553
- return pulumi.get(self, "private_endpoint")
554
-
555
- @private_endpoint.setter
556
- def private_endpoint(self, value: Optional[pulumi.Input['ConnectionPrivateEndpointArgs']]):
557
- pulumi.set(self, "private_endpoint", value)
558
-
559
- @property
560
- @pulumi.getter(name="replicationCredentials")
561
- def replication_credentials(self) -> Optional[pulumi.Input['ConnectionReplicationCredentialsArgs']]:
562
- """
563
- (Updatable) Database Administrator Credentials details.
564
- """
565
- return pulumi.get(self, "replication_credentials")
566
-
567
- @replication_credentials.setter
568
- def replication_credentials(self, value: Optional[pulumi.Input['ConnectionReplicationCredentialsArgs']]):
569
- pulumi.set(self, "replication_credentials", value)
570
-
571
- @property
572
- @pulumi.getter(name="sshDetails")
573
- def ssh_details(self) -> Optional[pulumi.Input['ConnectionSshDetailsArgs']]:
574
- """
575
- (Updatable) Details of the SSH key that will be used. Required for source database Manual and UserManagerOci connection types. Not required for source container database connections.
576
- """
577
- return pulumi.get(self, "ssh_details")
578
-
579
- @ssh_details.setter
580
- def ssh_details(self, value: Optional[pulumi.Input['ConnectionSshDetailsArgs']]):
581
- pulumi.set(self, "ssh_details", value)
582
-
583
- @property
584
- @pulumi.getter
585
- def state(self) -> Optional[pulumi.Input[str]]:
586
- """
587
- The current state of the Connection resource.
588
- """
589
- return pulumi.get(self, "state")
590
-
591
- @state.setter
592
- def state(self, value: Optional[pulumi.Input[str]]):
593
- pulumi.set(self, "state", value)
594
-
595
- @property
596
- @pulumi.getter(name="systemTags")
597
- def system_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
598
- """
599
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
600
- """
601
- return pulumi.get(self, "system_tags")
602
-
603
- @system_tags.setter
604
- def system_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
605
- pulumi.set(self, "system_tags", value)
606
-
607
- @property
608
- @pulumi.getter(name="timeCreated")
609
- def time_created(self) -> Optional[pulumi.Input[str]]:
610
- """
611
- The time the Connection resource was created. An RFC3339 formatted datetime string.
612
- """
613
- return pulumi.get(self, "time_created")
614
-
615
- @time_created.setter
616
- def time_created(self, value: Optional[pulumi.Input[str]]):
617
- pulumi.set(self, "time_created", value)
618
-
619
- @property
620
- @pulumi.getter(name="timeUpdated")
621
- def time_updated(self) -> Optional[pulumi.Input[str]]:
622
- """
623
- The time of the last Connection resource details update. An RFC3339 formatted datetime string.
624
- """
625
- return pulumi.get(self, "time_updated")
626
-
627
- @time_updated.setter
628
- def time_updated(self, value: Optional[pulumi.Input[str]]):
629
- pulumi.set(self, "time_updated", value)
630
-
631
- @property
632
- @pulumi.getter(name="tlsKeystore")
633
- def tls_keystore(self) -> Optional[pulumi.Input[str]]:
634
- """
635
- (Updatable) keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections.
636
- """
637
- return pulumi.get(self, "tls_keystore")
638
-
639
- @tls_keystore.setter
640
- def tls_keystore(self, value: Optional[pulumi.Input[str]]):
641
- pulumi.set(self, "tls_keystore", value)
642
-
643
- @property
644
- @pulumi.getter(name="tlsWallet")
645
- def tls_wallet(self) -> Optional[pulumi.Input[str]]:
646
- """
647
- (Updatable) cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
648
- """
649
- return pulumi.get(self, "tls_wallet")
650
-
651
- @tls_wallet.setter
652
- def tls_wallet(self, value: Optional[pulumi.Input[str]]):
653
- pulumi.set(self, "tls_wallet", value)
654
-
655
- @property
656
- @pulumi.getter(name="vaultDetails")
657
- def vault_details(self) -> Optional[pulumi.Input['ConnectionVaultDetailsArgs']]:
658
- """
659
- (Updatable) Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
660
- """
661
- return pulumi.get(self, "vault_details")
662
-
663
- @vault_details.setter
664
- def vault_details(self, value: Optional[pulumi.Input['ConnectionVaultDetailsArgs']]):
665
- pulumi.set(self, "vault_details", value)
666
-
667
-
668
- class Connection(pulumi.CustomResource):
669
- @overload
670
- def __init__(__self__,
671
- resource_name: str,
672
- opts: Optional[pulumi.ResourceOptions] = None,
673
- admin_credentials: Optional[pulumi.Input[pulumi.InputType['ConnectionAdminCredentialsArgs']]] = None,
674
- certificate_tdn: Optional[pulumi.Input[str]] = None,
675
- compartment_id: Optional[pulumi.Input[str]] = None,
676
- connect_descriptor: Optional[pulumi.Input[pulumi.InputType['ConnectionConnectDescriptorArgs']]] = None,
677
- database_id: Optional[pulumi.Input[str]] = None,
678
- database_type: Optional[pulumi.Input[str]] = None,
679
- defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
680
- display_name: Optional[pulumi.Input[str]] = None,
681
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
682
- manual_database_sub_type: Optional[pulumi.Input[str]] = None,
683
- nsg_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
684
- private_endpoint: Optional[pulumi.Input[pulumi.InputType['ConnectionPrivateEndpointArgs']]] = None,
685
- replication_credentials: Optional[pulumi.Input[pulumi.InputType['ConnectionReplicationCredentialsArgs']]] = None,
686
- ssh_details: Optional[pulumi.Input[pulumi.InputType['ConnectionSshDetailsArgs']]] = None,
687
- tls_keystore: Optional[pulumi.Input[str]] = None,
688
- tls_wallet: Optional[pulumi.Input[str]] = None,
689
- vault_details: Optional[pulumi.Input[pulumi.InputType['ConnectionVaultDetailsArgs']]] = None,
690
- __props__=None):
691
- """
692
- This resource provides the Connection resource in Oracle Cloud Infrastructure Database Migration service.
693
-
694
- Create a Database Connection resource that contains the details to connect to either a Source or Target Database
695
- in the migration.
696
-
697
- ## Example Usage
698
-
699
- ```python
700
- import pulumi
701
- import pulumi_oci as oci
702
-
703
- test_connection = oci.database_migration.Connection("test_connection",
704
- admin_credentials=oci.database_migration.ConnectionAdminCredentialsArgs(
705
- password=connection_admin_credentials_password,
706
- username=connection_admin_credentials_username,
707
- ),
708
- compartment_id=compartment_id,
709
- database_type=connection_database_type,
710
- vault_details=oci.database_migration.ConnectionVaultDetailsArgs(
711
- compartment_id=compartment_id,
712
- key_id=test_key["id"],
713
- vault_id=test_vault["id"],
714
- ),
715
- certificate_tdn=connection_certificate_tdn,
716
- connect_descriptor=oci.database_migration.ConnectionConnectDescriptorArgs(
717
- connect_string=connection_connect_descriptor_connect_string,
718
- database_service_name=test_service["name"],
719
- host=connection_connect_descriptor_host,
720
- port=connection_connect_descriptor_port,
721
- ),
722
- database_id=test_database["id"],
723
- defined_tags={
724
- "foo-namespace.bar-key": "value",
725
- },
726
- display_name=connection_display_name,
727
- freeform_tags={
728
- "bar-key": "value",
729
- },
730
- nsg_ids=connection_nsg_ids,
731
- private_endpoint=oci.database_migration.ConnectionPrivateEndpointArgs(
732
- compartment_id=compartment_id,
733
- subnet_id=test_subnet["id"],
734
- vcn_id=test_vcn["id"],
735
- ),
736
- replication_credentials=oci.database_migration.ConnectionReplicationCredentialsArgs(
737
- password=connection_replication_credentials_password,
738
- username=connection_replication_credentials_username,
739
- ),
740
- ssh_details=oci.database_migration.ConnectionSshDetailsArgs(
741
- host=connection_ssh_details_host,
742
- sshkey=connection_ssh_details_sshkey,
743
- user=connection_ssh_details_user,
744
- sudo_location=connection_ssh_details_sudo_location,
745
- ),
746
- tls_keystore=connection_tls_keystore,
747
- tls_wallet=connection_tls_wallet)
748
- ```
749
-
750
- ## Import
751
-
752
- Connections can be imported using the `id`, e.g.
753
-
754
- ```sh
755
- $ pulumi import oci:DatabaseMigration/connection:Connection test_connection "id"
756
- ```
757
-
758
- :param str resource_name: The name of the resource.
759
- :param pulumi.ResourceOptions opts: Options for the resource.
760
- :param pulumi.Input[pulumi.InputType['ConnectionAdminCredentialsArgs']] admin_credentials: (Updatable) Database Administrator Credentials details.
761
- :param pulumi.Input[str] certificate_tdn: (Updatable) This name is the distinguished name used while creating the certificate on target database. Requires a TLS wallet to be specified. Not required for source container database connections.
762
- :param pulumi.Input[str] compartment_id: (Updatable) OCID of the compartment
763
- :param pulumi.Input[pulumi.InputType['ConnectionConnectDescriptorArgs']] connect_descriptor: (Updatable) Connect Descriptor details. Required for Manual and UserManagerOci connection types. If a Private Endpoint was specified for the Connection, the host should contain a valid IP address.
764
- :param pulumi.Input[str] database_id: (Updatable) The OCID of the cloud database. Required if the database connection type is Autonomous.
765
- :param pulumi.Input[str] database_type: Database connection type.
766
- :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
767
- :param pulumi.Input[str] display_name: (Updatable) Database Connection display name identifier.
768
- :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
769
- :param pulumi.Input[str] manual_database_sub_type: Database manual connection subtype. This value can only be specified for manual connections.
770
- :param pulumi.Input[Sequence[pulumi.Input[str]]] nsg_ids: (Updatable) An array of Network Security Group OCIDs used to define network access for Connections.
771
- :param pulumi.Input[pulumi.InputType['ConnectionPrivateEndpointArgs']] private_endpoint: (Updatable) Oracle Cloud Infrastructure Private Endpoint configuration details. Not required for source container database connections, it will default to the specified Source Database Connection Private Endpoint.
772
- :param pulumi.Input[pulumi.InputType['ConnectionReplicationCredentialsArgs']] replication_credentials: (Updatable) Database Administrator Credentials details.
773
- :param pulumi.Input[pulumi.InputType['ConnectionSshDetailsArgs']] ssh_details: (Updatable) Details of the SSH key that will be used. Required for source database Manual and UserManagerOci connection types. Not required for source container database connections.
774
- :param pulumi.Input[str] tls_keystore: (Updatable) keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections.
775
- :param pulumi.Input[str] tls_wallet: (Updatable) cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
776
- :param pulumi.Input[pulumi.InputType['ConnectionVaultDetailsArgs']] vault_details: (Updatable) Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
777
- """
778
- ...
779
- @overload
780
- def __init__(__self__,
781
- resource_name: str,
782
- args: ConnectionArgs,
783
- opts: Optional[pulumi.ResourceOptions] = None):
784
- """
785
- This resource provides the Connection resource in Oracle Cloud Infrastructure Database Migration service.
786
-
787
- Create a Database Connection resource that contains the details to connect to either a Source or Target Database
788
- in the migration.
789
-
790
- ## Example Usage
791
-
792
- ```python
793
- import pulumi
794
- import pulumi_oci as oci
795
-
796
- test_connection = oci.database_migration.Connection("test_connection",
797
- admin_credentials=oci.database_migration.ConnectionAdminCredentialsArgs(
798
- password=connection_admin_credentials_password,
799
- username=connection_admin_credentials_username,
800
- ),
801
- compartment_id=compartment_id,
802
- database_type=connection_database_type,
803
- vault_details=oci.database_migration.ConnectionVaultDetailsArgs(
804
- compartment_id=compartment_id,
805
- key_id=test_key["id"],
806
- vault_id=test_vault["id"],
807
- ),
808
- certificate_tdn=connection_certificate_tdn,
809
- connect_descriptor=oci.database_migration.ConnectionConnectDescriptorArgs(
810
- connect_string=connection_connect_descriptor_connect_string,
811
- database_service_name=test_service["name"],
812
- host=connection_connect_descriptor_host,
813
- port=connection_connect_descriptor_port,
814
- ),
815
- database_id=test_database["id"],
816
- defined_tags={
817
- "foo-namespace.bar-key": "value",
818
- },
819
- display_name=connection_display_name,
820
- freeform_tags={
821
- "bar-key": "value",
822
- },
823
- nsg_ids=connection_nsg_ids,
824
- private_endpoint=oci.database_migration.ConnectionPrivateEndpointArgs(
825
- compartment_id=compartment_id,
826
- subnet_id=test_subnet["id"],
827
- vcn_id=test_vcn["id"],
828
- ),
829
- replication_credentials=oci.database_migration.ConnectionReplicationCredentialsArgs(
830
- password=connection_replication_credentials_password,
831
- username=connection_replication_credentials_username,
832
- ),
833
- ssh_details=oci.database_migration.ConnectionSshDetailsArgs(
834
- host=connection_ssh_details_host,
835
- sshkey=connection_ssh_details_sshkey,
836
- user=connection_ssh_details_user,
837
- sudo_location=connection_ssh_details_sudo_location,
838
- ),
839
- tls_keystore=connection_tls_keystore,
840
- tls_wallet=connection_tls_wallet)
841
- ```
842
-
843
- ## Import
844
-
845
- Connections can be imported using the `id`, e.g.
846
-
847
- ```sh
848
- $ pulumi import oci:DatabaseMigration/connection:Connection test_connection "id"
849
- ```
850
-
851
- :param str resource_name: The name of the resource.
852
- :param ConnectionArgs args: The arguments to use to populate this resource's properties.
853
- :param pulumi.ResourceOptions opts: Options for the resource.
854
- """
855
- ...
856
- def __init__(__self__, resource_name: str, *args, **kwargs):
857
- resource_args, opts = _utilities.get_resource_args_opts(ConnectionArgs, pulumi.ResourceOptions, *args, **kwargs)
858
- if resource_args is not None:
859
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
860
- else:
861
- __self__._internal_init(resource_name, *args, **kwargs)
862
-
863
- def _internal_init(__self__,
864
- resource_name: str,
865
- opts: Optional[pulumi.ResourceOptions] = None,
866
- admin_credentials: Optional[pulumi.Input[pulumi.InputType['ConnectionAdminCredentialsArgs']]] = None,
867
- certificate_tdn: Optional[pulumi.Input[str]] = None,
868
- compartment_id: Optional[pulumi.Input[str]] = None,
869
- connect_descriptor: Optional[pulumi.Input[pulumi.InputType['ConnectionConnectDescriptorArgs']]] = None,
870
- database_id: Optional[pulumi.Input[str]] = None,
871
- database_type: Optional[pulumi.Input[str]] = None,
872
- defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
873
- display_name: Optional[pulumi.Input[str]] = None,
874
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
875
- manual_database_sub_type: Optional[pulumi.Input[str]] = None,
876
- nsg_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
877
- private_endpoint: Optional[pulumi.Input[pulumi.InputType['ConnectionPrivateEndpointArgs']]] = None,
878
- replication_credentials: Optional[pulumi.Input[pulumi.InputType['ConnectionReplicationCredentialsArgs']]] = None,
879
- ssh_details: Optional[pulumi.Input[pulumi.InputType['ConnectionSshDetailsArgs']]] = None,
880
- tls_keystore: Optional[pulumi.Input[str]] = None,
881
- tls_wallet: Optional[pulumi.Input[str]] = None,
882
- vault_details: Optional[pulumi.Input[pulumi.InputType['ConnectionVaultDetailsArgs']]] = None,
883
- __props__=None):
884
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
885
- if not isinstance(opts, pulumi.ResourceOptions):
886
- raise TypeError('Expected resource options to be a ResourceOptions instance')
887
- if opts.id is None:
888
- if __props__ is not None:
889
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
890
- __props__ = ConnectionArgs.__new__(ConnectionArgs)
891
-
892
- if admin_credentials is None and not opts.urn:
893
- raise TypeError("Missing required property 'admin_credentials'")
894
- __props__.__dict__["admin_credentials"] = admin_credentials
895
- __props__.__dict__["certificate_tdn"] = certificate_tdn
896
- if compartment_id is None and not opts.urn:
897
- raise TypeError("Missing required property 'compartment_id'")
898
- __props__.__dict__["compartment_id"] = compartment_id
899
- __props__.__dict__["connect_descriptor"] = connect_descriptor
900
- __props__.__dict__["database_id"] = database_id
901
- if database_type is None and not opts.urn:
902
- raise TypeError("Missing required property 'database_type'")
903
- __props__.__dict__["database_type"] = database_type
904
- __props__.__dict__["defined_tags"] = defined_tags
905
- __props__.__dict__["display_name"] = display_name
906
- __props__.__dict__["freeform_tags"] = freeform_tags
907
- __props__.__dict__["manual_database_sub_type"] = manual_database_sub_type
908
- __props__.__dict__["nsg_ids"] = nsg_ids
909
- __props__.__dict__["private_endpoint"] = private_endpoint
910
- __props__.__dict__["replication_credentials"] = replication_credentials
911
- __props__.__dict__["ssh_details"] = ssh_details
912
- __props__.__dict__["tls_keystore"] = tls_keystore
913
- __props__.__dict__["tls_wallet"] = tls_wallet
914
- if vault_details is None and not opts.urn:
915
- raise TypeError("Missing required property 'vault_details'")
916
- __props__.__dict__["vault_details"] = vault_details
917
- __props__.__dict__["credentials_secret_id"] = None
918
- __props__.__dict__["lifecycle_details"] = None
919
- __props__.__dict__["state"] = None
920
- __props__.__dict__["system_tags"] = None
921
- __props__.__dict__["time_created"] = None
922
- __props__.__dict__["time_updated"] = None
923
- super(Connection, __self__).__init__(
924
- 'oci:DatabaseMigration/connection:Connection',
925
- resource_name,
926
- __props__,
927
- opts)
928
-
929
- @staticmethod
930
- def get(resource_name: str,
931
- id: pulumi.Input[str],
932
- opts: Optional[pulumi.ResourceOptions] = None,
933
- admin_credentials: Optional[pulumi.Input[pulumi.InputType['ConnectionAdminCredentialsArgs']]] = None,
934
- certificate_tdn: Optional[pulumi.Input[str]] = None,
935
- compartment_id: Optional[pulumi.Input[str]] = None,
936
- connect_descriptor: Optional[pulumi.Input[pulumi.InputType['ConnectionConnectDescriptorArgs']]] = None,
937
- credentials_secret_id: Optional[pulumi.Input[str]] = None,
938
- database_id: Optional[pulumi.Input[str]] = None,
939
- database_type: Optional[pulumi.Input[str]] = None,
940
- defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
941
- display_name: Optional[pulumi.Input[str]] = None,
942
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
943
- lifecycle_details: Optional[pulumi.Input[str]] = None,
944
- manual_database_sub_type: Optional[pulumi.Input[str]] = None,
945
- nsg_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
946
- private_endpoint: Optional[pulumi.Input[pulumi.InputType['ConnectionPrivateEndpointArgs']]] = None,
947
- replication_credentials: Optional[pulumi.Input[pulumi.InputType['ConnectionReplicationCredentialsArgs']]] = None,
948
- ssh_details: Optional[pulumi.Input[pulumi.InputType['ConnectionSshDetailsArgs']]] = None,
949
- state: Optional[pulumi.Input[str]] = None,
950
- system_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
951
- time_created: Optional[pulumi.Input[str]] = None,
952
- time_updated: Optional[pulumi.Input[str]] = None,
953
- tls_keystore: Optional[pulumi.Input[str]] = None,
954
- tls_wallet: Optional[pulumi.Input[str]] = None,
955
- vault_details: Optional[pulumi.Input[pulumi.InputType['ConnectionVaultDetailsArgs']]] = None) -> 'Connection':
956
- """
957
- Get an existing Connection resource's state with the given name, id, and optional extra
958
- properties used to qualify the lookup.
959
-
960
- :param str resource_name: The unique name of the resulting resource.
961
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
962
- :param pulumi.ResourceOptions opts: Options for the resource.
963
- :param pulumi.Input[pulumi.InputType['ConnectionAdminCredentialsArgs']] admin_credentials: (Updatable) Database Administrator Credentials details.
964
- :param pulumi.Input[str] certificate_tdn: (Updatable) This name is the distinguished name used while creating the certificate on target database. Requires a TLS wallet to be specified. Not required for source container database connections.
965
- :param pulumi.Input[str] compartment_id: (Updatable) OCID of the compartment
966
- :param pulumi.Input[pulumi.InputType['ConnectionConnectDescriptorArgs']] connect_descriptor: (Updatable) Connect Descriptor details. Required for Manual and UserManagerOci connection types. If a Private Endpoint was specified for the Connection, the host should contain a valid IP address.
967
- :param pulumi.Input[str] credentials_secret_id: OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
968
- :param pulumi.Input[str] database_id: (Updatable) The OCID of the cloud database. Required if the database connection type is Autonomous.
969
- :param pulumi.Input[str] database_type: Database connection type.
970
- :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
971
- :param pulumi.Input[str] display_name: (Updatable) Database Connection display name identifier.
972
- :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
973
- :param pulumi.Input[str] lifecycle_details: A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
974
- :param pulumi.Input[str] manual_database_sub_type: Database manual connection subtype. This value can only be specified for manual connections.
975
- :param pulumi.Input[Sequence[pulumi.Input[str]]] nsg_ids: (Updatable) An array of Network Security Group OCIDs used to define network access for Connections.
976
- :param pulumi.Input[pulumi.InputType['ConnectionPrivateEndpointArgs']] private_endpoint: (Updatable) Oracle Cloud Infrastructure Private Endpoint configuration details. Not required for source container database connections, it will default to the specified Source Database Connection Private Endpoint.
977
- :param pulumi.Input[pulumi.InputType['ConnectionReplicationCredentialsArgs']] replication_credentials: (Updatable) Database Administrator Credentials details.
978
- :param pulumi.Input[pulumi.InputType['ConnectionSshDetailsArgs']] ssh_details: (Updatable) Details of the SSH key that will be used. Required for source database Manual and UserManagerOci connection types. Not required for source container database connections.
979
- :param pulumi.Input[str] state: The current state of the Connection resource.
980
- :param pulumi.Input[Mapping[str, Any]] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
981
- :param pulumi.Input[str] time_created: The time the Connection resource was created. An RFC3339 formatted datetime string.
982
- :param pulumi.Input[str] time_updated: The time of the last Connection resource details update. An RFC3339 formatted datetime string.
983
- :param pulumi.Input[str] tls_keystore: (Updatable) keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections.
984
- :param pulumi.Input[str] tls_wallet: (Updatable) cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
985
- :param pulumi.Input[pulumi.InputType['ConnectionVaultDetailsArgs']] vault_details: (Updatable) Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
986
- """
987
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
988
-
989
- __props__ = _ConnectionState.__new__(_ConnectionState)
990
-
991
- __props__.__dict__["admin_credentials"] = admin_credentials
992
- __props__.__dict__["certificate_tdn"] = certificate_tdn
993
- __props__.__dict__["compartment_id"] = compartment_id
994
- __props__.__dict__["connect_descriptor"] = connect_descriptor
995
- __props__.__dict__["credentials_secret_id"] = credentials_secret_id
996
- __props__.__dict__["database_id"] = database_id
997
- __props__.__dict__["database_type"] = database_type
998
- __props__.__dict__["defined_tags"] = defined_tags
999
- __props__.__dict__["display_name"] = display_name
1000
- __props__.__dict__["freeform_tags"] = freeform_tags
1001
- __props__.__dict__["lifecycle_details"] = lifecycle_details
1002
- __props__.__dict__["manual_database_sub_type"] = manual_database_sub_type
1003
- __props__.__dict__["nsg_ids"] = nsg_ids
1004
- __props__.__dict__["private_endpoint"] = private_endpoint
1005
- __props__.__dict__["replication_credentials"] = replication_credentials
1006
- __props__.__dict__["ssh_details"] = ssh_details
1007
- __props__.__dict__["state"] = state
1008
- __props__.__dict__["system_tags"] = system_tags
1009
- __props__.__dict__["time_created"] = time_created
1010
- __props__.__dict__["time_updated"] = time_updated
1011
- __props__.__dict__["tls_keystore"] = tls_keystore
1012
- __props__.__dict__["tls_wallet"] = tls_wallet
1013
- __props__.__dict__["vault_details"] = vault_details
1014
- return Connection(resource_name, opts=opts, __props__=__props__)
1015
-
1016
- @property
1017
- @pulumi.getter(name="adminCredentials")
1018
- def admin_credentials(self) -> pulumi.Output['outputs.ConnectionAdminCredentials']:
1019
- """
1020
- (Updatable) Database Administrator Credentials details.
1021
- """
1022
- return pulumi.get(self, "admin_credentials")
1023
-
1024
- @property
1025
- @pulumi.getter(name="certificateTdn")
1026
- def certificate_tdn(self) -> pulumi.Output[str]:
1027
- """
1028
- (Updatable) This name is the distinguished name used while creating the certificate on target database. Requires a TLS wallet to be specified. Not required for source container database connections.
1029
- """
1030
- return pulumi.get(self, "certificate_tdn")
1031
-
1032
- @property
1033
- @pulumi.getter(name="compartmentId")
1034
- def compartment_id(self) -> pulumi.Output[str]:
1035
- """
1036
- (Updatable) OCID of the compartment
1037
- """
1038
- return pulumi.get(self, "compartment_id")
1039
-
1040
- @property
1041
- @pulumi.getter(name="connectDescriptor")
1042
- def connect_descriptor(self) -> pulumi.Output['outputs.ConnectionConnectDescriptor']:
1043
- """
1044
- (Updatable) Connect Descriptor details. Required for Manual and UserManagerOci connection types. If a Private Endpoint was specified for the Connection, the host should contain a valid IP address.
1045
- """
1046
- return pulumi.get(self, "connect_descriptor")
1047
-
1048
- @property
1049
- @pulumi.getter(name="credentialsSecretId")
1050
- def credentials_secret_id(self) -> pulumi.Output[str]:
1051
- """
1052
- OCID of the Secret in the Oracle Cloud Infrastructure vault containing the Database Connection credentials.
1053
- """
1054
- return pulumi.get(self, "credentials_secret_id")
1055
-
1056
- @property
1057
- @pulumi.getter(name="databaseId")
1058
- def database_id(self) -> pulumi.Output[str]:
1059
- """
1060
- (Updatable) The OCID of the cloud database. Required if the database connection type is Autonomous.
1061
- """
1062
- return pulumi.get(self, "database_id")
1063
-
1064
- @property
1065
- @pulumi.getter(name="databaseType")
1066
- def database_type(self) -> pulumi.Output[str]:
1067
- """
1068
- Database connection type.
1069
- """
1070
- return pulumi.get(self, "database_type")
1071
-
1072
- @property
1073
- @pulumi.getter(name="definedTags")
1074
- def defined_tags(self) -> pulumi.Output[Mapping[str, Any]]:
1075
- """
1076
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`
1077
- """
1078
- return pulumi.get(self, "defined_tags")
1079
-
1080
- @property
1081
- @pulumi.getter(name="displayName")
1082
- def display_name(self) -> pulumi.Output[str]:
1083
- """
1084
- (Updatable) Database Connection display name identifier.
1085
- """
1086
- return pulumi.get(self, "display_name")
1087
-
1088
- @property
1089
- @pulumi.getter(name="freeformTags")
1090
- def freeform_tags(self) -> pulumi.Output[Mapping[str, Any]]:
1091
- """
1092
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}`
1093
- """
1094
- return pulumi.get(self, "freeform_tags")
1095
-
1096
- @property
1097
- @pulumi.getter(name="lifecycleDetails")
1098
- def lifecycle_details(self) -> pulumi.Output[str]:
1099
- """
1100
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
1101
- """
1102
- return pulumi.get(self, "lifecycle_details")
1103
-
1104
- @property
1105
- @pulumi.getter(name="manualDatabaseSubType")
1106
- def manual_database_sub_type(self) -> pulumi.Output[str]:
1107
- """
1108
- Database manual connection subtype. This value can only be specified for manual connections.
1109
- """
1110
- return pulumi.get(self, "manual_database_sub_type")
1111
-
1112
- @property
1113
- @pulumi.getter(name="nsgIds")
1114
- def nsg_ids(self) -> pulumi.Output[Sequence[str]]:
1115
- """
1116
- (Updatable) An array of Network Security Group OCIDs used to define network access for Connections.
1117
- """
1118
- return pulumi.get(self, "nsg_ids")
1119
-
1120
- @property
1121
- @pulumi.getter(name="privateEndpoint")
1122
- def private_endpoint(self) -> pulumi.Output['outputs.ConnectionPrivateEndpoint']:
1123
- """
1124
- (Updatable) Oracle Cloud Infrastructure Private Endpoint configuration details. Not required for source container database connections, it will default to the specified Source Database Connection Private Endpoint.
1125
- """
1126
- return pulumi.get(self, "private_endpoint")
1127
-
1128
- @property
1129
- @pulumi.getter(name="replicationCredentials")
1130
- def replication_credentials(self) -> pulumi.Output['outputs.ConnectionReplicationCredentials']:
1131
- """
1132
- (Updatable) Database Administrator Credentials details.
1133
- """
1134
- return pulumi.get(self, "replication_credentials")
1135
-
1136
- @property
1137
- @pulumi.getter(name="sshDetails")
1138
- def ssh_details(self) -> pulumi.Output['outputs.ConnectionSshDetails']:
1139
- """
1140
- (Updatable) Details of the SSH key that will be used. Required for source database Manual and UserManagerOci connection types. Not required for source container database connections.
1141
- """
1142
- return pulumi.get(self, "ssh_details")
1143
-
1144
- @property
1145
- @pulumi.getter
1146
- def state(self) -> pulumi.Output[str]:
1147
- """
1148
- The current state of the Connection resource.
1149
- """
1150
- return pulumi.get(self, "state")
1151
-
1152
- @property
1153
- @pulumi.getter(name="systemTags")
1154
- def system_tags(self) -> pulumi.Output[Mapping[str, Any]]:
1155
- """
1156
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`
1157
- """
1158
- return pulumi.get(self, "system_tags")
1159
-
1160
- @property
1161
- @pulumi.getter(name="timeCreated")
1162
- def time_created(self) -> pulumi.Output[str]:
1163
- """
1164
- The time the Connection resource was created. An RFC3339 formatted datetime string.
1165
- """
1166
- return pulumi.get(self, "time_created")
1167
-
1168
- @property
1169
- @pulumi.getter(name="timeUpdated")
1170
- def time_updated(self) -> pulumi.Output[str]:
1171
- """
1172
- The time of the last Connection resource details update. An RFC3339 formatted datetime string.
1173
- """
1174
- return pulumi.get(self, "time_updated")
1175
-
1176
- @property
1177
- @pulumi.getter(name="tlsKeystore")
1178
- def tls_keystore(self) -> pulumi.Output[str]:
1179
- """
1180
- (Updatable) keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not required for source container database connections.
1181
- """
1182
- return pulumi.get(self, "tls_keystore")
1183
-
1184
- @property
1185
- @pulumi.getter(name="tlsWallet")
1186
- def tls_wallet(self) -> pulumi.Output[str]:
1187
- """
1188
- (Updatable) cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not required for source container database connections.
1189
- """
1190
- return pulumi.get(self, "tls_wallet")
1191
-
1192
- @property
1193
- @pulumi.getter(name="vaultDetails")
1194
- def vault_details(self) -> pulumi.Output['outputs.ConnectionVaultDetails']:
1195
- """
1196
- (Updatable) Oracle Cloud Infrastructure Vault details to store migration and connection credentials secrets
1197
- """
1198
- return pulumi.get(self, "vault_details")
1199
-