pulumi-oci 1.31.0a1712742264__py3-none-any.whl → 1.32.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. pulumi_oci/__init__.py +16 -0
  2. pulumi_oci/database/__init__.py +3 -0
  3. pulumi_oci/database/_inputs.py +192 -0
  4. pulumi_oci/database/autonomous_container_database.py +83 -8
  5. pulumi_oci/database/autonomous_database_software_image.py +638 -0
  6. pulumi_oci/database/autonomous_vm_cluster.py +12 -4
  7. pulumi_oci/database/get_autonomous_container_database.py +26 -5
  8. pulumi_oci/database/get_autonomous_container_database_resource_usage.py +3 -3
  9. pulumi_oci/database/get_autonomous_database_software_image.py +262 -0
  10. pulumi_oci/database/get_autonomous_database_software_images.py +200 -0
  11. pulumi_oci/database/get_autonomous_vm_cluster.py +3 -1
  12. pulumi_oci/database/outputs.py +538 -28
  13. pulumi_oci/datascience/_inputs.py +17 -1
  14. pulumi_oci/datascience/model_deployment.py +2 -0
  15. pulumi_oci/datascience/outputs.py +39 -3
  16. pulumi_oci/meteringcomputation/__init__.py +3 -0
  17. pulumi_oci/meteringcomputation/_inputs.py +110 -0
  18. pulumi_oci/meteringcomputation/get_schedule.py +1 -1
  19. pulumi_oci/meteringcomputation/get_scheduled_run.py +2 -2
  20. pulumi_oci/meteringcomputation/get_usage_statement_email_recipients_group.py +173 -0
  21. pulumi_oci/meteringcomputation/get_usage_statement_email_recipients_groups.py +157 -0
  22. pulumi_oci/meteringcomputation/outputs.py +292 -2
  23. pulumi_oci/meteringcomputation/schedule.py +7 -7
  24. pulumi_oci/meteringcomputation/usage_statement_email_recipients_group.py +392 -0
  25. pulumi_oci/opa/opa_instance.py +41 -22
  26. pulumi_oci/psql/_inputs.py +4 -4
  27. pulumi_oci/psql/db_system.py +7 -7
  28. pulumi_oci/psql/outputs.py +4 -4
  29. pulumi_oci/redis/get_redis_cluster.py +14 -1
  30. pulumi_oci/redis/outputs.py +11 -0
  31. pulumi_oci/redis/redis_cluster.py +52 -3
  32. {pulumi_oci-1.31.0a1712742264.dist-info → pulumi_oci-1.32.0.dist-info}/METADATA +1 -1
  33. {pulumi_oci-1.31.0a1712742264.dist-info → pulumi_oci-1.32.0.dist-info}/RECORD +35 -29
  34. {pulumi_oci-1.31.0a1712742264.dist-info → pulumi_oci-1.32.0.dist-info}/WHEEL +0 -0
  35. {pulumi_oci-1.31.0a1712742264.dist-info → pulumi_oci-1.32.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,638 @@
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
+
12
+ __all__ = ['AutonomousDatabaseSoftwareImageArgs', 'AutonomousDatabaseSoftwareImage']
13
+
14
+ @pulumi.input_type
15
+ class AutonomousDatabaseSoftwareImageArgs:
16
+ def __init__(__self__, *,
17
+ compartment_id: pulumi.Input[str],
18
+ display_name: pulumi.Input[str],
19
+ image_shape_family: pulumi.Input[str],
20
+ source_cdb_id: pulumi.Input[str],
21
+ defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
22
+ freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None):
23
+ """
24
+ The set of arguments for constructing a AutonomousDatabaseSoftwareImage resource.
25
+ :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
26
+ :param pulumi.Input[str] display_name: The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
27
+ :param pulumi.Input[str] image_shape_family: To what shape the image is meant for.
28
+ :param pulumi.Input[str] source_cdb_id: The source Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from which to create Autonomous Database Software Image.
29
+
30
+
31
+ ** IMPORTANT **
32
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
33
+ :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
34
+ :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
35
+ """
36
+ pulumi.set(__self__, "compartment_id", compartment_id)
37
+ pulumi.set(__self__, "display_name", display_name)
38
+ pulumi.set(__self__, "image_shape_family", image_shape_family)
39
+ pulumi.set(__self__, "source_cdb_id", source_cdb_id)
40
+ if defined_tags is not None:
41
+ pulumi.set(__self__, "defined_tags", defined_tags)
42
+ if freeform_tags is not None:
43
+ pulumi.set(__self__, "freeform_tags", freeform_tags)
44
+
45
+ @property
46
+ @pulumi.getter(name="compartmentId")
47
+ def compartment_id(self) -> pulumi.Input[str]:
48
+ """
49
+ (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
50
+ """
51
+ return pulumi.get(self, "compartment_id")
52
+
53
+ @compartment_id.setter
54
+ def compartment_id(self, value: pulumi.Input[str]):
55
+ pulumi.set(self, "compartment_id", value)
56
+
57
+ @property
58
+ @pulumi.getter(name="displayName")
59
+ def display_name(self) -> pulumi.Input[str]:
60
+ """
61
+ The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
62
+ """
63
+ return pulumi.get(self, "display_name")
64
+
65
+ @display_name.setter
66
+ def display_name(self, value: pulumi.Input[str]):
67
+ pulumi.set(self, "display_name", value)
68
+
69
+ @property
70
+ @pulumi.getter(name="imageShapeFamily")
71
+ def image_shape_family(self) -> pulumi.Input[str]:
72
+ """
73
+ To what shape the image is meant for.
74
+ """
75
+ return pulumi.get(self, "image_shape_family")
76
+
77
+ @image_shape_family.setter
78
+ def image_shape_family(self, value: pulumi.Input[str]):
79
+ pulumi.set(self, "image_shape_family", value)
80
+
81
+ @property
82
+ @pulumi.getter(name="sourceCdbId")
83
+ def source_cdb_id(self) -> pulumi.Input[str]:
84
+ """
85
+ The source Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from which to create Autonomous Database Software Image.
86
+
87
+
88
+ ** IMPORTANT **
89
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
90
+ """
91
+ return pulumi.get(self, "source_cdb_id")
92
+
93
+ @source_cdb_id.setter
94
+ def source_cdb_id(self, value: pulumi.Input[str]):
95
+ pulumi.set(self, "source_cdb_id", value)
96
+
97
+ @property
98
+ @pulumi.getter(name="definedTags")
99
+ def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
100
+ """
101
+ (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
102
+ """
103
+ return pulumi.get(self, "defined_tags")
104
+
105
+ @defined_tags.setter
106
+ def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
107
+ pulumi.set(self, "defined_tags", value)
108
+
109
+ @property
110
+ @pulumi.getter(name="freeformTags")
111
+ def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
112
+ """
113
+ (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
114
+ """
115
+ return pulumi.get(self, "freeform_tags")
116
+
117
+ @freeform_tags.setter
118
+ def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
119
+ pulumi.set(self, "freeform_tags", value)
120
+
121
+
122
+ @pulumi.input_type
123
+ class _AutonomousDatabaseSoftwareImageState:
124
+ def __init__(__self__, *,
125
+ autonomous_dsi_one_off_patches: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
126
+ compartment_id: Optional[pulumi.Input[str]] = None,
127
+ database_version: Optional[pulumi.Input[str]] = None,
128
+ defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
129
+ display_name: Optional[pulumi.Input[str]] = None,
130
+ freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
131
+ image_shape_family: Optional[pulumi.Input[str]] = None,
132
+ lifecycle_details: Optional[pulumi.Input[str]] = None,
133
+ release_update: Optional[pulumi.Input[str]] = None,
134
+ source_cdb_id: Optional[pulumi.Input[str]] = None,
135
+ state: Optional[pulumi.Input[str]] = None,
136
+ time_created: Optional[pulumi.Input[str]] = None):
137
+ """
138
+ Input properties used for looking up and filtering AutonomousDatabaseSoftwareImage resources.
139
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] autonomous_dsi_one_off_patches: One-off patches included in the Autonomous Database Software Image
140
+ :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
141
+ :param pulumi.Input[str] database_version: The database version with which the Autonomous Database Software Image is to be built.
142
+ :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
143
+ :param pulumi.Input[str] display_name: The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
144
+ :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
145
+ :param pulumi.Input[str] image_shape_family: To what shape the image is meant for.
146
+ :param pulumi.Input[str] lifecycle_details: Detailed message for the lifecycle state.
147
+ :param pulumi.Input[str] release_update: The Release Updates.
148
+ :param pulumi.Input[str] source_cdb_id: The source Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from which to create Autonomous Database Software Image.
149
+
150
+
151
+ ** IMPORTANT **
152
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
153
+ :param pulumi.Input[str] state: The current state of the Autonomous Database Software Image.
154
+ :param pulumi.Input[str] time_created: The date and time the Autonomous Database Software Image was created.
155
+ """
156
+ if autonomous_dsi_one_off_patches is not None:
157
+ pulumi.set(__self__, "autonomous_dsi_one_off_patches", autonomous_dsi_one_off_patches)
158
+ if compartment_id is not None:
159
+ pulumi.set(__self__, "compartment_id", compartment_id)
160
+ if database_version is not None:
161
+ pulumi.set(__self__, "database_version", database_version)
162
+ if defined_tags is not None:
163
+ pulumi.set(__self__, "defined_tags", defined_tags)
164
+ if display_name is not None:
165
+ pulumi.set(__self__, "display_name", display_name)
166
+ if freeform_tags is not None:
167
+ pulumi.set(__self__, "freeform_tags", freeform_tags)
168
+ if image_shape_family is not None:
169
+ pulumi.set(__self__, "image_shape_family", image_shape_family)
170
+ if lifecycle_details is not None:
171
+ pulumi.set(__self__, "lifecycle_details", lifecycle_details)
172
+ if release_update is not None:
173
+ pulumi.set(__self__, "release_update", release_update)
174
+ if source_cdb_id is not None:
175
+ pulumi.set(__self__, "source_cdb_id", source_cdb_id)
176
+ if state is not None:
177
+ pulumi.set(__self__, "state", state)
178
+ if time_created is not None:
179
+ pulumi.set(__self__, "time_created", time_created)
180
+
181
+ @property
182
+ @pulumi.getter(name="autonomousDsiOneOffPatches")
183
+ def autonomous_dsi_one_off_patches(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
184
+ """
185
+ One-off patches included in the Autonomous Database Software Image
186
+ """
187
+ return pulumi.get(self, "autonomous_dsi_one_off_patches")
188
+
189
+ @autonomous_dsi_one_off_patches.setter
190
+ def autonomous_dsi_one_off_patches(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
191
+ pulumi.set(self, "autonomous_dsi_one_off_patches", value)
192
+
193
+ @property
194
+ @pulumi.getter(name="compartmentId")
195
+ def compartment_id(self) -> Optional[pulumi.Input[str]]:
196
+ """
197
+ (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
198
+ """
199
+ return pulumi.get(self, "compartment_id")
200
+
201
+ @compartment_id.setter
202
+ def compartment_id(self, value: Optional[pulumi.Input[str]]):
203
+ pulumi.set(self, "compartment_id", value)
204
+
205
+ @property
206
+ @pulumi.getter(name="databaseVersion")
207
+ def database_version(self) -> Optional[pulumi.Input[str]]:
208
+ """
209
+ The database version with which the Autonomous Database Software Image is to be built.
210
+ """
211
+ return pulumi.get(self, "database_version")
212
+
213
+ @database_version.setter
214
+ def database_version(self, value: Optional[pulumi.Input[str]]):
215
+ pulumi.set(self, "database_version", value)
216
+
217
+ @property
218
+ @pulumi.getter(name="definedTags")
219
+ def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
220
+ """
221
+ (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
222
+ """
223
+ return pulumi.get(self, "defined_tags")
224
+
225
+ @defined_tags.setter
226
+ def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
227
+ pulumi.set(self, "defined_tags", value)
228
+
229
+ @property
230
+ @pulumi.getter(name="displayName")
231
+ def display_name(self) -> Optional[pulumi.Input[str]]:
232
+ """
233
+ The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
234
+ """
235
+ return pulumi.get(self, "display_name")
236
+
237
+ @display_name.setter
238
+ def display_name(self, value: Optional[pulumi.Input[str]]):
239
+ pulumi.set(self, "display_name", value)
240
+
241
+ @property
242
+ @pulumi.getter(name="freeformTags")
243
+ def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
244
+ """
245
+ (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
246
+ """
247
+ return pulumi.get(self, "freeform_tags")
248
+
249
+ @freeform_tags.setter
250
+ def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
251
+ pulumi.set(self, "freeform_tags", value)
252
+
253
+ @property
254
+ @pulumi.getter(name="imageShapeFamily")
255
+ def image_shape_family(self) -> Optional[pulumi.Input[str]]:
256
+ """
257
+ To what shape the image is meant for.
258
+ """
259
+ return pulumi.get(self, "image_shape_family")
260
+
261
+ @image_shape_family.setter
262
+ def image_shape_family(self, value: Optional[pulumi.Input[str]]):
263
+ pulumi.set(self, "image_shape_family", value)
264
+
265
+ @property
266
+ @pulumi.getter(name="lifecycleDetails")
267
+ def lifecycle_details(self) -> Optional[pulumi.Input[str]]:
268
+ """
269
+ Detailed message for the lifecycle state.
270
+ """
271
+ return pulumi.get(self, "lifecycle_details")
272
+
273
+ @lifecycle_details.setter
274
+ def lifecycle_details(self, value: Optional[pulumi.Input[str]]):
275
+ pulumi.set(self, "lifecycle_details", value)
276
+
277
+ @property
278
+ @pulumi.getter(name="releaseUpdate")
279
+ def release_update(self) -> Optional[pulumi.Input[str]]:
280
+ """
281
+ The Release Updates.
282
+ """
283
+ return pulumi.get(self, "release_update")
284
+
285
+ @release_update.setter
286
+ def release_update(self, value: Optional[pulumi.Input[str]]):
287
+ pulumi.set(self, "release_update", value)
288
+
289
+ @property
290
+ @pulumi.getter(name="sourceCdbId")
291
+ def source_cdb_id(self) -> Optional[pulumi.Input[str]]:
292
+ """
293
+ The source Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from which to create Autonomous Database Software Image.
294
+
295
+
296
+ ** IMPORTANT **
297
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
298
+ """
299
+ return pulumi.get(self, "source_cdb_id")
300
+
301
+ @source_cdb_id.setter
302
+ def source_cdb_id(self, value: Optional[pulumi.Input[str]]):
303
+ pulumi.set(self, "source_cdb_id", value)
304
+
305
+ @property
306
+ @pulumi.getter
307
+ def state(self) -> Optional[pulumi.Input[str]]:
308
+ """
309
+ The current state of the Autonomous Database Software Image.
310
+ """
311
+ return pulumi.get(self, "state")
312
+
313
+ @state.setter
314
+ def state(self, value: Optional[pulumi.Input[str]]):
315
+ pulumi.set(self, "state", value)
316
+
317
+ @property
318
+ @pulumi.getter(name="timeCreated")
319
+ def time_created(self) -> Optional[pulumi.Input[str]]:
320
+ """
321
+ The date and time the Autonomous Database Software Image was created.
322
+ """
323
+ return pulumi.get(self, "time_created")
324
+
325
+ @time_created.setter
326
+ def time_created(self, value: Optional[pulumi.Input[str]]):
327
+ pulumi.set(self, "time_created", value)
328
+
329
+
330
+ class AutonomousDatabaseSoftwareImage(pulumi.CustomResource):
331
+ @overload
332
+ def __init__(__self__,
333
+ resource_name: str,
334
+ opts: Optional[pulumi.ResourceOptions] = None,
335
+ compartment_id: Optional[pulumi.Input[str]] = None,
336
+ defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
337
+ display_name: Optional[pulumi.Input[str]] = None,
338
+ freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
339
+ image_shape_family: Optional[pulumi.Input[str]] = None,
340
+ source_cdb_id: Optional[pulumi.Input[str]] = None,
341
+ __props__=None):
342
+ """
343
+ This resource provides the Autonomous Database Software Image resource in Oracle Cloud Infrastructure Database service.
344
+
345
+ create Autonomous Database Software Image in the specified compartment.
346
+
347
+ ## Example Usage
348
+
349
+ <!--Start PulumiCodeChooser -->
350
+ ```python
351
+ import pulumi
352
+ import pulumi_oci as oci
353
+
354
+ test_autonomous_database_software_image = oci.database.AutonomousDatabaseSoftwareImage("testAutonomousDatabaseSoftwareImage",
355
+ compartment_id=var["compartment_id"],
356
+ display_name=var["autonomous_database_software_image_display_name"],
357
+ image_shape_family=var["autonomous_database_software_image_image_shape_family"],
358
+ source_cdb_id=oci_database_source_cdb["test_source_cdb"]["id"],
359
+ defined_tags=var["autonomous_database_software_image_defined_tags"],
360
+ freeform_tags={
361
+ "Department": "Finance",
362
+ })
363
+ ```
364
+ <!--End PulumiCodeChooser -->
365
+
366
+ ## Import
367
+
368
+ AutonomousDatabaseSoftwareImages can be imported using the `id`, e.g.
369
+
370
+ ```sh
371
+ $ pulumi import oci:Database/autonomousDatabaseSoftwareImage:AutonomousDatabaseSoftwareImage test_autonomous_database_software_image "id"
372
+ ```
373
+
374
+ :param str resource_name: The name of the resource.
375
+ :param pulumi.ResourceOptions opts: Options for the resource.
376
+ :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
377
+ :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
378
+ :param pulumi.Input[str] display_name: The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
379
+ :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
380
+ :param pulumi.Input[str] image_shape_family: To what shape the image is meant for.
381
+ :param pulumi.Input[str] source_cdb_id: The source Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from which to create Autonomous Database Software Image.
382
+
383
+
384
+ ** IMPORTANT **
385
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
386
+ """
387
+ ...
388
+ @overload
389
+ def __init__(__self__,
390
+ resource_name: str,
391
+ args: AutonomousDatabaseSoftwareImageArgs,
392
+ opts: Optional[pulumi.ResourceOptions] = None):
393
+ """
394
+ This resource provides the Autonomous Database Software Image resource in Oracle Cloud Infrastructure Database service.
395
+
396
+ create Autonomous Database Software Image in the specified compartment.
397
+
398
+ ## Example Usage
399
+
400
+ <!--Start PulumiCodeChooser -->
401
+ ```python
402
+ import pulumi
403
+ import pulumi_oci as oci
404
+
405
+ test_autonomous_database_software_image = oci.database.AutonomousDatabaseSoftwareImage("testAutonomousDatabaseSoftwareImage",
406
+ compartment_id=var["compartment_id"],
407
+ display_name=var["autonomous_database_software_image_display_name"],
408
+ image_shape_family=var["autonomous_database_software_image_image_shape_family"],
409
+ source_cdb_id=oci_database_source_cdb["test_source_cdb"]["id"],
410
+ defined_tags=var["autonomous_database_software_image_defined_tags"],
411
+ freeform_tags={
412
+ "Department": "Finance",
413
+ })
414
+ ```
415
+ <!--End PulumiCodeChooser -->
416
+
417
+ ## Import
418
+
419
+ AutonomousDatabaseSoftwareImages can be imported using the `id`, e.g.
420
+
421
+ ```sh
422
+ $ pulumi import oci:Database/autonomousDatabaseSoftwareImage:AutonomousDatabaseSoftwareImage test_autonomous_database_software_image "id"
423
+ ```
424
+
425
+ :param str resource_name: The name of the resource.
426
+ :param AutonomousDatabaseSoftwareImageArgs args: The arguments to use to populate this resource's properties.
427
+ :param pulumi.ResourceOptions opts: Options for the resource.
428
+ """
429
+ ...
430
+ def __init__(__self__, resource_name: str, *args, **kwargs):
431
+ resource_args, opts = _utilities.get_resource_args_opts(AutonomousDatabaseSoftwareImageArgs, pulumi.ResourceOptions, *args, **kwargs)
432
+ if resource_args is not None:
433
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
434
+ else:
435
+ __self__._internal_init(resource_name, *args, **kwargs)
436
+
437
+ def _internal_init(__self__,
438
+ resource_name: str,
439
+ opts: Optional[pulumi.ResourceOptions] = None,
440
+ compartment_id: Optional[pulumi.Input[str]] = None,
441
+ defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
442
+ display_name: Optional[pulumi.Input[str]] = None,
443
+ freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
444
+ image_shape_family: Optional[pulumi.Input[str]] = None,
445
+ source_cdb_id: Optional[pulumi.Input[str]] = None,
446
+ __props__=None):
447
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
448
+ if not isinstance(opts, pulumi.ResourceOptions):
449
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
450
+ if opts.id is None:
451
+ if __props__ is not None:
452
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
453
+ __props__ = AutonomousDatabaseSoftwareImageArgs.__new__(AutonomousDatabaseSoftwareImageArgs)
454
+
455
+ if compartment_id is None and not opts.urn:
456
+ raise TypeError("Missing required property 'compartment_id'")
457
+ __props__.__dict__["compartment_id"] = compartment_id
458
+ __props__.__dict__["defined_tags"] = defined_tags
459
+ if display_name is None and not opts.urn:
460
+ raise TypeError("Missing required property 'display_name'")
461
+ __props__.__dict__["display_name"] = display_name
462
+ __props__.__dict__["freeform_tags"] = freeform_tags
463
+ if image_shape_family is None and not opts.urn:
464
+ raise TypeError("Missing required property 'image_shape_family'")
465
+ __props__.__dict__["image_shape_family"] = image_shape_family
466
+ if source_cdb_id is None and not opts.urn:
467
+ raise TypeError("Missing required property 'source_cdb_id'")
468
+ __props__.__dict__["source_cdb_id"] = source_cdb_id
469
+ __props__.__dict__["autonomous_dsi_one_off_patches"] = None
470
+ __props__.__dict__["database_version"] = None
471
+ __props__.__dict__["lifecycle_details"] = None
472
+ __props__.__dict__["release_update"] = None
473
+ __props__.__dict__["state"] = None
474
+ __props__.__dict__["time_created"] = None
475
+ super(AutonomousDatabaseSoftwareImage, __self__).__init__(
476
+ 'oci:Database/autonomousDatabaseSoftwareImage:AutonomousDatabaseSoftwareImage',
477
+ resource_name,
478
+ __props__,
479
+ opts)
480
+
481
+ @staticmethod
482
+ def get(resource_name: str,
483
+ id: pulumi.Input[str],
484
+ opts: Optional[pulumi.ResourceOptions] = None,
485
+ autonomous_dsi_one_off_patches: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
486
+ compartment_id: Optional[pulumi.Input[str]] = None,
487
+ database_version: Optional[pulumi.Input[str]] = None,
488
+ defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
489
+ display_name: Optional[pulumi.Input[str]] = None,
490
+ freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
491
+ image_shape_family: Optional[pulumi.Input[str]] = None,
492
+ lifecycle_details: Optional[pulumi.Input[str]] = None,
493
+ release_update: Optional[pulumi.Input[str]] = None,
494
+ source_cdb_id: Optional[pulumi.Input[str]] = None,
495
+ state: Optional[pulumi.Input[str]] = None,
496
+ time_created: Optional[pulumi.Input[str]] = None) -> 'AutonomousDatabaseSoftwareImage':
497
+ """
498
+ Get an existing AutonomousDatabaseSoftwareImage resource's state with the given name, id, and optional extra
499
+ properties used to qualify the lookup.
500
+
501
+ :param str resource_name: The unique name of the resulting resource.
502
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
503
+ :param pulumi.ResourceOptions opts: Options for the resource.
504
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] autonomous_dsi_one_off_patches: One-off patches included in the Autonomous Database Software Image
505
+ :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
506
+ :param pulumi.Input[str] database_version: The database version with which the Autonomous Database Software Image is to be built.
507
+ :param pulumi.Input[Mapping[str, Any]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
508
+ :param pulumi.Input[str] display_name: The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
509
+ :param pulumi.Input[Mapping[str, Any]] freeform_tags: (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
510
+ :param pulumi.Input[str] image_shape_family: To what shape the image is meant for.
511
+ :param pulumi.Input[str] lifecycle_details: Detailed message for the lifecycle state.
512
+ :param pulumi.Input[str] release_update: The Release Updates.
513
+ :param pulumi.Input[str] source_cdb_id: The source Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from which to create Autonomous Database Software Image.
514
+
515
+
516
+ ** IMPORTANT **
517
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
518
+ :param pulumi.Input[str] state: The current state of the Autonomous Database Software Image.
519
+ :param pulumi.Input[str] time_created: The date and time the Autonomous Database Software Image was created.
520
+ """
521
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
522
+
523
+ __props__ = _AutonomousDatabaseSoftwareImageState.__new__(_AutonomousDatabaseSoftwareImageState)
524
+
525
+ __props__.__dict__["autonomous_dsi_one_off_patches"] = autonomous_dsi_one_off_patches
526
+ __props__.__dict__["compartment_id"] = compartment_id
527
+ __props__.__dict__["database_version"] = database_version
528
+ __props__.__dict__["defined_tags"] = defined_tags
529
+ __props__.__dict__["display_name"] = display_name
530
+ __props__.__dict__["freeform_tags"] = freeform_tags
531
+ __props__.__dict__["image_shape_family"] = image_shape_family
532
+ __props__.__dict__["lifecycle_details"] = lifecycle_details
533
+ __props__.__dict__["release_update"] = release_update
534
+ __props__.__dict__["source_cdb_id"] = source_cdb_id
535
+ __props__.__dict__["state"] = state
536
+ __props__.__dict__["time_created"] = time_created
537
+ return AutonomousDatabaseSoftwareImage(resource_name, opts=opts, __props__=__props__)
538
+
539
+ @property
540
+ @pulumi.getter(name="autonomousDsiOneOffPatches")
541
+ def autonomous_dsi_one_off_patches(self) -> pulumi.Output[Sequence[str]]:
542
+ """
543
+ One-off patches included in the Autonomous Database Software Image
544
+ """
545
+ return pulumi.get(self, "autonomous_dsi_one_off_patches")
546
+
547
+ @property
548
+ @pulumi.getter(name="compartmentId")
549
+ def compartment_id(self) -> pulumi.Output[str]:
550
+ """
551
+ (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
552
+ """
553
+ return pulumi.get(self, "compartment_id")
554
+
555
+ @property
556
+ @pulumi.getter(name="databaseVersion")
557
+ def database_version(self) -> pulumi.Output[str]:
558
+ """
559
+ The database version with which the Autonomous Database Software Image is to be built.
560
+ """
561
+ return pulumi.get(self, "database_version")
562
+
563
+ @property
564
+ @pulumi.getter(name="definedTags")
565
+ def defined_tags(self) -> pulumi.Output[Mapping[str, Any]]:
566
+ """
567
+ (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
568
+ """
569
+ return pulumi.get(self, "defined_tags")
570
+
571
+ @property
572
+ @pulumi.getter(name="displayName")
573
+ def display_name(self) -> pulumi.Output[str]:
574
+ """
575
+ The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
576
+ """
577
+ return pulumi.get(self, "display_name")
578
+
579
+ @property
580
+ @pulumi.getter(name="freeformTags")
581
+ def freeform_tags(self) -> pulumi.Output[Mapping[str, Any]]:
582
+ """
583
+ (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}`
584
+ """
585
+ return pulumi.get(self, "freeform_tags")
586
+
587
+ @property
588
+ @pulumi.getter(name="imageShapeFamily")
589
+ def image_shape_family(self) -> pulumi.Output[str]:
590
+ """
591
+ To what shape the image is meant for.
592
+ """
593
+ return pulumi.get(self, "image_shape_family")
594
+
595
+ @property
596
+ @pulumi.getter(name="lifecycleDetails")
597
+ def lifecycle_details(self) -> pulumi.Output[str]:
598
+ """
599
+ Detailed message for the lifecycle state.
600
+ """
601
+ return pulumi.get(self, "lifecycle_details")
602
+
603
+ @property
604
+ @pulumi.getter(name="releaseUpdate")
605
+ def release_update(self) -> pulumi.Output[str]:
606
+ """
607
+ The Release Updates.
608
+ """
609
+ return pulumi.get(self, "release_update")
610
+
611
+ @property
612
+ @pulumi.getter(name="sourceCdbId")
613
+ def source_cdb_id(self) -> pulumi.Output[str]:
614
+ """
615
+ The source Autonomous Container Database [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) from which to create Autonomous Database Software Image.
616
+
617
+
618
+ ** IMPORTANT **
619
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
620
+ """
621
+ return pulumi.get(self, "source_cdb_id")
622
+
623
+ @property
624
+ @pulumi.getter
625
+ def state(self) -> pulumi.Output[str]:
626
+ """
627
+ The current state of the Autonomous Database Software Image.
628
+ """
629
+ return pulumi.get(self, "state")
630
+
631
+ @property
632
+ @pulumi.getter(name="timeCreated")
633
+ def time_created(self) -> pulumi.Output[str]:
634
+ """
635
+ The date and time the Autonomous Database Software Image was created.
636
+ """
637
+ return pulumi.get(self, "time_created")
638
+