pulumi-oci 1.21.0a1706749393__py3-none-any.whl → 1.22.0a1706814317__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 (56) hide show
  1. pulumi_oci/__init__.py +16 -0
  2. pulumi_oci/_utilities.py +6 -2
  3. pulumi_oci/config/__init__.pyi +0 -4
  4. pulumi_oci/config/vars.py +0 -4
  5. pulumi_oci/database/autonomous_database.py +49 -0
  6. pulumi_oci/database/get_autonomous_database.py +14 -1
  7. pulumi_oci/database/get_managed_preferred_credential.py +19 -1
  8. pulumi_oci/database/outputs.py +21 -0
  9. pulumi_oci/databasemanagement/__init__.py +3 -0
  10. pulumi_oci/databasemanagement/_inputs.py +863 -48
  11. pulumi_oci/databasemanagement/get_external_asm_configuration.py +22 -5
  12. pulumi_oci/databasemanagement/get_external_asm_disk_groups.py +22 -5
  13. pulumi_oci/databasemanagement/get_external_asm_users.py +22 -5
  14. pulumi_oci/databasemanagement/get_external_listener_services.py +22 -5
  15. pulumi_oci/databasemanagement/get_managed_database_cursor_cache_statements.py +18 -1
  16. pulumi_oci/databasemanagement/get_managed_database_sql_plan_baseline.py +20 -3
  17. pulumi_oci/databasemanagement/get_managed_database_sql_plan_baseline_configuration.py +20 -3
  18. pulumi_oci/databasemanagement/get_managed_database_sql_plan_baseline_jobs.py +20 -3
  19. pulumi_oci/databasemanagement/get_managed_database_sql_plan_baselines.py +46 -37
  20. pulumi_oci/databasemanagement/get_managed_database_sql_tuning_advisor_tasks.py +18 -1
  21. pulumi_oci/databasemanagement/get_managed_database_sql_tuning_advisor_tasks_execution_plan_stats_comparison.py +20 -3
  22. pulumi_oci/databasemanagement/get_managed_database_sql_tuning_advisor_tasks_findings.py +18 -1
  23. pulumi_oci/databasemanagement/get_managed_database_sql_tuning_advisor_tasks_recommendations.py +20 -3
  24. pulumi_oci/databasemanagement/get_managed_database_sql_tuning_advisor_tasks_sql_execution_plan.py +20 -3
  25. pulumi_oci/databasemanagement/get_managed_database_sql_tuning_advisor_tasks_summary_report.py +18 -1
  26. pulumi_oci/databasemanagement/get_managed_database_sql_tuning_sets.py +18 -1
  27. pulumi_oci/databasemanagement/get_managed_database_user.py +20 -3
  28. pulumi_oci/databasemanagement/get_managed_database_user_consumer_group_privileges.py +20 -3
  29. pulumi_oci/databasemanagement/get_managed_database_user_data_access_containers.py +20 -3
  30. pulumi_oci/databasemanagement/get_managed_database_user_object_privileges.py +20 -3
  31. pulumi_oci/databasemanagement/get_managed_database_user_proxied_for_users.py +20 -3
  32. pulumi_oci/databasemanagement/get_managed_database_user_roles.py +20 -3
  33. pulumi_oci/databasemanagement/get_managed_database_users.py +20 -3
  34. pulumi_oci/databasemanagement/get_managed_databases_database_parameters.py +18 -1
  35. pulumi_oci/databasemanagement/get_managed_databases_user_proxy_users.py +20 -3
  36. pulumi_oci/databasemanagement/get_managed_databases_user_system_privileges.py +20 -3
  37. pulumi_oci/databasemanagement/get_named_credential.py +249 -0
  38. pulumi_oci/databasemanagement/get_named_credentials.py +216 -0
  39. pulumi_oci/databasemanagement/managed_databases_change_database_parameter.py +99 -37
  40. pulumi_oci/databasemanagement/managed_databases_reset_database_parameter.py +91 -29
  41. pulumi_oci/databasemanagement/named_credential.py +635 -0
  42. pulumi_oci/databasemanagement/outputs.py +1896 -157
  43. pulumi_oci/dataintegration/__init__.py +3 -0
  44. pulumi_oci/dataintegration/_inputs.py +798 -0
  45. pulumi_oci/dataintegration/get_workspace_application_patch.py +391 -0
  46. pulumi_oci/dataintegration/get_workspace_application_patches.py +207 -0
  47. pulumi_oci/dataintegration/get_workspace_import_request.py +14 -1
  48. pulumi_oci/dataintegration/outputs.py +2844 -739
  49. pulumi_oci/dataintegration/workspace_application_patch.py +1026 -0
  50. pulumi_oci/dataintegration/workspace_import_request.py +49 -0
  51. pulumi_oci/ospgateway/_inputs.py +16 -0
  52. pulumi_oci/ospgateway/outputs.py +94 -19
  53. {pulumi_oci-1.21.0a1706749393.dist-info → pulumi_oci-1.22.0a1706814317.dist-info}/METADATA +2 -1
  54. {pulumi_oci-1.21.0a1706749393.dist-info → pulumi_oci-1.22.0a1706814317.dist-info}/RECORD +56 -50
  55. {pulumi_oci-1.21.0a1706749393.dist-info → pulumi_oci-1.22.0a1706814317.dist-info}/WHEEL +0 -0
  56. {pulumi_oci-1.21.0a1706749393.dist-info → pulumi_oci-1.22.0a1706814317.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,635 @@
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__ = ['NamedCredentialArgs', 'NamedCredential']
15
+
16
+ @pulumi.input_type
17
+ class NamedCredentialArgs:
18
+ def __init__(__self__, *,
19
+ compartment_id: pulumi.Input[str],
20
+ content: pulumi.Input['NamedCredentialContentArgs'],
21
+ scope: pulumi.Input[str],
22
+ type: pulumi.Input[str],
23
+ associated_resource: Optional[pulumi.Input[str]] = None,
24
+ description: Optional[pulumi.Input[str]] = None,
25
+ name: Optional[pulumi.Input[str]] = None):
26
+ """
27
+ The set of arguments for constructing a NamedCredential resource.
28
+ :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the named credential resides.
29
+ :param pulumi.Input['NamedCredentialContentArgs'] content: (Updatable) The details of the named credential.
30
+ :param pulumi.Input[str] scope: (Updatable) The scope of the named credential.
31
+ :param pulumi.Input[str] type: The type of resource associated with the named credential.
32
+
33
+
34
+ ** IMPORTANT **
35
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
36
+ :param pulumi.Input[str] associated_resource: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource that is associated to the named credential.
37
+ :param pulumi.Input[str] description: (Updatable) The information specified by the user about the named credential.
38
+ :param pulumi.Input[str] name: The name of the named credential. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the named credential cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
39
+ """
40
+ pulumi.set(__self__, "compartment_id", compartment_id)
41
+ pulumi.set(__self__, "content", content)
42
+ pulumi.set(__self__, "scope", scope)
43
+ pulumi.set(__self__, "type", type)
44
+ if associated_resource is not None:
45
+ pulumi.set(__self__, "associated_resource", associated_resource)
46
+ if description is not None:
47
+ pulumi.set(__self__, "description", description)
48
+ if name is not None:
49
+ pulumi.set(__self__, "name", name)
50
+
51
+ @property
52
+ @pulumi.getter(name="compartmentId")
53
+ def compartment_id(self) -> pulumi.Input[str]:
54
+ """
55
+ (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the named credential resides.
56
+ """
57
+ return pulumi.get(self, "compartment_id")
58
+
59
+ @compartment_id.setter
60
+ def compartment_id(self, value: pulumi.Input[str]):
61
+ pulumi.set(self, "compartment_id", value)
62
+
63
+ @property
64
+ @pulumi.getter
65
+ def content(self) -> pulumi.Input['NamedCredentialContentArgs']:
66
+ """
67
+ (Updatable) The details of the named credential.
68
+ """
69
+ return pulumi.get(self, "content")
70
+
71
+ @content.setter
72
+ def content(self, value: pulumi.Input['NamedCredentialContentArgs']):
73
+ pulumi.set(self, "content", value)
74
+
75
+ @property
76
+ @pulumi.getter
77
+ def scope(self) -> pulumi.Input[str]:
78
+ """
79
+ (Updatable) The scope of the named credential.
80
+ """
81
+ return pulumi.get(self, "scope")
82
+
83
+ @scope.setter
84
+ def scope(self, value: pulumi.Input[str]):
85
+ pulumi.set(self, "scope", value)
86
+
87
+ @property
88
+ @pulumi.getter
89
+ def type(self) -> pulumi.Input[str]:
90
+ """
91
+ The type of resource associated with the named credential.
92
+
93
+
94
+ ** IMPORTANT **
95
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
96
+ """
97
+ return pulumi.get(self, "type")
98
+
99
+ @type.setter
100
+ def type(self, value: pulumi.Input[str]):
101
+ pulumi.set(self, "type", value)
102
+
103
+ @property
104
+ @pulumi.getter(name="associatedResource")
105
+ def associated_resource(self) -> Optional[pulumi.Input[str]]:
106
+ """
107
+ (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource that is associated to the named credential.
108
+ """
109
+ return pulumi.get(self, "associated_resource")
110
+
111
+ @associated_resource.setter
112
+ def associated_resource(self, value: Optional[pulumi.Input[str]]):
113
+ pulumi.set(self, "associated_resource", value)
114
+
115
+ @property
116
+ @pulumi.getter
117
+ def description(self) -> Optional[pulumi.Input[str]]:
118
+ """
119
+ (Updatable) The information specified by the user about the named credential.
120
+ """
121
+ return pulumi.get(self, "description")
122
+
123
+ @description.setter
124
+ def description(self, value: Optional[pulumi.Input[str]]):
125
+ pulumi.set(self, "description", value)
126
+
127
+ @property
128
+ @pulumi.getter
129
+ def name(self) -> Optional[pulumi.Input[str]]:
130
+ """
131
+ The name of the named credential. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the named credential cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
132
+ """
133
+ return pulumi.get(self, "name")
134
+
135
+ @name.setter
136
+ def name(self, value: Optional[pulumi.Input[str]]):
137
+ pulumi.set(self, "name", value)
138
+
139
+
140
+ @pulumi.input_type
141
+ class _NamedCredentialState:
142
+ def __init__(__self__, *,
143
+ associated_resource: Optional[pulumi.Input[str]] = None,
144
+ compartment_id: Optional[pulumi.Input[str]] = None,
145
+ content: Optional[pulumi.Input['NamedCredentialContentArgs']] = None,
146
+ description: Optional[pulumi.Input[str]] = None,
147
+ lifecycle_details: Optional[pulumi.Input[str]] = None,
148
+ name: Optional[pulumi.Input[str]] = None,
149
+ scope: Optional[pulumi.Input[str]] = None,
150
+ state: Optional[pulumi.Input[str]] = None,
151
+ time_created: Optional[pulumi.Input[str]] = None,
152
+ time_updated: Optional[pulumi.Input[str]] = None,
153
+ type: Optional[pulumi.Input[str]] = None):
154
+ """
155
+ Input properties used for looking up and filtering NamedCredential resources.
156
+ :param pulumi.Input[str] associated_resource: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource that is associated to the named credential.
157
+ :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the named credential resides.
158
+ :param pulumi.Input['NamedCredentialContentArgs'] content: (Updatable) The details of the named credential.
159
+ :param pulumi.Input[str] description: (Updatable) The information specified by the user about the named credential.
160
+ :param pulumi.Input[str] lifecycle_details: The details of the lifecycle state.
161
+ :param pulumi.Input[str] name: The name of the named credential. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the named credential cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
162
+ :param pulumi.Input[str] scope: (Updatable) The scope of the named credential.
163
+ :param pulumi.Input[str] state: The current lifecycle state of the named credential.
164
+ :param pulumi.Input[str] time_created: The date and time the named credential was created.
165
+ :param pulumi.Input[str] time_updated: The date and time the named credential was last updated.
166
+ :param pulumi.Input[str] type: The type of resource associated with the named credential.
167
+
168
+
169
+ ** IMPORTANT **
170
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
171
+ """
172
+ if associated_resource is not None:
173
+ pulumi.set(__self__, "associated_resource", associated_resource)
174
+ if compartment_id is not None:
175
+ pulumi.set(__self__, "compartment_id", compartment_id)
176
+ if content is not None:
177
+ pulumi.set(__self__, "content", content)
178
+ if description is not None:
179
+ pulumi.set(__self__, "description", description)
180
+ if lifecycle_details is not None:
181
+ pulumi.set(__self__, "lifecycle_details", lifecycle_details)
182
+ if name is not None:
183
+ pulumi.set(__self__, "name", name)
184
+ if scope is not None:
185
+ pulumi.set(__self__, "scope", scope)
186
+ if state is not None:
187
+ pulumi.set(__self__, "state", state)
188
+ if time_created is not None:
189
+ pulumi.set(__self__, "time_created", time_created)
190
+ if time_updated is not None:
191
+ pulumi.set(__self__, "time_updated", time_updated)
192
+ if type is not None:
193
+ pulumi.set(__self__, "type", type)
194
+
195
+ @property
196
+ @pulumi.getter(name="associatedResource")
197
+ def associated_resource(self) -> Optional[pulumi.Input[str]]:
198
+ """
199
+ (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource that is associated to the named credential.
200
+ """
201
+ return pulumi.get(self, "associated_resource")
202
+
203
+ @associated_resource.setter
204
+ def associated_resource(self, value: Optional[pulumi.Input[str]]):
205
+ pulumi.set(self, "associated_resource", value)
206
+
207
+ @property
208
+ @pulumi.getter(name="compartmentId")
209
+ def compartment_id(self) -> Optional[pulumi.Input[str]]:
210
+ """
211
+ (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the named credential resides.
212
+ """
213
+ return pulumi.get(self, "compartment_id")
214
+
215
+ @compartment_id.setter
216
+ def compartment_id(self, value: Optional[pulumi.Input[str]]):
217
+ pulumi.set(self, "compartment_id", value)
218
+
219
+ @property
220
+ @pulumi.getter
221
+ def content(self) -> Optional[pulumi.Input['NamedCredentialContentArgs']]:
222
+ """
223
+ (Updatable) The details of the named credential.
224
+ """
225
+ return pulumi.get(self, "content")
226
+
227
+ @content.setter
228
+ def content(self, value: Optional[pulumi.Input['NamedCredentialContentArgs']]):
229
+ pulumi.set(self, "content", value)
230
+
231
+ @property
232
+ @pulumi.getter
233
+ def description(self) -> Optional[pulumi.Input[str]]:
234
+ """
235
+ (Updatable) The information specified by the user about the named credential.
236
+ """
237
+ return pulumi.get(self, "description")
238
+
239
+ @description.setter
240
+ def description(self, value: Optional[pulumi.Input[str]]):
241
+ pulumi.set(self, "description", value)
242
+
243
+ @property
244
+ @pulumi.getter(name="lifecycleDetails")
245
+ def lifecycle_details(self) -> Optional[pulumi.Input[str]]:
246
+ """
247
+ The details of the lifecycle state.
248
+ """
249
+ return pulumi.get(self, "lifecycle_details")
250
+
251
+ @lifecycle_details.setter
252
+ def lifecycle_details(self, value: Optional[pulumi.Input[str]]):
253
+ pulumi.set(self, "lifecycle_details", value)
254
+
255
+ @property
256
+ @pulumi.getter
257
+ def name(self) -> Optional[pulumi.Input[str]]:
258
+ """
259
+ The name of the named credential. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the named credential cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
260
+ """
261
+ return pulumi.get(self, "name")
262
+
263
+ @name.setter
264
+ def name(self, value: Optional[pulumi.Input[str]]):
265
+ pulumi.set(self, "name", value)
266
+
267
+ @property
268
+ @pulumi.getter
269
+ def scope(self) -> Optional[pulumi.Input[str]]:
270
+ """
271
+ (Updatable) The scope of the named credential.
272
+ """
273
+ return pulumi.get(self, "scope")
274
+
275
+ @scope.setter
276
+ def scope(self, value: Optional[pulumi.Input[str]]):
277
+ pulumi.set(self, "scope", value)
278
+
279
+ @property
280
+ @pulumi.getter
281
+ def state(self) -> Optional[pulumi.Input[str]]:
282
+ """
283
+ The current lifecycle state of the named credential.
284
+ """
285
+ return pulumi.get(self, "state")
286
+
287
+ @state.setter
288
+ def state(self, value: Optional[pulumi.Input[str]]):
289
+ pulumi.set(self, "state", value)
290
+
291
+ @property
292
+ @pulumi.getter(name="timeCreated")
293
+ def time_created(self) -> Optional[pulumi.Input[str]]:
294
+ """
295
+ The date and time the named credential was created.
296
+ """
297
+ return pulumi.get(self, "time_created")
298
+
299
+ @time_created.setter
300
+ def time_created(self, value: Optional[pulumi.Input[str]]):
301
+ pulumi.set(self, "time_created", value)
302
+
303
+ @property
304
+ @pulumi.getter(name="timeUpdated")
305
+ def time_updated(self) -> Optional[pulumi.Input[str]]:
306
+ """
307
+ The date and time the named credential was last updated.
308
+ """
309
+ return pulumi.get(self, "time_updated")
310
+
311
+ @time_updated.setter
312
+ def time_updated(self, value: Optional[pulumi.Input[str]]):
313
+ pulumi.set(self, "time_updated", value)
314
+
315
+ @property
316
+ @pulumi.getter
317
+ def type(self) -> Optional[pulumi.Input[str]]:
318
+ """
319
+ The type of resource associated with the named credential.
320
+
321
+
322
+ ** IMPORTANT **
323
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
324
+ """
325
+ return pulumi.get(self, "type")
326
+
327
+ @type.setter
328
+ def type(self, value: Optional[pulumi.Input[str]]):
329
+ pulumi.set(self, "type", value)
330
+
331
+
332
+ class NamedCredential(pulumi.CustomResource):
333
+ @overload
334
+ def __init__(__self__,
335
+ resource_name: str,
336
+ opts: Optional[pulumi.ResourceOptions] = None,
337
+ associated_resource: Optional[pulumi.Input[str]] = None,
338
+ compartment_id: Optional[pulumi.Input[str]] = None,
339
+ content: Optional[pulumi.Input[pulumi.InputType['NamedCredentialContentArgs']]] = None,
340
+ description: Optional[pulumi.Input[str]] = None,
341
+ name: Optional[pulumi.Input[str]] = None,
342
+ scope: Optional[pulumi.Input[str]] = None,
343
+ type: Optional[pulumi.Input[str]] = None,
344
+ __props__=None):
345
+ """
346
+ This resource provides the Named Credential resource in Oracle Cloud Infrastructure Database Management service.
347
+
348
+ Creates a named credential.
349
+
350
+ ## Example Usage
351
+
352
+ ```python
353
+ import pulumi
354
+ import pulumi_oci as oci
355
+
356
+ test_named_credential = oci.database_management.NamedCredential("testNamedCredential",
357
+ compartment_id=var["compartment_id"],
358
+ content=oci.database_management.NamedCredentialContentArgs(
359
+ credential_type=var["named_credential_content_credential_type"],
360
+ password_secret_access_mode=var["named_credential_content_password_secret_access_mode"],
361
+ password_secret_id=oci_vault_secret["test_secret"]["id"],
362
+ role=var["named_credential_content_role"],
363
+ user_name=oci_identity_user["test_user"]["name"],
364
+ ),
365
+ scope=var["named_credential_scope"],
366
+ type=var["named_credential_type"],
367
+ associated_resource=var["named_credential_associated_resource"],
368
+ description=var["named_credential_description"])
369
+ ```
370
+
371
+ ## Import
372
+
373
+ NamedCredentials can be imported using the `id`, e.g.
374
+
375
+ ```sh
376
+ $ pulumi import oci:DatabaseManagement/namedCredential:NamedCredential test_named_credential "id"
377
+ ```
378
+
379
+ :param str resource_name: The name of the resource.
380
+ :param pulumi.ResourceOptions opts: Options for the resource.
381
+ :param pulumi.Input[str] associated_resource: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource that is associated to the named credential.
382
+ :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the named credential resides.
383
+ :param pulumi.Input[pulumi.InputType['NamedCredentialContentArgs']] content: (Updatable) The details of the named credential.
384
+ :param pulumi.Input[str] description: (Updatable) The information specified by the user about the named credential.
385
+ :param pulumi.Input[str] name: The name of the named credential. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the named credential cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
386
+ :param pulumi.Input[str] scope: (Updatable) The scope of the named credential.
387
+ :param pulumi.Input[str] type: The type of resource associated with the named credential.
388
+
389
+
390
+ ** IMPORTANT **
391
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
392
+ """
393
+ ...
394
+ @overload
395
+ def __init__(__self__,
396
+ resource_name: str,
397
+ args: NamedCredentialArgs,
398
+ opts: Optional[pulumi.ResourceOptions] = None):
399
+ """
400
+ This resource provides the Named Credential resource in Oracle Cloud Infrastructure Database Management service.
401
+
402
+ Creates a named credential.
403
+
404
+ ## Example Usage
405
+
406
+ ```python
407
+ import pulumi
408
+ import pulumi_oci as oci
409
+
410
+ test_named_credential = oci.database_management.NamedCredential("testNamedCredential",
411
+ compartment_id=var["compartment_id"],
412
+ content=oci.database_management.NamedCredentialContentArgs(
413
+ credential_type=var["named_credential_content_credential_type"],
414
+ password_secret_access_mode=var["named_credential_content_password_secret_access_mode"],
415
+ password_secret_id=oci_vault_secret["test_secret"]["id"],
416
+ role=var["named_credential_content_role"],
417
+ user_name=oci_identity_user["test_user"]["name"],
418
+ ),
419
+ scope=var["named_credential_scope"],
420
+ type=var["named_credential_type"],
421
+ associated_resource=var["named_credential_associated_resource"],
422
+ description=var["named_credential_description"])
423
+ ```
424
+
425
+ ## Import
426
+
427
+ NamedCredentials can be imported using the `id`, e.g.
428
+
429
+ ```sh
430
+ $ pulumi import oci:DatabaseManagement/namedCredential:NamedCredential test_named_credential "id"
431
+ ```
432
+
433
+ :param str resource_name: The name of the resource.
434
+ :param NamedCredentialArgs args: The arguments to use to populate this resource's properties.
435
+ :param pulumi.ResourceOptions opts: Options for the resource.
436
+ """
437
+ ...
438
+ def __init__(__self__, resource_name: str, *args, **kwargs):
439
+ resource_args, opts = _utilities.get_resource_args_opts(NamedCredentialArgs, pulumi.ResourceOptions, *args, **kwargs)
440
+ if resource_args is not None:
441
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
442
+ else:
443
+ __self__._internal_init(resource_name, *args, **kwargs)
444
+
445
+ def _internal_init(__self__,
446
+ resource_name: str,
447
+ opts: Optional[pulumi.ResourceOptions] = None,
448
+ associated_resource: Optional[pulumi.Input[str]] = None,
449
+ compartment_id: Optional[pulumi.Input[str]] = None,
450
+ content: Optional[pulumi.Input[pulumi.InputType['NamedCredentialContentArgs']]] = None,
451
+ description: Optional[pulumi.Input[str]] = None,
452
+ name: Optional[pulumi.Input[str]] = None,
453
+ scope: Optional[pulumi.Input[str]] = None,
454
+ type: Optional[pulumi.Input[str]] = None,
455
+ __props__=None):
456
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
457
+ if not isinstance(opts, pulumi.ResourceOptions):
458
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
459
+ if opts.id is None:
460
+ if __props__ is not None:
461
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
462
+ __props__ = NamedCredentialArgs.__new__(NamedCredentialArgs)
463
+
464
+ __props__.__dict__["associated_resource"] = associated_resource
465
+ if compartment_id is None and not opts.urn:
466
+ raise TypeError("Missing required property 'compartment_id'")
467
+ __props__.__dict__["compartment_id"] = compartment_id
468
+ if content is None and not opts.urn:
469
+ raise TypeError("Missing required property 'content'")
470
+ __props__.__dict__["content"] = content
471
+ __props__.__dict__["description"] = description
472
+ __props__.__dict__["name"] = name
473
+ if scope is None and not opts.urn:
474
+ raise TypeError("Missing required property 'scope'")
475
+ __props__.__dict__["scope"] = scope
476
+ if type is None and not opts.urn:
477
+ raise TypeError("Missing required property 'type'")
478
+ __props__.__dict__["type"] = type
479
+ __props__.__dict__["lifecycle_details"] = None
480
+ __props__.__dict__["state"] = None
481
+ __props__.__dict__["time_created"] = None
482
+ __props__.__dict__["time_updated"] = None
483
+ super(NamedCredential, __self__).__init__(
484
+ 'oci:DatabaseManagement/namedCredential:NamedCredential',
485
+ resource_name,
486
+ __props__,
487
+ opts)
488
+
489
+ @staticmethod
490
+ def get(resource_name: str,
491
+ id: pulumi.Input[str],
492
+ opts: Optional[pulumi.ResourceOptions] = None,
493
+ associated_resource: Optional[pulumi.Input[str]] = None,
494
+ compartment_id: Optional[pulumi.Input[str]] = None,
495
+ content: Optional[pulumi.Input[pulumi.InputType['NamedCredentialContentArgs']]] = None,
496
+ description: Optional[pulumi.Input[str]] = None,
497
+ lifecycle_details: Optional[pulumi.Input[str]] = None,
498
+ name: Optional[pulumi.Input[str]] = None,
499
+ scope: Optional[pulumi.Input[str]] = None,
500
+ state: Optional[pulumi.Input[str]] = None,
501
+ time_created: Optional[pulumi.Input[str]] = None,
502
+ time_updated: Optional[pulumi.Input[str]] = None,
503
+ type: Optional[pulumi.Input[str]] = None) -> 'NamedCredential':
504
+ """
505
+ Get an existing NamedCredential resource's state with the given name, id, and optional extra
506
+ properties used to qualify the lookup.
507
+
508
+ :param str resource_name: The unique name of the resulting resource.
509
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
510
+ :param pulumi.ResourceOptions opts: Options for the resource.
511
+ :param pulumi.Input[str] associated_resource: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource that is associated to the named credential.
512
+ :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the named credential resides.
513
+ :param pulumi.Input[pulumi.InputType['NamedCredentialContentArgs']] content: (Updatable) The details of the named credential.
514
+ :param pulumi.Input[str] description: (Updatable) The information specified by the user about the named credential.
515
+ :param pulumi.Input[str] lifecycle_details: The details of the lifecycle state.
516
+ :param pulumi.Input[str] name: The name of the named credential. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the named credential cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
517
+ :param pulumi.Input[str] scope: (Updatable) The scope of the named credential.
518
+ :param pulumi.Input[str] state: The current lifecycle state of the named credential.
519
+ :param pulumi.Input[str] time_created: The date and time the named credential was created.
520
+ :param pulumi.Input[str] time_updated: The date and time the named credential was last updated.
521
+ :param pulumi.Input[str] type: The type of resource associated with the named credential.
522
+
523
+
524
+ ** IMPORTANT **
525
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
526
+ """
527
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
528
+
529
+ __props__ = _NamedCredentialState.__new__(_NamedCredentialState)
530
+
531
+ __props__.__dict__["associated_resource"] = associated_resource
532
+ __props__.__dict__["compartment_id"] = compartment_id
533
+ __props__.__dict__["content"] = content
534
+ __props__.__dict__["description"] = description
535
+ __props__.__dict__["lifecycle_details"] = lifecycle_details
536
+ __props__.__dict__["name"] = name
537
+ __props__.__dict__["scope"] = scope
538
+ __props__.__dict__["state"] = state
539
+ __props__.__dict__["time_created"] = time_created
540
+ __props__.__dict__["time_updated"] = time_updated
541
+ __props__.__dict__["type"] = type
542
+ return NamedCredential(resource_name, opts=opts, __props__=__props__)
543
+
544
+ @property
545
+ @pulumi.getter(name="associatedResource")
546
+ def associated_resource(self) -> pulumi.Output[str]:
547
+ """
548
+ (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource that is associated to the named credential.
549
+ """
550
+ return pulumi.get(self, "associated_resource")
551
+
552
+ @property
553
+ @pulumi.getter(name="compartmentId")
554
+ def compartment_id(self) -> pulumi.Output[str]:
555
+ """
556
+ (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the named credential resides.
557
+ """
558
+ return pulumi.get(self, "compartment_id")
559
+
560
+ @property
561
+ @pulumi.getter
562
+ def content(self) -> pulumi.Output['outputs.NamedCredentialContent']:
563
+ """
564
+ (Updatable) The details of the named credential.
565
+ """
566
+ return pulumi.get(self, "content")
567
+
568
+ @property
569
+ @pulumi.getter
570
+ def description(self) -> pulumi.Output[str]:
571
+ """
572
+ (Updatable) The information specified by the user about the named credential.
573
+ """
574
+ return pulumi.get(self, "description")
575
+
576
+ @property
577
+ @pulumi.getter(name="lifecycleDetails")
578
+ def lifecycle_details(self) -> pulumi.Output[str]:
579
+ """
580
+ The details of the lifecycle state.
581
+ """
582
+ return pulumi.get(self, "lifecycle_details")
583
+
584
+ @property
585
+ @pulumi.getter
586
+ def name(self) -> pulumi.Output[str]:
587
+ """
588
+ The name of the named credential. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the named credential cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
589
+ """
590
+ return pulumi.get(self, "name")
591
+
592
+ @property
593
+ @pulumi.getter
594
+ def scope(self) -> pulumi.Output[str]:
595
+ """
596
+ (Updatable) The scope of the named credential.
597
+ """
598
+ return pulumi.get(self, "scope")
599
+
600
+ @property
601
+ @pulumi.getter
602
+ def state(self) -> pulumi.Output[str]:
603
+ """
604
+ The current lifecycle state of the named credential.
605
+ """
606
+ return pulumi.get(self, "state")
607
+
608
+ @property
609
+ @pulumi.getter(name="timeCreated")
610
+ def time_created(self) -> pulumi.Output[str]:
611
+ """
612
+ The date and time the named credential was created.
613
+ """
614
+ return pulumi.get(self, "time_created")
615
+
616
+ @property
617
+ @pulumi.getter(name="timeUpdated")
618
+ def time_updated(self) -> pulumi.Output[str]:
619
+ """
620
+ The date and time the named credential was last updated.
621
+ """
622
+ return pulumi.get(self, "time_updated")
623
+
624
+ @property
625
+ @pulumi.getter
626
+ def type(self) -> pulumi.Output[str]:
627
+ """
628
+ The type of resource associated with the named credential.
629
+
630
+
631
+ ** IMPORTANT **
632
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
633
+ """
634
+ return pulumi.get(self, "type")
635
+