pulumi-oci 2.9.0a1724479778__py3-none-any.whl → 2.9.0a1724836493__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 (119) hide show
  1. pulumi_oci/__init__.py +86 -38
  2. pulumi_oci/announcementsservice/__init__.py +1 -0
  3. pulumi_oci/announcementsservice/_inputs.py +46 -6
  4. pulumi_oci/announcementsservice/announcement_subscription.py +14 -14
  5. pulumi_oci/announcementsservice/get_announcement_subscription.py +2 -2
  6. pulumi_oci/announcementsservice/get_services.py +173 -0
  7. pulumi_oci/announcementsservice/outputs.py +195 -18
  8. pulumi_oci/bigdataservice/_inputs.py +1 -49
  9. pulumi_oci/bigdataservice/bds_instance.py +0 -128
  10. pulumi_oci/bigdataservice/get_bds_instance.py +1 -31
  11. pulumi_oci/bigdataservice/outputs.py +3 -132
  12. pulumi_oci/database/_inputs.py +32 -0
  13. pulumi_oci/database/autonomous_database.py +28 -0
  14. pulumi_oci/database/data_guard_association.py +49 -0
  15. pulumi_oci/database/get_autonomous_database.py +14 -1
  16. pulumi_oci/database/get_autonomous_databases.py +32 -95
  17. pulumi_oci/database/get_data_guard_association.py +11 -1
  18. pulumi_oci/database/outputs.py +163 -42
  19. pulumi_oci/databasemanagement/__init__.py +1 -0
  20. pulumi_oci/databasemanagement/_inputs.py +873 -10
  21. pulumi_oci/databasemanagement/autonomous_database_autonomous_database_dbm_features_management.py +275 -0
  22. pulumi_oci/databasemanagement/database_dbm_features_management.py +37 -3
  23. pulumi_oci/databasemanagement/db_management_private_endpoint.py +49 -0
  24. pulumi_oci/databasemanagement/get_db_management_private_endpoint.py +14 -1
  25. pulumi_oci/databasemanagement/get_db_management_private_endpoints.py +21 -1
  26. pulumi_oci/databasemanagement/get_managed_database.py +47 -3
  27. pulumi_oci/databasemanagement/managed_database.py +56 -0
  28. pulumi_oci/databasemanagement/outputs.py +3331 -1397
  29. pulumi_oci/databasemanagement/pluggabledatabase_pluggable_database_dbm_features_management.py +35 -1
  30. pulumi_oci/datasafe/__init__.py +6 -0
  31. pulumi_oci/datasafe/_inputs.py +18 -0
  32. pulumi_oci/datasafe/database_security_config_management.py +244 -2
  33. pulumi_oci/datasafe/masking_policy_health_report_management.py +453 -0
  34. pulumi_oci/datasafe/masking_report_management.py +693 -0
  35. pulumi_oci/datasafe/outputs.py +18 -0
  36. pulumi_oci/datasafe/security_policy_deployment_management.py +180 -2
  37. pulumi_oci/datasafe/security_policy_management.py +172 -2
  38. pulumi_oci/datasafe/set_security_assessment_baseline_management.py +304 -0
  39. pulumi_oci/datasafe/set_user_assessment_baseline_management.py +304 -0
  40. pulumi_oci/datasafe/sql_firewall_policy_management.py +354 -2
  41. pulumi_oci/datasafe/unset_security_assessment_baseline_management.py +264 -0
  42. pulumi_oci/datasafe/unset_user_assessment_baseline_management.py +264 -0
  43. pulumi_oci/delegateaccesscontrol/__init__.py +24 -0
  44. pulumi_oci/delegateaccesscontrol/_inputs.py +306 -0
  45. pulumi_oci/delegateaccesscontrol/delegation_control.py +1082 -0
  46. pulumi_oci/{globallydistributeddatabase/private_endpoint.py → delegateaccesscontrol/delegation_subscription.py} +162 -267
  47. pulumi_oci/delegateaccesscontrol/get_delegated_resource_access_request.py +535 -0
  48. pulumi_oci/delegateaccesscontrol/get_delegated_resource_access_request_audit_log_report.py +174 -0
  49. pulumi_oci/delegateaccesscontrol/get_delegated_resource_access_request_histories.py +133 -0
  50. pulumi_oci/delegateaccesscontrol/get_delegated_resource_access_requests.py +250 -0
  51. pulumi_oci/delegateaccesscontrol/get_delegation_control.py +378 -0
  52. pulumi_oci/delegateaccesscontrol/get_delegation_control_resources.py +133 -0
  53. pulumi_oci/delegateaccesscontrol/get_delegation_controls.py +213 -0
  54. pulumi_oci/{globallydistributeddatabase/get_private_endpoint.py → delegateaccesscontrol/get_delegation_subscription.py} +66 -105
  55. pulumi_oci/delegateaccesscontrol/get_delegation_subscriptions.py +176 -0
  56. pulumi_oci/delegateaccesscontrol/get_service_provider.py +274 -0
  57. pulumi_oci/delegateaccesscontrol/get_service_provider_action.py +210 -0
  58. pulumi_oci/delegateaccesscontrol/get_service_provider_actions.py +210 -0
  59. pulumi_oci/delegateaccesscontrol/get_service_providers.py +213 -0
  60. pulumi_oci/delegateaccesscontrol/outputs.py +1679 -0
  61. pulumi_oci/{fleetsoftwareupdate → desktops}/__init__.py +7 -6
  62. pulumi_oci/desktops/_inputs.py +483 -0
  63. pulumi_oci/desktops/desktop_pool.py +1348 -0
  64. pulumi_oci/desktops/get_desktop.py +223 -0
  65. pulumi_oci/desktops/get_desktop_pool.py +418 -0
  66. pulumi_oci/desktops/get_desktop_pool_desktops.py +208 -0
  67. pulumi_oci/desktops/get_desktop_pool_volumes.py +214 -0
  68. pulumi_oci/desktops/get_desktop_pools.py +203 -0
  69. pulumi_oci/desktops/get_desktops.py +214 -0
  70. pulumi_oci/desktops/outputs.py +1738 -0
  71. pulumi_oci/filestorage/mount_target.py +143 -38
  72. pulumi_oci/filestorage/outputs.py +44 -0
  73. pulumi_oci/identity/domains_group.py +34 -0
  74. pulumi_oci/identity/domains_user.py +34 -0
  75. pulumi_oci/identity/get_domains_group.py +11 -1
  76. pulumi_oci/identity/get_domains_user.py +11 -1
  77. pulumi_oci/identity/outputs.py +14 -0
  78. pulumi_oci/kms/_inputs.py +10 -10
  79. pulumi_oci/kms/get_vault.py +14 -1
  80. pulumi_oci/kms/outputs.py +41 -30
  81. pulumi_oci/kms/vault.py +28 -0
  82. pulumi_oci/loadbalancer/load_balancer.py +224 -0
  83. pulumi_oci/loadbalancer/outputs.py +22 -0
  84. pulumi_oci/mysql/_inputs.py +23 -0
  85. pulumi_oci/mysql/get_mysql_db_system.py +15 -2
  86. pulumi_oci/mysql/mysql_db_system.py +53 -0
  87. pulumi_oci/mysql/outputs.py +74 -6
  88. pulumi_oci/ocvp/get_cluster.py +2 -2
  89. pulumi_oci/ocvp/get_exsi_hosts.py +2 -2
  90. pulumi_oci/ocvp/get_supported_vmware_software_versions.py +22 -5
  91. pulumi_oci/ocvp/outputs.py +2 -2
  92. pulumi_oci/pulumi-plugin.json +1 -1
  93. pulumi_oci/recoverymod/_inputs.py +0 -8
  94. pulumi_oci/recoverymod/get_protected_database.py +14 -1
  95. pulumi_oci/recoverymod/get_protection_policy.py +14 -1
  96. pulumi_oci/recoverymod/outputs.py +22 -8
  97. pulumi_oci/recoverymod/protected_database.py +80 -3
  98. pulumi_oci/recoverymod/protection_policy.py +49 -0
  99. pulumi_oci/waf/_inputs.py +29 -16
  100. pulumi_oci/waf/outputs.py +33 -10
  101. {pulumi_oci-2.9.0a1724479778.dist-info → pulumi_oci-2.9.0a1724836493.dist-info}/METADATA +1 -1
  102. {pulumi_oci-2.9.0a1724479778.dist-info → pulumi_oci-2.9.0a1724836493.dist-info}/RECORD +104 -86
  103. {pulumi_oci-2.9.0a1724479778.dist-info → pulumi_oci-2.9.0a1724836493.dist-info}/WHEEL +1 -1
  104. pulumi_oci/fleetsoftwareupdate/_inputs.py +0 -553
  105. pulumi_oci/fleetsoftwareupdate/fsu_collection.py +0 -514
  106. pulumi_oci/fleetsoftwareupdate/fsu_cycle.py +0 -812
  107. pulumi_oci/fleetsoftwareupdate/get_fsu_collection.py +0 -225
  108. pulumi_oci/fleetsoftwareupdate/get_fsu_collections.py +0 -141
  109. pulumi_oci/fleetsoftwareupdate/get_fsu_cycle.py +0 -325
  110. pulumi_oci/fleetsoftwareupdate/get_fsu_cycles.py +0 -167
  111. pulumi_oci/fleetsoftwareupdate/outputs.py +0 -1481
  112. pulumi_oci/globallydistributeddatabase/__init__.py +0 -15
  113. pulumi_oci/globallydistributeddatabase/_inputs.py +0 -1003
  114. pulumi_oci/globallydistributeddatabase/get_private_endpoints.py +0 -176
  115. pulumi_oci/globallydistributeddatabase/get_sharded_database.py +0 -610
  116. pulumi_oci/globallydistributeddatabase/get_sharded_databases.py +0 -176
  117. pulumi_oci/globallydistributeddatabase/outputs.py +0 -2058
  118. pulumi_oci/globallydistributeddatabase/sharded_database.py +0 -1816
  119. {pulumi_oci-2.9.0a1724479778.dist-info → pulumi_oci-2.9.0a1724836493.dist-info}/top_level.txt +0 -0
@@ -22,7 +22,7 @@ class GetProtectedDatabaseResult:
22
22
  """
23
23
  A collection of values returned by getProtectedDatabase.
24
24
  """
25
- def __init__(__self__, compartment_id=None, database_id=None, database_size=None, db_unique_name=None, defined_tags=None, deletion_schedule=None, display_name=None, freeform_tags=None, health=None, health_details=None, id=None, is_read_only_resource=None, is_redo_logs_shipped=None, lifecycle_details=None, metrics=None, password=None, policy_locked_date_time=None, protected_database_id=None, protection_policy_id=None, recovery_service_subnets=None, state=None, system_tags=None, time_created=None, time_updated=None, vpc_user_name=None):
25
+ def __init__(__self__, compartment_id=None, database_id=None, database_size=None, db_unique_name=None, defined_tags=None, deletion_schedule=None, display_name=None, freeform_tags=None, health=None, health_details=None, id=None, is_read_only_resource=None, is_redo_logs_shipped=None, lifecycle_details=None, metrics=None, password=None, policy_locked_date_time=None, protected_database_id=None, protection_policy_id=None, recovery_service_subnets=None, state=None, subscription_id=None, system_tags=None, time_created=None, time_updated=None, vpc_user_name=None):
26
26
  if compartment_id and not isinstance(compartment_id, str):
27
27
  raise TypeError("Expected argument 'compartment_id' to be a str")
28
28
  pulumi.set(__self__, "compartment_id", compartment_id)
@@ -86,6 +86,9 @@ class GetProtectedDatabaseResult:
86
86
  if state and not isinstance(state, str):
87
87
  raise TypeError("Expected argument 'state' to be a str")
88
88
  pulumi.set(__self__, "state", state)
89
+ if subscription_id and not isinstance(subscription_id, str):
90
+ raise TypeError("Expected argument 'subscription_id' to be a str")
91
+ pulumi.set(__self__, "subscription_id", subscription_id)
89
92
  if system_tags and not isinstance(system_tags, dict):
90
93
  raise TypeError("Expected argument 'system_tags' to be a dict")
91
94
  pulumi.set(__self__, "system_tags", system_tags)
@@ -258,6 +261,14 @@ class GetProtectedDatabaseResult:
258
261
  """
259
262
  return pulumi.get(self, "state")
260
263
 
264
+ @property
265
+ @pulumi.getter(name="subscriptionId")
266
+ def subscription_id(self) -> str:
267
+ """
268
+ The OCID of the cloud service subscription to which the protected database is linked.
269
+ """
270
+ return pulumi.get(self, "subscription_id")
271
+
261
272
  @property
262
273
  @pulumi.getter(name="systemTags")
263
274
  def system_tags(self) -> Mapping[str, str]:
@@ -318,6 +329,7 @@ class AwaitableGetProtectedDatabaseResult(GetProtectedDatabaseResult):
318
329
  protection_policy_id=self.protection_policy_id,
319
330
  recovery_service_subnets=self.recovery_service_subnets,
320
331
  state=self.state,
332
+ subscription_id=self.subscription_id,
321
333
  system_tags=self.system_tags,
322
334
  time_created=self.time_created,
323
335
  time_updated=self.time_updated,
@@ -370,6 +382,7 @@ def get_protected_database(protected_database_id: Optional[str] = None,
370
382
  protection_policy_id=pulumi.get(__ret__, 'protection_policy_id'),
371
383
  recovery_service_subnets=pulumi.get(__ret__, 'recovery_service_subnets'),
372
384
  state=pulumi.get(__ret__, 'state'),
385
+ subscription_id=pulumi.get(__ret__, 'subscription_id'),
373
386
  system_tags=pulumi.get(__ret__, 'system_tags'),
374
387
  time_created=pulumi.get(__ret__, 'time_created'),
375
388
  time_updated=pulumi.get(__ret__, 'time_updated'),
@@ -21,7 +21,7 @@ class GetProtectionPolicyResult:
21
21
  """
22
22
  A collection of values returned by getProtectionPolicy.
23
23
  """
24
- def __init__(__self__, backup_retention_period_in_days=None, compartment_id=None, defined_tags=None, display_name=None, freeform_tags=None, id=None, is_predefined_policy=None, lifecycle_details=None, policy_locked_date_time=None, protection_policy_id=None, state=None, system_tags=None, time_created=None, time_updated=None):
24
+ def __init__(__self__, backup_retention_period_in_days=None, compartment_id=None, defined_tags=None, display_name=None, freeform_tags=None, id=None, is_predefined_policy=None, lifecycle_details=None, must_enforce_cloud_locality=None, policy_locked_date_time=None, protection_policy_id=None, state=None, system_tags=None, time_created=None, time_updated=None):
25
25
  if backup_retention_period_in_days and not isinstance(backup_retention_period_in_days, int):
26
26
  raise TypeError("Expected argument 'backup_retention_period_in_days' to be a int")
27
27
  pulumi.set(__self__, "backup_retention_period_in_days", backup_retention_period_in_days)
@@ -46,6 +46,9 @@ class GetProtectionPolicyResult:
46
46
  if lifecycle_details and not isinstance(lifecycle_details, str):
47
47
  raise TypeError("Expected argument 'lifecycle_details' to be a str")
48
48
  pulumi.set(__self__, "lifecycle_details", lifecycle_details)
49
+ if must_enforce_cloud_locality and not isinstance(must_enforce_cloud_locality, bool):
50
+ raise TypeError("Expected argument 'must_enforce_cloud_locality' to be a bool")
51
+ pulumi.set(__self__, "must_enforce_cloud_locality", must_enforce_cloud_locality)
49
52
  if policy_locked_date_time and not isinstance(policy_locked_date_time, str):
50
53
  raise TypeError("Expected argument 'policy_locked_date_time' to be a str")
51
54
  pulumi.set(__self__, "policy_locked_date_time", policy_locked_date_time)
@@ -129,6 +132,14 @@ class GetProtectionPolicyResult:
129
132
  """
130
133
  return pulumi.get(self, "lifecycle_details")
131
134
 
135
+ @property
136
+ @pulumi.getter(name="mustEnforceCloudLocality")
137
+ def must_enforce_cloud_locality(self) -> bool:
138
+ """
139
+ Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned.
140
+ """
141
+ return pulumi.get(self, "must_enforce_cloud_locality")
142
+
132
143
  @property
133
144
  @pulumi.getter(name="policyLockedDateTime")
134
145
  def policy_locked_date_time(self) -> str:
@@ -189,6 +200,7 @@ class AwaitableGetProtectionPolicyResult(GetProtectionPolicyResult):
189
200
  id=self.id,
190
201
  is_predefined_policy=self.is_predefined_policy,
191
202
  lifecycle_details=self.lifecycle_details,
203
+ must_enforce_cloud_locality=self.must_enforce_cloud_locality,
192
204
  policy_locked_date_time=self.policy_locked_date_time,
193
205
  protection_policy_id=self.protection_policy_id,
194
206
  state=self.state,
@@ -230,6 +242,7 @@ def get_protection_policy(protection_policy_id: Optional[str] = None,
230
242
  id=pulumi.get(__ret__, 'id'),
231
243
  is_predefined_policy=pulumi.get(__ret__, 'is_predefined_policy'),
232
244
  lifecycle_details=pulumi.get(__ret__, 'lifecycle_details'),
245
+ must_enforce_cloud_locality=pulumi.get(__ret__, 'must_enforce_cloud_locality'),
233
246
  policy_locked_date_time=pulumi.get(__ret__, 'policy_locked_date_time'),
234
247
  protection_policy_id=pulumi.get(__ret__, 'protection_policy_id'),
235
248
  state=pulumi.get(__ret__, 'state'),
@@ -186,10 +186,6 @@ class ProtectedDatabaseRecoveryServiceSubnet(dict):
186
186
  state: Optional[str] = None):
187
187
  """
188
188
  :param str recovery_service_subnet_id: (Updatable) The recovery service subnet OCID.
189
-
190
-
191
- ** IMPORTANT **
192
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
193
189
  :param str state: The current state of the Protected Database.
194
190
  """
195
191
  pulumi.set(__self__, "recovery_service_subnet_id", recovery_service_subnet_id)
@@ -201,10 +197,6 @@ class ProtectedDatabaseRecoveryServiceSubnet(dict):
201
197
  def recovery_service_subnet_id(self) -> str:
202
198
  """
203
199
  (Updatable) The recovery service subnet OCID.
204
-
205
-
206
- ** IMPORTANT **
207
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
208
200
  """
209
201
  return pulumi.get(self, "recovery_service_subnet_id")
210
202
 
@@ -403,6 +395,7 @@ class GetProtectedDatabasesProtectedDatabaseCollectionItemResult(dict):
403
395
  protection_policy_id: str,
404
396
  recovery_service_subnets: Sequence['outputs.GetProtectedDatabasesProtectedDatabaseCollectionItemRecoveryServiceSubnetResult'],
405
397
  state: str,
398
+ subscription_id: str,
406
399
  system_tags: Mapping[str, str],
407
400
  time_created: str,
408
401
  time_updated: str,
@@ -426,6 +419,7 @@ class GetProtectedDatabasesProtectedDatabaseCollectionItemResult(dict):
426
419
  :param str protection_policy_id: The protection policy OCID.
427
420
  :param Sequence['GetProtectedDatabasesProtectedDatabaseCollectionItemRecoveryServiceSubnetArgs'] recovery_service_subnets: List of recovery service subnet resources associated with the protected database.
428
421
  :param str state: A filter to return only the resources that match the specified lifecycle state.
422
+ :param str subscription_id: The OCID of the cloud service subscription to which the protected database is linked.
429
423
  :param Mapping[str, str] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
430
424
  :param str time_created: An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
431
425
  :param str time_updated: An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
@@ -451,6 +445,7 @@ class GetProtectedDatabasesProtectedDatabaseCollectionItemResult(dict):
451
445
  pulumi.set(__self__, "protection_policy_id", protection_policy_id)
452
446
  pulumi.set(__self__, "recovery_service_subnets", recovery_service_subnets)
453
447
  pulumi.set(__self__, "state", state)
448
+ pulumi.set(__self__, "subscription_id", subscription_id)
454
449
  pulumi.set(__self__, "system_tags", system_tags)
455
450
  pulumi.set(__self__, "time_created", time_created)
456
451
  pulumi.set(__self__, "time_updated", time_updated)
@@ -610,6 +605,14 @@ class GetProtectedDatabasesProtectedDatabaseCollectionItemResult(dict):
610
605
  """
611
606
  return pulumi.get(self, "state")
612
607
 
608
+ @property
609
+ @pulumi.getter(name="subscriptionId")
610
+ def subscription_id(self) -> str:
611
+ """
612
+ The OCID of the cloud service subscription to which the protected database is linked.
613
+ """
614
+ return pulumi.get(self, "subscription_id")
615
+
613
616
  @property
614
617
  @pulumi.getter(name="systemTags")
615
618
  def system_tags(self) -> Mapping[str, str]:
@@ -817,6 +820,7 @@ class GetProtectionPoliciesProtectionPolicyCollectionItemResult(dict):
817
820
  id: str,
818
821
  is_predefined_policy: bool,
819
822
  lifecycle_details: str,
823
+ must_enforce_cloud_locality: bool,
820
824
  policy_locked_date_time: str,
821
825
  state: str,
822
826
  system_tags: Mapping[str, str],
@@ -831,6 +835,7 @@ class GetProtectionPoliciesProtectionPolicyCollectionItemResult(dict):
831
835
  :param str id: The protection policy OCID.
832
836
  :param bool is_predefined_policy: Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
833
837
  :param str lifecycle_details: Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
838
+ :param bool must_enforce_cloud_locality: Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned.
834
839
  :param str policy_locked_date_time: An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
835
840
  :param str state: A filter to return only resources their lifecycleState matches the given lifecycleState.
836
841
  :param Mapping[str, str] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
@@ -845,6 +850,7 @@ class GetProtectionPoliciesProtectionPolicyCollectionItemResult(dict):
845
850
  pulumi.set(__self__, "id", id)
846
851
  pulumi.set(__self__, "is_predefined_policy", is_predefined_policy)
847
852
  pulumi.set(__self__, "lifecycle_details", lifecycle_details)
853
+ pulumi.set(__self__, "must_enforce_cloud_locality", must_enforce_cloud_locality)
848
854
  pulumi.set(__self__, "policy_locked_date_time", policy_locked_date_time)
849
855
  pulumi.set(__self__, "state", state)
850
856
  pulumi.set(__self__, "system_tags", system_tags)
@@ -915,6 +921,14 @@ class GetProtectionPoliciesProtectionPolicyCollectionItemResult(dict):
915
921
  """
916
922
  return pulumi.get(self, "lifecycle_details")
917
923
 
924
+ @property
925
+ @pulumi.getter(name="mustEnforceCloudLocality")
926
+ def must_enforce_cloud_locality(self) -> bool:
927
+ """
928
+ Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned.
929
+ """
930
+ return pulumi.get(self, "must_enforce_cloud_locality")
931
+
918
932
  @property
919
933
  @pulumi.getter(name="policyLockedDateTime")
920
934
  def policy_locked_date_time(self) -> str:
@@ -27,7 +27,8 @@ class ProtectedDatabaseArgs:
27
27
  defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
28
28
  deletion_schedule: Optional[pulumi.Input[str]] = None,
29
29
  freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
30
- is_redo_logs_shipped: Optional[pulumi.Input[bool]] = None):
30
+ is_redo_logs_shipped: Optional[pulumi.Input[bool]] = None,
31
+ subscription_id: Optional[pulumi.Input[str]] = None):
31
32
  """
32
33
  The set of arguments for constructing a ProtectedDatabase resource.
33
34
  :param pulumi.Input[str] compartment_id: (Updatable) The OCID of the compartment that contains the protected database.
@@ -44,6 +45,11 @@ class ProtectedDatabaseArgs:
44
45
  * The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
45
46
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] 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"}`
46
47
  :param pulumi.Input[bool] is_redo_logs_shipped: (Updatable) The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service. Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups.
48
+ :param pulumi.Input[str] subscription_id: (Updatable) The OCID of the cloud service subscription to which you want to link the protected database. For example, specify the Microsoft Azure subscription ID if you want to provision the protected database in Azure.
49
+
50
+
51
+ ** IMPORTANT **
52
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
47
53
  """
48
54
  pulumi.set(__self__, "compartment_id", compartment_id)
49
55
  pulumi.set(__self__, "db_unique_name", db_unique_name)
@@ -63,6 +69,8 @@ class ProtectedDatabaseArgs:
63
69
  pulumi.set(__self__, "freeform_tags", freeform_tags)
64
70
  if is_redo_logs_shipped is not None:
65
71
  pulumi.set(__self__, "is_redo_logs_shipped", is_redo_logs_shipped)
72
+ if subscription_id is not None:
73
+ pulumi.set(__self__, "subscription_id", subscription_id)
66
74
 
67
75
  @property
68
76
  @pulumi.getter(name="compartmentId")
@@ -210,6 +218,22 @@ class ProtectedDatabaseArgs:
210
218
  def is_redo_logs_shipped(self, value: Optional[pulumi.Input[bool]]):
211
219
  pulumi.set(self, "is_redo_logs_shipped", value)
212
220
 
221
+ @property
222
+ @pulumi.getter(name="subscriptionId")
223
+ def subscription_id(self) -> Optional[pulumi.Input[str]]:
224
+ """
225
+ (Updatable) The OCID of the cloud service subscription to which you want to link the protected database. For example, specify the Microsoft Azure subscription ID if you want to provision the protected database in Azure.
226
+
227
+
228
+ ** IMPORTANT **
229
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
230
+ """
231
+ return pulumi.get(self, "subscription_id")
232
+
233
+ @subscription_id.setter
234
+ def subscription_id(self, value: Optional[pulumi.Input[str]]):
235
+ pulumi.set(self, "subscription_id", value)
236
+
213
237
 
214
238
  @pulumi.input_type
215
239
  class _ProtectedDatabaseState:
@@ -233,6 +257,7 @@ class _ProtectedDatabaseState:
233
257
  protection_policy_id: Optional[pulumi.Input[str]] = None,
234
258
  recovery_service_subnets: Optional[pulumi.Input[Sequence[pulumi.Input['ProtectedDatabaseRecoveryServiceSubnetArgs']]]] = None,
235
259
  state: Optional[pulumi.Input[str]] = None,
260
+ subscription_id: Optional[pulumi.Input[str]] = None,
236
261
  system_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
237
262
  time_created: Optional[pulumi.Input[str]] = None,
238
263
  time_updated: Optional[pulumi.Input[str]] = None,
@@ -260,6 +285,11 @@ class _ProtectedDatabaseState:
260
285
  :param pulumi.Input[str] protection_policy_id: (Updatable) The OCID of the protection policy associated with the protected database.
261
286
  :param pulumi.Input[Sequence[pulumi.Input['ProtectedDatabaseRecoveryServiceSubnetArgs']]] recovery_service_subnets: (Updatable) List of recovery service subnet resources associated with the protected database.
262
287
  :param pulumi.Input[str] state: The current state of the Protected Database.
288
+ :param pulumi.Input[str] subscription_id: (Updatable) The OCID of the cloud service subscription to which you want to link the protected database. For example, specify the Microsoft Azure subscription ID if you want to provision the protected database in Azure.
289
+
290
+
291
+ ** IMPORTANT **
292
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
263
293
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
264
294
  :param pulumi.Input[str] time_created: An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
265
295
  :param pulumi.Input[str] time_updated: An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
@@ -303,6 +333,8 @@ class _ProtectedDatabaseState:
303
333
  pulumi.set(__self__, "recovery_service_subnets", recovery_service_subnets)
304
334
  if state is not None:
305
335
  pulumi.set(__self__, "state", state)
336
+ if subscription_id is not None:
337
+ pulumi.set(__self__, "subscription_id", subscription_id)
306
338
  if system_tags is not None:
307
339
  pulumi.set(__self__, "system_tags", system_tags)
308
340
  if time_created is not None:
@@ -542,6 +574,22 @@ class _ProtectedDatabaseState:
542
574
  def state(self, value: Optional[pulumi.Input[str]]):
543
575
  pulumi.set(self, "state", value)
544
576
 
577
+ @property
578
+ @pulumi.getter(name="subscriptionId")
579
+ def subscription_id(self) -> Optional[pulumi.Input[str]]:
580
+ """
581
+ (Updatable) The OCID of the cloud service subscription to which you want to link the protected database. For example, specify the Microsoft Azure subscription ID if you want to provision the protected database in Azure.
582
+
583
+
584
+ ** IMPORTANT **
585
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
586
+ """
587
+ return pulumi.get(self, "subscription_id")
588
+
589
+ @subscription_id.setter
590
+ def subscription_id(self, value: Optional[pulumi.Input[str]]):
591
+ pulumi.set(self, "subscription_id", value)
592
+
545
593
  @property
546
594
  @pulumi.getter(name="systemTags")
547
595
  def system_tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
@@ -608,6 +656,7 @@ class ProtectedDatabase(pulumi.CustomResource):
608
656
  password: Optional[pulumi.Input[str]] = None,
609
657
  protection_policy_id: Optional[pulumi.Input[str]] = None,
610
658
  recovery_service_subnets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProtectedDatabaseRecoveryServiceSubnetArgs', 'ProtectedDatabaseRecoveryServiceSubnetArgsDict']]]]] = None,
659
+ subscription_id: Optional[pulumi.Input[str]] = None,
611
660
  __props__=None):
612
661
  """
613
662
  This resource provides the Protected Database resource in Oracle Cloud Infrastructure Recovery service.
@@ -638,7 +687,8 @@ class ProtectedDatabase(pulumi.CustomResource):
638
687
  freeform_tags={
639
688
  "bar-key": "value",
640
689
  },
641
- is_redo_logs_shipped=protected_database_is_redo_logs_shipped)
690
+ is_redo_logs_shipped=protected_database_is_redo_logs_shipped,
691
+ subscription_id=test_subscription["id"])
642
692
  ```
643
693
 
644
694
  ## Import
@@ -665,6 +715,11 @@ class ProtectedDatabase(pulumi.CustomResource):
665
715
  :param pulumi.Input[str] password: (Updatable) Password credential which can be used to connect to Protected Database. It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (https://docs.cloud.oracle.com/iaas/api/#) or hyphen (-). The password must not contain the username "admin", regardless of casing.
666
716
  :param pulumi.Input[str] protection_policy_id: (Updatable) The OCID of the protection policy associated with the protected database.
667
717
  :param pulumi.Input[Sequence[pulumi.Input[Union['ProtectedDatabaseRecoveryServiceSubnetArgs', 'ProtectedDatabaseRecoveryServiceSubnetArgsDict']]]] recovery_service_subnets: (Updatable) List of recovery service subnet resources associated with the protected database.
718
+ :param pulumi.Input[str] subscription_id: (Updatable) The OCID of the cloud service subscription to which you want to link the protected database. For example, specify the Microsoft Azure subscription ID if you want to provision the protected database in Azure.
719
+
720
+
721
+ ** IMPORTANT **
722
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
668
723
  """
669
724
  ...
670
725
  @overload
@@ -701,7 +756,8 @@ class ProtectedDatabase(pulumi.CustomResource):
701
756
  freeform_tags={
702
757
  "bar-key": "value",
703
758
  },
704
- is_redo_logs_shipped=protected_database_is_redo_logs_shipped)
759
+ is_redo_logs_shipped=protected_database_is_redo_logs_shipped,
760
+ subscription_id=test_subscription["id"])
705
761
  ```
706
762
 
707
763
  ## Import
@@ -739,6 +795,7 @@ class ProtectedDatabase(pulumi.CustomResource):
739
795
  password: Optional[pulumi.Input[str]] = None,
740
796
  protection_policy_id: Optional[pulumi.Input[str]] = None,
741
797
  recovery_service_subnets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProtectedDatabaseRecoveryServiceSubnetArgs', 'ProtectedDatabaseRecoveryServiceSubnetArgsDict']]]]] = None,
798
+ subscription_id: Optional[pulumi.Input[str]] = None,
742
799
  __props__=None):
743
800
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
744
801
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -772,6 +829,7 @@ class ProtectedDatabase(pulumi.CustomResource):
772
829
  if recovery_service_subnets is None and not opts.urn:
773
830
  raise TypeError("Missing required property 'recovery_service_subnets'")
774
831
  __props__.__dict__["recovery_service_subnets"] = recovery_service_subnets
832
+ __props__.__dict__["subscription_id"] = subscription_id
775
833
  __props__.__dict__["health"] = None
776
834
  __props__.__dict__["health_details"] = None
777
835
  __props__.__dict__["is_read_only_resource"] = None
@@ -814,6 +872,7 @@ class ProtectedDatabase(pulumi.CustomResource):
814
872
  protection_policy_id: Optional[pulumi.Input[str]] = None,
815
873
  recovery_service_subnets: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProtectedDatabaseRecoveryServiceSubnetArgs', 'ProtectedDatabaseRecoveryServiceSubnetArgsDict']]]]] = None,
816
874
  state: Optional[pulumi.Input[str]] = None,
875
+ subscription_id: Optional[pulumi.Input[str]] = None,
817
876
  system_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
818
877
  time_created: Optional[pulumi.Input[str]] = None,
819
878
  time_updated: Optional[pulumi.Input[str]] = None,
@@ -846,6 +905,11 @@ class ProtectedDatabase(pulumi.CustomResource):
846
905
  :param pulumi.Input[str] protection_policy_id: (Updatable) The OCID of the protection policy associated with the protected database.
847
906
  :param pulumi.Input[Sequence[pulumi.Input[Union['ProtectedDatabaseRecoveryServiceSubnetArgs', 'ProtectedDatabaseRecoveryServiceSubnetArgsDict']]]] recovery_service_subnets: (Updatable) List of recovery service subnet resources associated with the protected database.
848
907
  :param pulumi.Input[str] state: The current state of the Protected Database.
908
+ :param pulumi.Input[str] subscription_id: (Updatable) The OCID of the cloud service subscription to which you want to link the protected database. For example, specify the Microsoft Azure subscription ID if you want to provision the protected database in Azure.
909
+
910
+
911
+ ** IMPORTANT **
912
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
849
913
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] system_tags: Usage of system tag keys. These predefined keys are scoped to namespaces. Example: `{"orcl-cloud.free-tier-retained": "true"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
850
914
  :param pulumi.Input[str] time_created: An RFC3339 formatted datetime string that indicates the created time for a protected database. For example: '2020-05-22T21:10:29.600Z'
851
915
  :param pulumi.Input[str] time_updated: An RFC3339 formatted datetime string that indicates the last updated time for a protected database. For example: '2020-05-22T21:10:29.600Z'
@@ -874,6 +938,7 @@ class ProtectedDatabase(pulumi.CustomResource):
874
938
  __props__.__dict__["protection_policy_id"] = protection_policy_id
875
939
  __props__.__dict__["recovery_service_subnets"] = recovery_service_subnets
876
940
  __props__.__dict__["state"] = state
941
+ __props__.__dict__["subscription_id"] = subscription_id
877
942
  __props__.__dict__["system_tags"] = system_tags
878
943
  __props__.__dict__["time_created"] = time_created
879
944
  __props__.__dict__["time_updated"] = time_updated
@@ -1034,6 +1099,18 @@ class ProtectedDatabase(pulumi.CustomResource):
1034
1099
  """
1035
1100
  return pulumi.get(self, "state")
1036
1101
 
1102
+ @property
1103
+ @pulumi.getter(name="subscriptionId")
1104
+ def subscription_id(self) -> pulumi.Output[str]:
1105
+ """
1106
+ (Updatable) The OCID of the cloud service subscription to which you want to link the protected database. For example, specify the Microsoft Azure subscription ID if you want to provision the protected database in Azure.
1107
+
1108
+
1109
+ ** IMPORTANT **
1110
+ Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
1111
+ """
1112
+ return pulumi.get(self, "subscription_id")
1113
+
1037
1114
  @property
1038
1115
  @pulumi.getter(name="systemTags")
1039
1116
  def system_tags(self) -> pulumi.Output[Mapping[str, str]]:
@@ -19,6 +19,7 @@ class ProtectionPolicyArgs:
19
19
  display_name: pulumi.Input[str],
20
20
  defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
21
21
  freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
22
+ must_enforce_cloud_locality: Optional[pulumi.Input[bool]] = None,
22
23
  policy_locked_date_time: Optional[pulumi.Input[str]] = None):
23
24
  """
24
25
  The set of arguments for constructing a ProtectionPolicy resource.
@@ -27,6 +28,7 @@ class ProtectionPolicyArgs:
27
28
  :param pulumi.Input[str] display_name: (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
28
29
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
29
30
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] 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"}`
31
+ :param pulumi.Input[bool] must_enforce_cloud_locality: Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned. This parameter is applicable if your Oracle Database runs in a different cloud service environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery Service stores the database backups locally in the same cloud service environment where the database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, then Recovery Service stores the database backups in Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection policy after you create it.
30
32
  :param pulumi.Input[str] policy_locked_date_time: (Updatable) An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
31
33
  * The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups.
32
34
  * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the current date.
@@ -46,6 +48,8 @@ class ProtectionPolicyArgs:
46
48
  pulumi.set(__self__, "defined_tags", defined_tags)
47
49
  if freeform_tags is not None:
48
50
  pulumi.set(__self__, "freeform_tags", freeform_tags)
51
+ if must_enforce_cloud_locality is not None:
52
+ pulumi.set(__self__, "must_enforce_cloud_locality", must_enforce_cloud_locality)
49
53
  if policy_locked_date_time is not None:
50
54
  pulumi.set(__self__, "policy_locked_date_time", policy_locked_date_time)
51
55
 
@@ -109,6 +113,18 @@ class ProtectionPolicyArgs:
109
113
  def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
110
114
  pulumi.set(self, "freeform_tags", value)
111
115
 
116
+ @property
117
+ @pulumi.getter(name="mustEnforceCloudLocality")
118
+ def must_enforce_cloud_locality(self) -> Optional[pulumi.Input[bool]]:
119
+ """
120
+ Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned. This parameter is applicable if your Oracle Database runs in a different cloud service environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery Service stores the database backups locally in the same cloud service environment where the database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, then Recovery Service stores the database backups in Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection policy after you create it.
121
+ """
122
+ return pulumi.get(self, "must_enforce_cloud_locality")
123
+
124
+ @must_enforce_cloud_locality.setter
125
+ def must_enforce_cloud_locality(self, value: Optional[pulumi.Input[bool]]):
126
+ pulumi.set(self, "must_enforce_cloud_locality", value)
127
+
112
128
  @property
113
129
  @pulumi.getter(name="policyLockedDateTime")
114
130
  def policy_locked_date_time(self) -> Optional[pulumi.Input[str]]:
@@ -142,6 +158,7 @@ class _ProtectionPolicyState:
142
158
  freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
143
159
  is_predefined_policy: Optional[pulumi.Input[bool]] = None,
144
160
  lifecycle_details: Optional[pulumi.Input[str]] = None,
161
+ must_enforce_cloud_locality: Optional[pulumi.Input[bool]] = None,
145
162
  policy_locked_date_time: Optional[pulumi.Input[str]] = None,
146
163
  state: Optional[pulumi.Input[str]] = None,
147
164
  system_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
@@ -156,6 +173,7 @@ class _ProtectionPolicyState:
156
173
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] 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"}`
157
174
  :param pulumi.Input[bool] is_predefined_policy: Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
158
175
  :param pulumi.Input[str] lifecycle_details: Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
176
+ :param pulumi.Input[bool] must_enforce_cloud_locality: Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned. This parameter is applicable if your Oracle Database runs in a different cloud service environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery Service stores the database backups locally in the same cloud service environment where the database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, then Recovery Service stores the database backups in Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection policy after you create it.
159
177
  :param pulumi.Input[str] policy_locked_date_time: (Updatable) An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
160
178
  * The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups.
161
179
  * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the current date.
@@ -186,6 +204,8 @@ class _ProtectionPolicyState:
186
204
  pulumi.set(__self__, "is_predefined_policy", is_predefined_policy)
187
205
  if lifecycle_details is not None:
188
206
  pulumi.set(__self__, "lifecycle_details", lifecycle_details)
207
+ if must_enforce_cloud_locality is not None:
208
+ pulumi.set(__self__, "must_enforce_cloud_locality", must_enforce_cloud_locality)
189
209
  if policy_locked_date_time is not None:
190
210
  pulumi.set(__self__, "policy_locked_date_time", policy_locked_date_time)
191
211
  if state is not None:
@@ -281,6 +301,18 @@ class _ProtectionPolicyState:
281
301
  def lifecycle_details(self, value: Optional[pulumi.Input[str]]):
282
302
  pulumi.set(self, "lifecycle_details", value)
283
303
 
304
+ @property
305
+ @pulumi.getter(name="mustEnforceCloudLocality")
306
+ def must_enforce_cloud_locality(self) -> Optional[pulumi.Input[bool]]:
307
+ """
308
+ Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned. This parameter is applicable if your Oracle Database runs in a different cloud service environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery Service stores the database backups locally in the same cloud service environment where the database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, then Recovery Service stores the database backups in Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection policy after you create it.
309
+ """
310
+ return pulumi.get(self, "must_enforce_cloud_locality")
311
+
312
+ @must_enforce_cloud_locality.setter
313
+ def must_enforce_cloud_locality(self, value: Optional[pulumi.Input[bool]]):
314
+ pulumi.set(self, "must_enforce_cloud_locality", value)
315
+
284
316
  @property
285
317
  @pulumi.getter(name="policyLockedDateTime")
286
318
  def policy_locked_date_time(self) -> Optional[pulumi.Input[str]]:
@@ -362,6 +394,7 @@ class ProtectionPolicy(pulumi.CustomResource):
362
394
  defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
363
395
  display_name: Optional[pulumi.Input[str]] = None,
364
396
  freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
397
+ must_enforce_cloud_locality: Optional[pulumi.Input[bool]] = None,
365
398
  policy_locked_date_time: Optional[pulumi.Input[str]] = None,
366
399
  __props__=None):
367
400
  """
@@ -385,6 +418,7 @@ class ProtectionPolicy(pulumi.CustomResource):
385
418
  freeform_tags={
386
419
  "bar-key": "value",
387
420
  },
421
+ must_enforce_cloud_locality=protection_policy_must_enforce_cloud_locality,
388
422
  policy_locked_date_time=protection_policy_policy_locked_date_time)
389
423
  ```
390
424
 
@@ -403,6 +437,7 @@ class ProtectionPolicy(pulumi.CustomResource):
403
437
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] defined_tags: (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}`. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm)
404
438
  :param pulumi.Input[str] display_name: (Updatable) A user provided name for the protection policy. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information.
405
439
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] 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"}`
440
+ :param pulumi.Input[bool] must_enforce_cloud_locality: Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned. This parameter is applicable if your Oracle Database runs in a different cloud service environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery Service stores the database backups locally in the same cloud service environment where the database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, then Recovery Service stores the database backups in Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection policy after you create it.
406
441
  :param pulumi.Input[str] policy_locked_date_time: (Updatable) An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
407
442
  * The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups.
408
443
  * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the current date.
@@ -442,6 +477,7 @@ class ProtectionPolicy(pulumi.CustomResource):
442
477
  freeform_tags={
443
478
  "bar-key": "value",
444
479
  },
480
+ must_enforce_cloud_locality=protection_policy_must_enforce_cloud_locality,
445
481
  policy_locked_date_time=protection_policy_policy_locked_date_time)
446
482
  ```
447
483
 
@@ -473,6 +509,7 @@ class ProtectionPolicy(pulumi.CustomResource):
473
509
  defined_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
474
510
  display_name: Optional[pulumi.Input[str]] = None,
475
511
  freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
512
+ must_enforce_cloud_locality: Optional[pulumi.Input[bool]] = None,
476
513
  policy_locked_date_time: Optional[pulumi.Input[str]] = None,
477
514
  __props__=None):
478
515
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -494,6 +531,7 @@ class ProtectionPolicy(pulumi.CustomResource):
494
531
  raise TypeError("Missing required property 'display_name'")
495
532
  __props__.__dict__["display_name"] = display_name
496
533
  __props__.__dict__["freeform_tags"] = freeform_tags
534
+ __props__.__dict__["must_enforce_cloud_locality"] = must_enforce_cloud_locality
497
535
  __props__.__dict__["policy_locked_date_time"] = policy_locked_date_time
498
536
  __props__.__dict__["is_predefined_policy"] = None
499
537
  __props__.__dict__["lifecycle_details"] = None
@@ -518,6 +556,7 @@ class ProtectionPolicy(pulumi.CustomResource):
518
556
  freeform_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
519
557
  is_predefined_policy: Optional[pulumi.Input[bool]] = None,
520
558
  lifecycle_details: Optional[pulumi.Input[str]] = None,
559
+ must_enforce_cloud_locality: Optional[pulumi.Input[bool]] = None,
521
560
  policy_locked_date_time: Optional[pulumi.Input[str]] = None,
522
561
  state: Optional[pulumi.Input[str]] = None,
523
562
  system_tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
@@ -537,6 +576,7 @@ class ProtectionPolicy(pulumi.CustomResource):
537
576
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] 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"}`
538
577
  :param pulumi.Input[bool] is_predefined_policy: Set to TRUE if the policy is Oracle-defined, and FALSE for a user-defined custom policy. You can modify only the custom policies.
539
578
  :param pulumi.Input[str] lifecycle_details: Detailed description about the current lifecycle state of the protection policy. For example, it can be used to provide actionable information for a resource in a Failed state.
579
+ :param pulumi.Input[bool] must_enforce_cloud_locality: Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned. This parameter is applicable if your Oracle Database runs in a different cloud service environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery Service stores the database backups locally in the same cloud service environment where the database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, then Recovery Service stores the database backups in Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection policy after you create it.
540
580
  :param pulumi.Input[str] policy_locked_date_time: (Updatable) An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy.
541
581
  * The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups.
542
582
  * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the current date.
@@ -564,6 +604,7 @@ class ProtectionPolicy(pulumi.CustomResource):
564
604
  __props__.__dict__["freeform_tags"] = freeform_tags
565
605
  __props__.__dict__["is_predefined_policy"] = is_predefined_policy
566
606
  __props__.__dict__["lifecycle_details"] = lifecycle_details
607
+ __props__.__dict__["must_enforce_cloud_locality"] = must_enforce_cloud_locality
567
608
  __props__.__dict__["policy_locked_date_time"] = policy_locked_date_time
568
609
  __props__.__dict__["state"] = state
569
610
  __props__.__dict__["system_tags"] = system_tags
@@ -627,6 +668,14 @@ class ProtectionPolicy(pulumi.CustomResource):
627
668
  """
628
669
  return pulumi.get(self, "lifecycle_details")
629
670
 
671
+ @property
672
+ @pulumi.getter(name="mustEnforceCloudLocality")
673
+ def must_enforce_cloud_locality(self) -> pulumi.Output[bool]:
674
+ """
675
+ Indicates whether the protection policy enforces Recovery Service to retain backups in the same cloud service environment where your Oracle Database is provisioned. This parameter is applicable if your Oracle Database runs in a different cloud service environment, such as Microsoft Azure. If you set the mustEnforceCloudLocality parameter to TRUE, then Recovery Service stores the database backups locally in the same cloud service environment where the database resides. For example, if your Oracle Database is provisioned on Microsoft Azure, then Recovery Service stores the database backups in Azure. Note: You cannot change the mustEnforceCloudLocality setting for a protection policy after you create it.
676
+ """
677
+ return pulumi.get(self, "must_enforce_cloud_locality")
678
+
630
679
  @property
631
680
  @pulumi.getter(name="policyLockedDateTime")
632
681
  def policy_locked_date_time(self) -> pulumi.Output[str]: