pulumi-oci 1.36.0__py3-none-any.whl → 1.36.0a1715383492__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 +0 -208
  2. pulumi_oci/core/__init__.py +0 -3
  3. pulumi_oci/core/_inputs.py +0 -40
  4. pulumi_oci/core/outputs.py +0 -261
  5. pulumi_oci/database/_inputs.py +0 -192
  6. pulumi_oci/database/exadata_infrastructure.py +0 -28
  7. pulumi_oci/database/get_exadata_infrastructure.py +1 -14
  8. pulumi_oci/database/get_vm_cluster.py +1 -14
  9. pulumi_oci/database/outputs.py +0 -418
  10. pulumi_oci/database/vm_cluster.py +0 -55
  11. pulumi_oci/database/vm_cluster_add_virtual_network.py +0 -28
  12. pulumi_oci/database/vm_cluster_remove_virtual_machine.py +0 -28
  13. pulumi_oci/datasafe/__init__.py +0 -1
  14. pulumi_oci/email/__init__.py +0 -3
  15. pulumi_oci/email/_inputs.py +0 -46
  16. pulumi_oci/email/dkim.py +4 -4
  17. pulumi_oci/email/email_domain.py +0 -77
  18. pulumi_oci/email/get_email_domain.py +1 -27
  19. pulumi_oci/email/outputs.py +0 -231
  20. pulumi_oci/loadbalancer/_inputs.py +0 -16
  21. pulumi_oci/loadbalancer/listener.py +0 -2
  22. pulumi_oci/loadbalancer/outputs.py +0 -14
  23. pulumi_oci/loganalytics/namespace.py +4 -4
  24. pulumi_oci/networkloadbalancer/get_listener.py +1 -14
  25. pulumi_oci/networkloadbalancer/listener.py +2 -51
  26. pulumi_oci/networkloadbalancer/outputs.py +0 -11
  27. pulumi_oci/osmanagementhub/__init__.py +0 -48
  28. pulumi_oci/osmanagementhub/_inputs.py +507 -3649
  29. pulumi_oci/osmanagementhub/get_lifecycle_environment.py +13 -26
  30. pulumi_oci/osmanagementhub/get_lifecycle_environments.py +11 -48
  31. pulumi_oci/osmanagementhub/get_lifecycle_stage.py +15 -28
  32. pulumi_oci/osmanagementhub/get_lifecycle_stages.py +19 -86
  33. pulumi_oci/osmanagementhub/get_managed_instance_group.py +10 -62
  34. pulumi_oci/osmanagementhub/get_managed_instance_group_available_modules.py +9 -7
  35. pulumi_oci/osmanagementhub/get_managed_instance_group_available_packages.py +7 -7
  36. pulumi_oci/osmanagementhub/get_managed_instance_group_available_software_sources.py +10 -8
  37. pulumi_oci/osmanagementhub/get_managed_instance_groups.py +16 -71
  38. pulumi_oci/osmanagementhub/get_management_station.py +19 -42
  39. pulumi_oci/osmanagementhub/get_management_station_mirrors.py +4 -4
  40. pulumi_oci/osmanagementhub/get_management_stations.py +15 -15
  41. pulumi_oci/osmanagementhub/get_profile.py +12 -51
  42. pulumi_oci/osmanagementhub/get_profiles.py +16 -76
  43. pulumi_oci/osmanagementhub/get_software_source.py +18 -109
  44. pulumi_oci/osmanagementhub/get_software_source_module_stream.py +5 -5
  45. pulumi_oci/osmanagementhub/get_software_source_module_stream_profile.py +6 -6
  46. pulumi_oci/osmanagementhub/get_software_source_module_stream_profiles.py +8 -8
  47. pulumi_oci/osmanagementhub/get_software_source_module_streams.py +9 -9
  48. pulumi_oci/osmanagementhub/get_software_source_package_group.py +8 -8
  49. pulumi_oci/osmanagementhub/get_software_source_package_groups.py +7 -7
  50. pulumi_oci/osmanagementhub/get_software_source_software_package.py +10 -23
  51. pulumi_oci/osmanagementhub/get_software_source_software_packages.py +6 -6
  52. pulumi_oci/osmanagementhub/get_software_source_vendors.py +2 -2
  53. pulumi_oci/osmanagementhub/get_software_sources.py +21 -78
  54. pulumi_oci/osmanagementhub/lifecycle_environment.py +86 -159
  55. pulumi_oci/osmanagementhub/managed_instance_group.py +86 -264
  56. pulumi_oci/osmanagementhub/management_station.py +81 -184
  57. pulumi_oci/osmanagementhub/outputs.py +2364 -10866
  58. pulumi_oci/osmanagementhub/profile.py +78 -200
  59. pulumi_oci/osmanagementhub/software_source.py +181 -365
  60. pulumi_oci/pulumi-plugin.json +1 -2
  61. {pulumi_oci-1.36.0.dist-info → pulumi_oci-1.36.0a1715383492.dist-info}/METADATA +1 -1
  62. {pulumi_oci-1.36.0.dist-info → pulumi_oci-1.36.0a1715383492.dist-info}/RECORD +64 -119
  63. pulumi_oci/core/get_ip_inventory_subnet.py +0 -171
  64. pulumi_oci/core/get_ip_inventory_subnet_cidr.py +0 -171
  65. pulumi_oci/core/get_ip_inventory_vcn_overlaps.py +0 -206
  66. pulumi_oci/datasafe/masking_report_management.py +0 -693
  67. pulumi_oci/email/email_return_path.py +0 -642
  68. pulumi_oci/email/get_email_return_path.py +0 -274
  69. pulumi_oci/email/get_email_return_paths.py +0 -203
  70. pulumi_oci/osmanagementhub/event.py +0 -701
  71. pulumi_oci/osmanagementhub/get_entitlements.py +0 -178
  72. pulumi_oci/osmanagementhub/get_errata.py +0 -283
  73. pulumi_oci/osmanagementhub/get_erratum.py +0 -308
  74. pulumi_oci/osmanagementhub/get_event.py +0 -314
  75. pulumi_oci/osmanagementhub/get_events.py +0 -314
  76. pulumi_oci/osmanagementhub/get_managed_instance.py +0 -587
  77. pulumi_oci/osmanagementhub/get_managed_instance_available_packages.py +0 -187
  78. pulumi_oci/osmanagementhub/get_managed_instance_available_software_sources.py +0 -190
  79. pulumi_oci/osmanagementhub/get_managed_instance_available_windows_updates.py +0 -238
  80. pulumi_oci/osmanagementhub/get_managed_instance_errata.py +0 -204
  81. pulumi_oci/osmanagementhub/get_managed_instance_group_installed_packages.py +0 -220
  82. pulumi_oci/osmanagementhub/get_managed_instance_group_modules.py +0 -244
  83. pulumi_oci/osmanagementhub/get_managed_instance_installed_packages.py +0 -221
  84. pulumi_oci/osmanagementhub/get_managed_instance_installed_windows_updates.py +0 -204
  85. pulumi_oci/osmanagementhub/get_managed_instance_modules.py +0 -187
  86. pulumi_oci/osmanagementhub/get_managed_instance_updatable_packages.py +0 -221
  87. pulumi_oci/osmanagementhub/get_managed_instances.py +0 -537
  88. pulumi_oci/osmanagementhub/get_scheduled_job.py +0 -426
  89. pulumi_oci/osmanagementhub/get_scheduled_jobs.py +0 -433
  90. pulumi_oci/osmanagementhub/get_software_package.py +0 -301
  91. pulumi_oci/osmanagementhub/get_software_package_software_source.py +0 -329
  92. pulumi_oci/osmanagementhub/get_software_packages.py +0 -232
  93. pulumi_oci/osmanagementhub/get_windows_update.py +0 -222
  94. pulumi_oci/osmanagementhub/get_windows_updates.py +0 -187
  95. pulumi_oci/osmanagementhub/lifecycle_stage_attach_managed_instances_management.py +0 -249
  96. pulumi_oci/osmanagementhub/lifecycle_stage_detach_managed_instances_management.py +0 -249
  97. pulumi_oci/osmanagementhub/lifecycle_stage_promote_software_source_management.py +0 -296
  98. pulumi_oci/osmanagementhub/managed_instance.py +0 -1327
  99. pulumi_oci/osmanagementhub/managed_instance_attach_profile_management.py +0 -266
  100. pulumi_oci/osmanagementhub/managed_instance_detach_profile_management.py +0 -214
  101. pulumi_oci/osmanagementhub/managed_instance_group_attach_managed_instances_management.py +0 -293
  102. pulumi_oci/osmanagementhub/managed_instance_group_attach_software_sources_management.py +0 -293
  103. pulumi_oci/osmanagementhub/managed_instance_group_detach_managed_instances_management.py +0 -264
  104. pulumi_oci/osmanagementhub/managed_instance_group_detach_software_sources_management.py +0 -293
  105. pulumi_oci/osmanagementhub/managed_instance_group_install_packages_management.py +0 -293
  106. pulumi_oci/osmanagementhub/managed_instance_group_install_windows_updates_management.py +0 -293
  107. pulumi_oci/osmanagementhub/managed_instance_group_manage_module_streams_management.py +0 -526
  108. pulumi_oci/osmanagementhub/managed_instance_group_remove_packages_management.py +0 -293
  109. pulumi_oci/osmanagementhub/managed_instance_group_update_all_packages_management.py +0 -292
  110. pulumi_oci/osmanagementhub/managed_instance_install_windows_updates_management.py +0 -341
  111. pulumi_oci/osmanagementhub/managed_instance_update_packages_management.py +0 -341
  112. pulumi_oci/osmanagementhub/management_station_mirror_synchronize_management.py +0 -264
  113. pulumi_oci/osmanagementhub/management_station_refresh_management.py +0 -212
  114. pulumi_oci/osmanagementhub/management_station_synchronize_mirrors_management.py +0 -264
  115. pulumi_oci/osmanagementhub/scheduled_job.py +0 -1331
  116. pulumi_oci/osmanagementhub/software_source_add_packages_management.py +0 -266
  117. pulumi_oci/osmanagementhub/software_source_change_availability_management.py +0 -194
  118. {pulumi_oci-1.36.0.dist-info → pulumi_oci-1.36.0a1715383492.dist-info}/WHEEL +0 -0
  119. {pulumi_oci-1.36.0.dist-info → pulumi_oci-1.36.0a1715383492.dist-info}/top_level.txt +0 -0
@@ -1,1331 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import pulumi
8
- import pulumi.runtime
9
- from typing import Any, Mapping, Optional, Sequence, Union, overload
10
- from .. import _utilities
11
- from . import outputs
12
- from ._inputs import *
13
-
14
- __all__ = ['ScheduledJobArgs', 'ScheduledJob']
15
-
16
- @pulumi.input_type
17
- class ScheduledJobArgs:
18
- def __init__(__self__, *,
19
- compartment_id: pulumi.Input[str],
20
- operations: pulumi.Input[Sequence[pulumi.Input['ScheduledJobOperationArgs']]],
21
- schedule_type: pulumi.Input[str],
22
- time_next_execution: pulumi.Input[str],
23
- defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
24
- description: Optional[pulumi.Input[str]] = None,
25
- display_name: Optional[pulumi.Input[str]] = None,
26
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
27
- is_managed_by_autonomous_linux: Optional[pulumi.Input[bool]] = None,
28
- is_subcompartment_included: Optional[pulumi.Input[bool]] = None,
29
- lifecycle_stage_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
30
- locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
31
- managed_compartment_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
32
- managed_instance_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
33
- managed_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
34
- recurring_rule: Optional[pulumi.Input[str]] = None,
35
- retry_intervals: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None):
36
- """
37
- The set of arguments for constructing a ScheduledJob resource.
38
- :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the scheduled job.
39
- :param pulumi.Input[Sequence[pulumi.Input['ScheduledJobOperationArgs']]] operations: (Updatable) The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following:
40
- * UPDATE_PACKAGES
41
- * UPDATE_ALL
42
- * UPDATE_SECURITY
43
- * UPDATE_BUGFIX
44
- * UPDATE_ENHANCEMENT
45
- * UPDATE_OTHER
46
- * UPDATE_KSPLICE_USERSPACE
47
- * UPDATE_KSPLICE_KERNEL
48
- :param pulumi.Input[str] schedule_type: (Updatable) The type of scheduling frequency for the scheduled job.
49
- :param pulumi.Input[str] time_next_execution: (Updatable) The desired time of the next execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
50
-
51
-
52
- ** IMPORTANT **
53
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
54
- :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). Example: `{"Operations.CostCenter": "42"}`
55
- :param pulumi.Input[str] description: (Updatable) User-specified description of the scheduled job. Avoid entering confidential information.
56
- :param pulumi.Input[str] display_name: (Updatable) User-friendly name for the scheduled job. Does not have to be unique and you can change the name later. Avoid entering confidential information.
57
- :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"}`
58
- :param pulumi.Input[bool] is_managed_by_autonomous_linux: Indicates whether this scheduled job is managed by the Autonomous Linux service.
59
- :param pulumi.Input[bool] is_subcompartment_included: Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment).
60
- :param pulumi.Input[Sequence[pulumi.Input[str]]] lifecycle_stage_ids: The lifecycle stage [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or managedCompartmentIds.
61
- :param pulumi.Input[Sequence[pulumi.Input[str]]] locations: The list of locations this scheduled job should operate on for a job targeting on compartments. (Empty list means apply to all locations). This can only be set when managedCompartmentIds is not empty.
62
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_compartment_ids: The compartment [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds.
63
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_instance_group_ids: The managed instance group [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedCompartmentIds, or lifecycleStageIds.
64
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_instance_ids: The managed instance [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds.
65
- :param pulumi.Input[str] recurring_rule: (Updatable) The frequency schedule for a recurring scheduled job.
66
- :param pulumi.Input[Sequence[pulumi.Input[int]]] retry_intervals: (Updatable) The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
67
- """
68
- pulumi.set(__self__, "compartment_id", compartment_id)
69
- pulumi.set(__self__, "operations", operations)
70
- pulumi.set(__self__, "schedule_type", schedule_type)
71
- pulumi.set(__self__, "time_next_execution", time_next_execution)
72
- if defined_tags is not None:
73
- pulumi.set(__self__, "defined_tags", defined_tags)
74
- if description is not None:
75
- pulumi.set(__self__, "description", description)
76
- if display_name is not None:
77
- pulumi.set(__self__, "display_name", display_name)
78
- if freeform_tags is not None:
79
- pulumi.set(__self__, "freeform_tags", freeform_tags)
80
- if is_managed_by_autonomous_linux is not None:
81
- pulumi.set(__self__, "is_managed_by_autonomous_linux", is_managed_by_autonomous_linux)
82
- if is_subcompartment_included is not None:
83
- pulumi.set(__self__, "is_subcompartment_included", is_subcompartment_included)
84
- if lifecycle_stage_ids is not None:
85
- pulumi.set(__self__, "lifecycle_stage_ids", lifecycle_stage_ids)
86
- if locations is not None:
87
- pulumi.set(__self__, "locations", locations)
88
- if managed_compartment_ids is not None:
89
- pulumi.set(__self__, "managed_compartment_ids", managed_compartment_ids)
90
- if managed_instance_group_ids is not None:
91
- pulumi.set(__self__, "managed_instance_group_ids", managed_instance_group_ids)
92
- if managed_instance_ids is not None:
93
- pulumi.set(__self__, "managed_instance_ids", managed_instance_ids)
94
- if recurring_rule is not None:
95
- pulumi.set(__self__, "recurring_rule", recurring_rule)
96
- if retry_intervals is not None:
97
- pulumi.set(__self__, "retry_intervals", retry_intervals)
98
-
99
- @property
100
- @pulumi.getter(name="compartmentId")
101
- def compartment_id(self) -> pulumi.Input[str]:
102
- """
103
- (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the scheduled job.
104
- """
105
- return pulumi.get(self, "compartment_id")
106
-
107
- @compartment_id.setter
108
- def compartment_id(self, value: pulumi.Input[str]):
109
- pulumi.set(self, "compartment_id", value)
110
-
111
- @property
112
- @pulumi.getter
113
- def operations(self) -> pulumi.Input[Sequence[pulumi.Input['ScheduledJobOperationArgs']]]:
114
- """
115
- (Updatable) The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following:
116
- * UPDATE_PACKAGES
117
- * UPDATE_ALL
118
- * UPDATE_SECURITY
119
- * UPDATE_BUGFIX
120
- * UPDATE_ENHANCEMENT
121
- * UPDATE_OTHER
122
- * UPDATE_KSPLICE_USERSPACE
123
- * UPDATE_KSPLICE_KERNEL
124
- """
125
- return pulumi.get(self, "operations")
126
-
127
- @operations.setter
128
- def operations(self, value: pulumi.Input[Sequence[pulumi.Input['ScheduledJobOperationArgs']]]):
129
- pulumi.set(self, "operations", value)
130
-
131
- @property
132
- @pulumi.getter(name="scheduleType")
133
- def schedule_type(self) -> pulumi.Input[str]:
134
- """
135
- (Updatable) The type of scheduling frequency for the scheduled job.
136
- """
137
- return pulumi.get(self, "schedule_type")
138
-
139
- @schedule_type.setter
140
- def schedule_type(self, value: pulumi.Input[str]):
141
- pulumi.set(self, "schedule_type", value)
142
-
143
- @property
144
- @pulumi.getter(name="timeNextExecution")
145
- def time_next_execution(self) -> pulumi.Input[str]:
146
- """
147
- (Updatable) The desired time of the next execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
148
-
149
-
150
- ** IMPORTANT **
151
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
152
- """
153
- return pulumi.get(self, "time_next_execution")
154
-
155
- @time_next_execution.setter
156
- def time_next_execution(self, value: pulumi.Input[str]):
157
- pulumi.set(self, "time_next_execution", value)
158
-
159
- @property
160
- @pulumi.getter(name="definedTags")
161
- def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
162
- """
163
- (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). Example: `{"Operations.CostCenter": "42"}`
164
- """
165
- return pulumi.get(self, "defined_tags")
166
-
167
- @defined_tags.setter
168
- def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
169
- pulumi.set(self, "defined_tags", value)
170
-
171
- @property
172
- @pulumi.getter
173
- def description(self) -> Optional[pulumi.Input[str]]:
174
- """
175
- (Updatable) User-specified description of the scheduled job. Avoid entering confidential information.
176
- """
177
- return pulumi.get(self, "description")
178
-
179
- @description.setter
180
- def description(self, value: Optional[pulumi.Input[str]]):
181
- pulumi.set(self, "description", value)
182
-
183
- @property
184
- @pulumi.getter(name="displayName")
185
- def display_name(self) -> Optional[pulumi.Input[str]]:
186
- """
187
- (Updatable) User-friendly name for the scheduled job. Does not have to be unique and you can change the name later. Avoid entering confidential information.
188
- """
189
- return pulumi.get(self, "display_name")
190
-
191
- @display_name.setter
192
- def display_name(self, value: Optional[pulumi.Input[str]]):
193
- pulumi.set(self, "display_name", value)
194
-
195
- @property
196
- @pulumi.getter(name="freeformTags")
197
- def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
198
- """
199
- (Updatable) 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"}`
200
- """
201
- return pulumi.get(self, "freeform_tags")
202
-
203
- @freeform_tags.setter
204
- def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
205
- pulumi.set(self, "freeform_tags", value)
206
-
207
- @property
208
- @pulumi.getter(name="isManagedByAutonomousLinux")
209
- def is_managed_by_autonomous_linux(self) -> Optional[pulumi.Input[bool]]:
210
- """
211
- Indicates whether this scheduled job is managed by the Autonomous Linux service.
212
- """
213
- return pulumi.get(self, "is_managed_by_autonomous_linux")
214
-
215
- @is_managed_by_autonomous_linux.setter
216
- def is_managed_by_autonomous_linux(self, value: Optional[pulumi.Input[bool]]):
217
- pulumi.set(self, "is_managed_by_autonomous_linux", value)
218
-
219
- @property
220
- @pulumi.getter(name="isSubcompartmentIncluded")
221
- def is_subcompartment_included(self) -> Optional[pulumi.Input[bool]]:
222
- """
223
- Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment).
224
- """
225
- return pulumi.get(self, "is_subcompartment_included")
226
-
227
- @is_subcompartment_included.setter
228
- def is_subcompartment_included(self, value: Optional[pulumi.Input[bool]]):
229
- pulumi.set(self, "is_subcompartment_included", value)
230
-
231
- @property
232
- @pulumi.getter(name="lifecycleStageIds")
233
- def lifecycle_stage_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
234
- """
235
- The lifecycle stage [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or managedCompartmentIds.
236
- """
237
- return pulumi.get(self, "lifecycle_stage_ids")
238
-
239
- @lifecycle_stage_ids.setter
240
- def lifecycle_stage_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
241
- pulumi.set(self, "lifecycle_stage_ids", value)
242
-
243
- @property
244
- @pulumi.getter
245
- def locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
246
- """
247
- The list of locations this scheduled job should operate on for a job targeting on compartments. (Empty list means apply to all locations). This can only be set when managedCompartmentIds is not empty.
248
- """
249
- return pulumi.get(self, "locations")
250
-
251
- @locations.setter
252
- def locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
253
- pulumi.set(self, "locations", value)
254
-
255
- @property
256
- @pulumi.getter(name="managedCompartmentIds")
257
- def managed_compartment_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
258
- """
259
- The compartment [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds.
260
- """
261
- return pulumi.get(self, "managed_compartment_ids")
262
-
263
- @managed_compartment_ids.setter
264
- def managed_compartment_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
265
- pulumi.set(self, "managed_compartment_ids", value)
266
-
267
- @property
268
- @pulumi.getter(name="managedInstanceGroupIds")
269
- def managed_instance_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
270
- """
271
- The managed instance group [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedCompartmentIds, or lifecycleStageIds.
272
- """
273
- return pulumi.get(self, "managed_instance_group_ids")
274
-
275
- @managed_instance_group_ids.setter
276
- def managed_instance_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
277
- pulumi.set(self, "managed_instance_group_ids", value)
278
-
279
- @property
280
- @pulumi.getter(name="managedInstanceIds")
281
- def managed_instance_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
282
- """
283
- The managed instance [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds.
284
- """
285
- return pulumi.get(self, "managed_instance_ids")
286
-
287
- @managed_instance_ids.setter
288
- def managed_instance_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
289
- pulumi.set(self, "managed_instance_ids", value)
290
-
291
- @property
292
- @pulumi.getter(name="recurringRule")
293
- def recurring_rule(self) -> Optional[pulumi.Input[str]]:
294
- """
295
- (Updatable) The frequency schedule for a recurring scheduled job.
296
- """
297
- return pulumi.get(self, "recurring_rule")
298
-
299
- @recurring_rule.setter
300
- def recurring_rule(self, value: Optional[pulumi.Input[str]]):
301
- pulumi.set(self, "recurring_rule", value)
302
-
303
- @property
304
- @pulumi.getter(name="retryIntervals")
305
- def retry_intervals(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
306
- """
307
- (Updatable) The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
308
- """
309
- return pulumi.get(self, "retry_intervals")
310
-
311
- @retry_intervals.setter
312
- def retry_intervals(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
313
- pulumi.set(self, "retry_intervals", value)
314
-
315
-
316
- @pulumi.input_type
317
- class _ScheduledJobState:
318
- def __init__(__self__, *,
319
- compartment_id: Optional[pulumi.Input[str]] = None,
320
- defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
321
- description: Optional[pulumi.Input[str]] = None,
322
- display_name: Optional[pulumi.Input[str]] = None,
323
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
324
- is_managed_by_autonomous_linux: Optional[pulumi.Input[bool]] = None,
325
- is_restricted: Optional[pulumi.Input[bool]] = None,
326
- is_subcompartment_included: Optional[pulumi.Input[bool]] = None,
327
- lifecycle_stage_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
328
- locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
329
- managed_compartment_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
330
- managed_instance_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
331
- managed_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
332
- operations: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduledJobOperationArgs']]]] = None,
333
- recurring_rule: Optional[pulumi.Input[str]] = None,
334
- retry_intervals: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
335
- schedule_type: Optional[pulumi.Input[str]] = None,
336
- state: Optional[pulumi.Input[str]] = None,
337
- system_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
338
- time_created: Optional[pulumi.Input[str]] = None,
339
- time_last_execution: Optional[pulumi.Input[str]] = None,
340
- time_next_execution: Optional[pulumi.Input[str]] = None,
341
- time_updated: Optional[pulumi.Input[str]] = None,
342
- work_request_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
343
- """
344
- Input properties used for looking up and filtering ScheduledJob resources.
345
- :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the scheduled job.
346
- :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). Example: `{"Operations.CostCenter": "42"}`
347
- :param pulumi.Input[str] description: (Updatable) User-specified description of the scheduled job. Avoid entering confidential information.
348
- :param pulumi.Input[str] display_name: (Updatable) User-friendly name for the scheduled job. Does not have to be unique and you can change the name later. Avoid entering confidential information.
349
- :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"}`
350
- :param pulumi.Input[bool] is_managed_by_autonomous_linux: Indicates whether this scheduled job is managed by the Autonomous Linux service.
351
- :param pulumi.Input[bool] is_restricted: Indicates if the schedule job has restricted update and deletion capabilities. For restricted scheduled jobs, you can update only the timeNextExecution, recurringRule, and tags.
352
- :param pulumi.Input[bool] is_subcompartment_included: Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment).
353
- :param pulumi.Input[Sequence[pulumi.Input[str]]] lifecycle_stage_ids: The lifecycle stage [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or managedCompartmentIds.
354
- :param pulumi.Input[Sequence[pulumi.Input[str]]] locations: The list of locations this scheduled job should operate on for a job targeting on compartments. (Empty list means apply to all locations). This can only be set when managedCompartmentIds is not empty.
355
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_compartment_ids: The compartment [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds.
356
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_instance_group_ids: The managed instance group [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedCompartmentIds, or lifecycleStageIds.
357
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_instance_ids: The managed instance [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds.
358
- :param pulumi.Input[Sequence[pulumi.Input['ScheduledJobOperationArgs']]] operations: (Updatable) The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following:
359
- * UPDATE_PACKAGES
360
- * UPDATE_ALL
361
- * UPDATE_SECURITY
362
- * UPDATE_BUGFIX
363
- * UPDATE_ENHANCEMENT
364
- * UPDATE_OTHER
365
- * UPDATE_KSPLICE_USERSPACE
366
- * UPDATE_KSPLICE_KERNEL
367
- :param pulumi.Input[str] recurring_rule: (Updatable) The frequency schedule for a recurring scheduled job.
368
- :param pulumi.Input[Sequence[pulumi.Input[int]]] retry_intervals: (Updatable) The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
369
- :param pulumi.Input[str] schedule_type: (Updatable) The type of scheduling frequency for the scheduled job.
370
- :param pulumi.Input[str] state: The current state of the scheduled job.
371
- :param pulumi.Input[Mapping[str, Any]] system_tags: System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
372
- :param pulumi.Input[str] time_created: The time this scheduled job was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
373
- :param pulumi.Input[str] time_last_execution: The time of the last execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
374
- :param pulumi.Input[str] time_next_execution: (Updatable) The desired time of the next execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
375
-
376
-
377
- ** IMPORTANT **
378
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
379
- :param pulumi.Input[str] time_updated: The time this scheduled job was updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
380
- :param pulumi.Input[Sequence[pulumi.Input[str]]] work_request_ids: The list of work request [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this scheduled job.
381
- """
382
- if compartment_id is not None:
383
- pulumi.set(__self__, "compartment_id", compartment_id)
384
- if defined_tags is not None:
385
- pulumi.set(__self__, "defined_tags", defined_tags)
386
- if description is not None:
387
- pulumi.set(__self__, "description", description)
388
- if display_name is not None:
389
- pulumi.set(__self__, "display_name", display_name)
390
- if freeform_tags is not None:
391
- pulumi.set(__self__, "freeform_tags", freeform_tags)
392
- if is_managed_by_autonomous_linux is not None:
393
- pulumi.set(__self__, "is_managed_by_autonomous_linux", is_managed_by_autonomous_linux)
394
- if is_restricted is not None:
395
- pulumi.set(__self__, "is_restricted", is_restricted)
396
- if is_subcompartment_included is not None:
397
- pulumi.set(__self__, "is_subcompartment_included", is_subcompartment_included)
398
- if lifecycle_stage_ids is not None:
399
- pulumi.set(__self__, "lifecycle_stage_ids", lifecycle_stage_ids)
400
- if locations is not None:
401
- pulumi.set(__self__, "locations", locations)
402
- if managed_compartment_ids is not None:
403
- pulumi.set(__self__, "managed_compartment_ids", managed_compartment_ids)
404
- if managed_instance_group_ids is not None:
405
- pulumi.set(__self__, "managed_instance_group_ids", managed_instance_group_ids)
406
- if managed_instance_ids is not None:
407
- pulumi.set(__self__, "managed_instance_ids", managed_instance_ids)
408
- if operations is not None:
409
- pulumi.set(__self__, "operations", operations)
410
- if recurring_rule is not None:
411
- pulumi.set(__self__, "recurring_rule", recurring_rule)
412
- if retry_intervals is not None:
413
- pulumi.set(__self__, "retry_intervals", retry_intervals)
414
- if schedule_type is not None:
415
- pulumi.set(__self__, "schedule_type", schedule_type)
416
- if state is not None:
417
- pulumi.set(__self__, "state", state)
418
- if system_tags is not None:
419
- pulumi.set(__self__, "system_tags", system_tags)
420
- if time_created is not None:
421
- pulumi.set(__self__, "time_created", time_created)
422
- if time_last_execution is not None:
423
- pulumi.set(__self__, "time_last_execution", time_last_execution)
424
- if time_next_execution is not None:
425
- pulumi.set(__self__, "time_next_execution", time_next_execution)
426
- if time_updated is not None:
427
- pulumi.set(__self__, "time_updated", time_updated)
428
- if work_request_ids is not None:
429
- pulumi.set(__self__, "work_request_ids", work_request_ids)
430
-
431
- @property
432
- @pulumi.getter(name="compartmentId")
433
- def compartment_id(self) -> Optional[pulumi.Input[str]]:
434
- """
435
- (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the scheduled job.
436
- """
437
- return pulumi.get(self, "compartment_id")
438
-
439
- @compartment_id.setter
440
- def compartment_id(self, value: Optional[pulumi.Input[str]]):
441
- pulumi.set(self, "compartment_id", value)
442
-
443
- @property
444
- @pulumi.getter(name="definedTags")
445
- def defined_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
446
- """
447
- (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). Example: `{"Operations.CostCenter": "42"}`
448
- """
449
- return pulumi.get(self, "defined_tags")
450
-
451
- @defined_tags.setter
452
- def defined_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
453
- pulumi.set(self, "defined_tags", value)
454
-
455
- @property
456
- @pulumi.getter
457
- def description(self) -> Optional[pulumi.Input[str]]:
458
- """
459
- (Updatable) User-specified description of the scheduled job. Avoid entering confidential information.
460
- """
461
- return pulumi.get(self, "description")
462
-
463
- @description.setter
464
- def description(self, value: Optional[pulumi.Input[str]]):
465
- pulumi.set(self, "description", value)
466
-
467
- @property
468
- @pulumi.getter(name="displayName")
469
- def display_name(self) -> Optional[pulumi.Input[str]]:
470
- """
471
- (Updatable) User-friendly name for the scheduled job. Does not have to be unique and you can change the name later. Avoid entering confidential information.
472
- """
473
- return pulumi.get(self, "display_name")
474
-
475
- @display_name.setter
476
- def display_name(self, value: Optional[pulumi.Input[str]]):
477
- pulumi.set(self, "display_name", value)
478
-
479
- @property
480
- @pulumi.getter(name="freeformTags")
481
- def freeform_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
482
- """
483
- (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"}`
484
- """
485
- return pulumi.get(self, "freeform_tags")
486
-
487
- @freeform_tags.setter
488
- def freeform_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
489
- pulumi.set(self, "freeform_tags", value)
490
-
491
- @property
492
- @pulumi.getter(name="isManagedByAutonomousLinux")
493
- def is_managed_by_autonomous_linux(self) -> Optional[pulumi.Input[bool]]:
494
- """
495
- Indicates whether this scheduled job is managed by the Autonomous Linux service.
496
- """
497
- return pulumi.get(self, "is_managed_by_autonomous_linux")
498
-
499
- @is_managed_by_autonomous_linux.setter
500
- def is_managed_by_autonomous_linux(self, value: Optional[pulumi.Input[bool]]):
501
- pulumi.set(self, "is_managed_by_autonomous_linux", value)
502
-
503
- @property
504
- @pulumi.getter(name="isRestricted")
505
- def is_restricted(self) -> Optional[pulumi.Input[bool]]:
506
- """
507
- Indicates if the schedule job has restricted update and deletion capabilities. For restricted scheduled jobs, you can update only the timeNextExecution, recurringRule, and tags.
508
- """
509
- return pulumi.get(self, "is_restricted")
510
-
511
- @is_restricted.setter
512
- def is_restricted(self, value: Optional[pulumi.Input[bool]]):
513
- pulumi.set(self, "is_restricted", value)
514
-
515
- @property
516
- @pulumi.getter(name="isSubcompartmentIncluded")
517
- def is_subcompartment_included(self) -> Optional[pulumi.Input[bool]]:
518
- """
519
- Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment).
520
- """
521
- return pulumi.get(self, "is_subcompartment_included")
522
-
523
- @is_subcompartment_included.setter
524
- def is_subcompartment_included(self, value: Optional[pulumi.Input[bool]]):
525
- pulumi.set(self, "is_subcompartment_included", value)
526
-
527
- @property
528
- @pulumi.getter(name="lifecycleStageIds")
529
- def lifecycle_stage_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
530
- """
531
- The lifecycle stage [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or managedCompartmentIds.
532
- """
533
- return pulumi.get(self, "lifecycle_stage_ids")
534
-
535
- @lifecycle_stage_ids.setter
536
- def lifecycle_stage_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
537
- pulumi.set(self, "lifecycle_stage_ids", value)
538
-
539
- @property
540
- @pulumi.getter
541
- def locations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
542
- """
543
- The list of locations this scheduled job should operate on for a job targeting on compartments. (Empty list means apply to all locations). This can only be set when managedCompartmentIds is not empty.
544
- """
545
- return pulumi.get(self, "locations")
546
-
547
- @locations.setter
548
- def locations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
549
- pulumi.set(self, "locations", value)
550
-
551
- @property
552
- @pulumi.getter(name="managedCompartmentIds")
553
- def managed_compartment_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
554
- """
555
- The compartment [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds.
556
- """
557
- return pulumi.get(self, "managed_compartment_ids")
558
-
559
- @managed_compartment_ids.setter
560
- def managed_compartment_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
561
- pulumi.set(self, "managed_compartment_ids", value)
562
-
563
- @property
564
- @pulumi.getter(name="managedInstanceGroupIds")
565
- def managed_instance_group_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
566
- """
567
- The managed instance group [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedCompartmentIds, or lifecycleStageIds.
568
- """
569
- return pulumi.get(self, "managed_instance_group_ids")
570
-
571
- @managed_instance_group_ids.setter
572
- def managed_instance_group_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
573
- pulumi.set(self, "managed_instance_group_ids", value)
574
-
575
- @property
576
- @pulumi.getter(name="managedInstanceIds")
577
- def managed_instance_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
578
- """
579
- The managed instance [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds.
580
- """
581
- return pulumi.get(self, "managed_instance_ids")
582
-
583
- @managed_instance_ids.setter
584
- def managed_instance_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
585
- pulumi.set(self, "managed_instance_ids", value)
586
-
587
- @property
588
- @pulumi.getter
589
- def operations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScheduledJobOperationArgs']]]]:
590
- """
591
- (Updatable) The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following:
592
- * UPDATE_PACKAGES
593
- * UPDATE_ALL
594
- * UPDATE_SECURITY
595
- * UPDATE_BUGFIX
596
- * UPDATE_ENHANCEMENT
597
- * UPDATE_OTHER
598
- * UPDATE_KSPLICE_USERSPACE
599
- * UPDATE_KSPLICE_KERNEL
600
- """
601
- return pulumi.get(self, "operations")
602
-
603
- @operations.setter
604
- def operations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScheduledJobOperationArgs']]]]):
605
- pulumi.set(self, "operations", value)
606
-
607
- @property
608
- @pulumi.getter(name="recurringRule")
609
- def recurring_rule(self) -> Optional[pulumi.Input[str]]:
610
- """
611
- (Updatable) The frequency schedule for a recurring scheduled job.
612
- """
613
- return pulumi.get(self, "recurring_rule")
614
-
615
- @recurring_rule.setter
616
- def recurring_rule(self, value: Optional[pulumi.Input[str]]):
617
- pulumi.set(self, "recurring_rule", value)
618
-
619
- @property
620
- @pulumi.getter(name="retryIntervals")
621
- def retry_intervals(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
622
- """
623
- (Updatable) The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
624
- """
625
- return pulumi.get(self, "retry_intervals")
626
-
627
- @retry_intervals.setter
628
- def retry_intervals(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
629
- pulumi.set(self, "retry_intervals", value)
630
-
631
- @property
632
- @pulumi.getter(name="scheduleType")
633
- def schedule_type(self) -> Optional[pulumi.Input[str]]:
634
- """
635
- (Updatable) The type of scheduling frequency for the scheduled job.
636
- """
637
- return pulumi.get(self, "schedule_type")
638
-
639
- @schedule_type.setter
640
- def schedule_type(self, value: Optional[pulumi.Input[str]]):
641
- pulumi.set(self, "schedule_type", value)
642
-
643
- @property
644
- @pulumi.getter
645
- def state(self) -> Optional[pulumi.Input[str]]:
646
- """
647
- The current state of the scheduled job.
648
- """
649
- return pulumi.get(self, "state")
650
-
651
- @state.setter
652
- def state(self, value: Optional[pulumi.Input[str]]):
653
- pulumi.set(self, "state", value)
654
-
655
- @property
656
- @pulumi.getter(name="systemTags")
657
- def system_tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
658
- """
659
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
660
- """
661
- return pulumi.get(self, "system_tags")
662
-
663
- @system_tags.setter
664
- def system_tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
665
- pulumi.set(self, "system_tags", value)
666
-
667
- @property
668
- @pulumi.getter(name="timeCreated")
669
- def time_created(self) -> Optional[pulumi.Input[str]]:
670
- """
671
- The time this scheduled job was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
672
- """
673
- return pulumi.get(self, "time_created")
674
-
675
- @time_created.setter
676
- def time_created(self, value: Optional[pulumi.Input[str]]):
677
- pulumi.set(self, "time_created", value)
678
-
679
- @property
680
- @pulumi.getter(name="timeLastExecution")
681
- def time_last_execution(self) -> Optional[pulumi.Input[str]]:
682
- """
683
- The time of the last execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
684
- """
685
- return pulumi.get(self, "time_last_execution")
686
-
687
- @time_last_execution.setter
688
- def time_last_execution(self, value: Optional[pulumi.Input[str]]):
689
- pulumi.set(self, "time_last_execution", value)
690
-
691
- @property
692
- @pulumi.getter(name="timeNextExecution")
693
- def time_next_execution(self) -> Optional[pulumi.Input[str]]:
694
- """
695
- (Updatable) The desired time of the next execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
696
-
697
-
698
- ** IMPORTANT **
699
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
700
- """
701
- return pulumi.get(self, "time_next_execution")
702
-
703
- @time_next_execution.setter
704
- def time_next_execution(self, value: Optional[pulumi.Input[str]]):
705
- pulumi.set(self, "time_next_execution", value)
706
-
707
- @property
708
- @pulumi.getter(name="timeUpdated")
709
- def time_updated(self) -> Optional[pulumi.Input[str]]:
710
- """
711
- The time this scheduled job was updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
712
- """
713
- return pulumi.get(self, "time_updated")
714
-
715
- @time_updated.setter
716
- def time_updated(self, value: Optional[pulumi.Input[str]]):
717
- pulumi.set(self, "time_updated", value)
718
-
719
- @property
720
- @pulumi.getter(name="workRequestIds")
721
- def work_request_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
722
- """
723
- The list of work request [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this scheduled job.
724
- """
725
- return pulumi.get(self, "work_request_ids")
726
-
727
- @work_request_ids.setter
728
- def work_request_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
729
- pulumi.set(self, "work_request_ids", value)
730
-
731
-
732
- class ScheduledJob(pulumi.CustomResource):
733
- @overload
734
- def __init__(__self__,
735
- resource_name: str,
736
- opts: Optional[pulumi.ResourceOptions] = None,
737
- compartment_id: Optional[pulumi.Input[str]] = None,
738
- defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
739
- description: Optional[pulumi.Input[str]] = None,
740
- display_name: Optional[pulumi.Input[str]] = None,
741
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
742
- is_managed_by_autonomous_linux: Optional[pulumi.Input[bool]] = None,
743
- is_subcompartment_included: Optional[pulumi.Input[bool]] = None,
744
- lifecycle_stage_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
745
- locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
746
- managed_compartment_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
747
- managed_instance_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
748
- managed_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
749
- operations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduledJobOperationArgs']]]]] = None,
750
- recurring_rule: Optional[pulumi.Input[str]] = None,
751
- retry_intervals: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
752
- schedule_type: Optional[pulumi.Input[str]] = None,
753
- time_next_execution: Optional[pulumi.Input[str]] = None,
754
- __props__=None):
755
- """
756
- This resource provides the Scheduled Job resource in Oracle Cloud Infrastructure Os Management Hub service.
757
-
758
- Creates a new scheduled job.
759
-
760
- ## Example Usage
761
-
762
- ```python
763
- import pulumi
764
- import pulumi_oci as oci
765
-
766
- test_scheduled_job = oci.os_management_hub.ScheduledJob("test_scheduled_job",
767
- compartment_id=compartment_id,
768
- operations=[oci.os_management_hub.ScheduledJobOperationArgs(
769
- operation_type=scheduled_job_operations_operation_type,
770
- manage_module_streams_details=oci.os_management_hub.ScheduledJobOperationManageModuleStreamsDetailsArgs(
771
- disables=[oci.os_management_hub.ScheduledJobOperationManageModuleStreamsDetailsDisableArgs(
772
- module_name=scheduled_job_operations_manage_module_streams_details_disable_module_name,
773
- stream_name=test_stream["name"],
774
- software_source_id=test_software_source["id"],
775
- )],
776
- enables=[oci.os_management_hub.ScheduledJobOperationManageModuleStreamsDetailsEnableArgs(
777
- module_name=scheduled_job_operations_manage_module_streams_details_enable_module_name,
778
- stream_name=test_stream["name"],
779
- software_source_id=test_software_source["id"],
780
- )],
781
- installs=[oci.os_management_hub.ScheduledJobOperationManageModuleStreamsDetailsInstallArgs(
782
- module_name=scheduled_job_operations_manage_module_streams_details_install_module_name,
783
- profile_name=test_profile["name"],
784
- stream_name=test_stream["name"],
785
- software_source_id=test_software_source["id"],
786
- )],
787
- removes=[oci.os_management_hub.ScheduledJobOperationManageModuleStreamsDetailsRemoveArgs(
788
- module_name=scheduled_job_operations_manage_module_streams_details_remove_module_name,
789
- profile_name=test_profile["name"],
790
- stream_name=test_stream["name"],
791
- software_source_id=test_software_source["id"],
792
- )],
793
- ),
794
- package_names=scheduled_job_operations_package_names,
795
- software_source_ids=scheduled_job_operations_software_source_ids,
796
- switch_module_streams_details=oci.os_management_hub.ScheduledJobOperationSwitchModuleStreamsDetailsArgs(
797
- module_name=scheduled_job_operations_switch_module_streams_details_module_name,
798
- stream_name=test_stream["name"],
799
- software_source_id=test_software_source["id"],
800
- ),
801
- windows_update_names=scheduled_job_operations_windows_update_names,
802
- )],
803
- schedule_type=scheduled_job_schedule_type,
804
- time_next_execution=scheduled_job_time_next_execution,
805
- defined_tags={
806
- "Operations.CostCenter": "42",
807
- },
808
- description=scheduled_job_description,
809
- display_name=scheduled_job_display_name,
810
- freeform_tags={
811
- "Department": "Finance",
812
- },
813
- is_managed_by_autonomous_linux=scheduled_job_is_managed_by_autonomous_linux,
814
- is_subcompartment_included=scheduled_job_is_subcompartment_included,
815
- lifecycle_stage_ids=scheduled_job_lifecycle_stage_ids,
816
- locations=scheduled_job_locations,
817
- managed_compartment_ids=scheduled_job_managed_compartment_ids,
818
- managed_instance_group_ids=scheduled_job_managed_instance_group_ids,
819
- managed_instance_ids=scheduled_job_managed_instance_ids,
820
- recurring_rule=scheduled_job_recurring_rule,
821
- retry_intervals=scheduled_job_retry_intervals)
822
- ```
823
-
824
- ## Import
825
-
826
- ScheduledJobs can be imported using the `id`, e.g.
827
-
828
- ```sh
829
- $ pulumi import oci:OsManagementHub/scheduledJob:ScheduledJob test_scheduled_job "id"
830
- ```
831
-
832
- :param str resource_name: The name of the resource.
833
- :param pulumi.ResourceOptions opts: Options for the resource.
834
- :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the scheduled job.
835
- :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). Example: `{"Operations.CostCenter": "42"}`
836
- :param pulumi.Input[str] description: (Updatable) User-specified description of the scheduled job. Avoid entering confidential information.
837
- :param pulumi.Input[str] display_name: (Updatable) User-friendly name for the scheduled job. Does not have to be unique and you can change the name later. Avoid entering confidential information.
838
- :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"}`
839
- :param pulumi.Input[bool] is_managed_by_autonomous_linux: Indicates whether this scheduled job is managed by the Autonomous Linux service.
840
- :param pulumi.Input[bool] is_subcompartment_included: Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment).
841
- :param pulumi.Input[Sequence[pulumi.Input[str]]] lifecycle_stage_ids: The lifecycle stage [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or managedCompartmentIds.
842
- :param pulumi.Input[Sequence[pulumi.Input[str]]] locations: The list of locations this scheduled job should operate on for a job targeting on compartments. (Empty list means apply to all locations). This can only be set when managedCompartmentIds is not empty.
843
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_compartment_ids: The compartment [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds.
844
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_instance_group_ids: The managed instance group [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedCompartmentIds, or lifecycleStageIds.
845
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_instance_ids: The managed instance [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds.
846
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduledJobOperationArgs']]]] operations: (Updatable) The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following:
847
- * UPDATE_PACKAGES
848
- * UPDATE_ALL
849
- * UPDATE_SECURITY
850
- * UPDATE_BUGFIX
851
- * UPDATE_ENHANCEMENT
852
- * UPDATE_OTHER
853
- * UPDATE_KSPLICE_USERSPACE
854
- * UPDATE_KSPLICE_KERNEL
855
- :param pulumi.Input[str] recurring_rule: (Updatable) The frequency schedule for a recurring scheduled job.
856
- :param pulumi.Input[Sequence[pulumi.Input[int]]] retry_intervals: (Updatable) The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
857
- :param pulumi.Input[str] schedule_type: (Updatable) The type of scheduling frequency for the scheduled job.
858
- :param pulumi.Input[str] time_next_execution: (Updatable) The desired time of the next execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
859
-
860
-
861
- ** IMPORTANT **
862
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
863
- """
864
- ...
865
- @overload
866
- def __init__(__self__,
867
- resource_name: str,
868
- args: ScheduledJobArgs,
869
- opts: Optional[pulumi.ResourceOptions] = None):
870
- """
871
- This resource provides the Scheduled Job resource in Oracle Cloud Infrastructure Os Management Hub service.
872
-
873
- Creates a new scheduled job.
874
-
875
- ## Example Usage
876
-
877
- ```python
878
- import pulumi
879
- import pulumi_oci as oci
880
-
881
- test_scheduled_job = oci.os_management_hub.ScheduledJob("test_scheduled_job",
882
- compartment_id=compartment_id,
883
- operations=[oci.os_management_hub.ScheduledJobOperationArgs(
884
- operation_type=scheduled_job_operations_operation_type,
885
- manage_module_streams_details=oci.os_management_hub.ScheduledJobOperationManageModuleStreamsDetailsArgs(
886
- disables=[oci.os_management_hub.ScheduledJobOperationManageModuleStreamsDetailsDisableArgs(
887
- module_name=scheduled_job_operations_manage_module_streams_details_disable_module_name,
888
- stream_name=test_stream["name"],
889
- software_source_id=test_software_source["id"],
890
- )],
891
- enables=[oci.os_management_hub.ScheduledJobOperationManageModuleStreamsDetailsEnableArgs(
892
- module_name=scheduled_job_operations_manage_module_streams_details_enable_module_name,
893
- stream_name=test_stream["name"],
894
- software_source_id=test_software_source["id"],
895
- )],
896
- installs=[oci.os_management_hub.ScheduledJobOperationManageModuleStreamsDetailsInstallArgs(
897
- module_name=scheduled_job_operations_manage_module_streams_details_install_module_name,
898
- profile_name=test_profile["name"],
899
- stream_name=test_stream["name"],
900
- software_source_id=test_software_source["id"],
901
- )],
902
- removes=[oci.os_management_hub.ScheduledJobOperationManageModuleStreamsDetailsRemoveArgs(
903
- module_name=scheduled_job_operations_manage_module_streams_details_remove_module_name,
904
- profile_name=test_profile["name"],
905
- stream_name=test_stream["name"],
906
- software_source_id=test_software_source["id"],
907
- )],
908
- ),
909
- package_names=scheduled_job_operations_package_names,
910
- software_source_ids=scheduled_job_operations_software_source_ids,
911
- switch_module_streams_details=oci.os_management_hub.ScheduledJobOperationSwitchModuleStreamsDetailsArgs(
912
- module_name=scheduled_job_operations_switch_module_streams_details_module_name,
913
- stream_name=test_stream["name"],
914
- software_source_id=test_software_source["id"],
915
- ),
916
- windows_update_names=scheduled_job_operations_windows_update_names,
917
- )],
918
- schedule_type=scheduled_job_schedule_type,
919
- time_next_execution=scheduled_job_time_next_execution,
920
- defined_tags={
921
- "Operations.CostCenter": "42",
922
- },
923
- description=scheduled_job_description,
924
- display_name=scheduled_job_display_name,
925
- freeform_tags={
926
- "Department": "Finance",
927
- },
928
- is_managed_by_autonomous_linux=scheduled_job_is_managed_by_autonomous_linux,
929
- is_subcompartment_included=scheduled_job_is_subcompartment_included,
930
- lifecycle_stage_ids=scheduled_job_lifecycle_stage_ids,
931
- locations=scheduled_job_locations,
932
- managed_compartment_ids=scheduled_job_managed_compartment_ids,
933
- managed_instance_group_ids=scheduled_job_managed_instance_group_ids,
934
- managed_instance_ids=scheduled_job_managed_instance_ids,
935
- recurring_rule=scheduled_job_recurring_rule,
936
- retry_intervals=scheduled_job_retry_intervals)
937
- ```
938
-
939
- ## Import
940
-
941
- ScheduledJobs can be imported using the `id`, e.g.
942
-
943
- ```sh
944
- $ pulumi import oci:OsManagementHub/scheduledJob:ScheduledJob test_scheduled_job "id"
945
- ```
946
-
947
- :param str resource_name: The name of the resource.
948
- :param ScheduledJobArgs args: The arguments to use to populate this resource's properties.
949
- :param pulumi.ResourceOptions opts: Options for the resource.
950
- """
951
- ...
952
- def __init__(__self__, resource_name: str, *args, **kwargs):
953
- resource_args, opts = _utilities.get_resource_args_opts(ScheduledJobArgs, pulumi.ResourceOptions, *args, **kwargs)
954
- if resource_args is not None:
955
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
956
- else:
957
- __self__._internal_init(resource_name, *args, **kwargs)
958
-
959
- def _internal_init(__self__,
960
- resource_name: str,
961
- opts: Optional[pulumi.ResourceOptions] = None,
962
- compartment_id: Optional[pulumi.Input[str]] = None,
963
- defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
964
- description: Optional[pulumi.Input[str]] = None,
965
- display_name: Optional[pulumi.Input[str]] = None,
966
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
967
- is_managed_by_autonomous_linux: Optional[pulumi.Input[bool]] = None,
968
- is_subcompartment_included: Optional[pulumi.Input[bool]] = None,
969
- lifecycle_stage_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
970
- locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
971
- managed_compartment_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
972
- managed_instance_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
973
- managed_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
974
- operations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduledJobOperationArgs']]]]] = None,
975
- recurring_rule: Optional[pulumi.Input[str]] = None,
976
- retry_intervals: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
977
- schedule_type: Optional[pulumi.Input[str]] = None,
978
- time_next_execution: Optional[pulumi.Input[str]] = None,
979
- __props__=None):
980
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
981
- if not isinstance(opts, pulumi.ResourceOptions):
982
- raise TypeError('Expected resource options to be a ResourceOptions instance')
983
- if opts.id is None:
984
- if __props__ is not None:
985
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
986
- __props__ = ScheduledJobArgs.__new__(ScheduledJobArgs)
987
-
988
- if compartment_id is None and not opts.urn:
989
- raise TypeError("Missing required property 'compartment_id'")
990
- __props__.__dict__["compartment_id"] = compartment_id
991
- __props__.__dict__["defined_tags"] = defined_tags
992
- __props__.__dict__["description"] = description
993
- __props__.__dict__["display_name"] = display_name
994
- __props__.__dict__["freeform_tags"] = freeform_tags
995
- __props__.__dict__["is_managed_by_autonomous_linux"] = is_managed_by_autonomous_linux
996
- __props__.__dict__["is_subcompartment_included"] = is_subcompartment_included
997
- __props__.__dict__["lifecycle_stage_ids"] = lifecycle_stage_ids
998
- __props__.__dict__["locations"] = locations
999
- __props__.__dict__["managed_compartment_ids"] = managed_compartment_ids
1000
- __props__.__dict__["managed_instance_group_ids"] = managed_instance_group_ids
1001
- __props__.__dict__["managed_instance_ids"] = managed_instance_ids
1002
- if operations is None and not opts.urn:
1003
- raise TypeError("Missing required property 'operations'")
1004
- __props__.__dict__["operations"] = operations
1005
- __props__.__dict__["recurring_rule"] = recurring_rule
1006
- __props__.__dict__["retry_intervals"] = retry_intervals
1007
- if schedule_type is None and not opts.urn:
1008
- raise TypeError("Missing required property 'schedule_type'")
1009
- __props__.__dict__["schedule_type"] = schedule_type
1010
- if time_next_execution is None and not opts.urn:
1011
- raise TypeError("Missing required property 'time_next_execution'")
1012
- __props__.__dict__["time_next_execution"] = time_next_execution
1013
- __props__.__dict__["is_restricted"] = None
1014
- __props__.__dict__["state"] = None
1015
- __props__.__dict__["system_tags"] = None
1016
- __props__.__dict__["time_created"] = None
1017
- __props__.__dict__["time_last_execution"] = None
1018
- __props__.__dict__["time_updated"] = None
1019
- __props__.__dict__["work_request_ids"] = None
1020
- super(ScheduledJob, __self__).__init__(
1021
- 'oci:OsManagementHub/scheduledJob:ScheduledJob',
1022
- resource_name,
1023
- __props__,
1024
- opts)
1025
-
1026
- @staticmethod
1027
- def get(resource_name: str,
1028
- id: pulumi.Input[str],
1029
- opts: Optional[pulumi.ResourceOptions] = None,
1030
- compartment_id: Optional[pulumi.Input[str]] = None,
1031
- defined_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
1032
- description: Optional[pulumi.Input[str]] = None,
1033
- display_name: Optional[pulumi.Input[str]] = None,
1034
- freeform_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
1035
- is_managed_by_autonomous_linux: Optional[pulumi.Input[bool]] = None,
1036
- is_restricted: Optional[pulumi.Input[bool]] = None,
1037
- is_subcompartment_included: Optional[pulumi.Input[bool]] = None,
1038
- lifecycle_stage_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1039
- locations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1040
- managed_compartment_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1041
- managed_instance_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1042
- managed_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1043
- operations: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduledJobOperationArgs']]]]] = None,
1044
- recurring_rule: Optional[pulumi.Input[str]] = None,
1045
- retry_intervals: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
1046
- schedule_type: Optional[pulumi.Input[str]] = None,
1047
- state: Optional[pulumi.Input[str]] = None,
1048
- system_tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
1049
- time_created: Optional[pulumi.Input[str]] = None,
1050
- time_last_execution: Optional[pulumi.Input[str]] = None,
1051
- time_next_execution: Optional[pulumi.Input[str]] = None,
1052
- time_updated: Optional[pulumi.Input[str]] = None,
1053
- work_request_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ScheduledJob':
1054
- """
1055
- Get an existing ScheduledJob resource's state with the given name, id, and optional extra
1056
- properties used to qualify the lookup.
1057
-
1058
- :param str resource_name: The unique name of the resulting resource.
1059
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
1060
- :param pulumi.ResourceOptions opts: Options for the resource.
1061
- :param pulumi.Input[str] compartment_id: (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the scheduled job.
1062
- :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). Example: `{"Operations.CostCenter": "42"}`
1063
- :param pulumi.Input[str] description: (Updatable) User-specified description of the scheduled job. Avoid entering confidential information.
1064
- :param pulumi.Input[str] display_name: (Updatable) User-friendly name for the scheduled job. Does not have to be unique and you can change the name later. Avoid entering confidential information.
1065
- :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"}`
1066
- :param pulumi.Input[bool] is_managed_by_autonomous_linux: Indicates whether this scheduled job is managed by the Autonomous Linux service.
1067
- :param pulumi.Input[bool] is_restricted: Indicates if the schedule job has restricted update and deletion capabilities. For restricted scheduled jobs, you can update only the timeNextExecution, recurringRule, and tags.
1068
- :param pulumi.Input[bool] is_subcompartment_included: Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment).
1069
- :param pulumi.Input[Sequence[pulumi.Input[str]]] lifecycle_stage_ids: The lifecycle stage [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or managedCompartmentIds.
1070
- :param pulumi.Input[Sequence[pulumi.Input[str]]] locations: The list of locations this scheduled job should operate on for a job targeting on compartments. (Empty list means apply to all locations). This can only be set when managedCompartmentIds is not empty.
1071
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_compartment_ids: The compartment [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds.
1072
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_instance_group_ids: The managed instance group [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedCompartmentIds, or lifecycleStageIds.
1073
- :param pulumi.Input[Sequence[pulumi.Input[str]]] managed_instance_ids: The managed instance [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds.
1074
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScheduledJobOperationArgs']]]] operations: (Updatable) The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following:
1075
- * UPDATE_PACKAGES
1076
- * UPDATE_ALL
1077
- * UPDATE_SECURITY
1078
- * UPDATE_BUGFIX
1079
- * UPDATE_ENHANCEMENT
1080
- * UPDATE_OTHER
1081
- * UPDATE_KSPLICE_USERSPACE
1082
- * UPDATE_KSPLICE_KERNEL
1083
- :param pulumi.Input[str] recurring_rule: (Updatable) The frequency schedule for a recurring scheduled job.
1084
- :param pulumi.Input[Sequence[pulumi.Input[int]]] retry_intervals: (Updatable) The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
1085
- :param pulumi.Input[str] schedule_type: (Updatable) The type of scheduling frequency for the scheduled job.
1086
- :param pulumi.Input[str] state: The current state of the scheduled job.
1087
- :param pulumi.Input[Mapping[str, Any]] system_tags: System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
1088
- :param pulumi.Input[str] time_created: The time this scheduled job was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
1089
- :param pulumi.Input[str] time_last_execution: The time of the last execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
1090
- :param pulumi.Input[str] time_next_execution: (Updatable) The desired time of the next execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
1091
-
1092
-
1093
- ** IMPORTANT **
1094
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
1095
- :param pulumi.Input[str] time_updated: The time this scheduled job was updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
1096
- :param pulumi.Input[Sequence[pulumi.Input[str]]] work_request_ids: The list of work request [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this scheduled job.
1097
- """
1098
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
1099
-
1100
- __props__ = _ScheduledJobState.__new__(_ScheduledJobState)
1101
-
1102
- __props__.__dict__["compartment_id"] = compartment_id
1103
- __props__.__dict__["defined_tags"] = defined_tags
1104
- __props__.__dict__["description"] = description
1105
- __props__.__dict__["display_name"] = display_name
1106
- __props__.__dict__["freeform_tags"] = freeform_tags
1107
- __props__.__dict__["is_managed_by_autonomous_linux"] = is_managed_by_autonomous_linux
1108
- __props__.__dict__["is_restricted"] = is_restricted
1109
- __props__.__dict__["is_subcompartment_included"] = is_subcompartment_included
1110
- __props__.__dict__["lifecycle_stage_ids"] = lifecycle_stage_ids
1111
- __props__.__dict__["locations"] = locations
1112
- __props__.__dict__["managed_compartment_ids"] = managed_compartment_ids
1113
- __props__.__dict__["managed_instance_group_ids"] = managed_instance_group_ids
1114
- __props__.__dict__["managed_instance_ids"] = managed_instance_ids
1115
- __props__.__dict__["operations"] = operations
1116
- __props__.__dict__["recurring_rule"] = recurring_rule
1117
- __props__.__dict__["retry_intervals"] = retry_intervals
1118
- __props__.__dict__["schedule_type"] = schedule_type
1119
- __props__.__dict__["state"] = state
1120
- __props__.__dict__["system_tags"] = system_tags
1121
- __props__.__dict__["time_created"] = time_created
1122
- __props__.__dict__["time_last_execution"] = time_last_execution
1123
- __props__.__dict__["time_next_execution"] = time_next_execution
1124
- __props__.__dict__["time_updated"] = time_updated
1125
- __props__.__dict__["work_request_ids"] = work_request_ids
1126
- return ScheduledJob(resource_name, opts=opts, __props__=__props__)
1127
-
1128
- @property
1129
- @pulumi.getter(name="compartmentId")
1130
- def compartment_id(self) -> pulumi.Output[str]:
1131
- """
1132
- (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the scheduled job.
1133
- """
1134
- return pulumi.get(self, "compartment_id")
1135
-
1136
- @property
1137
- @pulumi.getter(name="definedTags")
1138
- def defined_tags(self) -> pulumi.Output[Mapping[str, Any]]:
1139
- """
1140
- (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). Example: `{"Operations.CostCenter": "42"}`
1141
- """
1142
- return pulumi.get(self, "defined_tags")
1143
-
1144
- @property
1145
- @pulumi.getter
1146
- def description(self) -> pulumi.Output[str]:
1147
- """
1148
- (Updatable) User-specified description of the scheduled job. Avoid entering confidential information.
1149
- """
1150
- return pulumi.get(self, "description")
1151
-
1152
- @property
1153
- @pulumi.getter(name="displayName")
1154
- def display_name(self) -> pulumi.Output[str]:
1155
- """
1156
- (Updatable) User-friendly name for the scheduled job. Does not have to be unique and you can change the name later. Avoid entering confidential information.
1157
- """
1158
- return pulumi.get(self, "display_name")
1159
-
1160
- @property
1161
- @pulumi.getter(name="freeformTags")
1162
- def freeform_tags(self) -> pulumi.Output[Mapping[str, Any]]:
1163
- """
1164
- (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"}`
1165
- """
1166
- return pulumi.get(self, "freeform_tags")
1167
-
1168
- @property
1169
- @pulumi.getter(name="isManagedByAutonomousLinux")
1170
- def is_managed_by_autonomous_linux(self) -> pulumi.Output[bool]:
1171
- """
1172
- Indicates whether this scheduled job is managed by the Autonomous Linux service.
1173
- """
1174
- return pulumi.get(self, "is_managed_by_autonomous_linux")
1175
-
1176
- @property
1177
- @pulumi.getter(name="isRestricted")
1178
- def is_restricted(self) -> pulumi.Output[bool]:
1179
- """
1180
- Indicates if the schedule job has restricted update and deletion capabilities. For restricted scheduled jobs, you can update only the timeNextExecution, recurringRule, and tags.
1181
- """
1182
- return pulumi.get(self, "is_restricted")
1183
-
1184
- @property
1185
- @pulumi.getter(name="isSubcompartmentIncluded")
1186
- def is_subcompartment_included(self) -> pulumi.Output[bool]:
1187
- """
1188
- Indicates whether to apply the scheduled job to all compartments in the tenancy when managedCompartmentIds specifies the tenancy [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (root compartment).
1189
- """
1190
- return pulumi.get(self, "is_subcompartment_included")
1191
-
1192
- @property
1193
- @pulumi.getter(name="lifecycleStageIds")
1194
- def lifecycle_stage_ids(self) -> pulumi.Output[Sequence[str]]:
1195
- """
1196
- The lifecycle stage [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or managedCompartmentIds.
1197
- """
1198
- return pulumi.get(self, "lifecycle_stage_ids")
1199
-
1200
- @property
1201
- @pulumi.getter
1202
- def locations(self) -> pulumi.Output[Sequence[str]]:
1203
- """
1204
- The list of locations this scheduled job should operate on for a job targeting on compartments. (Empty list means apply to all locations). This can only be set when managedCompartmentIds is not empty.
1205
- """
1206
- return pulumi.get(self, "locations")
1207
-
1208
- @property
1209
- @pulumi.getter(name="managedCompartmentIds")
1210
- def managed_compartment_ids(self) -> pulumi.Output[Sequence[str]]:
1211
- """
1212
- The compartment [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. To apply the job to all compartments in the tenancy, set this to the tenancy OCID (root compartment) and set isSubcompartmentIncluded to true. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds.
1213
- """
1214
- return pulumi.get(self, "managed_compartment_ids")
1215
-
1216
- @property
1217
- @pulumi.getter(name="managedInstanceGroupIds")
1218
- def managed_instance_group_ids(self) -> pulumi.Output[Sequence[str]]:
1219
- """
1220
- The managed instance group [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceIds, or managedCompartmentIds, or lifecycleStageIds.
1221
- """
1222
- return pulumi.get(self, "managed_instance_group_ids")
1223
-
1224
- @property
1225
- @pulumi.getter(name="managedInstanceIds")
1226
- def managed_instance_ids(self) -> pulumi.Output[Sequence[str]]:
1227
- """
1228
- The managed instance [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that this scheduled job operates on. A scheduled job can only operate on one type of target, therefore you must supply either this or managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds.
1229
- """
1230
- return pulumi.get(self, "managed_instance_ids")
1231
-
1232
- @property
1233
- @pulumi.getter
1234
- def operations(self) -> pulumi.Output[Sequence['outputs.ScheduledJobOperation']]:
1235
- """
1236
- (Updatable) The list of operations this scheduled job needs to perform. A scheduled job supports only one operation type, unless it is one of the following:
1237
- * UPDATE_PACKAGES
1238
- * UPDATE_ALL
1239
- * UPDATE_SECURITY
1240
- * UPDATE_BUGFIX
1241
- * UPDATE_ENHANCEMENT
1242
- * UPDATE_OTHER
1243
- * UPDATE_KSPLICE_USERSPACE
1244
- * UPDATE_KSPLICE_KERNEL
1245
- """
1246
- return pulumi.get(self, "operations")
1247
-
1248
- @property
1249
- @pulumi.getter(name="recurringRule")
1250
- def recurring_rule(self) -> pulumi.Output[str]:
1251
- """
1252
- (Updatable) The frequency schedule for a recurring scheduled job.
1253
- """
1254
- return pulumi.get(self, "recurring_rule")
1255
-
1256
- @property
1257
- @pulumi.getter(name="retryIntervals")
1258
- def retry_intervals(self) -> pulumi.Output[Sequence[int]]:
1259
- """
1260
- (Updatable) The amount of time in minutes to wait until retrying the scheduled job. If set, the service will automatically retry a failed scheduled job after the interval. For example, you could set the interval to [2,5,10]. If the initial execution of the job fails, the service waits 2 minutes and then retries. If that fails, the service waits 5 minutes and then retries. If that fails, the service waits 10 minutes and then retries.
1261
- """
1262
- return pulumi.get(self, "retry_intervals")
1263
-
1264
- @property
1265
- @pulumi.getter(name="scheduleType")
1266
- def schedule_type(self) -> pulumi.Output[str]:
1267
- """
1268
- (Updatable) The type of scheduling frequency for the scheduled job.
1269
- """
1270
- return pulumi.get(self, "schedule_type")
1271
-
1272
- @property
1273
- @pulumi.getter
1274
- def state(self) -> pulumi.Output[str]:
1275
- """
1276
- The current state of the scheduled job.
1277
- """
1278
- return pulumi.get(self, "state")
1279
-
1280
- @property
1281
- @pulumi.getter(name="systemTags")
1282
- def system_tags(self) -> pulumi.Output[Mapping[str, Any]]:
1283
- """
1284
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}`
1285
- """
1286
- return pulumi.get(self, "system_tags")
1287
-
1288
- @property
1289
- @pulumi.getter(name="timeCreated")
1290
- def time_created(self) -> pulumi.Output[str]:
1291
- """
1292
- The time this scheduled job was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
1293
- """
1294
- return pulumi.get(self, "time_created")
1295
-
1296
- @property
1297
- @pulumi.getter(name="timeLastExecution")
1298
- def time_last_execution(self) -> pulumi.Output[str]:
1299
- """
1300
- The time of the last execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
1301
- """
1302
- return pulumi.get(self, "time_last_execution")
1303
-
1304
- @property
1305
- @pulumi.getter(name="timeNextExecution")
1306
- def time_next_execution(self) -> pulumi.Output[str]:
1307
- """
1308
- (Updatable) The desired time of the next execution of this scheduled job (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
1309
-
1310
-
1311
- ** IMPORTANT **
1312
- Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
1313
- """
1314
- return pulumi.get(self, "time_next_execution")
1315
-
1316
- @property
1317
- @pulumi.getter(name="timeUpdated")
1318
- def time_updated(self) -> pulumi.Output[str]:
1319
- """
1320
- The time this scheduled job was updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format).
1321
- """
1322
- return pulumi.get(self, "time_updated")
1323
-
1324
- @property
1325
- @pulumi.getter(name="workRequestIds")
1326
- def work_request_ids(self) -> pulumi.Output[Sequence[str]]:
1327
- """
1328
- The list of work request [OCIDs](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) associated with this scheduled job.
1329
- """
1330
- return pulumi.get(self, "work_request_ids")
1331
-